:root {
    --primary-color: #1e293b;
    --secondary-color: #4f46e5;
    --text-main: #334155;
    --text-header: #0f172a;
    --text-muted: #64748b;
    --bg-sidebar: #f8fafc;
    --bg-main: #ffffff;
    --border-color: #e2e8f0;
    --container-width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: #f1f5f9;
    line-height: 1.35;
    padding: 10px;
}

.resume-container {
    background: var(--bg-main);
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    min-height: 1000px; /* A4 Ratio */
}

/* Header Styles */
.resume-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #111827 100%);
    color: white;
    padding: 20px 30px;
    text-align: left;
}

.name {
    font-size: 1.8rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 2px;
}

.tagline {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #cbd5e1;
    flex-wrap: wrap;
}

.contact-info a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #fff;
}

/* Layout */
.main-content {
    display: grid;
    grid-template-columns: 240px 1fr;
}

.sidebar {
    background-color: var(--bg-sidebar);
    padding: 20px 15px;
    border-right: 1px solid var(--border-color);
}

.content-body {
    padding: 20px 30px;
}

/* Section Styles */
.resume-section {
    margin-bottom: 12px;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
}

/* Sidebar Sections */
.education-item {
    margin-bottom: 10px;
}

.institution {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-header);
    margin-bottom: 1px;
}

.degree {
    font-size: 0.75rem;
    color: var(--text-main);
    margin-bottom: 1px;
}

.date {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.skills-list li {
    font-size: 0.7rem;
    padding: 2px 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
}

/* Main Body Sections */
.summary-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
}

.experience-item {
    margin-bottom: 10px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1px;
}

.company {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-header);
}

.location {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.exp-subhead {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.exp-bullets {
    padding-left: 12px;
    list-style-type: disc;
}

.exp-bullets li {
    font-size: 0.8rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

/* Print Optimization */
@media print {
    @page {
        margin: 0;
    }
    body {
        padding: 0;
        background-color: white;
    }
    .resume-container {
        box-shadow: none;
        max-width: 100%;
        margin: 0;
        width: 100%;
        border-radius: 0;
        height: 100%;
    }
    .resume-header {
        padding: 15px 25px;
    }
    .main-content {
        grid-template-columns: 200px 1fr;
    }
}

/* Footer Navigation */
.resume-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.switch-link {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.switch-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

@media print {
    .resume-footer,
    .resume-switch {
        display: none;
    }
}

/* Resume Switch Button */
.resume-switch {
    text-align: center;
    padding: 1.5rem 30px;
    border-top: 1px solid var(--border-color);
}

.resume-switch-btn {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    background: #818cf8;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.resume-switch-btn:hover {
    opacity: 0.85;
}

/* ===== EXPERIMENTAL CLEANUP — DELETE THIS BLOCK TO REVERT ===== */

/* Page-level background + document feel */
body.page-template-page-resume {
    background: #f1f5f9;
}

body.page-template-page-resume .resume-container {
    background: #fff;
    font-size: 16px;
    line-height: 1.65;
    color: #1f2937;
}

@media (min-width: 900px) {
    body.page-template-page-resume .resume-container {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        border: 1px solid #e5e7eb;
        border-radius: 16px;
    }
}

/* Section headings */
body.page-template-page-resume .section-title {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #d1d5db;
    color: #111827;
}

/* Job/company headings */
body.page-template-page-resume .company {
    font-size: 1.1rem;
    line-height: 1.3;
    color: #111827;
}

/* Links */
body.page-template-page-resume .content-body a {
    color: #0f766e;
    text-decoration: none;
}

body.page-template-page-resume .content-body a:hover {
    text-decoration: underline;
}

/* Better bullet lists */
body.page-template-page-resume .exp-bullets {
    margin: 0.75rem 0 1.25rem 1.25rem;
    padding: 0;
}

body.page-template-page-resume .exp-bullets li {
    margin-bottom: 0.55rem;
    padding-left: 0.15rem;
    line-height: 1.5;
}

body.page-template-page-resume .exp-bullets li::marker {
    color: #6b7280;
}

/* Skills list spacing */
body.page-template-page-resume .skills-list li {
    font-size: 0.75rem;
    padding: 3px 0;
}

/* Experience header spacing */
body.page-template-page-resume .experience-item {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

body.page-template-page-resume .experience-item:last-child {
    border-bottom: none;
}

body.page-template-page-resume .exp-subhead {
    margin-bottom: 6px;
}

/* Header/navigation on resume page */
body.page-template-page-resume .site-header {
    border-bottom: 1px solid #e5e7eb;
}

body.page-template-page-resume .main-navigation a {
    font-size: 0.95rem;
}

/* Hide ZIK/junk injected content */
body.page-template-page-resume form,
body.page-template-page-resume iframe:not(.resume-container iframe),
body.page-template-page-resume .wp-block-embed,
body.page-template-page-resume .widget,
body.page-template-page-resume [class*="zik"],
body.page-template-page-resume a[href*="zikanalytics.com"] {
    display: none !important;
}

/* Mobile cleanup */
@media (max-width: 640px) {
    body.page-template-page-resume .resume-container {
        margin: 20px auto;
    }

    body.page-template-page-resume .resume-header {
        padding: 16px 20px;
    }

    body.page-template-page-resume .content-body {
        padding: 16px 20px;
    }

    body.page-template-page-resume .sidebar {
        padding: 16px 12px;
    }

    body.page-template-page-resume .main-navigation a {
        font-size: 0.9rem;
    }
}

/* ===== END EXPERIMENTAL CLEANUP ===== */

