/* ============================================================
   SHREEJAN LEARNING HUB FOUNDATION
   Complete CSS — v4.0
   ------------------------------------------------------------
   ✔ 100% Mobile responsive (320px → 1080px)
   ✔ 100% Desktop responsive (1081px → 4K)
   ✔ Hero slider tuned for 3-second auto slide
   ✔ Fast image loading (placeholders, no layout shift,
     light GPU usage, heavy background animations off on mobile)
   ✔ Safe-area support for notch phones
   ------------------------------------------------------------
   TABLE OF CONTENTS
   01. Variables & Reset
   02. Base Typography & Layout
   03. Buttons
   04. Section Base
   05. Background Animations (lightweight)
   06. Top Bar
   07. Header & Navigation
   08. Hero Slider (3s)
   09. Programs Section
   10. Program Gallery (fast image loading)
   11. Impact Section
   12. Events & Achievements
   13. Sponsors
   14. News
   15. Contact & Form
   16. Donate Banner
   17. Footer
   18. Floating Buttons
   19. Scroll Reveal
   20. Toast
   21. Lightbox
   22. Image Loading Optimisation
   23. Responsive — Large Desktop / 4K
   24. Responsive — Laptop
   25. Responsive — Tablet Landscape (<=1080)
   26. Responsive — Tablet Portrait (<=900)
   27. Responsive — Mobile Large (<=768)
   28. Responsive — Mobile (<=600)
   29. Responsive — Small Mobile (<=480)
   30. Responsive — Extra Small (<=380 / <=340)
   31. Landscape Phones
   32. Touch Devices
   33. Reduced Motion
   34. Print
   35. Accessibility
   36. Utilities
   ============================================================ */


/* ============================================================
   01. VARIABLES & RESET
   ============================================================ */
:root {
    /* Brand colours */
    --primary: #0a3cff;
    --primary-dark: #062ec4;
    --primary-light: #4d74ff;
    --primary-soft: #e8eeff;
    --primary-softer: #f4f7ff;
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-blue: #eef4ff;
    --light-blue-2: #dde9ff;
    --sky: #2fa4ff;
    --teal: #12c2a9;
    --teal-dark: #0d8f7d;
    --gold: #ffb830;
    --gold-dark: #e6a020;
    --orange: #ff8a1f;
    --pink: #ff3d8b;
    --pink-dark: #d92e6f;
    --purple: #6a3df0;
    --purple-dark: #4a1fb8;
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
    --instagram: #e4405f;

    /* Text colours */
    --ink: #0d1b3e;
    --ink-2: #1e2a4a;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --border-blue: #c7d9ff;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 60, 255, 0.06);
    --shadow: 0 8px 30px rgba(10, 60, 255, 0.08);
    --shadow-md: 0 12px 40px rgba(10, 60, 255, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 60, 255, 0.16);
    --shadow-xl: 0 30px 80px rgba(10, 60, 255, 0.2);

    /* Radius */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;

    /* Fonts */
    --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-hindi: 'Noto Sans Devanagari', 'Outfit', 'Mangal', sans-serif;

    /* Motion */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Layout */
    --header-offset: 90px;
    --container-max: 1240px;
    --container-width: 92%;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);

    /* Hero slider timing — keep in sync with DURATION in script.js (3000ms) */
    --slide-fade: 0.8s;
    --slide-zoom: 3.6s;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img,
picture,
video,
svg {
    max-width: 100%;
}

img {
    height: auto;
    display: block;
    border: 0;
    font-style: italic;
    vertical-align: middle;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    font-size: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--ink);
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

strong,
b {
    font-weight: 700;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

/* Slim scrollbar (desktop browsers) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-softer);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
    border: 2px solid var(--primary-softer);
}

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


/* ============================================================
   02. BASE LAYOUT
   ============================================================ */
.container {
    width: min(var(--container-max), var(--container-width));
    margin-left: auto;
    margin-right: auto;
}

/* Hindi text rendering */
.program-hindi,
.program-lead,
.program-vision,
.program-benefits li,
.program-highlight-box p,
.journey-step p,
.program-showcase-text > p {
    font-family: var(--font-hindi);
}


/* ============================================================
   03. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    line-height: 1.2;
    min-height: 48px;
    -webkit-user-select: none;
    user-select: none;
}

/* Ripple (sits BEHIND the text so text never gets covered) */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 320px;
    height: 320px;
}

.btn i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

.btn:active {
    transform: scale(0.98);
}

/* ---- Solid buttons ---- */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #2b1a00;
    box-shadow: 0 8px 24px rgba(255, 184, 48, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 184, 48, 0.5);
}

.btn-pink {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(255, 61, 139, 0.35);
}

.btn-pink:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 61, 139, 0.45);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(10, 60, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(10, 60, 255, 0.4);
}

.btn-primary:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.btn-teal {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(18, 194, 169, 0.35);
}

.btn-teal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(18, 194, 169, 0.45);
}

.btn-purple {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(106, 61, 240, 0.35);
}

.btn-purple:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(106, 61, 240, 0.45);
}

/* ---- Outline buttons (on dark backgrounds) ---- */
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ---- Outline buttons (on light backgrounds) ---- */
.btn-outline-pink {
    background: transparent;
    color: var(--pink);
    border-color: var(--pink);
}

.btn-outline-pink:hover {
    background: var(--pink);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline-teal {
    background: transparent;
    color: var(--teal-dark);
    border-color: var(--teal);
}

.btn-outline-teal:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-dark);
    border-color: var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #2b1a00;
    transform: translateY(-3px);
}

.btn-outline-purple {
    background: transparent;
    color: var(--purple);
    border-color: var(--purple);
}

.btn-outline-purple:hover {
    background: var(--purple);
    color: var(--white);
    transform: translateY(-3px);
}

/* ---- Sizes ---- */
.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
    min-height: 40px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
    min-height: 56px;
}

.btn-block {
    width: 100%;
}

/* Allow long Hindi / English labels to wrap on small buttons */
.program-showcase-footer .btn,
.slide-buttons .btn {
    white-space: normal;
}


/* ============================================================
   04. SECTION BASE
   ============================================================ */
.section {
    padding: clamp(60px, 8vw, 110px) 0;
    position: relative;
    overflow: hidden;
}

.section > .container {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 18px;
    border: 1px solid var(--border-blue);
    line-height: 1.3;
}

.section-tag i {
    font-size: 0.9em;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
    padding-bottom: 4px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-title-sm {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 14px;
    color: var(--ink);
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---- Light variant (dark backgrounds) ---- */
.section-header.light .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.section-header.light .section-title {
    background: none;
    -webkit-text-fill-color: var(--white);
    color: var(--white);
}

.section-header.light .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}


/* ============================================================
   05. BACKGROUND ANIMATIONS (lightweight)
   ============================================================ */
.section-bg-anim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    contain: strict;
}

/* ---- Water waves ---- */
.water-flow-bg svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    will-change: transform;
    animation: waterFlow 8s ease-in-out infinite alternate;
}

