/* ═══════════════════════════════════════
   YAYASAN HASANAH — Design System
   ═══════════════════════════════════════ */

:root {
    /* ── Brand Palette ── */
    --green-50:  #f0faf4;
    --green-100: #dcf5e4;
    --green-200: #bbe9cb;
    --green-300: #89d6a6;
    --green-400: #50bb7a;
    --green-500: #2e9d5c;
    --green-600: #1f7f48;
    --green-700: #1a6b3b;
    --green-800: #175530;
    --green-900: #144628;
    --green-950: #0a2717;

    --gold-50:  #fef9ec;
    --gold-100: #fcf0c9;
    --gold-200: #f9e08e;
    --gold-300: #f5ca53;
    --gold-400: #f2b72b;
    --gold-500: #d4a843;
    --gold-600: #b8860b;

    --gray-50:  #fafaf8;
    --gray-100: #f5f5f0;
    --gray-200: #e8e8e0;
    --gray-300: #d4d4c8;
    --gray-400: #a8a89c;
    --gray-500: #737368;
    --gray-600: #5c5c52;
    --gray-700: #434340;
    --gray-800: #2c2c2a;
    --gray-900: #1a1a18;

    /* ── Semantic Tokens ── */
    --color-primary:       var(--green-700);
    --color-primary-light: var(--green-500);
    --color-primary-pale:  var(--green-50);
    --color-accent:        var(--gold-500);
    --color-accent-dark:   var(--gold-600);
    --color-bg:            #ffffff;
    --color-bg-warm:       var(--gray-50);
    --color-bg-dark:       var(--gray-900);
    --color-text:          var(--gray-900);
    --color-text-muted:    var(--gray-500);
    --color-text-light:    #ffffff;

    /* ── Typography ── */
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs:   0.75rem;
    --font-size-sm:   0.875rem;
    --font-size-base: 1rem;
    --font-size-lg:   1.125rem;
    --font-size-xl:   1.25rem;
    --font-size-2xl:  1.5rem;
    --font-size-3xl:  2rem;
    --font-size-4xl:  2.5rem;
    --font-size-5xl:  3.5rem;
    --font-size-6xl:  4.5rem;

    /* ── Spacing ── */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* ── Layout ── */
    --container-max:  1280px;
    --container-pad:  1.5rem;
    --nav-height:     72px;
    --border-radius:  12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;

    /* ── Transitions ── */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.4s;
    --duration-slow: 0.8s;
}


/* ═══════════  RESET & BASE  ═══════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

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


/* ═══════════  SCROLL PROGRESS  ═══════════ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--green-500), var(--gold-400));
    z-index: 10000;
    transition: none;
}


/* ═══════════  TYPOGRAPHY  ═══════════ */

.section-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: var(--space-md);
}
.section-label--light { color: var(--gold-300); }

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}
.section-title--light { color: var(--color-text-light); }

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    max-width: 640px;
}


/* ═══════════  BUTTONS  ═══════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: 100px;
    transition: all var(--duration) var(--ease-out);
}
.btn svg { transition: transform var(--duration) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
    background: var(--color-primary);
    color: var(--color-text-light);
}
.btn--primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,107,59,0.3); }

.btn--outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }

.btn--light {
    background: #fff;
    color: var(--color-primary);
}
.btn--light:hover { background: var(--green-100); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }


/* ═══════════  NAVIGATION  ═══════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(0px);
    transition: all var(--duration) var(--ease-out);
}
.nav--scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 16px rgba(0,0,0,0.06);
}
.nav--scrolled .nav__link,
.nav--scrolled .nav__social a { color: var(--gray-800); }
.nav--scrolled .nav__logo-img--white { opacity: 0; }
.nav--scrolled .nav__logo-img--color { opacity: 1; }

.nav__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    height: var(--nav-height);
    gap: var(--space-xl);
}

.nav__logo { position: relative; flex-shrink: 0; display: flex; align-items: center; }
.nav__logo-img { height: 40px; width: auto; transition: opacity var(--duration) var(--ease-out); }
.nav__logo-img--color { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }

.nav__menu { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--space-xl); }
.nav__link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    transition: color var(--duration) var(--ease-out);
    padding: 0.25rem 0;
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-light);
    transition: width var(--duration) var(--ease-out);
}
.nav__link:hover::after,
.nav__link:focus::after { width: 100%; }

.nav__link--cta {
    background: var(--color-primary);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--green-800); }

.nav__chevron {
    font-size: 0.65em;
    margin-left: 0.15em;
    transition: transform var(--duration) var(--ease-out);
    display: inline-block;
}

/* Dropdown */
.nav__item--dropdown { position: relative; }
.nav__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    opacity: 0;
    pointer-events: none;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    padding: 0.75rem 0;
    min-width: 220px;
    transition: all var(--duration) var(--ease-out);
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav__item--dropdown:hover .nav__chevron { transform: rotate(180deg); }
.nav__dropdown li a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    transition: all 0.2s;
}
.nav__dropdown li a:hover {
    background: var(--green-50);
    color: var(--color-primary);
    padding-left: 1.5rem;
}

