/* Reset & Base Styles */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-italic-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/montserrat-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/montserrat-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/montserrat-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-display-italic-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-display-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/playfair-display-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/playfair-display-normal.woff2') format('woff2');
}

:root {
    --color-navy: #0a1628;
    --color-navy-light: #162a45;
    --color-gold: #c9a962;
    --color-gold-light: #e0c88b;
    --color-cream: #f8f5f0;
    --color-white: #ffffff;
    --color-text-dark: #1a1a1a;
    --color-text-light: #666666;
    
    --font-heading: 'Playfair Display', serif;
    --font-subheading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-standard: all 0.3s ease;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.1);

    --hero-height: 60vh;
    --hero-min-height: 450px;
    --nav-safe-height: 92px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography Utils */
.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.center-text {
    text-align: center;
    width: 100%;
}

.section-divider {
    height: 3px;
    width: 60px;
    background-color: var(--color-gold);
    margin-bottom: 3rem;
}

.center-divider {
    margin-left: auto;
    margin-right: auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-standard);
    background-color: transparent;
    color: var(--color-white);
}

.navbar.scrolled {
    background-color: var(--color-navy);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
}

.navbar.scrolled .nav-logo {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
    position: relative;
    padding-bottom: 5px;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

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

.navbar.scrolled .nav-item {
    color: var(--color-cream);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: var(--hero-height);
    min-height: var(--hero-min-height);
    width: 100%;
    background-image: url('../images/paris-header.gif');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-safe-height);
    padding-bottom: 70px; /* Reserve space for scroll indicator */
    background-attachment: fixed; /* Parallax */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,22,40,0.8) 0%, rgba(10,22,40,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 18px 28px;
    background: linear-gradient(160deg, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.28) 100%);
    border: 1px solid rgba(224, 200, 139, 0.42);
    box-shadow: 0 24px 48px rgba(0,0,0,0.25);
    backdrop-filter: blur(2px);
}

.hero-title {
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.6rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: var(--font-subheading);
    font-size: clamp(0.82rem, 1.35vw, 1rem);
    font-weight: 400;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.8rem;
}

.hero-divider {
    width: 72px;
    height: 2px;
    background-color: var(--color-white);
    margin: 0 auto;
    opacity: 0.7;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.65;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-white);
    border-radius: 20px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-white);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* Sections General */
.section {
    padding: 120px 0;
}

/* About Section */
.about-section {
    background-color: var(--color-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.45fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.about-image-wrapper {
    padding: 16px;
    align-self: start;
    position: sticky;
    top: 120px;
}

.image-frame {
    position: relative;
    z-index: 2;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .profile-image {
    transform: scale(1.03);
}

.image-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-gold);
    z-index: 1;
    transform: translate(-20px, -20px);
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .image-accent {
    transform: translate(-10px, -10px);
}

.about-text {
    background: var(--color-white);
    border-left: 3px solid var(--color-gold);
    padding: clamp(24px, 4vw, 42px);
    box-shadow: var(--shadow-soft);
}

.about-text .section-title {
    margin-bottom: 1.4rem;
}

.bio-content p {
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--color-text-light);
    text-align: justify;
}

.bio-content .bio-lead {
    font-size: 1.08rem;
    color: var(--color-text-dark);
}

/* Research Section */
.research-section {
    background-color: var(--color-white);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.research-card {
    background: var(--color-white);
    padding: 40px;
    border-top: 3px solid var(--color-gold);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-cream);
    /* opacity: 0.5; */
    position: absolute;
    top: -10px;
    right: 20px;
    font-weight: 700;
    z-index: 0;
    /* Instead of cream text, let's make it a very subtle grey or gold tint */
    color: rgba(201, 169, 98, 0.15); 
}

.research-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.research-card p {
    font-size: 1rem;
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

/* Publications Section */
.publications-section {
    background-color: var(--color-cream);
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.publication-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(10, 22, 40, 0.1);
}

.publication-item:last-child {
    border-bottom: none;
}

.pub-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
}

.pub-details h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.pub-details p {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    color: var(--color-text-light);
    font-style: normal;
}

/* Footer */
.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
}

