/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Sleek Professional Palette */
    --primary-slate: #0B3D91; /* deep navy */
    --accent-slate: #235772; /* slate accent */
    --muted-gray: #F6F7F9; /* page background */
    --card-gray: #FFFFFF;
    --soft-border: rgba(15,23,42,0.06);
    --charcoal: #17202A;
    --soft-charcoal: #3A3F45;
    --btn-accent: var(--accent-slate);
    --card-radius: 8px;

    /* Typography Scale */
    --font-primary: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Montserrat', system-ui, -apple-system, sans-serif;
    /* Backwards-compatible aliases (used across existing rules) */
    --primary-sage: var(--primary-slate);
    --deep-sage: #0F2F60;
    --warm-cream: var(--muted-gray);
    --soft-beige: #F2F4F6;
    --warm-taupe: #E9EEF2;
    --accent-gold: var(--accent-slate);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--muted-gray);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.container-full {
    width: 100%;
    padding: 0;
}

/* Navigation Styles */
.navbar {
    background: var(--card-gray);
    box-shadow: 0 6px 18px rgba(15,23,42,0.04);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--soft-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo a {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--deep-sage);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.4s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-sage);
    transition: width 0.4s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-sage);
}

.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--charcoal);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

.cv-section h3 {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    color: var(--deep-sage);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(107,123,90,0.14);
    position: relative;
}
.cv-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}
.section.active .container {
    opacity: 1;
    visibility: visible;
}

.section.active * {
    visibility: visible;
    pointer-events: auto;
}

/* CSS-only fallback for navigation using :target */
.section:target {
    display: block !important;
}

.section:not(#home) {
    background: var(--card-gray);
    margin: 1rem 0;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 30px rgba(15,23,42,0.04);
    border: 1px solid var(--soft-border);
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.2rem; /* slightly reduced for compact layout */
    font-weight: 700;
    color: var(--deep-sage);
    margin-bottom: 1.25rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-sage), var(--accent-gold));
    border-radius: 2px;
}

/* Hero Section */
#home {
    background: transparent;
    margin: 0;
    border-radius: 0;
    padding: 0;
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero {
    width: 100%;
    /* reduced hero padding so above-the-fold content is denser */
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem; /* tighter gap */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 60vh;
}

.hero-title {
    margin-bottom: 2.5rem;
}

.greeting {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--soft-charcoal);
    font-weight: 400;
    margin-bottom: 1rem;
    font-style: italic;
}

.name {
    display: block;
    font-family: var(--font-secondary);
    font-size: 4rem;
    color: var(--deep-sage);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--soft-charcoal);
    margin-bottom: 2rem;
    font-weight: 400;
}

.research-interest {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 2.5rem;
    font-style: italic;
    padding: 1.5rem;
    background: rgba(247, 245, 243, 0.8);
    border-left: 4px solid var(--primary-sage);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.contact-info {
    margin-top: 2.5rem;
}

.email-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    background: rgba(107, 123, 90, 0.1);
    border-radius: 12px;
    transition: all 0.4s ease;
    width: fit-content;
    margin-bottom: 0;
}

.email:hover {
    background: rgba(107, 123, 90, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 123, 90, 0.2);
}

.email i {
    color: var(--primary-sage);
    font-size: 1.1rem;
}

.email a {
    color: var(--deep-sage);
    text-decoration: none;
    font-weight: 500;
}

.email a:hover {
    color: var(--primary-sage);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(107, 123, 90, 0.1);
    color: var(--primary-sage);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.4s ease;
}

.social-link:hover {
    background: var(--primary-sage);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(107, 123, 90, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-container {
    position: relative;
}

.image-container::before { content: none; }

.profile-photo {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(15,23,42,0.06);
    border: 2px solid var(--card-gray);
    transition: transform 260ms var(--btn-ease), box-shadow 260ms var(--btn-ease);
}

.profile-photo:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15,23,42,0.08);
}