.nav__social {
    display: flex;
    gap: var(--space-sm);
    margin-left: var(--space-md);
}
.nav__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}
.nav__social a:hover { color: #fff; background: rgba(255,255,255,0.15); }
.nav--scrolled .nav__social a:hover { color: var(--color-primary); background: var(--green-50); }

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.nav__toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}
.nav--scrolled .nav__toggle span { background: var(--gray-800); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ═══════════  HERO  ═══════════ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, var(--green-950) 0%, var(--green-800) 40%, var(--green-700) 100%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-farmer.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,39,23,0.3) 0%, rgba(10,39,23,0.6) 100%);
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: var(--gold-400);
}
.hero__shape--1 { width: 500px; height: 500px; top: -200px; right: -100px; animation: floatSlow 20s ease-in-out infinite; }
.hero__shape--2 { width: 300px; height: 300px; bottom: 10%; left: -80px; animation: floatSlow 16s ease-in-out infinite reverse; }
.hero__shape--3 { width: 200px; height: 200px; top: 40%; right: 10%; animation: floatSlow 14s ease-in-out infinite 4s; }

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-4xl) var(--container-pad);
}

.hero__title {
    font-size: clamp(var(--font-size-4xl), 8vw, var(--font-size-6xl));
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    margin-bottom: var(--space-lg);
}
.hero__title-line { display: block; }
.hero__title-line--accent {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(var(--font-size-lg), 2.5vw, var(--font-size-xl));
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin: 0 auto var(--space-2xl);
    font-weight: 400;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: var(--font-size-base);
    border-radius: 100px;
    transition: all var(--duration) var(--ease-out);
}
.hero__cta svg { transition: transform var(--duration) var(--ease-out); }
.hero__cta:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.hero__cta:hover svg { transform: translateX(4px); }

/* Hero Wave */
.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}
.hero__wave svg { width: 100%; height: 80px; }
.wave-path--1 { fill: rgba(255,255,255,0.4); animation: waveShift1 10s ease-in-out infinite; }
.wave-path--2 { fill: #fff; animation: waveShift2 8s ease-in-out infinite; }


/* ═══════════  ABOUT  ═══════════ */

.about {
    padding: var(--space-5xl) 0;
    background: var(--color-bg);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about__text { max-width: 520px; }

.about__description {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.about__tagline {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}
.tagline-word {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
}

.about__visual { position: relative; }
.about__image-frame {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--green-100), var(--green-200));
}
.about__image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about__image-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-100) 0%, var(--green-200) 50%, var(--gold-100) 100%);
    z-index: -1;
}

.about__sdg-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(26,107,59,0.25);
    text-align: center;
}
.sdg-number {
    display: block;
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1;
}
.sdg-label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}


/* ═══════════  IMPACT STATS  ═══════════ */

.impact {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-warm);
}

.impact__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    text-align: center;
}

.impact__stat {
    padding: var(--space-2xl) var(--space-lg);
}

.impact__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-lg);
    color: var(--color-primary);
}
.impact__icon svg { width: 100%; height: 100%; }

.impact__number {
    display: block;
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.impact__label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-weight: 500;
}


/* ═══════════  SECTION WAVE DIVIDERS  ═══════════ */