.water-flow-bg .wave-2 {
    animation-delay: -4s;
    opacity: 0.7;
}

@keyframes waterFlow {
    0% { transform: translate3d(-3%, 0, 0) scaleY(1); }
    100% { transform: translate3d(3%, 0, 0) scaleY(1.15); }
}

/* ---- Impact bubbles ---- */
.impact-bubbles span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
    animation: bubbleFloat 12s ease-in-out infinite;
}

.impact-bubbles span:nth-child(1) { width: 80px; height: 80px; top: 10%; left: 5%; animation-delay: 0s; }
.impact-bubbles span:nth-child(2) { width: 120px; height: 120px; top: 60%; left: 15%; animation-delay: 2s; }
.impact-bubbles span:nth-child(3) { width: 60px; height: 60px; top: 30%; left: 80%; animation-delay: 4s; }
.impact-bubbles span:nth-child(4) { width: 100px; height: 100px; top: 70%; left: 75%; animation-delay: 1s; }
.impact-bubbles span:nth-child(5) { width: 50px; height: 50px; top: 15%; left: 45%; animation-delay: 3s; }
.impact-bubbles span:nth-child(6) { width: 140px; height: 140px; top: 45%; left: 60%; animation-delay: 5s; }
.impact-bubbles span:nth-child(7) { width: 70px; height: 70px; top: 80%; left: 40%; animation-delay: 2.5s; }
.impact-bubbles span:nth-child(8) { width: 90px; height: 90px; top: 5%; left: 70%; animation-delay: 6s; }
.impact-bubbles span:nth-child(9) { width: 55px; height: 55px; top: 55%; left: 3%; animation-delay: 4.5s; }
.impact-bubbles span:nth-child(10) { width: 110px; height: 110px; top: 25%; left: 90%; animation-delay: 1.5s; }

@keyframes bubbleFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate3d(0, -40px, 0) scale(1.15); opacity: 0.8; }
}

/* ---- Chess pieces ---- */
.chess-pieces-bg span,
.floating-pieces span {
    position: absolute;
    font-size: 5rem;
    line-height: 1;
    color: rgba(10, 60, 255, 0.045);
    font-family: var(--font-heading);
    will-change: transform;
    animation: pieceRotate 24s linear infinite;
}

.chess-pieces-bg span:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.chess-pieces-bg span:nth-child(2) { top: 50%; left: 20%; animation-delay: -3s; }
.chess-pieces-bg span:nth-child(3) { top: 20%; right: 15%; animation-delay: -6s; }
.chess-pieces-bg span:nth-child(4) { bottom: 15%; left: 35%; animation-delay: -9s; }
.chess-pieces-bg span:nth-child(5) { bottom: 25%; right: 10%; animation-delay: -12s; }
.chess-pieces-bg span:nth-child(6) { top: 65%; right: 40%; animation-delay: -15s; }
.chess-pieces-bg span:nth-child(7) { top: 40%; left: 55%; animation-delay: -18s; }
.chess-pieces-bg span:nth-child(8) { bottom: 5%; right: 55%; animation-delay: -2s; }

@keyframes pieceRotate {
    0% { transform: rotate(0deg) scale(1); opacity: 0.03; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 0.08; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.03; }
}

/* ---- Pulsing circles ---- */
.pulsing-circles span {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(10, 60, 255, 0.06);
    will-change: transform, opacity;
    animation: circlePulse 6s ease-out infinite;
}

.pulsing-circles span:nth-child(1) { width: 200px; height: 200px; top: 20%; left: 10%; animation-delay: 0s; }
.pulsing-circles span:nth-child(2) { width: 300px; height: 300px; top: 50%; right: 15%; animation-delay: 2s; }
.pulsing-circles span:nth-child(3) { width: 150px; height: 150px; bottom: 20%; left: 45%; animation-delay: 4s; }

@keyframes circlePulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ---- Gradient flow ---- */
.gradient-flow {
    background: linear-gradient(135deg,
        rgba(10, 60, 255, 0.025) 0%,
        rgba(255, 184, 48, 0.025) 25%,
        rgba(255, 61, 139, 0.025) 50%,
        rgba(18, 194, 169, 0.025) 75%,
        rgba(10, 60, 255, 0.025) 100%);
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---- Soft waves ---- */
.soft-waves svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    will-change: transform;
    animation: softWave 10s ease-in-out infinite alternate;
}

@keyframes softWave {
    0% { transform: translate3d(-2%, 0, 0) scaleY(1); }
    100% { transform: translate3d(2%, 0, 0) scaleY(1.1); }
}

/* ---- Donate shapes ---- */
.donate-shapes span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    will-change: transform;
    animation: donateShape 8s ease-in-out infinite;
}

.donate-shapes span:nth-child(1) { width: 100px; height: 100px; top: 10%; left: 10%; animation-delay: 0s; }
.donate-shapes span:nth-child(2) { width: 150px; height: 150px; bottom: 10%; right: 20%; animation-delay: 2s; }
.donate-shapes span:nth-child(3) { width: 80px; height: 80px; top: 50%; right: 10%; animation-delay: 4s; }

@keyframes donateShape {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate3d(0, -30px, 0) scale(1.2); opacity: 0.6; }
}


/* ============================================================
   06. TOP BAR
   ============================================================ */
.top-bar {
    background: linear-gradient(90deg, var(--ink) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 9px 0;
    font-size: 0.82rem;
    position: relative;
    z-index: 1001;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.top-info-items {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    min-width: 0;
}

.top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    min-width: 0;
}

.top-info-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-info-item i {
    color: var(--gold);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.top-info-item:hover {
    color: var(--white);
}

.top-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.78rem;
    transition: var(--transition);
}

.top-social a:hover {
    background: var(--gold);
    color: var(--ink);
    transform: translateY(-2px);
}


/* ============================================================
   07. HEADER & NAVIGATION
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(10, 60, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

/* ---- Logo ---- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: transparent;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    filter: none;
    image-rendering: auto;
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--ink);
    white-space: nowrap;
}

.logo-sub {
    font-size: 0.72rem;
    color: var(--primary);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ---- Desktop nav ---- */
.nav {
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ink-2);
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link i {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

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

.has-dropdown:hover .nav-link i,
.has-dropdown:focus-within .nav-link i {
    transform: rotate(180deg);
}

/* ---- Dropdown ---- */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

/* Invisible bridge so dropdown doesn't close between link and menu */
.dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--ink-2);
    font-weight: 500;
    white-space: nowrap;
}

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

.dropdown a:hover {
    background: linear-gradient(90deg, var(--primary-soft), var(--primary-softer));
    color: var(--primary);
    padding-left: 18px;
}

/* Keep right-most dropdowns inside the screen */
.nav-item:nth-last-child(-n+4) .dropdown {
    left: auto;
    right: 0;
}

