@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&display=swap');

h1, h2, .article-title, .page-title, .category-title, .author-name-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.01rem !important;
}

:root {
    /* Colors */
    --primary: #00305a;
    --on-primary: #ffffff;
    --primary-container: #004780;
    --on-primary-container: #86b6f6;
    --primary-fixed: #d3e4ff;
    --primary-fixed-dim: #a2c9ff;
    --on-primary-fixed: #001c38;
    --on-primary-fixed-variant: #024881;

    --secondary: #006686;
    --on-secondary: #ffffff;
    --secondary-container: #40c9ff;
    --on-secondary-container: #00516c;
    --secondary-fixed: #c0e8ff;
    --secondary-fixed-dim: #71d2ff;
    --on-secondary-fixed: #001e2b;
    --on-secondary-fixed-variant: #004d66;

    --tertiary: #212e52;
    --on-tertiary: #ffffff;
    --tertiary-container: #384469;
    --on-tertiary-container: #a6b2de;
    --tertiary-fixed: #dbe1ff;
    --tertiary-fixed-dim: #b9c5f2;
    --on-tertiary-fixed: #0c193d;
    --on-tertiary-fixed-variant: #39456b;

    --error: #ba1a1a;
    --on-error: #ffffff;
    --error-container: #ffdad6;
    --on-error-container: #93000a;

    --background: #f9f9fe;
    --on-background: #191c20;

    --surface: #f9f9fe;
    --on-surface: #191c20;
    --surface-variant: #e2e2e8;
    --on-surface-variant: #424750;
    --surface-dim: #d9dadf;
    --surface-bright: #f9f9fe;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f3f3f9;
    --surface-container: #ededf3;
    --surface-container-high: #e7e8ed;
    --surface-container-highest: #e2e2e8;
    --surface-subtle: #F2F2F2;
    --surface-tint: #2b609a;

    --inverse-surface: #2e3035;
    --inverse-on-surface: #f0f0f6;
    --inverse-primary: #a2c9ff;

    --outline: #727781;
    --outline-variant: #c2c6d1;

    --success-green: #2D9964;
    --slate-gray: #63666A;

    /* Border Radius */
    --radius-default: 0.125rem;
    --radius-lg: 0.25rem;
    --radius-xl: 0.5rem;
    --radius-full: 0.75rem;

    /* Spacing */
    --stack-gap: 24px;
    --inline-gap: 12px;
    --container-padding: 20px;
    --section-margin: 48px;

    /* Font Families */
    --font-body: "Inter", sans-serif;
    --font-headline: "Manrope", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

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

html {
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--on-background);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    padding-top: 109px;
}

/* Typography */
h1 {
    font-family: var(--font-headline);
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--on-background);
}

h2 {
    font-family: var(--font-headline);
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    color: var(--on-background);
}

h3 {
    font-family: var(--font-headline);
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: var(--on-background);
}

p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--on-background);
}

a {
    font-family: var(--font-body);
    font-weight: bold;
}

.body-lg {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
}

.body-sm {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.label-caps {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.05em;
    font-weight: 500;
    text-transform: uppercase;
}

/* Navigation Bar */
.navbar {
    background-color: var(--surface);
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px var(--container-padding);
    gap: var(--stack-gap);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--on-surface-variant);
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 16px;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Hero Section */
.hero-section {
    width: 100%;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    padding: 60px 0;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
}

/* Subtle glowing background orb for premium look */
.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(0, 102, 134, 0.06) 0%, rgba(0, 48, 90, 0.03) 40%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-animation {
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#threejs-container {
    width: 100%;
    height: 100%;
    background: transparent;
    position: relative;
    overflow: hidden;
}

#threejs-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 20px;
}

/* Premium Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 48, 90, 0.05);
    border: 1px solid rgba(0, 48, 90, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    align-self: flex-start;
    margin-bottom: 8px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--secondary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 102, 134, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 102, 134, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 102, 134, 0);
    }
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

/* Modern Gradient Title */
.hero-content h1 {
    font-family: var(--font-headline);
    font-size: 58px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    width: 100%;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 21px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    margin-bottom: 12px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-premium {
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 48, 90, 0.08);
}

.btn-primary.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 48, 90, 0.15);
    background-color: var(--primary-container);
}

.btn-outlined.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 48, 90, 0.05);
    background-color: rgba(0, 48, 90, 0.04);
}