/* ScriptSense Banner */
.scriptsense-banner {
    text-align: center;
    margin: 2rem 0 3rem;
}

.banner-image {
    display: block;
    max-width: 680px; /* cap banner width on large screens */
    width: 80%; /* relative to container for better responsiveness */
    height: auto;
    margin: 0 auto; /* center the banner */
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(107, 123, 90, 0.12);
    transition: all 0.3s ease;
}

.banner-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(107, 123, 90, 0.2);
}

/* Subsection logos and refined banner styling */
.sub-banner {
    text-align: center;
    margin: 1.5rem 0 2rem;
}

.sub-banner-image {
    display: block;
    width: calc(100% - 14px); /* small inset so 'contain' can show breathing room */
    height: calc(100% - 14px);
    object-fit: contain; /* preserve whole PNG art without cropping */
    object-position: center center;
    padding: 6px; /* breathing room so nothing touches the inner stroke */
    border-radius: 50%;
    background: var(--warm-cream);
    /* 1px warm-cream border as a crisp inner stroke (micro-tweak) */
    box-shadow: inset 0 0 0 1px var(--warm-cream), 0 12px 30px rgba(44,43,42,0.08);
    border: 1px solid var(--warm-cream);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 3; /* keep image above both rings */
}

.sub-banner-image:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 45px rgba(44,43,42,0.12);
}

/* Circular logo container that lets text wrap */
.sub-logo {
    float: left;
    width: 130px; /* desktop container matches desired image size */
    height: 130px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    margin-bottom: 1rem;
    shape-outside: circle();
    -webkit-shape-outside: circle();
    /* ensure rings aren't clipped but the image itself is clipped by overflow */
    position: relative; /* needed for the decorative ring */
    z-index: 0;
    transition: transform 0.35s ease;
    border-radius: 50%;
    overflow: hidden; /* force true circular crop of the image */
}

.sub-logo::before { display: none; }

/* Slight lift and ring emphasis on hover */
.sub-logo:hover {
    transform: translateY(-6px);
}

.sub-logo:hover::before {
    transform: scale(1.06);
    opacity: 0.98;
}

    .sub-logo::after { display: none; }

    /* Visual separator & spacing between consecutive subsections (e.g., ScriptPrep -> ScriptGuide) */
    .subsection + .subsection {
        margin-top: 2.5rem; /* extra breathing room */
        padding-top: 1.75rem; /* keep content from touching the divider */
        clear: both; /* ensure floated logos don't overlap */
        border-top: 1px solid rgba(231, 227, 220, 0.8); /* subtle warm divider */
        position: relative;
    }

    /* Accent line above the following subsection for a gentle visual cue */
    .subsection + .subsection::before {
        content: '';
        position: absolute;
        top: 0.6rem;
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        height: 4px;
        border-radius: 4px;
        background: linear-gradient(90deg, rgba(107,123,90,0.85), rgba(184,149,107,0.85));
        box-shadow: 0 6px 18px rgba(107,123,90,0.06);
        opacity: 0.9;
    }

    /* Slightly increase top spacing specifically for ScriptGuide for clarity */
    #scriptguide-sub {
        margin-top: 2rem;
    }

    /* Align ScriptGuide content with ScriptPrep: float the logo and let text wrap to the right
       so headings and paragraphs start at the same left column as ScriptPrep's text. */
    #scriptguide-sub .sub-banner {
        text-align: left;
    }

    #scriptguide-sub .sub-logo {
        float: left;
        width: 130px; /* match desktop container */
        height: 130px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 1.25rem;
        margin-bottom: 1rem;
        shape-outside: circle();
        -webkit-shape-outside: circle();
        overflow: hidden;
        border-radius: 50%;
    }

    #scriptguide-sub .sub-banner-image {
        width: calc(100% - 14px);
        height: calc(100% - 14px);
        object-fit: contain;
        padding: 6px;
        margin: 0;
        border-radius: 50%;
    }

    #scriptguide-sub h3,
    #scriptguide-sub p,
    #scriptguide-sub h4 {
        text-align: left;
    }