/* ---- Donate button in nav ---- */
.nav-link.donate-btn {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #2b1a00;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 50px;
    margin-left: 8px;
    box-shadow: 0 6px 18px rgba(255, 184, 48, 0.35);
}

.nav-link.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 184, 48, 0.45);
    color: #2b1a00;
}

/* ---- Hamburger ---- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 9px;
    border-radius: 10px;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
}

.hamburger:hover {
    background: var(--primary-softer);
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--ink);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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


/* ============================================================
   08. HERO SLIDER — 3 SECOND AUTO SLIDE
   ------------------------------------------------------------
   NOTE: In script.js set  const DURATION = 3000;
   so the JS timer matches the 3s timing used here.
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: clamp(560px, calc(100svh - 110px), 860px);
    min-height: 560px;
    overflow: hidden;
    background: var(--ink);
    isolation: isolate;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
    animation: shapeFloat 12s ease-in-out infinite;
}

.shape-1 { width: 200px; height: 200px; top: 10%; right: 5%; animation-delay: 0s; }
.shape-2 { width: 120px; height: 120px; bottom: 20%; left: 8%; animation-delay: -4s; }
.shape-3 { width: 300px; height: 300px; top: 40%; right: 30%; animation-delay: -8s; }

@keyframes shapeFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate3d(20px, -20px, 0) scale(1.1); opacity: 0.6; }
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ---- Single slide ---- */
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    background: var(--ink);
    /* leaving slide: fade out, then hide */
    transition: opacity var(--slide-fade) ease, visibility 0s linear var(--slide-fade);
    will-change: opacity;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    /* entering slide: show instantly, fade in */
    transition: opacity var(--slide-fade) ease, visibility 0s linear 0s;
}

.slide picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.slide picture img,
.slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
}

/* Gentle zoom — finishes inside the 3s window */
.slide.active picture img,
.slide.active > img {
    animation: kenBurns var(--slide-zoom) ease-out forwards;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.07); }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(13, 27, 62, 0.88) 0%,
        rgba(13, 27, 62, 0.58) 40%,
        rgba(13, 27, 62, 0.25) 70%,
        rgba(13, 27, 62, 0.05) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Content: .slide-content is ALSO a .container, so we keep container width
   and limit the inner elements instead (keeps text left-aligned). */
.slide-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    width: min(var(--container-max), var(--container-width));
    max-width: none;
    padding-top: 40px;
    padding-bottom: 70px;
}

.slide-content > * {
    max-width: 760px;
}

/* Text entrance — replays on every slide change (only active slide) */
.slide-tag,
.slide-title,
.slide-quote,
.slide-buttons {
    opacity: 0;
}

.slide.active .slide-tag,
.slide.active .slide-title,
.slide.active .slide-quote,
.slide.active .slide-buttons {
    opacity: 1;
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 22px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.slide-title {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.08;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.slide-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--gold);
    border-left: 4px solid var(--pink);
    padding-left: 20px;
    margin-bottom: 32px;
    max-width: 620px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.slide-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.slide.active .slide-tag { animation: fadeInUp 0.55s ease 0.10s both; }
.slide.active .slide-title { animation: fadeInUp 0.55s ease 0.20s both; }
.slide.active .slide-quote { animation: fadeInUp 0.55s ease 0.30s both; }
.slide.active .slide-buttons { animation: fadeInUp 0.55s ease 0.40s both; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ---- Dots ---- */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
    padding: 0;
}

/* bigger invisible tap area */
.dot::after {
    content: '';
    position: absolute;
    inset: -12px -5px;
}

.dot.active {
    width: 40px;
    border-radius: 12px;
    background: var(--gold);
}

/* ---- Arrows ---- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hero:hover .slider-arrow,
.slider-arrow:focus-visible {
    opacity: 1;
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }


/* ============================================================
   09. PROGRAMS SECTION
   ============================================================ */
.programs-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-softer) 100%);
}

.program-showcase {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: clamp(28px, 4vw, 50px);
    margin-bottom: 60px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.6s ease, transform 0.35s ease;
}

.program-showcase:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-blue);
}

.program-showcase:last-child {
    margin-bottom: 0;
}

/* ---- Showcase header (centered) ---- */
.program-showcase-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 2px dashed var(--border);
    width: 100%;
}

.program-showcase-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent, var(--primary)), var(--accent2, var(--primary-light)));
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    box-shadow: 0 12px 28px rgba(10, 60, 255, 0.22);
    flex-shrink: 0;
    transition: transform 0.4s ease;
    margin: 0 auto;
}

.program-showcase:hover .program-showcase-icon {
    transform: rotate(-6deg) scale(1.06);
}

.program-showcase-title {
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.program-showcase-title h3 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 8px;
    color: var(--ink);
    text-align: center;
}

.program-hindi {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    display: block;
}

.program-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: var(--white);
    box-shadow: 0 6px 16px rgba(255, 61, 139, 0.3);
    white-space: nowrap;
    margin: 0 auto;
}

.program-badge.badge-teal {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    box-shadow: 0 6px 16px rgba(18, 194, 169, 0.3);
}

.program-badge.badge-gold {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #2b1a00;
    box-shadow: 0 6px 16px rgba(255, 184, 48, 0.35);
}

.program-badge.badge-purple {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    box-shadow: 0 6px 16px rgba(106, 61, 240, 0.3);
}

/* ---- Showcase body (2 columns) ---- */
.program-showcase-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.program-showcase-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.program-lead {
    font-style: italic;
    font-size: 1.08rem;
    color: var(--ink);
    line-height: 1.7;
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--primary-soft), var(--light-blue-2));
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    font-weight: 500;
}

.program-showcase-text > p {
    font-size: 0.96rem;
    color: var(--muted);
    line-height: 1.8;
}

.program-vision {
    font-size: 0.96rem !important;
    color: var(--ink-2) !important;
    line-height: 1.8 !important;
    padding: 18px 22px;
    background: var(--primary-softer);
    border-radius: var(--radius);
    border: 1px solid var(--border-blue);
}

.program-vision strong {
    color: var(--primary);
}

/* ---- Journey steps ---- */
.program-journey {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 10px 0;
}

.journey-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    min-width: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.6s ease;
}

.journey-step:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.journey-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-softer);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.journey-step > div {
    min-width: 0;
}

.journey-step h4 {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.journey-step p {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
}

/* ---- Benefits list ---- */
.program-benefits {
    margin: 8px 0;
}

.program-benefits h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-benefits h4 i {
    color: var(--primary);
}

.program-benefits ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.program-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
}

.program-benefits li i {
    color: var(--teal);
    font-size: 0.85rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.program-benefits li strong {
    color: var(--ink-2);
    font-weight: 600;
}

/* ---- Highlight boxes ---- */
.program-highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fff0f6, #ffe4ef);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 61, 139, 0.2);
    margin: 8px 0;
}