.footer-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.footer-role {
    color: var(--color-gold);
    font-family: var(--font-subheading);
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* Animations */
.fade-in { opacity: 0; transition: opacity 1s ease-out; }
.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 1s ease-out; }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: all 1s ease-out; }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: all 1s ease-out; }

.visible { opacity: 1; transform: translate(0,0); }

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .about-image-wrapper {
        position: relative;
        max-width: 420px;
    }

    .about-text {
        border-left: none;
        border-top: 3px solid var(--color-gold);
    }
    
    .image-accent {
        left: 0;
        width: 100%;
        transform: translate(-16px, -16px);
    }
    
    .about-image-wrapper:hover .image-accent {
        transform: translate(-8px, -8px);
    }

    .bio-content p {
        text-align: left;
    }
}

/* ===== DROPDOWN NAVIGATION ===== */
.nav-item-wrapper {
    position: relative;
}

.nav-item-wrapper .nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item-wrapper .nav-item::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-navy);
    min-width: 250px;
    padding: 15px 0;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-navy);
}

.nav-item-wrapper.active-subsite:hover .nav-dropdown,
.nav-item-wrapper.active-subsite:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown a {
    display: block;
    padding: 10px 25px;
    color: var(--color-cream);
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background-color: rgba(201, 169, 98, 0.15);
    color: var(--color-gold);
    padding-left: 30px;
}

.nav-item.active {
    color: var(--color-gold);
}

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

/* ===== SUBPAGE STYLES ===== */
body.subpage {
    padding-top: 0;
}

/* Page Header (for subpages) */
.page-header {
    height: 35vh;
    min-height: 280px;
    width: 100%;
    background-image: url('../images/paris-header.gif');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-safe-height);
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.5) 100%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: var(--color-white);
}

.page-header-divider {
    width: 80px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 0 auto;
}

/* ===== CV PAGE LAYOUT ===== */
.cv-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px;
    gap: 60px;
}

/* CV Sidebar Navigation */
.cv-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cv-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cv-nav-item {
    padding: 12px 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.cv-nav-item:hover,
.cv-nav-item.active {
    color: var(--color-navy);
    border-left-color: var(--color-gold);
    background-color: rgba(201, 169, 98, 0.08);
}

/* CV Content Area */
.cv-content {
    max-width: 900px;
}

.blog-layout-no-sidebar {
    grid-template-columns: 1fr;
    max-width: 1100px;
}

.blog-layout-no-sidebar .cv-content {
    max-width: 100%;
}

.cv-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.cv-section-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--color-navy);
}

.cv-section-divider {
    height: 3px;
    width: 50px;
    background-color: var(--color-gold);
    margin-bottom: 30px;
}

/* CV Entries */
.cv-entries {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cv-entry {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.cv-entry--no-date {
    grid-template-columns: 1fr;
}

.cv-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cv-date {
    font-family: var(--font-subheading);
    font-size: 1rem;
    color: var(--color-gold);
    font-weight: 600;
}

.cv-details h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    color: var(--color-navy);
}

.cv-details h3 a {
    color: var(--color-text-dark);
    text-decoration: underline;
    text-decoration-color: rgba(42, 63, 94, 0.35);
    text-underline-offset: 2px;
    transition: var(--transition-standard);
}

.cv-details h3 a:hover {
    color: var(--color-navy);
    text-decoration-color: rgba(42, 63, 94, 0.65);
}

.cv-institution {
    font-family: var(--font-subheading);
    font-size: 1.05rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 0.3rem;
}

.cv-institution a {
    color: var(--color-gold);
    text-decoration: underline;
    text-decoration-color: rgba(201, 169, 98, 0.4);
}

.cv-institution a:hover {
    text-decoration-color: var(--color-gold);
}

.cv-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.cv-description,
.cv-details {
    overflow-wrap: anywhere;
}

.cv-description a {
    color: #2a3f5e;
    text-decoration: underline;
    text-decoration-color: rgba(42, 63, 94, 0.35);
    text-underline-offset: 2px;
}

.cv-description a:hover {
    color: var(--color-navy);
    text-decoration-color: rgba(42, 63, 94, 0.65);
}

.pub-details h4 a,
.legal-content a,
.bio-content a {
    color: var(--color-text-dark);
    text-decoration: underline;
    text-decoration-color: rgba(42, 63, 94, 0.35);
    text-underline-offset: 2px;
    transition: var(--transition-standard);
}

.pub-details h4 a:hover,
.legal-content a:hover,
.bio-content a:hover {
    color: var(--color-navy);
    text-decoration-color: rgba(42, 63, 94, 0.65);
}

.blog-content a,
.cv-content p a,
.cv-content li a {
    color: #2a3f5e;
    text-decoration: underline;
    text-decoration-color: rgba(42, 63, 94, 0.35);
    text-underline-offset: 2px;
    transition: var(--transition-standard);
}

.blog-content a:hover,
.cv-content p a:hover,
.cv-content li a:hover {
    color: var(--color-navy);
    text-decoration-color: rgba(42, 63, 94, 0.65);
}

body.publications-page .cv-entry--no-date {
    padding-bottom: 20px;
}

.cv-highlight {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gold);
    margin-bottom: 0.3rem;
}

