/* Hallmark · redesign (refine-in-place) · genre: modern-minimal (institutional)
 * pre-emit critique: P5 H4 E5 S4 R5 V4
 * Brand preserved (green #3d8b4f / gold #d4a017 · Noto Serif+Sans TC).
 * Motion refined per Emil Kowalski: strong custom easings, press states,
 * cohesive hover, no parallax, full focus-visible + reduced-motion layers.
 * ============================================
   NEP-II Website Styles
   ============================================ */

/* CSS Variables - Theme Colors */
:root {
    --primary: #3d8b4f;
    --primary-dark: #2d6a3e;
    --primary-light: #5cb85c;
    --primary-lighter: #e8f5e9;
    --accent: #d4a017;
    --accent-light: #f0d060;
    --text-dark: #1a1a1a;
    --text-medium: #444;
    --text-light: #666;
    --text-muted: #888;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f2f5;
    --border-light: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, #3d8b4f 0%, #5cb85c 50%, #3d8b4f 100%);
    --gradient-dark: linear-gradient(135deg, #2d6a3e 0%, #3d8b4f 100%);
    --gradient-accent: linear-gradient(135deg, #d4a017 0%, #f0d060 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(45,106,62,0.85) 0%, rgba(61,139,79,0.75) 50%, rgba(92,184,92,0.65) 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Motion — strong custom easings (Emil Kowalski). Built-in CSS easings
       are too weak; these give animations intentional punch. */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* elements entering / responding */
    --ease-in: cubic-bezier(0.7, 0, 0.84, 0);        /* elements leaving */
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* on-screen movement / toggles */
    --dur-micro: 130ms;   /* button press, color shift */
    --dur-short: 220ms;   /* hover lift, dropdown, tooltip */
    --dur-long: 420ms;    /* reveals, drawers */

    /* Shared shorthand — property-scoped where it matters, see components below */
    --transition: all var(--dur-short) var(--ease-out);
    --transition-slow: all var(--dur-long) var(--ease-out);

    /* Focus — visible, high-contrast, never animated */
    --focus-color: #14532d;
    --focus-ring: 0 0 0 3px rgba(61,139,79,0.35);

    --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Noto Serif TC', serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   FOCUS — visible ring for keyboard users only
   (never animated; shows instantly on focus)
   ============================================ */
:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 3px;
    border-radius: 4px;
}
:focus:not(:focus-visible) {
    outline: none;
}
/* On-brand ring for the prominent controls */
.btn:focus-visible,
.dot:focus-visible,
.back-to-top:focus-visible,
.social-link:focus-visible,
.footer-social a:focus-visible {
    outline-color: #fff;
    box-shadow: var(--focus-ring);
}

/* ============================================
   PARTICLE CANVAS (Animated Background)
   Fades out once the hero scrolls away so body
   copy is read against a clean background.
   ============================================ */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.32;
    transition: opacity var(--dur-long) var(--ease-out);
}

body.past-hero #particleCanvas {
    opacity: 0;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--gradient-dark);
    padding: 6px 0;
    position: relative;
    z-index: 1000;
}

.top-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: background var(--dur-short) var(--ease-out),
                transform var(--dur-short) var(--ease-out);
}

.social-link:hover {
    background: #1877f2;
    transform: translateY(-2px);
}

.social-link:active {
    transform: translateY(0) scale(0.94);
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    transition: background var(--dur-short) var(--ease-out),
                color var(--dur-short) var(--ease-out);
}

.lang-link:hover,
.lang-link.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.lang-link .flag {
    font-size: 14px;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: var(--bg-white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
    transition: padding var(--dur-short) var(--ease-out),
                box-shadow var(--dur-short) var(--ease-out);
}

.main-header.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 70px;
    height: 56px;
    flex-shrink: 0;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.logo-text .subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.8px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: transform var(--dur-short) var(--ease-out),
                opacity var(--dur-micro) var(--ease-out);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    background: var(--gradient-primary);
    position: sticky;
    top: 72px;
    z-index: 998;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--dur-short) var(--ease-out);
}