@media screen and (max-width: 992px) {
    .sub-logo {
        float: none;
        margin: 0 auto 1.25rem;
        display: block;
        width: 110px; /* mobile container */
        height: 110px; /* mobile container */
    }
    .sub-banner-image {
        width: 100%;
        height: 100%;
        padding: 0;
    }
    #scripttoolkit .banner-image {
        max-width: 520px;
    }
}

/* Tighter caps for tablet and mobile */
@media screen and (max-width: 768px) {
    .banner-image { width: 86%; max-width: 520px; }
}

@media screen and (max-width: 480px) {
    .banner-image { width: 95%; max-width: 360px; border-radius: 10px; }
    /* Slightly reduce sub-logo sizes on very small screens */
    .sub-logo { width: 96px; height: 96px; }
    .sub-banner-image { padding: 4px; }
}

/* Larger hero/banner for ScriptToolKit main banner */
#scripttoolkit .banner-image {
    max-width: 520px;
    height: auto;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(247,245,243,0.95));
    box-shadow: 0 20px 50px rgba(44,43,42,0.08);
    border: 1px solid rgba(0,0,0,0.03);
}

/* ScriptToolKit specific hero and feature styles */
.scripttoolkit-hero {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: center;
    padding: 2.25rem;
    margin: 1.5rem 0 2rem 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(11,61,145,0.04), rgba(35,87,114,0.02));
    border: 1px solid rgba(35,87,114,0.04);
    box-shadow: 0 18px 50px rgba(11,61,145,0.03);
}

.scripttoolkit-hero .scripttoolkit-intro h2 {
    font-family: var(--font-secondary);
    font-size: 1.9rem;
    color: var(--deep-sage);
    margin-bottom: 0.75rem;
}
.scripttoolkit-hero .scripttoolkit-intro p {
    font-size: 1.05rem;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
}
.scripttoolkit-visual { display: flex; justify-content: center; }
.scripttoolkit-visual .banner-image { max-width: 380px; width: 100%; height: auto; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2rem 0 3rem 0;
}
.feature-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,245,243,0.9));
    border-radius: 12px;
    padding: 1.25rem;
    text-align: left;
    border: 1px solid rgba(35,87,114,0.06);
    box-shadow: 0 10px 30px rgba(11,61,145,0.04);
    transition: transform 240ms var(--btn-ease), box-shadow 240ms var(--btn-ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(11,61,145,0.06); }
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-sage), var(--accent-gold));
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}
.feature-card h4 { margin: 0 0 0.5rem 0; font-size: 1.05rem; color: var(--deep-sage); }
.feature-card p { margin: 0; color: var(--soft-charcoal); font-size: 0.98rem; line-height: 1.6; }

@media screen and (max-width: 900px) {
    .scripttoolkit-hero { grid-template-columns: 1fr; text-align: center; }
    .scripttoolkit-visual { order: -1; }
}

/* Make ScriptSense and ScriptPrep logos slightly smaller on mobile */
/* removed duplicate/contradictory mobile sizing for .sub-banner-image above */

/* CV Section */
.cv-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cv-section {
    margin-bottom: 4rem;
}

.cv-section h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--deep-sage);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-sage);
    position: relative;
}

.cv-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.cv-item {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(247, 245, 243, 0.55);
    border-radius: 10px;
    box-shadow: none;
    border: 1px solid rgba(231,227,220,0.6);
    transition: background 0.2s ease, transform 0.18s ease;
}

.cv-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 123, 90, 0.08);
}