.program-highlight-box i {
    color: var(--pink);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.program-highlight-box p {
    font-size: 0.92rem;
    color: var(--ink-2);
    line-height: 1.7;
    font-style: italic;
}

.program-highlight-box.highlight-teal {
    background: linear-gradient(135deg, #e6faf7, #d1f5ef);
    border-color: rgba(18, 194, 169, 0.2);
}

.program-highlight-box.highlight-teal i {
    color: var(--teal);
}

.program-highlight-box.highlight-gold {
    background: linear-gradient(135deg, #fff8e6, #fff0cc);
    border-color: rgba(255, 184, 48, 0.3);
}

.program-highlight-box.highlight-gold i {
    color: var(--gold-dark);
}

.program-highlight-box.highlight-purple {
    background: linear-gradient(135deg, #f3eeff, #e8dfff);
    border-color: rgba(106, 61, 240, 0.2);
}

.program-highlight-box.highlight-purple i {
    color: var(--purple);
}


/* ============================================================
   10. PROGRAM GALLERY — FAST IMAGE LOADING
   ============================================================ */
.program-showcase-gallery {
    position: relative;
    min-width: 0;
}

.program-gallery-grid {
    display: grid;
    gap: 12px;
}

.program-gallery-grid.grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

/* Slot reserves space immediately => zero layout shift while images load */
.gallery-slot {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, var(--primary-soft), var(--light-blue-2));
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
    -webkit-tap-highlight-color: transparent;
}

.gallery-slot:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.gallery-slot img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slot:hover img {
    transform: scale(1.08);
}

.gallery-slot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 32px 14px 14px;
    background: linear-gradient(to top, rgba(13, 27, 62, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.gallery-slot:hover .gallery-slot-caption,
.gallery-slot:focus-visible .gallery-slot-caption {
    opacity: 1;
}

.gallery-slot-num {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.gallery-slot-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}

/* ---- Showcase footer ---- */
.program-showcase-footer {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px dashed var(--border);
    justify-content: center;
}

.program-showcase-footer .btn {
    flex: 1 1 220px;
    min-width: 0;
    justify-content: center;
}


/* ============================================================
   11. IMPACT SECTION
   ============================================================ */
.impact-section {
    background: linear-gradient(135deg, var(--ink) 0%, var(--primary-dark) 55%, var(--primary) 100%);
    color: var(--white);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    position: relative;
    z-index: 1;
}

.impact-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    padding: 34px 22px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.impact-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-6px);
    border-color: rgba(255, 184, 48, 0.4);
}

.impact-card.big {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    border-color: transparent;
    color: #2b1a00;
    box-shadow: 0 20px 50px rgba(255, 184, 48, 0.35);
}

.impact-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 6px;
}

.impact-card.big .impact-icon {
    background: rgba(43, 26, 0, 0.12);
    color: #2b1a00;
}

.impact-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.impact-card.big .impact-number {
    color: #2b1a00;
}

.impact-label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.impact-card.big .impact-label {
    color: rgba(43, 26, 0, 0.78);
    font-weight: 600;
}

.impact-extra {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 44px;
    position: relative;
    z-index: 1;
}

.impact-extra-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
}

.impact-extra-item i {
    color: var(--gold);
}

.impact-extra-item strong {
    color: var(--white);
    font-weight: 700;
}


/* ============================================================
   12. EVENTS CALENDAR + ACHIEVEMENTS
   ============================================================ */
.events-ach-section {
    background: var(--primary-softer);
}

.events-ach-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}

.calendar-col,
.achievements-col {
    min-width: 0;
}

/* ---- Calendar ---- */
.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 26px;
}

.calendar-item {
    display: flex;
    gap: 18px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--border);
    border-left: 6px solid var(--c, var(--primary));
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.6s ease;
    align-items: center;
}

.calendar-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
    border-color: var(--border-blue);
}

.cal-date {
    min-width: 78px;
    text-align: center;
    background: var(--c, var(--primary));
    color: var(--white);
    border-radius: 14px;
    padding: 12px 8px;
    font-weight: 700;
    line-height: 1.15;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cal-date span {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.cal-info {
    min-width: 0;
}

.cal-info h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--ink);
}

.cal-info p {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.55;
}

.cal-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.cal-badge.past {
    background: var(--primary-soft);
    color: var(--primary);
}

.cal-badge.upcoming {
    background: #fff0f6;
    color: var(--pink);
}

/* ---- Achievements ---- */
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 26px;
}

.achievement-item {
    display: flex;
    gap: 18px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.6s ease;
    align-items: flex-start;
}

.achievement-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-blue);
}

.ach-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-soft), var(--light-blue-2));
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.ach-info {
    min-width: 0;
}

.ach-info h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--ink);
}

.ach-info p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
}


/* ============================================================
   13. SPONSORS
   ============================================================ */
.sponsors-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-softer) 100%);
}

.sponsor-group {
    margin-bottom: 46px;
}

.sponsor-group:last-child {
    margin-bottom: 0;
}

.sponsor-label {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sponsor-label i {
    color: var(--primary);
    font-size: 0.95rem;
}

.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sponsor-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 34px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-bottom: 4px solid var(--border-blue);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.6s ease;
}

.sponsor-logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

.sponsor-logo.primary {
    border-bottom-color: var(--primary);
}

.sponsor-logo.primary i {
    color: var(--gold);
}

.sponsor-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}


/* ============================================================
   14. NEWS
   ============================================================ */
.news-section {
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 28px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-blue);
}

.news-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, var(--primary-soft), var(--light-blue-2));
}

.news-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(10, 60, 255, 0.35);
}

.news-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    color: var(--muted);
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-meta i {
    color: var(--primary);
    font-size: 0.75rem;
}

.news-body h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--ink);
    line-height: 1.35;
}

.news-body p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

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


/* ============================================================
   15. CONTACT + FORM
   ============================================================ */
.contact-section {
    background: linear-gradient(180deg, var(--primary-softer) 0%, var(--white) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}

.contact-info-col,
.contact-form-col {
    min-width: 0;
}

.contact-lead {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 34px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.6s ease;
    min-width: 0;
}

.contact-item > div:last-child {
    min-width: 0;
}

.contact-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-soft), var(--light-blue-2));
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 0.92rem;
    color: var(--ink);
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ---- Bank card ---- */
.bank-details {
    background: linear-gradient(135deg, var(--ink) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.bank-details h4 {
    color: var(--gold);
    font-size: 1.05rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-row span {
    color: rgba(255, 255, 255, 0.72);
    flex-shrink: 0;
}

.bank-row strong {
    color: var(--white);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ---- Form ---- */
.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.4rem;
    margin-bottom: 26px;
    color: var(--ink);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--off-white);
    font-family: inherit;
    /* 16px min stops iOS Safari from zooming on focus */
    font-size: 1rem;
    color: var(--ink);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(10, 60, 255, 0.1);
}

.form-group input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #ef4444;
}

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

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a3cff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 44px;
}


/* ============================================================
   16. DONATE BANNER
   ============================================================ */
.donate-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--ink) 100%);
    padding: clamp(50px, 7vw, 80px) 0;
    position: relative;
    overflow: hidden;
}