.nav-link i:first-child {
    font-size: 14px;
    opacity: 0.8;
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform var(--dur-short) var(--ease-out);
}

.nav-item:hover .nav-link,
.nav-link.active {
    background: rgba(255,255,255,0.15);
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu — scales from its trigger (origin-aware), not from center */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 240px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform-origin: top center;
    transform: translateY(-8px) scale(0.98);
    transition: opacity var(--dur-short) var(--ease-out),
                transform var(--dur-short) var(--ease-out),
                visibility var(--dur-short);
    overflow: hidden;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--text-medium);
    font-size: 14px;
    transition: background var(--dur-micro) var(--ease-out),
                color var(--dur-micro) var(--ease-out),
                padding-left var(--dur-short) var(--ease-out);
    border-bottom: 1px solid var(--bg-gray);
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background: var(--primary-lighter);
    color: var(--primary-dark);
    padding-left: 24px;
}

.dropdown li a i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    /* Fill the viewport below the sticky chrome (top-bar 44 + header 80 + nav 54 = 178px)
       so the hero content sits higher and the scroll cue stays on screen at every width.
       No max-height: capping it (e.g. 760px) left a white gap below the hero on tall
       viewports (>~938px, common at 1440px-wide desktops), so the hero stayed full-height. */
    height: calc(100vh - 178px);
    height: calc(100dvh - 178px);
    min-height: 440px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1s var(--ease-out), transform 7s var(--ease-out);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 24px;
    animation: fadeInDown 0.7s var(--ease-out) 0.2s both;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge i {
    color: #7dd88a;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 0.7s var(--ease-out) 0.35s both;
    overflow-wrap: anywhere;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: 4px;
    animation: fadeInUp 0.7s var(--ease-out) 0.5s both;
}

.hero-subtitle .highlight {
    position: relative;
    font-weight: 500;
}

.hero-subtitle .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-light);
}

.hero-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.8;
    animation: fadeInUp 0.7s var(--ease-out) 0.65s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s var(--ease-out) 0.8s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    transition: transform var(--dur-micro) var(--ease-out),
                box-shadow var(--dur-short) var(--ease-out),
                background var(--dur-short) var(--ease-out),
                border-color var(--dur-short) var(--ease-out);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(61,139,79,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61,139,79,0.5);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Press feedback — the interface confirms it heard the tap */
.btn:active {
    transform: translateY(0) scale(0.97);
}

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0;
    transition: background var(--dur-short) var(--ease-out),
                transform var(--dur-short) var(--ease-out),
                border-color var(--dur-short) var(--ease-out);
}

.dot.active {
    background: #fff;
    border-color: var(--accent);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255,255,255,0.7);
}

.dot:active {
    transform: scale(0.9);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    gap: 8px;
    animation: scrollFadeIn 0.7s var(--ease-out) 1.1s both;
}

@keyframes scrollFadeIn {
    from { opacity: 0; transform: translate(-50%, 16px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s var(--ease-in-out) infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translate(-50%, 0); }
    50% { opacity: 0.3; transform: translate(-50%, 10px); }
}

/* ============================================
   STATS SECTION - Timeline/Ruler Style
   ============================================ */
.stats-section {
    background: var(--bg-white);
    padding: 80px 0 60px;
    position: relative;
    z-index: 2;
    margin-top: -30px;
}

.stats-ruler {
    position: relative;
    padding: 20px 0;
}

.ruler-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-lighter), var(--primary), var(--accent), var(--primary), var(--primary-lighter));
    border-radius: 2px;
    opacity: 0.4;
}

.stats-items {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    position: relative;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 20px;
}

