/* Interactive CV Styling */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --badge-journal-bg: rgba(37, 99, 235, 0.1);
    --badge-journal-color: #2563eb;
    --badge-preprint-bg: rgba(79, 70, 229, 0.1);
    --badge-preprint-color: #4f46e5;
    --badge-prep-bg: rgba(107, 114, 128, 0.1);
    --badge-prep-color: #6b7280;
    
    --highlight-color: rgba(253, 224, 71, 0.4);
}

[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: #1f2937;
    --border-color: #374151;
    --badge-journal-bg: rgba(59, 130, 246, 0.2);
    --badge-journal-color: #60a5fa;
    --badge-preprint-bg: rgba(129, 140, 248, 0.2);
    --badge-preprint-color: #818cf8;
    --badge-prep-bg: rgba(156, 163, 175, 0.2);
    --badge-prep-color: #9ca3af;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

/* Background image matching the main site */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/logistic_bifurcation.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

[data-theme="light"] body::before {
    filter: invert(1);
    opacity: 0.03;
}

/* Header bar (no-print) */
.cv-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(var(--bg-primary), 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 0.75rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.back-home-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(-3px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.print-btn {
    background: var(--primary-color);
    color: white;
}

.print-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.pdf-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.pdf-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-toggle-cv {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
}

.theme-toggle-cv:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
    transform: rotate(15deg);
}

/* Layout structure */
.cv-layout {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    gap: 2rem;
}

/* Sidebar Styling */
.cv-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-sticky {
    position: sticky;
    top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    border-left: 3px solid var(--primary-color);
    padding-left: 0.5rem;
    font-family: 'Nunito', sans-serif;
}


/* Nav Links inside Sidebar */
.cv-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cv-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.cv-nav-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(4px);
}

.cv-nav-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}



.hidden {
    display: none !important;
}

/* Main CV Content Styling */
.cv-content {
    flex-grow: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

/* CV Main Header (Web only) */
.cv-main-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.cv-main-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
    font-family: 'Nunito', sans-serif;
}

.cv-main-header .subtitle {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cv-main-header .affiliation {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    font-size: 0.9rem;
}

.contact-grid a, .contact-grid span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.contact-grid a:hover {
    color: var(--primary-color);
}

/* CV Section General */
.cv-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 6rem;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Nunito', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}



/* Timelines (Academic, Experience) */
.cv-timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    transition: var(--transition);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.1rem;
    top: 0.8rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--primary-color);
    transition: var(--transition);
}

.timeline-item:hover::before {
    background: var(--primary-color);
}

.timeline-header,
.timeline-subheader {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    order: 2;
}

.location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.advisor {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.details {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.sub-role {
    margin-top: 1rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.75rem;
}

.sub-date {
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.coursework {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Publications list */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pub-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: var(--transition);
}

.pub-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pub-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

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

.badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

.badge-journal {
    background: var(--badge-journal-bg);
    color: var(--badge-journal-color);
}

.badge-preprint {
    background: var(--badge-preprint-bg);
    color: var(--badge-preprint-color);
}

.badge-prep {
    background: var(--badge-prep-bg);
    color: var(--badge-prep-color);
}

.pub-citation {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pub-links {
    display: flex;
    gap: 0.5rem;
}

.pub-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: var(--transition);
    font-weight: 500;
}

.pub-link-btn:hover {
    background: var(--primary-color);
    color: white;
}

.pub-link-btn.press-btn {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.1);
}

.pub-link-btn.press-btn:hover {
    background: #f59e0b;
    color: white;
}

/* Event List (Posters & Talks) */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.event-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: var(--transition);
}

.event-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.badge-award {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.1);
}