.donate-banner::before {
    content: '♥';
    position: absolute;
    font-size: 26rem;
    color: rgba(255, 255, 255, 0.04);
    top: -100px;
    right: 5%;
    line-height: 1;
    pointer-events: none;
}

.donate-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.donate-banner-text {
    flex: 1 1 280px;
    min-width: 0;
}

.donate-banner-text h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--white);
    margin-bottom: 14px;
}

.donate-banner-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 620px;
}

.donate-banner-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 0 calc(26px + var(--safe-bottom));
    position: relative;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 44px;
    margin-bottom: 50px;
}

.footer-col {
    min-width: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
}

.footer-logo .logo-icon {
    width: 46px;
    height: 46px;
    overflow: hidden;
    background: transparent;
}

.footer-logo .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.72);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 3px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a,
.footer-col ul span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-col ul a i,
.footer-col ul span i {
    font-size: 0.7rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.footer-col ul a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.58);
}

.footer-bottom i {
    color: var(--pink);
}


/* ============================================================
   18. FLOATING BUTTONS
   ============================================================ */
.floating-donate {
    position: fixed;
    bottom: calc(24px + var(--safe-bottom));
    right: calc(24px + var(--safe-right));
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 30px rgba(255, 61, 139, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: floatPulse 2.5s ease-in-out infinite;
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(255, 61, 139, 0.5); }
    50% { box-shadow: 0 10px 40px rgba(255, 61, 139, 0.8); }
}

.floating-donate:hover {
    transform: translateY(-5px) scale(1.08);
}

.floating-instagram {
    position: fixed;
    bottom: calc(24px + var(--safe-bottom));
    left: calc(24px + var(--safe-left));
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 30px rgba(214, 41, 118, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: instaPulse 2.5s ease-in-out infinite;
}

@keyframes instaPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(214, 41, 118, 0.5); }
    50% { box-shadow: 0 10px 40px rgba(214, 41, 118, 0.8); }
}

.floating-instagram:hover {
    transform: translateY(-5px) scale(1.08);
}

.floating-whatsapp {
    position: fixed;
    bottom: calc(100px + var(--safe-bottom));
    left: calc(24px + var(--safe-left));
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.8);
}

.back-to-top {
    position: fixed;
    bottom: calc(24px + var(--safe-bottom));
    left: calc(100px + var(--safe-left));
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--white);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

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

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}


/* ============================================================
   19. SCROLL REVEAL
   ------------------------------------------------------------
   JS adds .reveal then .visible and sets an inline transition-delay.
   We clear that delay after reveal so hover effects stay instant.
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition-property: opacity, transform;
    transition-duration: 0.6s;
    transition-timing-function: ease;
}

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

/* Once revealed, hover transitions must not wait on stagger delay */
.reveal.visible:hover {
    transition-delay: 0s !important;
}


/* ============================================================
   20. TOAST
   ============================================================ */
.toast-notification {
    position: fixed;
    top: calc(24px + var(--safe-top));
    right: calc(24px + var(--safe-right));
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary);
    max-width: 420px;
    min-width: 300px;
    transform: translateX(130%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.toast-success { border-left-color: #10b981; }
.toast-notification.toast-error { border-left-color: #ef4444; }

.toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-success .toast-icon { background: #d1fae5; color: #10b981; }
.toast-error .toast-icon { background: #fee2e2; color: #ef4444; }

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.5;
    min-width: 0;
}

.toast-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.8rem;
    transition: background 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--primary-softer);
    color: var(--primary);
}


/* ============================================================
   21. LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(13, 27, 62, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    max-height: 85dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.show img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: calc(24px + var(--safe-top));
    right: calc(24px + var(--safe-right));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    background: var(--pink);
    border-color: var(--pink);
    transform: rotate(90deg);
}


/* ============================================================
   22. IMAGE LOADING OPTIMISATION
   ------------------------------------------------------------
   - Every image box has a fixed size / aspect ratio (no layout jump)
   - A soft shimmer shows ONLY until the image paints over it
   - No content-visibility / contain on <img> (they delay painting)
   ============================================================ */
.slide img,
.gallery-slot img,
.news-image img,
.logo-icon img {
    background-color: var(--primary-soft);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Shimmer sits BEHIND the image (img has z-index:1 inside isolated parent) */
.gallery-slot::before,
.news-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg,
        var(--primary-soft) 0%,
        var(--light-blue-2) 50%,
        var(--primary-soft) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Failed images: keep the box tidy */
img[alt]:after {
    content: '';
}

/* Below-the-fold sections render lazily => faster first paint */
.impact-section,
.events-ach-section,
.sponsors-section,
.news-section,
.contact-section,
.donate-banner,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
}


/* ============================================================
   23. RESPONSIVE — LARGE DESKTOP / 4K
   ============================================================ */
@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }
}

@media (min-width: 1600px) {
    :root {
        --container-max: 1440px;
        --container-width: 90%;
    }

    .section {
        padding: 130px 0;
    }

    .program-showcase {
        padding: 60px;
    }

    .hero {
        max-height: 920px;
    }

    .nav-link {
        font-size: 0.98rem;
        padding: 10px 16px;
    }

    .program-showcase-body {
        gap: 56px;
    }

    .news-grid {
        gap: 34px;
    }
}

@media (min-width: 2000px) {
    :root {
        --container-max: 1640px;
        --container-width: 88%;
    }

    body {
        font-size: 17px;
    }

    .hero {
        max-height: 1000px;
    }

    .slide-content > * {
        max-width: 860px;
    }
}