/* Compact CV lists: grid of short items + hidden more */
.compact-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1rem;
    list-style: none;
    padding-left: 0;
}
.compact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0.5rem;
    font-size: 0.95rem;
}
.compact-list li i {
    color: var(--primary-sage);
    min-width: 22px;
    text-align: center;
    font-size: 1.05rem;
}
.more { display: none; }
.compact-group.expanded .more { display: block; }
.show-more-btn {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 10px;
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.95rem; border-radius: 10px; }

@media (max-width: 900px) {
    .compact-list { grid-template-columns: 1fr; }
}

.cv-item h4 {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    color: var(--deep-sage);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.institution {
    font-size: 1.1rem;
    color: var(--primary-sage);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.date {
    color: var(--soft-charcoal);
    font-style: italic;
    font-size: 0.95rem;
}

.research-list {
    list-style: none;
    padding-left: 0;
}

.research-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--soft-beige);
    position: relative;
    padding-left: 2rem;
    font-size: 1.05rem;
    color: var(--charcoal);
}

.research-list li::before {
    /* replace glyph with a small accent dot for a cleaner, professional look */
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-sage);
}

.research-list li:last-child {
    border-bottom: none;
}

.cv-download {
    text-align: center;
    margin-top: 4rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    --btn-radius: 12px;
    --btn-ease: cubic-bezier(.2,.9,.3,1);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.0rem 1.75rem; /* slightly larger for better tap targets */
    text-decoration: none;
    border-radius: var(--btn-radius);
    font-weight: 700; /* stronger weight for CTAs */
    font-size: 1.02rem;
    transition: transform 220ms var(--btn-ease), box-shadow 220ms var(--btn-ease), opacity 160ms linear, filter 220ms var(--btn-ease);
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::after {
    /* subtle glossy sheen */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    mix-blend-mode: overlay;
    pointer-events: none;
    opacity: 0.8;
    transform: translateY(-10%);
    transition: transform 420ms var(--btn-ease), opacity 220ms linear;
}

.btn:hover::after { transform: translateY(0%); opacity: 1; }

/* Primary button: deeper, polished accent */
.btn-primary {
    background: linear-gradient(180deg, var(--btn-accent) 0%, rgba(36,87,114,0.95) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(35, 87, 114, 0.14), 0 2px 8px rgba(0,0,0,0.06) inset;
    border: 1px solid rgba(255,255,255,0.06);
    text-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 48px rgba(35, 87, 114, 0.18), 0 4px 14px rgba(0,0,0,0.06) inset;
    filter: saturate(1.06) drop-shadow(0 6px 20px rgba(35,87,114,0.08));
}

.btn-primary:focus {
    outline: none;
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 6px rgba(35,87,114,0.12), 0 12px 36px rgba(35,87,114,0.12);
}

/* Ghost variant: more compact, subtle hover */
.btn-ghost {
    background: transparent;
    color: var(--deep-sage);
    border: 1px solid rgba(74,144,164,0.12);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(74,144,164,0.04));
    color: var(--deep-sage);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 22px rgba(74,144,164,0.06);
}

/* Hero CTAs: slightly larger and separated for emphasis */
.hero-ctas .btn.btn-primary {
    padding: 1.05rem 2.2rem; /* slightly larger for hero prominence */
    font-size: 1.08rem;
    border-radius: 14px;
}
.hero-ctas .link-btn {
    padding: 0.7rem 1.05rem;
    font-size: 0.98rem;
    border-radius: 12px;
    /* modern outline-style hero secondary button */
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
    color: var(--btn-accent);
    border: 1px solid rgba(35,87,114,0.14);
    box-shadow: 0 4px 18px rgba(35,87,114,0.06);
    backdrop-filter: blur(4px);
}

.hero-ctas .link-btn:hover {
    background: linear-gradient(180deg, rgba(35,87,114,0.06), rgba(35,87,114,0.02));
    color: white;
    border-color: rgba(35,87,114,0.28);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 40px rgba(35,87,114,0.12);
}
.hero-ctas .link-btn:focus-visible {
    box-shadow: 0 0 0 6px rgba(35,87,114,0.10);
}

/* Small link-style buttons for inline navigation anchors */
.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
    line-height: 1;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(74,144,164,0.12);
    color: var(--deep-sage);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
    transition: transform 220ms var(--btn-ease), box-shadow 220ms var(--btn-ease), background 220ms var(--btn-ease), color 220ms var(--btn-ease);
    backdrop-filter: blur(4px);
}
.link-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 36px rgba(44,43,42,0.06);
    background: linear-gradient(180deg, rgba(74,144,164,0.08), rgba(74,144,164,0.03));
    color: white;
}
.link-btn:focus-visible {
    box-shadow: 0 0 0 6px rgba(74,144,164,0.08);
    outline: none;
}
.link-btn--primary {
    background: linear-gradient(90deg, var(--primary-sage), var(--accent-gold));
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 36px rgba(44,43,42,0.12);
}
.link-btn--small { padding: 0.28rem 0.6rem; font-size: 0.9rem; border-radius: 8px; }