.stat-dot {
    width: 16px;
    height: 16px;
    background: var(--bg-white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
    transition: background var(--dur-short) var(--ease-out),
                transform var(--dur-short) var(--ease-out),
                box-shadow var(--dur-short) var(--ease-out);
}

.stat-item:hover .stat-dot {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(61,139,79,0.15);
}

.stat-year {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.stat-body {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    border: 1px solid var(--border-light);
    transition: background var(--dur-short) var(--ease-out),
                box-shadow var(--dur-short) var(--ease-out),
                transform var(--dur-short) var(--ease-out),
                border-color var(--dur-short) var(--ease-out);
    width: 100%;
}

.stat-item:hover .stat-body {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.stat-body .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 18px;
    color: #fff;
}

.stat-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.stat-text span {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    display: block;
}

/* Responsive stats */
@media (max-width: 768px) {
    .ruler-track { display: none; }
    .stats-items {
        flex-direction: column;
        gap: 12px;
    }
    .stat-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding-top: 0;
        gap: 12px;
    }
    .stat-dot {
        margin-top: 6px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .stat-year {
        font-size: 14px;
        margin-bottom: 4px;
    }
    .stat-body {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }
    .stat-body .stat-icon {
        margin: 0;
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* ============================================
   SECTION HEADER (Reusable)
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-lighter);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT / VISION SECTION
   ============================================ */
.about-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
    z-index: 2;
}

.vision-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Primary vision - large card with SVG map */
.vision-primary {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--dur-short) var(--ease-out),
                border-color var(--dur-short) var(--ease-out);
}

.vision-primary:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(61,139,79,0.2);
}

.vision-visual {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 50%, #e0f2f1 100%);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.vision-svg {
    width: 100%;
    max-width: 360px;
    height: auto;
}

.vision-primary-text {
    padding: 32px;
}

.vision-primary-text h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 12px;
}

.vision-primary-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.vision-primary-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.vision-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.v-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    transition: background var(--dur-short) var(--ease-out),
                color var(--dur-short) var(--ease-out);
}

.v-pill-green {
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

.v-pill-green:hover {
    background: var(--primary);
    color: #fff;
}

.v-pill-gold {
    background: #fff8e1;
    color: #8a6d0b;
}

.v-pill-gold:hover {
    background: #d4a017;
    color: #fff;
}

.v-pill-blue {
    background: #e3f2fd;
    color: #1565c0;
}

.v-pill-blue:hover {
    background: #1976d2;
    color: #fff;
}

/* Secondary vision - stacked items */
.vision-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vision-s-item {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--dur-short) var(--ease-out),
                transform var(--dur-short) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.vision-s-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--dur-short) var(--ease-out);
}

.vision-s-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.vision-s-item:hover::before {
    opacity: 1;
}

.vs-num {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.25;
    line-height: 1;
    flex-shrink: 0;
    min-width: 50px;
    transition: opacity var(--dur-short) var(--ease-out);
}

.vision-s-item:hover .vs-num {
    opacity: 0.6;
}

.vs-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vs-body h4 i {
    color: var(--primary);
    font-size: 14px;
}

.vs-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Responsive vision */
@media (max-width: 768px) {
    .vision-layout {
        grid-template-columns: 1fr;
    }
    .vision-visual {
        padding: 20px;
        min-height: 180px;
    }
    .vision-primary-text {
        padding: 24px;
    }
}

/* ============================================
   FOCUS CENTERS SECTION
   ============================================ */
.centers-section {
    padding: 80px 0;
    background: var(--bg-white);
    position: relative;
    z-index: 2;
}

.centers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.center-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform var(--dur-short) var(--ease-out),
                box-shadow var(--dur-short) var(--ease-out);
}

.center-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.center-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.center-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-long) var(--ease-out);
}

.center-card:hover .center-image img {
    transform: scale(1.08);
}

.center-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--dur-short) var(--ease-out);
}

.center-overlay i {
    font-size: 28px;
    color: #fff;
    transform: translateX(-16px);
    transition: transform var(--dur-short) var(--ease-out);
}

.center-card:hover .center-overlay {
    opacity: 1;
}

.center-card:hover .center-overlay i {
    transform: translateX(0);
}

.center-content {
    padding: 24px;
    position: relative;
}