@media (min-width: 2560px) {
    :root {
        --container-max: 1900px;
        --container-width: 84%;
    }

    body {
        font-size: 18px;
    }

    .slide-title {
        font-size: 5rem;
    }

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


/* ============================================================
   24. RESPONSIVE — LAPTOP (<= 1280px)
   ============================================================ */
@media (max-width: 1280px) {
    .nav-link {
        padding: 10px 11px;
        font-size: 0.88rem;
    }

    .nav-link.donate-btn {
        padding: 10px 18px;
        margin-left: 4px;
    }

    .program-showcase-body {
        gap: 36px;
    }

    .events-ach-grid {
        gap: 36px;
    }

    .footer-grid {
        gap: 34px;
    }
}

@media (max-width: 1180px) {
    .logo-name {
        font-size: 1.02rem;
    }

    .nav-link {
        padding: 9px 9px;
        font-size: 0.85rem;
    }

    .dropdown {
        min-width: 220px;
    }

    .contact-grid {
        gap: 36px;
    }
}


/* ============================================================
   25. RESPONSIVE — TABLET LANDSCAPE (<= 1080px)
   Mobile navigation drawer starts here
   ============================================================ */
@media (max-width: 1080px) {
    :root {
        --header-offset: 76px;
    }

    .header-inner {
        padding: 12px 0;
    }

    .hamburger {
        display: flex;
    }

    /* ---- Slide-in drawer ---- */
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(360px, 86vw);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        box-shadow: -10px 0 40px rgba(10, 60, 255, 0.18);
        padding: calc(84px + var(--safe-top)) 22px calc(40px + var(--safe-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
        z-index: 1001;
    }

    .nav.open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        justify-content: space-between;
        width: 100%;
    }

    .nav-link i {
        font-size: 0.75rem;
    }

    /* ---- Accordion dropdown ---- */
    .dropdown,
    .nav-item:nth-last-child(-n+4) .dropdown {
        position: static;
        left: auto;
        right: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--primary-softer);
        margin: 4px 0 8px 12px;
        padding: 6px;
        display: none;
        min-width: 0;
        width: auto;
    }

    .dropdown::before {
        display: none;
    }

    .dropdown a {
        white-space: normal;
        padding: 12px 14px;
    }

    .dropdown a:hover {
        padding-left: 14px;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    /* disable hover-open (touch devices keep :hover stuck) */
    .has-dropdown:hover .nav-link i,
    .has-dropdown:focus-within .nav-link i {
        transform: none;
    }

    .has-dropdown.open .nav-link i {
        transform: rotate(180deg);
    }

    .nav-link.donate-btn {
        margin: 14px 0 0;
        text-align: center;
        justify-content: center;
        padding: 14px 22px;
    }

    /* ---- Layout ---- */
    .hero {
        height: clamp(540px, calc(100svh - 100px), 760px);
    }

    .program-showcase-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .program-showcase-gallery {
        order: -1;
    }

    .program-gallery-grid.grid-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .events-ach-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
    }

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

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

    .slider-arrow {
        opacity: 1;
    }

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

    .impact-card.big {
        grid-column: span 2;
    }

    .section-header {
        margin-bottom: 48px;
    }
}


/* ============================================================
   26. RESPONSIVE — TABLET PORTRAIT (<= 900px)
   ============================================================ */
@media (max-width: 900px) {
    .slide-content > * {
        max-width: 640px;
    }

    .slide-title {
        font-size: clamp(2rem, 6.5vw, 3rem);
    }

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

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

    .donate-banner-inner {
        gap: 28px;
    }

    .calendar-item:hover,
    .contact-item:hover {
        transform: none;
    }

    .impact-grid {
        gap: 16px;
    }
}