/* Research Section */
.research-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.research-overview {
    background: rgba(247, 245, 243, 0.8);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 4rem;
    box-shadow: 0 15px 40px rgba(107, 123, 90, 0.1);
    border: 1px solid var(--soft-beige);
    position: relative;
}

.research-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-sage), var(--accent-gold));
    border-radius: 20px 20px 0 0;
}

.research-overview h3 {
    font-family: var(--font-secondary);
    color: var(--deep-sage);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Paragraph Indentation for Professional Text Formatting */
.research-overview p,
.cv-item p,
.section p {
    text-indent: 2rem;
}

/* Exceptions - don't indent these specific elements */
.hero-description,
.research-interest,
.contact-info p,
.footer p,
.cv-download p,
.date,
.institution {
    text-indent: 0 !important;
}

.research-overview p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--charcoal);
}

.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.research-area {
    background: rgba(247, 245, 243, 0.8);
    padding: 2.5rem;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(107, 123, 90, 0.08);
    border-left: 5px solid var(--primary-sage);
    transition: all 0.4s ease;
    border: 1px solid var(--soft-beige);
    text-align: center;
}

.research-area:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(107, 123, 90, 0.2);
    border-left-color: var(--accent-gold);
}

.research-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-sage), var(--accent-gold));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.research-area:hover .research-icon {
    transform: rotate(360deg) scale(1.1);
}

.research-area h4 {
    font-family: var(--font-secondary);
    color: var(--deep-sage);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.research-area p {
    color: var(--soft-charcoal);
    line-height: 1.7;
    font-size: 1.05rem;
}

.publications {
    background: rgba(247, 245, 243, 0.8);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(107, 123, 90, 0.1);
    border: 1px solid var(--soft-beige);
}

.publications h3 {
    font-family: var(--font-secondary);
    color: var(--deep-sage);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.coming-soon {
    color: var(--soft-charcoal);
    font-style: italic;
    text-align: center;
    padding: 2.5rem 0;
    font-size: 1.1rem;
}

/* Media Section */
.media-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.media-gallery {
    margin-bottom: 4rem;
}

.media-item {
    background: rgba(247, 245, 243, 0.8);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(107, 123, 90, 0.08);
    margin-bottom: 2.5rem;
    border: 1px solid var(--soft-beige);
    transition: all 0.3s ease;
}

.media-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(107, 123, 90, 0.12);
}

.media-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(107, 123, 90, 0.15);
}

.media-caption {
    text-align: center;
    color: var(--soft-charcoal);
    font-style: italic;
    font-size: 1.05rem;
}

.media-links {
    background: rgba(247, 245, 243, 0.8);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(107, 123, 90, 0.1);
    border: 1px solid var(--soft-beige);
}

.media-links h3 {
    font-family: var(--font-secondary);
    color: var(--deep-sage);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--warm-cream);
    color: var(--charcoal);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 2px solid var(--soft-beige);
    font-weight: 500;
}