/* Sections */
section {
    /* min-height: 400px; */
    margin: var(--section-margin) 0;
    padding: var(--container-padding);
    background-color: var(--surface);
    border-radius: var(--radius-xl);
    border: 0px solid var(--surface-variant);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-container);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--on-secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-container);
}

.btn-outlined {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outlined:hover {
    background-color: var(--primary-fixed);
}

/* Cards */
.card {
    background-color: var(--surface-container);
    border-radius: var(--radius-xl);
    padding: var(--container-padding);
    border: 1px solid var(--surface-variant);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--outline);
}

/* Mobile Menu Toggle button style */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 105;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.menu-toggle.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

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

/* Features Grid Section - dark premium strip */
.features-section {
    background: linear-gradient(145deg, #001828 0%, #002b4a 40%, var(--primary) 75%, #004a7c 100%);
    padding: 100px 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

/* Subtle top highlight line for crisp edge */
.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 30%, rgba(0, 160, 220, 0.3) 50%, rgba(255, 255, 255, 0.12) 70%, transparent 100%);
}

/* Ambient glow orb top-right */
.features-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 150, 220, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 48px 28px 44px;
    text-align: center;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.feature-card:hover .feature-icon {
    transform: translateY(-4px) scale(1.08);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.feature-card h3 {
    font-family: var(--font-headline);
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.35;
    margin: 0;
    letter-spacing: 0.01em;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

/* Research Details Section */
.details-section {
    padding: 100px 0 80px;
    background-color: var(--background);
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.details-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.details-container h2 {
    font-family: var(--font-headline);
    font-size: 44px;
    line-height: 1.22;
    letter-spacing: -0.025em;
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 700;
}

.details-lead {
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.75;
    color: var(--on-surface-variant);
    margin-bottom: 40px;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
}

.details-quote {
    font-family: var(--font-headline);
    font-size: 26px;
    font-style: italic;
    font-weight: 600;
    color: var(--secondary);
    margin: 56px auto;
    max-width: 640px;
    line-height: 1.5;
    position: relative;
    padding: 0 48px;
}

.details-quote::before {
    content: '\201C';
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 110px;
    font-style: normal;
    line-height: 0;
    position: absolute;
    top: 36px;
    left: 0;
    color: var(--secondary);
    opacity: 0.18;
}

.details-quote::after {
    content: '\201D';
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 110px;
    font-style: normal;
    line-height: 0;
    position: absolute;
    bottom: -8px;
    right: 0;
    color: var(--secondary);
    opacity: 0.18;
}

.details-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--on-surface-variant);
    margin-top: 32px;
}

/* Connect Section */
.connect-section {
    background-color: var(--background);
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 60px 0 80px;
}

.connect-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.connect-container h2 {
    font-family: var(--font-headline);
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: var(--on-primary);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 48, 90, 0.15);
}

.linkedin-btn:hover {
    transform: translateY(-2px);
    background-color: var(--secondary);
    box-shadow: 0 6px 18px rgba(0, 102, 134, 0.25);
}