/* ============================================================
   27. RESPONSIVE — MOBILE LARGE (<= 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --header-offset: 70px;
    }

    body {
        font-size: 15.5px;
    }

    /* ---- Performance: turn off heavy decorative animation ---- */
    .section-bg-anim,
    .hero-bg-shapes {
        display: none;
    }

    .donate-banner::before {
        font-size: 14rem;
        top: -40px;
    }

    /* ---- Top bar ---- */
    .top-bar {
        padding: 8px 0;
        font-size: 0.75rem;
    }

    .top-bar-inner {
        justify-content: center;
        gap: 12px;
    }

    .top-info-items {
        gap: 18px;
        justify-content: center;
    }

    .top-info-item span {
        display: none;
    }

    .top-info-item i {
        font-size: 1rem;
    }

    .top-social {
        display: none;
    }

    /* ---- Logo ---- */
    .logo {
        gap: 10px;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
    }

    .logo-name {
        font-size: 0.98rem;
    }

    .logo-sub {
        font-size: 0.65rem;
    }

    /* ---- Hero ---- */
    .hero {
        height: clamp(520px, 82svh, 700px);
        min-height: 520px;
    }

    .slide-overlay {
        background: linear-gradient(
            180deg,
            rgba(13, 27, 62, 0.55) 0%,
            rgba(13, 27, 62, 0.72) 55%,
            rgba(13, 27, 62, 0.88) 100%
        );
    }

    .slide {
        align-items: flex-end;
    }

    .slide-content {
        padding-top: 20px;
        padding-bottom: 64px;
    }

    .slide-content > * {
        max-width: 100%;
    }

    .slide-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        margin-bottom: 14px;
    }

    .slide-quote {
        font-size: 0.98rem;
        margin-bottom: 22px;
        padding-left: 14px;
    }

    .slide-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .slide-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .slider-arrow {
        display: none;
    }

    .slider-dots {
        bottom: 22px;
    }

    /* Lighter zoom on phones = smoother, faster */
    @keyframes kenBurns {
        from { transform: scale(1); }
        to { transform: scale(1.04); }
    }

    /* ---- Programs ---- */
    .program-showcase {
        padding: 24px 18px;
        margin-bottom: 40px;
        border-radius: var(--radius-lg);
    }

    .program-showcase:hover {
        box-shadow: var(--shadow-md);
    }

    .program-showcase-header {
        gap: 14px;
        padding-bottom: 20px;
        margin-bottom: 28px;
    }

    .program-showcase-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 16px;
    }

    .program-showcase-title h3 {
        font-size: 1.35rem;
    }

    .program-hindi {
        font-size: 0.9rem;
    }

    .program-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .program-showcase-body {
        gap: 30px;
    }

    .program-gallery-grid {
        gap: 10px;
    }

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

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

    .program-showcase-footer {
        flex-direction: column;
        margin-top: 28px;
        padding-top: 22px;
    }

    .program-showcase-footer .btn {
        width: 100%;
        flex: 0 0 auto;
    }

    /* ---- Impact ---- */
    .impact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .impact-card.big {
        grid-column: span 2;
    }

    .impact-card {
        padding: 28px 16px;
    }

    .impact-extra {
        gap: 12px;
        margin-top: 32px;
    }

    /* ---- Calendar ---- */
    .calendar-item {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cal-date {
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }

    .cal-date span {
        display: inline;
        font-size: 1.3rem;
    }

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

    .news-card:hover {
        transform: none;
    }

    /* ---- Contact ---- */
    .contact-form {
        padding: 26px 20px;
    }

    .bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .bank-row strong {
        text-align: left;
    }

    .contact-item {
        padding: 16px;
    }

    /* ---- Sponsors ---- */
    .sponsor-logo {
        padding: 16px 22px;
        font-size: 0.92rem;
        width: 100%;
        justify-content: center;
    }

    .sponsor-logos {
        gap: 14px;
    }

    /* ---- Donate banner ---- */
    .donate-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 26px;
    }

    .donate-banner-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .donate-banner-actions {
        justify-content: center;
        width: 100%;
    }

    .donate-banner-actions .btn {
        flex: 1 1 140px;
    }

    /* ---- Footer ---- */
    .footer {
        padding-top: 56px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* ---- Floating buttons ---- */
    .floating-donate {
        width: 52px;
        height: 52px;
        bottom: calc(18px + var(--safe-bottom));
        right: calc(18px + var(--safe-right));
        font-size: 1.25rem;
    }

    .floating-instagram {
        width: 52px;
        height: 52px;
        bottom: calc(18px + var(--safe-bottom));
        left: calc(18px + var(--safe-left));
        font-size: 1.25rem;
    }

    .floating-whatsapp {
        width: 52px;
        height: 52px;
        bottom: calc(82px + var(--safe-bottom));
        left: calc(18px + var(--safe-left));
        font-size: 1.25rem;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: calc(18px + var(--safe-bottom));
        left: calc(82px + var(--safe-left));
    }

    .btn-lg {
        padding: 15px 28px;
        font-size: 0.95rem;
    }

    /* ---- Toast / Lightbox ---- */
    .toast-notification {
        top: calc(16px + var(--safe-top));
        right: 16px;
        left: 16px;
        max-width: none;
        min-width: 0;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox-close {
        top: calc(16px + var(--safe-top));
        right: 16px;
        width: 42px;
        height: 42px;
    }
}


/* ============================================================
   28. RESPONSIVE — MOBILE (<= 600px)
   ============================================================ */
@media (max-width: 600px) {
    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-tag {
        font-size: 0.78rem;
        padding: 7px 14px;
    }

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

    .section-title-sm {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.98rem;
    }

    .program-gallery-grid.grid-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .program-showcase {
        padding: 20px 14px;
    }

    .program-showcase-title h3 {
        font-size: 1.2rem;
    }

    .program-hindi {
        font-size: 0.84rem;
    }

    .program-lead {
        font-size: 0.95rem;
        padding: 14px 16px;
    }

    .program-showcase-text > p {
        font-size: 0.9rem;
    }

    .program-vision {
        padding: 14px 16px;
        font-size: 0.9rem !important;
    }

    .program-benefits li {
        font-size: 0.86rem;
    }

    .program-highlight-box {
        padding: 16px 18px;
    }

    .program-highlight-box p {
        font-size: 0.87rem;
    }

    .journey-step {
        padding: 12px 14px;
    }

    .journey-num {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .journey-step h4 {
        font-size: 0.84rem;
    }

    .journey-step p {
        font-size: 0.74rem;
    }

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

    .impact-card.big {
        grid-column: span 2;
    }

    .impact-number {
        font-size: 2.2rem;
    }

    .impact-extra-item {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .news-body {
        padding: 22px;
    }

    .contact-form h3 {
        font-size: 1.25rem;
    }
}


/* ============================================================
   29. RESPONSIVE — SMALL MOBILE (<= 480px)
   ============================================================ */
@media (max-width: 480px) {
    :root {
        --container-width: 93%;
    }

    .section {
        padding: 44px 0;
    }

    .section-header {
        margin-bottom: 34px;
    }

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

    .section-title-sm {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 0.92rem;
    }

    /* ---- Hero ---- */
    .hero {
        height: clamp(500px, 80svh, 640px);
        min-height: 500px;
    }

    .slide-content {
        padding-bottom: 58px;
    }

    .slide-tag {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 16px;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-quote {
        font-size: 0.9rem;
        padding-left: 12px;
        margin-bottom: 20px;
    }

    .slider-dots {
        bottom: 18px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 32px;
    }

    /* ---- Programs ---- */
    .program-showcase {
        padding: 16px 12px;
        border-radius: var(--radius);
        margin-bottom: 32px;
    }

    .program-showcase-header {
        gap: 12px;
        padding-bottom: 16px;
        margin-bottom: 22px;
    }

    .program-showcase-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        border-radius: 14px;
    }

    .program-showcase-title h3 {
        font-size: 1.1rem;
    }

    .program-hindi {
        font-size: 0.8rem;
    }

    .program-badge {
        font-size: 0.65rem;
        padding: 5px 12px;
    }

    .program-showcase-body {
        gap: 24px;
    }

    .program-gallery-grid.grid-6 {
        gap: 8px;
    }

    .gallery-slot {
        border-radius: 10px;
    }

    .gallery-slot-caption {
        padding: 24px 10px 10px;
    }

    .gallery-slot-num {
        font-size: 0.65rem;
    }

    .gallery-slot-title {
        font-size: 0.72rem;
    }

    .program-lead {
        font-size: 0.9rem;
        padding: 12px 14px;
        border-left-width: 4px;
    }

    .program-showcase-text > p {
        font-size: 0.86rem;
        line-height: 1.75;
    }

    .program-benefits h4 {
        font-size: 0.92rem;
    }

    .program-benefits li {
        font-size: 0.82rem;
        gap: 8px;
    }

    .program-highlight-box {
        padding: 14px 16px;
        gap: 12px;
    }

    .program-highlight-box i {
        font-size: 1.1rem;
    }

    .program-highlight-box p {
        font-size: 0.82rem;
    }

    .program-journey {
        gap: 10px;
    }

    .journey-step {
        padding: 10px 12px;
        gap: 10px;
    }

    .journey-num {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .journey-step h4 {
        font-size: 0.8rem;
    }

    .journey-step p {
        font-size: 0.7rem;
    }

    .program-showcase-footer {
        margin-top: 24px;
        padding-top: 20px;
        gap: 10px;
    }

    .program-showcase-footer .btn {
        padding: 12px 18px;
        font-size: 0.85rem;
        min-height: 44px;
    }

    .btn {
        padding: 12px 22px;
        font-size: 0.88rem;
        min-height: 44px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.9rem;
        min-height: 48px;
    }

    /* ---- Events ---- */
    .calendar-item {
        padding: 14px;
    }

    .cal-info h3 {
        font-size: 0.97rem;
    }

    .cal-info p {
        font-size: 0.8rem;
    }

    .achievement-item {
        padding: 16px;
        gap: 14px;
    }

    .ach-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .ach-info h3 {
        font-size: 0.97rem;
    }

    .ach-info p {
        font-size: 0.82rem;
    }

    /* ---- Contact ---- */
    .contact-form {
        padding: 20px 16px;
    }

    .contact-form h3 {
        font-size: 1.15rem;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
    }

    .contact-item {
        padding: 14px 16px;
        gap: 12px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .contact-value {
        font-size: 0.85rem;
    }

    .bank-details {
        padding: 22px 18px;
    }

    .bank-details h4 {
        font-size: 0.95rem;
    }

    .bank-row {
        font-size: 0.82rem;
    }

    /* ---- News ---- */
    .news-body {
        padding: 20px;
    }

    .news-body h3 {
        font-size: 1.05rem;
    }

    .news-body p {
        font-size: 0.86rem;
    }

    .news-meta {
        font-size: 0.72rem;
        gap: 12px;
    }

    /* ---- Impact ---- */
    .impact-card {
        padding: 24px 14px;
    }

    .impact-number {
        font-size: 2rem;
    }

    .impact-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        border-radius: 14px;
    }

    .impact-label {
        font-size: 0.82rem;
    }

    .impact-extra-item {
        padding: 10px 16px;
        font-size: 0.82rem;
    }

    /* ---- Donate banner ---- */
    .donate-banner-text h2 {
        font-size: 1.4rem;
    }

    .donate-banner-text p {
        font-size: 0.9rem;
    }

    .donate-banner-actions {
        flex-direction: column;
    }

    .donate-banner-actions .btn {
        width: 100%;
        flex: 0 0 auto;
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    /* ---- Sponsors ---- */
    .sponsor-logo {
        padding: 14px 18px;
        font-size: 0.86rem;
        gap: 10px;
    }

    .sponsor-logo i {
        font-size: 1.2rem;
    }

    .sponsor-label {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* ---- Footer ---- */
    .footer {
        padding-top: 50px;
    }

    .footer-grid {
        gap: 28px;
        margin-bottom: 34px;
    }

    .footer-col h4 {
        font-size: 0.97rem;
        margin-bottom: 16px;
    }

    .footer-col ul a,
    .footer-col ul span {
        font-size: 0.84rem;
    }

    .footer-bottom {
        font-size: 0.78rem;
        padding-top: 20px;
    }

    /* ---- Floating ---- */
    .floating-donate,
    .floating-instagram,
    .floating-whatsapp {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .floating-donate {
        bottom: calc(16px + var(--safe-bottom));
        right: calc(16px + var(--safe-right));
    }

    .floating-instagram {
        bottom: calc(16px + var(--safe-bottom));
        left: calc(16px + var(--safe-left));
    }

    .floating-whatsapp {
        bottom: calc(74px + var(--safe-bottom));
        left: calc(16px + var(--safe-left));
    }

    .back-to-top {
        bottom: calc(16px + var(--safe-bottom));
        left: calc(74px + var(--safe-left));
        width: 40px;
        height: 40px;
    }
}


/* ============================================================
   30. RESPONSIVE — EXTRA SMALL (<= 380px / <= 340px)
   ============================================================ */
@media (max-width: 380px) {
    :root {
        --container-width: 94%;
    }

    .logo-name {
        font-size: 0.88rem;
    }

    .logo-sub {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .slide-title {
        font-size: 1.6rem;
    }

    .slide-quote {
        font-size: 0.85rem;
    }

    .section {
        padding: 38px 0;
    }

    .program-showcase {
        padding: 14px 10px;
    }

    .program-gallery-grid.grid-6 {
        gap: 6px;
    }

    .gallery-slot {
        border-radius: 8px;
    }

    .gallery-slot-caption {
        padding: 20px 8px 8px;
    }

    .gallery-slot-title {
        font-size: 0.66rem;
    }

    .gallery-slot-num {
        font-size: 0.6rem;
    }

    .program-showcase-icon {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
        border-radius: 12px;
    }

    .program-showcase-title h3 {
        font-size: 1.02rem;
    }

    .program-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.82rem;
        min-height: 42px;
    }

    .impact-number {
        font-size: 1.8rem;
    }

    .impact-label {
        font-size: 0.78rem;
    }

    .donate-banner-text h2 {
        font-size: 1.25rem;
    }

    .contact-value {
        font-size: 0.8rem;
    }

    .nav {
        width: 92vw;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 340px) {
    .impact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .impact-card.big {
        grid-column: span 1;
    }

    .logo-name {
        font-size: 0.8rem;
    }

    .logo-sub {
        display: none;
    }

    .slide-title {
        font-size: 1.45rem;
    }

    .slide-tag {
        font-size: 0.7rem;
    }

    .hamburger {
        width: 40px;
        height: 40px;
    }

    .floating-whatsapp,
    .floating-instagram,
    .floating-donate {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    .back-to-top {
        left: calc(68px + var(--safe-left));
        width: 38px;
        height: 38px;
    }

    .floating-whatsapp {
        bottom: calc(68px + var(--safe-bottom));
    }
}


/* ============================================================
   31. LANDSCAPE PHONES
   ============================================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        max-height: none;
    }

    .slide {
        align-items: center;
    }

    .slide-content {
        padding-top: 70px;
        padding-bottom: 60px;
    }

    .slide-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .slide-quote {
        font-size: 0.92rem;
        margin-bottom: 14px;
    }

    .slide-tag {
        margin-bottom: 12px;
    }

    .slide-buttons {
        flex-direction: row;
        align-items: center;
    }

    .slide-buttons .btn {
        width: auto;
    }

    .slider-dots {
        bottom: 14px;
    }

    .nav {
        padding-top: calc(70px + var(--safe-top));
    }
}


/* ============================================================
   32. TOUCH DEVICES
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
    .gallery-slot-caption {
        opacity: 1;
        background: linear-gradient(to top, rgba(13, 27, 62, 0.85) 0%, transparent 100%);
    }

    .slider-arrow {
        opacity: 1;
    }

    .program-showcase:hover .program-showcase-icon {
        transform: none;
    }

    .gallery-slot:hover,
    .gallery-slot:hover img,
    .news-card:hover .news-image img,
    .news-card:hover,
    .impact-card:hover,
    .achievement-item:hover,
    .sponsor-logo:hover,
    .journey-step:hover {
        transform: none;
    }

    .btn:hover,
    .btn:hover i {
        transform: none;
    }

    .btn::before {
        display: none;
    }

    .btn:active {
        transform: scale(0.97);
    }

    /* comfortable tap targets */
    .nav-link,
    .dropdown a,
    .footer-col ul a {
        min-height: 44px;
    }
}


/* ============================================================
   33. PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .slide.active picture img,
    .slide.active > img {
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .water-flow-bg svg,
    .wave-2,
    .impact-bubbles span,
    .chess-pieces-bg span,
    .floating-pieces span,
    .pulsing-circles span,
    .gradient-flow,
    .soft-waves svg,
    .donate-shapes span,
    .hero-bg-shapes .shape,
    .floating-donate,
    .floating-instagram,
    .gallery-slot::before,
    .news-image::before {
        animation: none !important;
    }
}


/* ============================================================
   34. PRINT
   ============================================================ */
@media print {
    .top-bar,
    .header,
    .hero,
    .floating-donate,
    .floating-instagram,
    .floating-whatsapp,
    .back-to-top,
    .slider-arrow,
    .slider-dots,
    .section-bg-anim,
    .toast-notification,
    .lightbox {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .section {
        padding: 20px 0;
        content-visibility: visible;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .program-showcase {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .gallery-slot img {
        max-width: 200px;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }
}


/* ============================================================
   35. ACCESSIBILITY
   ============================================================ */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.hero *:focus-visible,
.footer *:focus-visible,
.impact-section *:focus-visible,
.donate-banner *:focus-visible {
    outline-color: var(--gold);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 12px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

@media (forced-colors: active) {
    .btn {
        border: 2px solid ButtonText;
    }

    .program-showcase {
        border: 2px solid ButtonText;
    }

    .gallery-slot {
        border: 1px solid ButtonText;
    }

    .dot {
        border: 1px solid ButtonText;
    }
}


/* ============================================================
   36. UTILITIES
   NOTE: the old global ".visible { display:block }" was REMOVED.
   It overrode .reveal.visible and .back-to-top.visible (grid) and
   broke the back-to-top icon alignment.
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none !important; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.no-scroll {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

/* ============================================================
   END OF STYLESHEET
   ============================================================ */