.section-wave {
    line-height: 0;
    overflow: hidden;
}
.section-wave svg { width: 100%; height: 60px; display: block; }
.section-wave--green svg path { fill: var(--green-50); }
.section-wave--white svg path { fill: #fff; }


/* ═══════════  FOCUS AREAS  ═══════════ */

.focus {
    padding: var(--space-5xl) 0;
    background: var(--green-50);
}

.focus__header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}
.focus__header .section-subtitle { margin: 0 auto; }

.focus__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
}

.focus__card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: var(--space-2xl);
    transition: all var(--duration) var(--ease-out);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.focus__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration) var(--ease-out);
}
.focus__card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(26,107,59,0.1); border-color: var(--green-200); }
.focus__card:hover::before { transform: scaleX(1); }

.focus__card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
    transition: color var(--duration);
}
.focus__card:hover .focus__card-icon { color: var(--green-500); }
.focus__card-icon svg { width: 100%; height: 100%; }

.icon-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s var(--ease-out);
}
.focus__card.revealed .icon-path,
.focus__card:hover .icon-path {
    stroke-dashoffset: 0;
}

.focus__card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}

.focus__card-desc {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.focus__card-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    transition: color 0.2s;
}
.focus__card-link:hover { color: var(--green-800); }


/* ═══════════  STORIES  ═══════════ */

.stories {
    padding: var(--space-5xl) 0 var(--space-3xl);
    background: var(--color-bg);
}

.stories__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.stories__carousel {
    position: relative;
    overflow: hidden;
    padding: 0 var(--container-pad);
}

.stories__track {
    display: flex;
    gap: var(--space-xl);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: var(--space-lg);
}
.stories__track::-webkit-scrollbar { display: none; }

.stories__card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: all var(--duration) var(--ease-out);
    border: 1px solid var(--gray-200);
}
.stories__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }

.stories__card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}
/* Placeholder gradient backgrounds for each story */
.stories__card-image--1 { background: linear-gradient(135deg, var(--green-600), var(--green-400)); }
.stories__card-image--2 { background: linear-gradient(135deg, #4a7c9f, #7ab8d4); }
.stories__card-image--3 { background: linear-gradient(135deg, var(--gold-500), #e8c16f); }
.stories__card-image--4 { background: linear-gradient(135deg, var(--green-700), var(--green-500)); }
.stories__card-image--5 { background: linear-gradient(135deg, #2d6a4f, #52b788); }
.stories__card-image--6 { background: linear-gradient(135deg, var(--green-800), var(--gold-400)); }

.stories__card-tag {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-primary);
}

.stories__card-body { padding: var(--space-lg); }

.stories__card-date {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.stories__card-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stories__card-excerpt {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stories__card-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
}

/* Carousel navigation */
.stories__nav {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}
.stories__nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    transition: all 0.2s;
}
.stories__nav-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--green-50); }
.stories__nav-btn svg { width: 20px; height: 20px; }


/* ═══════════  KNOWLEDGE HUB  ═══════════ */

.knowledge-hub {
    position: relative;
    padding: var(--space-5xl) 0;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.knowledge-hub__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--green-950) 0%, var(--green-800) 60%, var(--green-700) 100%);
    z-index: 0;
}
.knowledge-hub__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212,168,67,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.knowledge-hub .container { position: relative; z-index: 1; }

.knowledge-hub__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-4xl);
}

.knowledge-hub__content {
    max-width: 560px;
}

.knowledge-hub__cover {
    flex-shrink: 0;
}

.knowledge-hub__cover img {
    display: block;
    width: 260px;
    height: auto;
    border-radius: 4px 10px 10px 4px;
    box-shadow:
        -4px 0 8px rgba(0,0,0,0.3),
        0 20px 60px rgba(0,0,0,0.5),
        0 8px 24px rgba(0,0,0,0.4);
    transform: perspective(800px) rotateY(-6deg);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.knowledge-hub__cover img:hover {
    transform: perspective(800px) rotateY(-2deg) translateY(-4px);
    box-shadow:
        -4px 0 8px rgba(0,0,0,0.3),
        0 32px 80px rgba(0,0,0,0.6),
        0 12px 32px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .knowledge-hub__grid {
        grid-template-columns: 1fr;
    }
    .knowledge-hub__cover {
        display: flex;
        justify-content: center;
    }
    .knowledge-hub__cover img {
        width: 200px;
        transform: none;
    }
    .knowledge-hub__cover img:hover {
        transform: translateY(-4px);
    }
}

.knowledge-hub__tagline {
    font-size: var(--font-size-2xl);
    font-style: italic;
    color: var(--gold-300);
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.knowledge-hub__desc {
    font-size: var(--font-size-base);
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}


/* ═══════════  PARTNERSHIP  ═══════════ */

.partnership {
    padding: var(--space-5xl) 0;
    background: var(--color-bg);
}

.partnership__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    align-items: center;
}

.partnership__desc {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.partnership__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}
.partnership__list li {
    background: var(--green-50);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--green-200);
}