/* Footer Section */
.site-footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 24px 0;
    text-align: center;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.site-footer p {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .hero-animation {
        height: 380px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        overflow: hidden !important;
    }

    .connect-section {
        display: block !important;
        padding: 16px 0 20px !important;
        margin: 0 !important;
        min-height: auto !important;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 32px;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-badge {
        align-self: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-animation {
        height: 380px;
        order: 2;
        pointer-events: none;
    }

    .hero-content {
        order: 1;
    }

    /* Mobile Navbar toggle styles */
    .menu-toggle {
        display: flex;
    }

    .nav-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 8px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 14px 24px;
        text-align: left;
        border-bottom: 1px solid var(--surface-container-low);
    }

    .nav-menu a.active {
        border-bottom-color: var(--surface-container-low);
        background-color: rgba(0, 48, 90, 0.04);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 24px;
    }

    .details-container h2 {
        font-size: 30px;
    }

    .details-quote {
        font-size: 20px;
        margin: 36px auto;
        padding: 0 40px;
    }

    .details-quote::before {
        font-size: 70px !important;
        top: 22px !important;
        left: 5px !important;
    }

    .details-quote::after {
        font-size: 70px !important;
        bottom: -15px !important;
        right: 5px !important;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    body {
        padding-top: 102px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .container {
        padding: var(--inline-gap);
    }

    h1 {
        font-size: 28px;
        line-height: 36px;
    }

    /* Hero Responsive */
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-container {
        padding: 0 24px;
        gap: 24px;
    }

    .hero-content h1 {
        font-size: 35px;
        line-height: 1.3;
    }

    .logo img {
        max-height: 58px;
    }
}

@media (max-width: 576px) {
    .hero-container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 31px;
        line-height: 1.35;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

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

    .hero-animation {
        height: 320px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .details-container h2 {
        font-size: 26px;
    }

    .details-lead {
        font-size: 16px;
    }

    .details-quote {
        font-size: 18px;
        padding: 0 36px;
    }
}

/* Details Image Styling */
.details-image-container {
    width: 100%;
    max-width: 800px;
    margin: 32px auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 48, 90, 0.06);
    border: 1px solid var(--outline-variant);
    background-color: #ffffff;
}

.details-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Page Titles and Layouts for Secondary Pages */
.page-title {
    font-family: var(--font-headline);
    font-size: 40px;
    color: var(--primary);
    text-align: center !important;
    display: block;
    width: 100%;
    margin-top:0px;
    margin-bottom: 80px;
    font-weight: 700;
}

.page-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--on-surface-variant);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* Content Hub Page Styling */
/* .content-hub-section,
.team-page-section {
    padding: 40px 0 80px;
} */

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    align-items: center;
}

.featured-img-container {
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-right: 1px solid var(--outline-variant);
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .featured-img {
    transform: scale(1.03);
}

.featured-content {
    padding: 40px;
}

.featured-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}

.featured-content h2 {
    font-family: var(--font-headline);
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.featured-content p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    margin-bottom: 24px;
}

.read-more-btn {
    display: inline-flex;
    padding: 10px 20px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-md);
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.articles-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card,
.team-member-card {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.article-card h3,
.team-member-card h3 {
    font-family: var(--font-headline);
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.article-card p,
.team-member-card p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--on-surface-variant);
}

.article-card:hover,
.team-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 48, 90, 0.06);
    border-color: var(--secondary-fixed-dim);
}

/* Content Hub - 2-column grid for 4 real articles */
.articles-grid.ch-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.article-card.ch-card {
    display: flex;
    flex-direction: column;
    padding: 36px 32px;
}

.ch-card h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary);
    margin-bottom: 16px;
}

.ch-card p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--on-surface-variant);
    flex: 1;
    margin-bottom: 28px;
}

.ch-read-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 10px 22px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: auto;
}

.ch-read-more:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 134, 0.22);
}

@media (max-width: 860px) {
    .articles-grid.ch-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Team Page Styling */
.team-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    background-color: var(--surface-container-lowest);
    border: 0px solid var(--outline-variant);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    align-items: center;
}

.team-img-container {
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-right: 1px solid var(--outline-variant);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-intro-content {
    padding: 40px;
}

.team-intro-content h2 {
    font-family: var(--font-headline);
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.team-intro-content p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--on-surface-variant);
}

/* Responsive updates for secondary pages */
@media (max-width: 992px) {

    .featured-article,
    .team-hero {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .featured-img-container,
    .team-img-container {
        height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--outline-variant);
    }

    .articles-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title {
        font-size: 32px;
        margin-top: 24px;
    }

    .page-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {

    .articles-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-content,
    .team-intro-content {
        padding: 24px 16px;
    }

    .featured-img-container,
    .team-img-container {
        height: 200px;
    }

    .featured-content h2,
    .team-intro-content h2 {
        font-size: 22px;
    }
}

/* Details closing paragraph - clean editorial, no card treatment */
.details-text-block {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.details-text-block .details-text {
    margin-top: 0;
    font-size: 18px;
    line-height: 1.85;
    color: var(--on-surface-variant);
    text-align: center;
}

@media (max-width: 768px) {
    .details-text-block .details-text {
        font-size: 16px;
    }
}

/* ── Team Profiles ─────────────────────────────────────── */
.team-profiles-alt {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* padding: 8px 0 48px; */
}

.profile-row {
    display: grid;
    gap: 56px;
    align-items: center;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 2px 16px rgba(0, 48, 90, 0.04);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.profile-row.img-right {
    grid-template-columns: 1fr 360px;
}

.profile-row.img-left {
    grid-template-columns: 360px 1fr;
}

.profile-row:hover {
    box-shadow: 0 10px 36px rgba(0, 48, 90, 0.09);
    transform: translateY(-3px);
}

/* Image outer wrapper */
.profile-image-outer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Image container - natural height, no stretch */
.profile-image-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 48, 90, 0.14);
    border: 1px solid var(--outline-variant);
    background-color: var(--surface-container);
}

/* Photo - full image visible, no cropping */
.profile-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-row:hover .profile-photo {
    transform: scale(1.03);
}

/* Text content column */
.profile-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}