.center-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-top: -48px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(61,139,79,0.3);
    position: relative;
    z-index: 2;
}

.center-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.center-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.center-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--dur-short) var(--ease-out),
                gap var(--dur-short) var(--ease-out);
}

.center-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

.center-link i {
    font-size: 12px;
}

/* ============================================
   KNOWLEDGE SECTION
   ============================================ */
.knowledge-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
    z-index: 2;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.knowledge-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 320px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-md);
    transition: transform var(--dur-short) var(--ease-out),
                box-shadow var(--dur-short) var(--ease-out);
}

.knowledge-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.knowledge-card:active {
    transform: translateY(-2px) scale(0.995);
}

.knowledge-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--dur-long) var(--ease-out);
}

.knowledge-card:hover .knowledge-bg {
    transform: scale(1.08);
}

.knowledge-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.knowledge-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    color: #fff;
    width: 100%;
}

.knowledge-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.knowledge-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.knowledge-content p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.knowledge-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background var(--dur-short) var(--ease-out),
                border-color var(--dur-short) var(--ease-out);
}

.knowledge-card:hover .knowledge-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
    padding: 80px 0;
    background: var(--bg-white);
    position: relative;
    z-index: 2;
}

.news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 28px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform var(--dur-short) var(--ease-out),
                box-shadow var(--dur-short) var(--ease-out);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-card.featured {
    grid-row: span 2;
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-card.featured .news-image {
    height: 280px;
}

.news-card:not(.featured) .news-image {
    height: 180px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-long) var(--ease-out);
}

.news-card:hover .news-image img {
    transform: scale(1.06);
}

.news-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.news-content {
    padding: 24px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.5;
    transition: color var(--dur-short) var(--ease-out);
}

.news-card:hover .news-content h3 {
    color: var(--primary);
}

.news-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--dur-short) var(--ease-out),
                gap var(--dur-short) var(--ease-out);
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* ============================================
   MEDIA / VIDEO SECTION
   ============================================ */
.media-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
    z-index: 2;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.video-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform var(--dur-short) var(--ease-out),
                box-shadow var(--dur-short) var(--ease-out);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    background: var(--text-dark);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card h4 {
    padding: 16px 20px 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.video-card p {
    padding: 0 20px 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   PARTNERS MARQUEE SECTION
   ============================================ */
.partners-section {
    padding: 60px 0;
    background: var(--bg-white);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.partners-marquee {
    overflow: hidden;
    position: relative;
}

.partners-marquee::before,
.partners-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white), transparent);
}

.partners-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white), transparent);
}

.partners-track {
    display: flex;
    gap: 0;
    animation: marqueeScroll 34s linear infinite;
    width: max-content;
}

/* Pause the marquee on hover so a reader can settle on a name */
.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

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

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 40px;
    min-width: 160px;
    gap: 8px;
}

.partner-item i {
    font-size: 32px;
    color: var(--primary);
}

.partner-item span {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    position: relative;
    z-index: 2;
}