.cv-list {
    list-style: none;
    margin-top: 0.5rem;
}

.cv-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.cv-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--color-gold);
    border-radius: 50%;
}

/* Legal Pages */
.legal-section {
    padding: 72px 0 96px;
    background-color: var(--color-cream);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 42px 36px;
    box-shadow: var(--shadow-soft);
    border-top: 3px solid var(--color-gold);
}

.legal-content h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.legal-content h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.8rem;
}

.legal-content p,
.legal-content li {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    margin: 0.6rem 0 0.6rem 1.2rem;
}

.legal-note {
    margin-top: 2.2rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .cv-layout {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .cv-sidebar {
        position: static;
        border-bottom: 1px solid rgba(10, 22, 40, 0.1);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .cv-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .cv-nav-item {
        padding: 8px 15px;
        border-left: none;
        border-bottom: 2px solid transparent;
        font-size: 0.8rem;
    }

    .cv-nav-item:hover,
    .cv-nav-item.active {
        border-left: none;
        border-bottom-color: var(--color-gold);
    }
}

@media (max-width: 768px) {
    .legal-content {
        padding: 28px 20px;
    }

    .hero {
        min-height: 380px;
        padding-top: var(--nav-safe-height);
        padding-bottom: 80px; /* Reserve space for scroll indicator on mobile */
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
    }

    .page-header {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
    }

    .hero-content {
        width: min(92%, 680px);
        padding: 14px 14px;
    }

    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.72rem; }
    
    .nav-links {
        display: none; /* Add mobile menu logic if needed, simple hide for now to keep clean */
    }
    
    .nav-toggle { display: flex; }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .publication-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position right below the navbar */
        left: 0;
        width: 100%;
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background-color: var(--color-navy);
        padding: 20px 0;
        text-align: left;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links.active .nav-item-wrapper {
        width: 100%;
    }

    .nav-links.active .nav-item,
    .nav-links.active .nav-item-wrapper > .nav-item {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 24px;
    }

    .nav-links.active .nav-item-wrapper .nav-dropdown {
        display: none;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .cv-entry {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cv-date {
        font-size: 0.9rem;
    }

    .page-header {
        min-height: 220px;
    }

    body.subpage .cv-sidebar {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 10px;
    }

    body.subpage .cv-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        overflow-x: visible;
        padding: 0 0 10px;
        scrollbar-width: thin;
    }

    body.subpage .cv-nav-item {
        flex: 1 1 calc(50% - 8px);
        white-space: normal;
        border-bottom: 2px solid transparent;
        border-left: none;
        background-color: rgba(201, 169, 98, 0.1);
        border-radius: 10px;
        font-size: 0.78rem;
        line-height: 1.3;
        padding: 9px 10px;
    }

    body.subpage .cv-description a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    body.subpage .cv-nav-item:hover,
    body.subpage .cv-nav-item.active {
        border-bottom-color: transparent;
        background-color: rgba(201, 169, 98, 0.2);
    }
}