.profile-name-highlight {
    font-family: var(--font-headline);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    align-self: flex-start;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.profile-name-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-container) 100%);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-row:hover .profile-name-highlight::after {
    width: 100%;
}

.profile-bio {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.78;
    color: var(--on-surface-variant);
    margin: 0;
}

.publications-btn {
    align-self: flex-start;
    display: inline-block;
    padding: 11px 22px;
    background-color: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 12px rgba(0, 48, 90, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 6px;
}

.publications-btn:hover {
    transform: translateY(-2px);
    background-color: var(--secondary);
    box-shadow: 0 8px 20px rgba(0, 102, 134, 0.22);
}

/* ── Team Responsive ───────────────────────────────────── */
@media (max-width: 1100px) {
    .profile-row.img-right {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }

    .profile-row.img-left {
        grid-template-columns: 300px 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .profile-row.img-right,
    .profile-row.img-left {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 20px;
        border-radius: 16px;
    }

    /* img-right: content is first in DOM - pull image above bio */
    .profile-row.img-right .profile-image-outer {
        order: -1;
    }

    .profile-image-container {
        max-width: 340px;
        margin: 0 auto;
    }

    .profile-content {
        align-items: center;
        text-align: center;
    }

    .profile-name-highlight {
        align-self: center;
    }

    .profile-name-highlight::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .publications-btn {
        align-self: center;
    }
}

@media (max-width: 480px) {

    .profile-row.img-right,
    .profile-row.img-left {
        padding: 20px 14px;
        gap: 20px;
    }

    .profile-image-container {
        max-width: 100%;
    }

    .profile-name-highlight {
        font-size: 22px;
    }

    .profile-bio {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* ── Article Pages ──────────────────────────────────────── */
.article-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 0 96px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}

.back-link:hover {
    color: var(--primary);
}

.article-title {
    font-family: var(--font-headline);
    font-size: 40px;
    line-height: 1.22;
    letter-spacing: -0.022em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 44px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--outline-variant);
}

.article-body p {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.85;
    color: var(--on-background);
    margin-bottom: 24px;
}

.article-body h2 {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.35;
    margin: 44px 0 16px;
}

.article-body ul {
    margin: 4px 0 28px;
    padding: 0;
    list-style: none;
}

.article-body ul li {
    position: relative;
    padding: 12px 18px 12px 46px;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--on-background);
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 10px;
    margin-bottom: 8px;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
    flex-shrink: 0;
}

/* CTA buttons (PBPK article) */
.article-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--outline-variant);
}

.article-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-cta-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 134, 0.22);
}

.article-cta-btn.btn-outlined {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.article-cta-btn.btn-outlined:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* Resource links (TB article) */
.article-resources {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--outline-variant);
}

.article-resources-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--on-surface-variant);
    margin-bottom: 16px;
}

.article-resources-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-resources-list li a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: bold;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-resources-list li a:hover {
    border-color: var(--secondary-fixed-dim);
    background: var(--surface-container);
    color: var(--primary);
    transform: translateX(4px);
}

/* Article metadata line - Leave a Comment / Category / By author */
.article-meta {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-top: -28px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.article-meta a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.article-meta a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.meta-sep {
    color: var(--on-surface-variant);
    font-weight: 400;
}

/* Citation links inside article paragraphs */
.article-body a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: var(--primary);
}

/* Image inside article body */
.article-body-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 48, 90, 0.08);
    border: 1px solid var(--outline-variant);
    margin: 32px 0;
}

/* Next / Previous Post navigation */
.article-post-nav {
    margin-top: 48px;
    padding-top: 32px;
}

.post-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 48, 90, 0.05);
}

.post-nav-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 6px 18px rgba(0, 48, 90, 0.15);
    transform: scale(1.08);
}

.post-nav-label {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .article-page {
        padding: 32px 0 64px;
    }

    .article-title {
        font-size: 26px;
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .article-body h2 {
        font-size: 20px;
        margin-top: 32px;
    }

    .article-body p,
    .article-body ul li {
        font-size: 16px;
    }

    .article-cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .article-cta-btn {
        justify-content: center;
        text-align: center;
    }

    .post-nav-btn {
        max-width: 100%;
    }
}

/* ── Comment Section ─────────────────────────────────────── */
.comment-section {
    margin-top: 48px;
    padding-top: 40px;
}

.comment-section-title {
    font-family: var(--font-headline);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.comment-section-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-bottom: 28px;
}

.required-star {
    color: var(--secondary);
}

.comment-form textarea {
    width: 100%;
    min-height: 210px;
    padding: 16px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--on-background);
    resize: vertical;
    margin-bottom: 16px;
    box-sizing: border-box;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
}