.footer-top {
    background: linear-gradient(135deg, #2d4a3e 0%, #1e3a2f 50%, #2d4a3e 100%);
    padding: 60px 0 40px;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-svg {
    width: 60px;
    height: 48px;
    flex-shrink: 0;
}

.footer-logo h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.footer-logo span {
    font-size: 11px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background var(--dur-short) var(--ease-out),
                transform var(--dur-short) var(--ease-out);
}

.footer-social a:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.footer-social a:active {
    transform: translateY(0) scale(0.94);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4 i {
    color: var(--primary-light);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity var(--dur-short) var(--ease-out),
                color var(--dur-short) var(--ease-out),
                padding-left var(--dur-short) var(--ease-out);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-col ul li a i {
    width: 16px;
    text-align: center;
    color: var(--primary-light);
    opacity: 0.7;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 14px !important;
}

.contact-list li i {
    margin-top: 3px;
    color: var(--primary-light);
}

.footer-bottom {
    background: #1a2e25;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.footer-bottom .copyright-sub {
    font-size: 12px;
    margin-top: 4px;
}

/* Footer bottom — Terms / Privacy legal links (STD-004) */
.footer-legal {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--dur-micro) var(--ease-out);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: #fff;
}

.footer-legal .sep {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}

/* ============================================
   LEGAL / INFO PAGES (Terms, Privacy)
   ============================================ */
.legal-page {
    padding: 64px 0 88px;
    background: var(--bg-light);
    min-height: 60vh;
}

.legal-page .container {
    /* STD-001: match the site header/.container width (1280px) so Terms & Privacy
       align edge-to-edge with the navbar like every other page. Was 900px. */
    max-width: 1280px;
}

.legal-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.legal-breadcrumb a {
    color: var(--primary-dark);
    text-decoration: none;
}

.legal-breadcrumb a:hover {
    text-decoration: underline;
}

.legal-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 44px 48px;
}

.legal-page h1 {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.legal-page h2 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin: 34px 0 12px;
}

.legal-page p,
.legal-page li {
    color: var(--text-medium);
    line-height: 1.9;
    font-size: 1rem;
}

.legal-page ul {
    padding-left: 1.4em;
    margin: 10px 0 4px;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-page a {
    color: var(--primary);
    word-break: break-word;
}

.legal-lead {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 40px 0 60px;
    }
    .legal-card {
        padding: 28px 22px;
    }
    .legal-page h1 {
        font-size: 1.7rem;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--dur-short) var(--ease-out),
                visibility var(--dur-short),
                transform var(--dur-short) var(--ease-out),
                box-shadow var(--dur-short) var(--ease-out);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(61,139,79,0.5);
}

.back-to-top:active {
    transform: translateY(0) scale(0.94);
}

/* ============================================
   PAGE-LOAD / SCROLL REVEAL
   Short travel (12px), strong ease-out. Stagger
   comes from data-aos-delay in markup.
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AOS-like scroll animations */
[data-aos] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--dur-long) var(--ease-out),
                transform var(--dur-long) var(--ease-out);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-16px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(16px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .centers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    /* Keep the top chrome (logo, language links, close X) above the
       full-width menu so the close button stays visible and tappable. */
    .top-bar,
    .main-header {
        z-index: 1002;
    }

    /* While the menu is open, pin the top chrome to the viewport so the close
       (X) button is reachable even if the page was scrolled when the menu was
       opened — the body scroll-lock disables the header's position: sticky.
       Heights: top-bar 44px, header below it (matches the .nav-menu offset). */
    body.menu-open .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    body.menu-open .main-header {
        position: fixed;
        top: 44px;
        left: 0;
        right: 0;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: var(--bg-white);
        z-index: 1001;
        transition: left var(--dur-long) var(--ease-in-out);
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
    }

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

    .nav-menu {
        flex-direction: column;
        padding: 124px 20px 32px;
        align-items: stretch;
    }

    .nav-link {
        color: var(--text-dark);
        padding: 14px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-item:hover .nav-link,
    .nav-link.active {
        background: transparent;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        min-width: auto;
    }

    .nav-item.active .dropdown {
        display: block;
    }

    .centers-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .knowledge-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-card.featured {
        grid-row: auto;
    }

    .media-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .hero {
        /* Mobile chrome = top-bar 44 + header 80 (nav is off-canvas) = 124px */
        height: calc(100vh - 124px);
        height: calc(100dvh - 124px);
        min-height: 480px;
        max-height: none;
        padding: 40px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }

    .container {
        padding: 0 16px;
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-short) var(--ease-out),
                visibility var(--dur-short);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection color */
::selection {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   REDUCED MOTION — collapse spatial motion to a
   short opacity crossfade; keep the UI legible.
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-slide {
        transform: none !important;
        transition: opacity 150ms linear !important;
    }

    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-desc,
    .hero-buttons,
    .scroll-indicator {
        animation: none !important;
        opacity: 1 !important;
    }

    .wheel {
        animation: none !important;
    }

    .partners-track {
        animation: none !important;
    }
}