/* Map SVG */
.partnership__map {
    display: flex;
    justify-content: center;
}
.map-svg { width: 100%; max-width: 700px; }

.map-path {
    fill: var(--green-100);
    stroke: var(--green-300);
    stroke-width: 1;
    transition: fill 0.4s;
}
.map-path--brunei {
    fill: var(--gray-100);
    stroke: var(--gray-300);
    stroke-width: 1;
    transition: fill 0.4s;
}
.map-svg:hover .map-path { fill: var(--green-200); }
.map-svg:hover .map-path--brunei { fill: var(--gray-200); }

.map-dot {
    fill: var(--color-primary);
    transition: r 0.3s;
}
.map-dot--pulse { animation: mapPulse 2.5s ease-in-out infinite; }

.map-dot-ring {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1;
    opacity: 0;
    animation: mapRing 2.5s ease-out infinite;
}

.map-labels text { pointer-events: none; }


/* ═══════════  SCROLL-DRIVEN VIDEO  ═══════════ */

.video-scroll {
    position: relative;
    height: 400vh; /* scrollable height — controls scrub speed */
}

.video-scroll__sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-scroll__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-scroll__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-scroll__loading {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.7);
    font-size: var(--font-size-sm);
    letter-spacing: 0.05em;
    pointer-events: none;
}

.video-scroll__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 39, 23, 0.15) 0%,
        rgba(10, 39, 23, 0.4) 50%,
        rgba(10, 39, 23, 0.7) 100%
    );
    pointer-events: none;
}