.comment-form textarea:focus {
    border-color: var(--secondary);
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-form-row input {
    padding: 11px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--on-background);
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.comment-form-row input:focus {
    border-color: var(--secondary);
}

.comment-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

.comment-form-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--secondary);
}

.comment-form-consent label {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--on-surface-variant);
    line-height: 1.5;
    cursor: pointer;
}

.comment-form-submit {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    background-color: var(--secondary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.comment-form-submit:hover {
    background-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 48, 90, 0.18);
}

.comment-success {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--secondary);
    padding: 20px 24px;
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 10px;
    text-align: center;
}

@media (max-width: 640px) {
    .comment-form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .comment-section-title {
        font-size: 22px;
    }
}

/* ── Connect Page ────────────────────────────────────────── */
.connect-page-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 56px 0 96px;
}

.connect-page-hero {
    text-align: center;
    margin-bottom: 48px;
}

.connect-page-title {
    color: var(--primary);
    margin-bottom: 16px;
}

.connect-forum-text {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--on-surface-variant);
    margin-top: 28px;
    line-height: 1.6;
}

.connect-forum-text a {
    color: var(--secondary);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}

.connect-forum-text a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.connect-icons-row {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.connect-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.connect-icon-linkedin {
    background-color: #0077b5;
}

.connect-icon-linkedin:hover {
    background-color: #005f93;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 119, 181, 0.3);
}

.connect-icon-github {
    background-color: #24292f;
}

.connect-icon-github:hover {
    background-color: #3d444d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(36, 41, 47, 0.3);
}

.connect-form-card {
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0, 48, 90, 0.06);
}

.connect-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.connect-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.connect-field label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--on-surface);
}

.connect-field input,
.connect-field textarea {
    padding: 13px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--on-background);
    background: var(--surface-container-lowest);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.connect-field input:focus,
.connect-field textarea:focus {
    border-color: var(--secondary);
    background: #ffffff;
}

.connect-field textarea {
    min-height: 180px;
    resize: vertical;
}

.connect-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 40px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 4px;
}

.connect-submit-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 48, 90, 0.18);
}

.connect-success-msg {
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(45, 153, 100, 0.08);
    border: 1px solid rgba(45, 153, 100, 0.3);
    border-radius: 8px;
    color: var(--success-green);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.connect-error-msg {
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(186, 26, 26, 0.06);
    border: 1px solid rgba(186, 26, 26, 0.25);
    border-radius: 8px;
    color: var(--error);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .connect-form-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .connect-name-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .connect-page-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .connect-page-section {
        padding: 36px 0 72px;
    }
}

/* ── Author Archive Page ─────────────────────────────────── */
.author-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 0 96px;
}

.author-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--outline-variant);
    padding-bottom: 24px;
    margin-bottom: 48px;
}

.author-name-title {
    font-family: var(--font-headline);
    font-size: 38px;
    font-weight: 700;
    color: var(--secondary); /* Matches the bright blue in the screenshot */
    margin: 0;
}

.author-avatar-outer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--surface-container-high);
    color: #b0b5be; /* Light grey silhouette color */
}

.author-avatar-icon {
    width: 32px;
    height: 32px;
}

.author-articles-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.author-post-item {
    border-bottom: 1px solid var(--outline-variant);
    padding-bottom: 40px;
}

.author-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.author-post-title {
    font-family: var(--font-headline);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.author-post-title a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-post-title a:hover {
    color: var(--secondary);
}

.author-post-metadata {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.author-post-metadata a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.author-post-metadata a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.author-post-excerpt {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--on-surface-variant);
    margin: 0 0 16px 0;
}

.author-read-more {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: bold;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-read-more:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .author-section {
        padding: 32px 0 64px;
    }

    .author-name-title {
        font-size: 30px;
    }

    .author-post-title {
        font-size: 22px;
    }
}

/* ── Category Pages ─────────────────────────────────────── */
.category-header {
    border-bottom: 1px solid var(--outline-variant);
    padding-bottom: 24px;
    margin-bottom: 48px;
}

.category-title {
    font-family: var(--font-headline);
    font-size: 38px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-animate-visible {
    opacity: 1;
    transform: translateY(0);
}