.link-item:hover {
    background: var(--primary-sage);
    color: white;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(107, 123, 90, 0.3);
    border-color: var(--primary-sage);
}

.link-item i {
    font-size: 1.3rem;
    transition: all 0.4s ease;
}

.link-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-sage), var(--accent-gold));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(107, 123, 90, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 15px 35px rgba(107, 123, 90, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--deep-sage), var(--charcoal));
    color: var(--warm-cream);
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
}
    padding: 2.25rem;
    margin-bottom: 2.25rem;
    border-radius: 18px;

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-sage), transparent);
}

/* Keep `site-footer` visually consistent with `.footer` (some pages use site-footer) */
.site-footer {
    background: linear-gradient(135deg, var(--deep-sage), var(--charcoal));
    color: var(--warm-cream);
    text-align: center;
    padding: 1rem 0; /* reduced padding for a smaller footer */
    margin-top: 2rem;
    position: relative;
    font-size: 0.95rem; /* slightly smaller text */
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-sage), transparent);
}

/* Footer links: plain inline links (no button visuals) */
.site-footer a {
    color: var(--warm-cream);
    text-decoration: underline;
    font-weight: 500;
}
.site-footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* About page: container + refined card styling for a more professional look */
#about .cv-section {
    margin-bottom: 3.5rem;
    padding: 0.85rem 0.5rem;
}

/* Center the CV content on a subtly elevated white card to increase focus */
#about .cv-content {
    max-width: 820px;
    margin: 2.25rem auto;
    padding: 2rem;
    background: rgba(255,255,255,0.98);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(44,43,42,0.06);
    border: 1px solid rgba(231,227,220,0.8);
}

/* Remove indented paragraphs on About page for professional copy layout */
#about p,
#about .cv-item p,
#about .research-overview p {
    text-indent: 0 !important;
    color: var(--charcoal);
}

/* Make the research overview a lighter, cleaner block */
#about .research-overview {
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(247,245,243,0.92);
    box-shadow: none;
    border: 1px solid rgba(231,227,220,0.7);
}

/* Tidy up details/summary presentation to read like compact cards */
details.cv-detail {
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(231,227,220,0.85);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

details.cv-detail[open] {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44,43,42,0.05);
    border-left: 4px solid var(--accent-gold);
    background: linear-gradient(90deg, rgba(184,149,107,0.03), rgba(255,255,255,0.98));
}

details.cv-detail summary {
    padding: 0.9rem 1rem;
    gap: 1rem;
}

/* Put title on its own line and metadata underneath for improved scanability */
.cv-title { display: block; font-size: 1.05rem; }
.cv-meta { display: block; margin-top: 0.18rem; font-size: 0.95rem; color: var(--soft-charcoal); }

/* Education cards: consistent card height, center-aligned content */
.education-grid .cv-item,
.education-grid .education-card {
    padding: 1rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

/* Slightly increase spacing for the final contact CTA */
.cv-download { margin-top: 3rem; }

/* Keep detail bodies compact to avoid huge vertical expansion; allow scrolling inside the card */
.cv-detail-body {
    max-height: 220px;
    overflow: auto;
    padding-right: 0.25rem;
}

/* Small 'View' button inside summary to open modal; compact and subtle */
.cv-view-btn {
    background: transparent;
    border: 1px solid rgba(207,200,190,0.6);
    color: var(--primary-sage);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}
.cv-view-btn:hover { background: rgba(107,123,90,0.06); }

/* Modal for CV details */
.cv-modal { display: none; position: fixed; inset: 0; z-index: 2000; }
.cv-modal[aria-hidden="false"] { display: block; }
.cv-modal-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,0.45); }
.cv-modal-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 780px; width: calc(100% - 3rem); background: white; border-radius: 12px; box-shadow: 0 30px 80px rgba(10,10,10,0.25); padding: 1.25rem; }
.cv-modal-close { position: absolute; top: 8px; right: 10px; background: transparent; border: none; font-size: 1.25rem; cursor: pointer; color: var(--soft-charcoal); }
.cv-modal-content { max-height: 60vh; overflow: auto; padding-top: 0.5rem; color: var(--charcoal); line-height: 1.7; }