.badge-grant {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-talk {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.badge-poster {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.event-item h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.event-venue {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.event-authors {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Experience List */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.exp-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: var(--transition);
}

.exp-item:hover {
    border-color: var(--primary-color);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.exp-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.exp-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    order: 2;
}

.thesis-badge {
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
}

/* TA List in Non-Academic */
.ta-list {
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.ta-list li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.ta-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.sem {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Service lists */
.service-list {
    list-style: none;
    padding-left: 0.5rem;
}

.service-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.service-list li strong {
    color: var(--text-primary);
}

.service-list .year {
    float: right;
    font-weight: 600;
    color: var(--primary-color);
}

/* Awards List */
.awards-list {
    list-style: none;
}

.awards-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.75rem;
}

.awards-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.award-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    flex-shrink: 0;
}

.award-info {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Skills display grid (bottom section) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.skills-category-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
}

.skills-category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
    font-family: 'Nunito', sans-serif;
}

.skills-tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skills-tags-display span {
    font-size: 0.8rem;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.skills-tags-display span:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer style */
.cv-footer {
    max-width: 1200px;
    margin: 2rem auto 4rem auto;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Search highlighting classes */
mark {
    background: var(--highlight-color);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

/* Print header (Hidden in browser) */
.print-header {
    display: none;
}

/* Responsive queries */
@media (max-width: 900px) {
    .cv-layout {
        flex-direction: column;
    }
    
    .cv-sidebar {
        width: 100%;
    }
    
    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 600px) {
    .cv-header {
        padding: 0.75rem 1rem;
    }
    
    .back-home-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .action-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .cv-content {
        padding: 1.5rem;
    }
    
    .cv-main-header h1 {
        font-size: 2rem;
    }
    
    .timeline-header,
    .timeline-subheader {
        display: flex;
        flex-direction: column;
    }
    
    .timeline-date {
        order: -1;
        margin-bottom: 0.25rem;
    }
    
    .exp-header {
        flex-direction: column;
    }
    
    .exp-date {
        order: -1;
        margin-bottom: 0.25rem;
    }
    
    .awards-list li {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .award-date {
        width: auto;
        text-align: left;
    }
}

/* PRINT STYLES - PDF Format formatting */
@media print {
    /* Hide screen elements */
    .no-print, 
    .cv-header, 
    .cv-sidebar, 
    .cv-footer,
    .pub-links {
        display: none !important;
    }
    
    /* Layout Reset */
    body {
        background: white !important;
        color: black !important;
        font-size: 10.5pt !important;
        line-height: 1.4 !important;
    }
    
    body::before {
        display: none !important;
    }
    
    .cv-layout {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    .cv-content {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Print Header configuration */
    .print-header {
        display: block !important;
        text-align: center;
        border-bottom: 2px solid #333;
        padding-bottom: 8px;
        margin-bottom: 20px;
    }
    
    .print-header h1 {
        font-size: 24pt !important;
        font-weight: 700;
        margin-bottom: 5px;
        font-family: 'Nunito', sans-serif;
        color: black !important;
    }
    
    .print-contact {
        display: flex;
        justify-content: center;
        gap: 15px;
        font-size: 9pt;
        color: #555 !important;
        flex-wrap: wrap;
    }
    
    /* Document elements print standard formatting */
    .section-title {
        color: black !important;
        border-bottom: 1.5px solid #333 !important;
        font-size: 12pt !important;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
        padding-bottom: 3px !important;
    }
    
    .section-title i {
        display: none !important; /* Hide icons in print */
    }
    
    .cv-timeline {
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .timeline-item {
        padding: 0 !important;
        margin-bottom: 12px !important;
        page-break-inside: avoid;
    }
    
    .timeline-item::before {
        display: none !important;
    }
    
    .timeline-header {
        margin-bottom: 2px !important;
    }
    
    .timeline-header h3 {
        font-size: 11pt !important;
        font-weight: 700;
        color: black !important;
    }
    
    .timeline-date {
        color: black !important;
        font-size: 10pt !important;
        font-weight: 600;
    }
    
    .role {
        font-size: 10pt !important;
        font-weight: 600;
        color: #333 !important;
    }
    
    .location {
        color: #444 !important;
    }
    
    .advisor, .details, .coursework {
        font-size: 9.5pt !important;
        color: #444 !important;
    }
    
    .sub-role {
        margin-top: 5px !important;
        border-top: none !important;
        padding-top: 0 !important;
    }
    
    /* Publications print */
    .publication-list, .event-list, .experience-list {
        gap: 8px !important;
    }
    
    .pub-item, .event-item, .exp-item {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 8px !important;
        page-break-inside: avoid;
    }
    
    .pub-meta, .event-meta, .exp-header {
        margin-bottom: 1px !important;
    }
    
    .badge {
        border: 1px solid #777 !important;
        background: transparent !important;
        color: black !important;
        font-size: 7.5pt !important;
        padding: 1px 4px !important;
    }
    
    .pub-citation, .event-item h4, .exp-header h3 {
        font-size: 10pt !important;
        color: black !important;
        margin-bottom: 1px !important;
    }
    
    .pub-year, .event-date, .exp-date {
        color: black !important;
        font-size: 9.5pt !important;
        font-weight: 600;
    }
    
    .event-venue, .event-authors {
        font-size: 9.5pt !important;
        color: #444 !important;
    }
    
    .ta-list {
        padding-left: 10px !important;
        margin-top: 2px !important;
    }
    
    .ta-list li {
        font-size: 9.5pt !important;
        color: #444 !important;
        margin-bottom: 1px !important;
    }
    
    .ta-list li::before {
        color: black !important;
    }
    
    /* Service lists */
    .service-list li {
        font-size: 9.5pt !important;
        color: #444 !important;
        margin-bottom: 4px !important;
    }
    
    .service-list li::before {
        color: black !important;
    }
    
    .service-list .year {
        color: black !important;
    }
    
    /* Awards print */
    .awards-list li {
        gap: 10px !important;
        margin-bottom: 4px !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid #eee !important;
        page-break-inside: avoid;
    }
    
    .award-date {
        width: auto !important;
        text-align: right !important;
        color: black !important;
        font-size: 9.5pt !important;
    }
    
    .award-info {
        font-size: 9.5pt !important;
        color: black !important;
    }
    
    /* Skills grid print */
    .skills-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .skills-category-card {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        page-break-inside: avoid;
    }
    
    .skills-category-card h3 {
        font-size: 10pt !important;
        color: black !important;
        margin-bottom: 4px !important;
        border-bottom: 1px solid #ddd !important;
    }
    
    .skills-tags-display {
        gap: 3px !important;
    }
    
    .skills-tags-display span {
        font-size: 8pt !important;
        background: transparent !important;
        border: 1px solid #ccc !important;
        color: black !important;
        padding: 1px 3px !important;
        border-radius: 4px !important;
    }
    
    /* Page Break Management */
    h2, h3, h4 {
        page-break-after: avoid;
    }
    
    section {
        page-break-inside: auto;
    }
}