/* Scroll-driven text slides */
.video-scroll__slide {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 0 var(--space-lg);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.video-scroll__slide[data-active="entering"] {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.video-scroll__slide[data-active="visible"] {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.video-scroll__slide[data-active="exiting"] {
    opacity: 0;
    transform: translate(-50%, -60%);
}

.video-scroll__slide:not([data-active]) {
    opacity: 0;
    transform: translate(-50%, -40%);
}

.video-scroll__title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.video-scroll__desc {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.video-scroll__stat {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 800;
    color: var(--gold-300);
    line-height: 1;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.video-scroll__quote {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: #fff;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.video-scroll__attr {
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.video-scroll__progress {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    z-index: 3;
}

.video-scroll__progress-fill {
    width: 100%;
    height: 0%;
    background: var(--gold-400);
    border-radius: 3px;
    transition: height 0.1s linear;
}

@media (max-width: 768px) {
    .video-scroll { height: 320vh; }
    .video-scroll__title { font-size: var(--font-size-4xl); }
    .video-scroll__desc { font-size: var(--font-size-lg); }
    .video-scroll__progress { right: var(--space-md); height: 80px; }
    .video-scroll__quote { font-size: var(--font-size-xl); }
}


/* ═══════════  CTA SECTION  ═══════════ */

.cta {
    padding: var(--space-5xl) 0;
    background: linear-gradient(160deg, var(--green-800), var(--green-950));
    text-align: center;
}

.cta__content { max-width: 720px; margin: 0 auto; }

.cta__title {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: var(--space-xl);
}

.cta__word {
    display: inline-block;
    margin-right: 0.3em;
}

.cta__desc {
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}


/* ═══════════  FOOTER  ═══════════ */

.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.7);
    padding-top: 0;
}

.footer__wave {
    line-height: 0;
}
.footer__wave svg {
    width: 100%;
    height: 40px;
    display: block;
}
.footer__wave svg path { fill: var(--gray-900); }

.footer .container { padding-top: var(--space-4xl); }

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
    width: 130px;
    height: auto;
    margin-bottom: var(--space-lg);
}

.footer__tagline {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 280px;
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}
.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
}
.footer__social a:hover { background: var(--color-primary); color: #fff; }
.footer__social a svg { width: 16px; height: 16px; }

.footer__heading {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer__links ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__links a {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.footer__links a:hover { color: #fff; }

.footer__bottom {
    padding: var(--space-xl) 0;
    text-align: center;
}
.footer__bottom p {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
}


/* ═══════════  ANIMATIONS  ═══════════ */

/* Reveal on scroll */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}
.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Wave animation keyframes */
@keyframes waveShift1 {
    0%, 100% { d: path('M0,60 C180,100 360,20 540,60 C720,100 900,20 1080,60 C1260,100 1380,40 1440,60 L1440,120 L0,120 Z'); }
    50%      { d: path('M0,80 C180,30 360,90 540,40 C720,90 900,30 1080,80 C1260,30 1380,70 1440,40 L1440,120 L0,120 Z'); }
}
@keyframes waveShift2 {
    0%, 100% { d: path('M0,80 C180,40 360,100 540,50 C720,10 900,90 1080,50 C1260,20 1380,80 1440,50 L1440,120 L0,120 Z'); }
    50%      { d: path('M0,50 C180,90 360,20 540,70 C720,100 900,40 1080,70 C1260,90 1380,30 1440,70 L1440,120 L0,120 Z'); }
}

/* Floating shapes */
@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(20px, -30px); }
    66%      { transform: translate(-15px, 15px); }
}

/* Map pulses */
@keyframes mapPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
@keyframes mapRing {
    0%   { r: inherit; opacity: 0.6; stroke-width: 2; }
    100% { r: 16; opacity: 0; stroke-width: 0.5; }
}

/* Counter flash */
@keyframes counterGlow {
    0%, 100% { text-shadow: none; }
    50%      { text-shadow: 0 0 20px rgba(46,157,92,0.3); }
}


/* ═══════════  RESPONSIVE  ═══════════ */

@media (max-width: 1024px) {
    .about__grid { grid-template-columns: 1fr; gap: var(--space-3xl); }
    .about__visual { max-width: 500px; }
    .impact__grid { grid-template-columns: repeat(2, 1fr); }
    .partnership__grid { grid-template-columns: 1fr; }
    .partnership__map { order: -1; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
        --font-size-3xl: 1.75rem;
        --font-size-4xl: 2rem;
        --font-size-5xl: 2.5rem;
        --space-4xl: 4rem;
        --space-5xl: 5rem;
    }

    .nav__menu,
    .nav__social { display: none; }
    .nav__toggle { display: flex; }

    /* Center logo, pin toggle to right */
    .nav__container {
        justify-content: center;
        position: relative;
    }
    .nav__toggle {
        position: absolute;
        right: var(--container-pad);
        top: 50%;
        transform: translateY(-50%);
    }

    /* Mobile menu */
    .nav__menu.active {
        display: block;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        padding: var(--space-lg);
    }
    .nav__menu.active .nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
    .nav__menu.active .nav__link--cta {
        background: none;
        color: var(--gray-800) !important;
        padding: var(--space-md) 0;
        border-radius: 0;
        font-weight: 600;
    }
    .nav__menu.active .nav__link {
        display: block;
        width: 100%;
        padding: var(--space-md) 0;
        color: var(--gray-800);
        font-size: var(--font-size-base);
        text-align: left;
    }
    .nav__menu.active .nav__dropdown {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        padding-left: var(--space-lg);
    }

    .hero__wave svg { height: 50px; }

    .about__tagline { flex-direction: column; gap: var(--space-sm); }

    .impact__grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
    .impact__number { font-size: var(--font-size-3xl); }

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

    .stories__card { flex: 0 0 290px; }

    .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}

@media (max-width: 480px) {
    .impact__grid { grid-template-columns: 1fr; }
    .stories__card { flex: 0 0 260px; }
    .about__sdg-badge { position: static; margin-top: var(--space-lg); display: inline-block; }
}


/* ═══════════  REDUCED MOTION  ═══════════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal-up { opacity: 1; transform: none; }
    .icon-path { stroke-dashoffset: 0; }
}