@media (max-width: 900px) {
    .cv-detail-body { max-height: 160px; }
    .cv-modal-panel { width: calc(100% - 2rem); padding: 1rem; }
}
/* Responsive Design */
/* Enhanced link items with images */
.link-item-with-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.link-item-with-image .link-item {
    width: 100%;
    margin-top: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(247, 245, 243, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 15px 35px rgba(107, 123, 90, 0.15);
        padding: 3rem 0;
        border-bottom: 1px solid var(--soft-beige);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .name {
        font-size: 3rem;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .profile-photo {
        width: 280px;
        height: 280px;
    }

    .social-links {
        justify-content: center;
    }

    .research-areas {
        grid-template-columns: 1fr;
    }

    .email-row {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium screens - tablets */
@media screen and (max-width: 600px) {
    .email-row {
        flex-direction: column;
        gap: 1rem;
    }

    .email {
        max-width: 320px;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
        margin: 2rem 0;
    }

    .section:not(#home) {
        border-radius: 20px;
    }

    .cv-download {
        flex-direction: column;
        align-items: center;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .greeting {
        font-size: 1.1rem;
    }

    .hero-description,
    .research-interest {
        font-size: 1rem;
    }

    .profile-photo {
        width: 240px;
        height: 240px;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .email-row {
        gap: 0.75rem;
    }

    .email {
        font-size: 1rem;
        padding: 0.8rem 1rem;
        width: 100%;
        max-width: 280px;
    }

    .email a {
        font-size: 0.9rem;
        word-break: break-all;
    }

    .research-overview,
    .publications,
    .media-links {
        padding: 2rem;
    }

    .cv-item,
    .research-area,
    .media-item {
        padding: 1.5rem;
    }

    .research-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Hide decorative rings on very small screens for clarity */
    .sub-logo::before,
    .sub-logo::after {
        display: none;
    }
}

/* Enhanced Contact Form Styles */
.contact-form-section {
    background: rgba(247, 245, 243, 0.8);
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(107, 123, 90, 0.1);
    border: 1px solid var(--soft-beige);
}

/* About collapse: keep first paragraphs visible, hide extra content until expanded */
#about .research-overview {
    /* slightly tighter padding to reduce height */
    padding: 1.5rem;
}
#about .about-more {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.35s ease;
    opacity: 0;
}
#about .research-overview.expanded .about-more {
    display: block;
    max-height: 1000px; /* large enough to show content */
    opacity: 1;
}
#about .about-toggle {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

/* Cute Read More toggle styling */
.about-toggle {
    background: linear-gradient(135deg, rgba(74,144,164,0.95), rgba(74,144,164,0.8));
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(74,144,164,0.12);
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}
.about-toggle::after {
    content: '❤';
    display: inline-block;
    font-size: 0.9rem;
    margin-left: 0.25rem;
    transform: translateY(-1px);
    opacity: 0.95;
}
.about-toggle:hover { transform: translateY(-2px); }

/* Education timeline */
.education-timeline {
    position: relative;
    margin: 1rem 0 2rem 0;
    padding-left: 2rem;
}
.education-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(74,144,164,0.25), rgba(74,144,164,0.1));
}
.timeline-item {
    position: relative;
    padding: 0.75rem 0 1.25rem 1rem;
    display: flex;
    gap: 1rem;
}
.timeline-marker {
    position: absolute;
    left: 4px;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: 3px solid var(--warm-cream);
    box-shadow: 0 6px 20px rgba(74,144,164,0.12);
}
.timeline-content .cv-title { font-size: 1.05rem; font-weight: 600; color: var(--deep-sage); }
.timeline-content .institution { color: var(--primary-sage); margin-top: 0.25rem; }
.timeline-content .date { color: var(--soft-charcoal); font-style: italic; margin-top: 0.25rem; }

/* Awards: static card adjustments (no toggles) */
.cv-section .cv-item { padding: 0.85rem 1rem; }

.contact-form-section h3 {
    text-align: center;
    color: var(--deep-sage);
    margin-bottom: 2rem;
    font-family: var(--font-secondary);
    font-size: 1.8rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--deep-sage);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--soft-beige);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-sage);
    box-shadow: 0 0 0 3px rgba(107, 123, 90, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Skills Visualization Styles */
.skills-section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.skills-section h3 {
    text-align: center;
    color: var(--deep-sage);
    margin-bottom: 2rem;
    font-family: var(--font-secondary);
    font-size: 1.8rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-category h4 {
    color: var(--deep-sage);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-sage);
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    text-align: center;
}

.skill-category {
    background: rgba(247, 245, 243, 0.6);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(107, 123, 90, 0.08);
    border: 1px solid var(--soft-beige);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(107, 123, 90, 0.12);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.95rem;
}

.skill-bar {
    height: 8px;
    background: var(--soft-beige);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-sage), var(--accent-gold));
    border-radius: 4px;
    width: 0;
    transition: width 2s ease-in-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
}

@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 800px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form-section {
        padding: 1.5rem 1rem;
    }
    
    .skills-section {
        padding: 1rem 0;
    }
}

/* Quick Navigation (sticky) - compact jump links to reduce scrolling */
.quick-nav {
    position: fixed;
    right: 18px;
    top: 40%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1200;
}
.quick-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    background: rgba(255,255,255,0.95);
    color: var(--deep-sage);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(107,123,90,0.08);
    font-size: 0.95rem;
    border: 1px solid rgba(207,200,190,0.6);
}
.quick-nav a:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, var(--primary-sage), var(--accent-gold));
    color: white;
}

@media screen and (max-width: 900px) {
    /* hide quick nav on smaller screens to avoid obstruction */
    .quick-nav { display: none; }
}

/* Details / dropdown styling for About page */
details.cv-detail {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(231,227,220,0.8);
    border-radius: 10px;
    margin-bottom: 0.85rem;
    padding: 0.2rem 0.6rem;
}

details.cv-detail[open] {
    background: rgba(247,245,243,0.95);
}

details.cv-detail summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
}

details.cv-detail summary::-webkit-details-marker { display: none; }

.cv-title {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    color: var(--deep-sage);
    font-weight: 600;
}

.cv-meta { display: inline-flex; gap: 1rem; align-items: baseline; color: var(--soft-charcoal); font-size: 0.95rem; }
.cv-meta .institution { color: var(--primary-sage); font-weight: 500; }
.cv-meta .date { font-style: italic; color: var(--soft-charcoal); }

.toggle-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 0.6rem;
    /* create a chevron using borders so we don't rely on icon fonts */
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(45deg);
    transition: transform 0.18s ease, border-color 0.18s ease;
}
details.cv-detail[open] .toggle-icon { transform: rotate(-135deg); }

.cv-detail-body { padding: 0.6rem 0.8rem 1rem; color: var(--charcoal); line-height: 1.75; }

/* Make the toggle icons a bit larger on desktop for emphasis */
@media (min-width: 900px) {
    .toggle-icon { font-size: 1.05rem; }
}

/* Education grid (2x2) */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (max-width: 900px) {
    .education-grid { grid-template-columns: 1fr; }
}

/* Ensure the minimalist preformatted education block uses site fonts (not monospace) */
.education-minimal {
    font-family: var(--font-primary);
    font-weight: 400; /* regular */
    font-style: normal;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    background: transparent;
    padding: 0.25rem 0;
    white-space: pre;
    margin: 0;
}
