/* =====================================================================
   Behsud Charity — Main Stylesheet
   Ported from the original static HTML/CSS, reorganized for WordPress.
   Part A: global tokens, hero, about, programs, gallery preview,
           stats, testimonials, support, contact, footer, reveal anim.
   Part B: full gallery page (story sections, archive modal, lightbox,
           glitter background) — gallery-page-specific nav classes are
           prefixed gp- to avoid clobbering the main site header.
   Part C: theme-specific additions (success stories, a11y, admin bar).
===================================================================== */
  :root {
    --green-dark: #2E7D32;
    --green-mid: #388E3C;
    --green-light: #66BB6A;
    --green-pale: #A5D6A7;
    --gold: #F4C542;
    --gold-light: #FFE082;
    --gold-dark: #F9A825;
    --cream: #FFF8E8;
    --cream-2: #F9FBE7;
    --cream-3: #E8F5E9;
    --cream-4: #D7F2D9;
    --text-dark: #1B3A1C;
    --text-mid: #2D5A2E;
    --text-light: #5A8C5B;
    --white: #FFFFFF;
    --shadow: 0 8px 32px rgba(46,125,50,0.12);
    --shadow-gold: 0 8px 32px rgba(244,197,66,0.25);
    --radius: 24px;
    --radius-sm: 14px;
    --transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Vazirmatn', system-ui, sans-serif;
    background: linear-gradient(135deg, #FFF8E8 0%, #F9FBE7 35%, #E8F5E9 70%, #D7F2D9 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
  }

  /* ─── HEARTS CANVAS ─── */
  #hearts-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.5s;
  }

  /* ─── DECORATIVE BG BLOBS ─── */
  .bg-blob {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    filter: blur(60px);
  }
  .bg-blob-1 { width: 600px; height: 600px; background: var(--green-dark); top: -200px; right: -200px; animation: blob-breathe 14s ease-in-out infinite; }
  .bg-blob-2 { width: 400px; height: 400px; background: var(--gold); bottom: 20%; left: -150px; animation: blob-breathe 18s ease-in-out infinite reverse; }
  .bg-blob-3 { width: 300px; height: 300px; background: var(--green-light); bottom: -100px; right: 10%; animation: blob-breathe 16s ease-in-out infinite; }
  @keyframes blob-breathe {
    0%, 100% { opacity: 0.04; transform: scale(1); }
    50% { opacity: 0.075; transform: scale(1.12); }
  }

  /* ─── GENTLE FLOATING PARTICLES (light motes, separate from hearts) ─── */
  #particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
  }

  /* ─── CANDLE-LIKE GLOW ─── */
  .glow-pulse { position: relative; }
  .glow-pulse::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(244,197,66,0.35), transparent 70%);
    opacity: 0.5;
    filter: blur(6px);
    z-index: -1;
    animation: candle-glow 4.5s ease-in-out infinite;
  }
  @keyframes candle-glow {
    0%, 100% { opacity: 0.35; transform: scale(0.96); }
    50% { opacity: 0.75; transform: scale(1.08); }
  }

  /* ─── LIGHT SHIMMER (sheen sweep) ─── */
  .shimmer-surface { position: relative; overflow: hidden; }
  .shimmer-surface::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-18deg);
    animation: shimmer-sweep 6s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes shimmer-sweep {
    0% { left: -60%; }
    35%, 100% { left: 130%; }
  }

  /* ─── ANIMATED UNDERLINE (generic, reusable) ─── */
  .anim-underline { position: relative; text-decoration: none; }
  .anim-underline::after {
    content: '';
    position: absolute;
    bottom: -3px; right: 0; left: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  .anim-underline:hover::after { transform: scaleX(1); }

  /* ─── FOCUS VISIBILITY (accessibility) ─── */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2.5px solid var(--gold-dark);
    outline-offset: 3px;
    border-radius: 6px;
  }

  /* ─── SURPRISE: CONSTELLATION HEART (rare, one-time) ─── */
  #surprise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
  }
  #surprise-overlay.active { animation: surprise-fade 5.5s ease-in-out forwards; }
  @keyframes surprise-fade {
    0% { opacity: 0; }
    12% { opacity: 1; }
    72% { opacity: 1; }
    100% { opacity: 0; }
  }
  .surprise-star {
    opacity: 0;
    transform-origin: center;
    animation: surprise-twinkle 5.5s ease-in-out forwards;
  }
  @keyframes surprise-twinkle {
    0% { opacity: 0; transform: scale(0.3); }
    15% { opacity: 1; transform: scale(1.15); }
    25% { opacity: 0.85; transform: scale(0.95); }
    80% { opacity: 0.85; }
    100% { opacity: 0; transform: scale(0.7); }
  }
  .surprise-line {
    stroke-dasharray: 4 6;
    opacity: 0;
    animation: surprise-line-fade 5.5s ease-in-out forwards;
  }
  @keyframes surprise-line-fade {
    0%, 18% { opacity: 0; }
    35% { opacity: 0.35; }
    75% { opacity: 0.35; }
    100% { opacity: 0; }
  }

  /* ─── NAVBAR ─── */
  nav {
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    backdrop-filter: blur(0px);
  }
  nav.scrolled {
    background: rgba(255,248,232,0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 24px rgba(46,125,50,0.10);
    padding: 10px 32px;
  }
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }
  .nav-logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(46,125,50,0.3), inset 0 1px 2px rgba(255,255,255,0.4);
    flex-shrink: 0;
    transition: var(--transition);
  }
  .nav-logo:hover .nav-logo-icon { transform: rotate(-8deg) scale(1.06); }
  .nav-logo-text { line-height: 1.2; }
  .nav-logo-text .title { font-size: 15px; font-weight: 700; color: var(--green-dark); }
  .nav-logo-text .sub { font-size: 11px; color: var(--text-light); font-weight: 400; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
  }
  .nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    position: relative;
    transition: color 0.2s;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; right: 0; left: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
    border-radius: 2px;
  }
  .nav-links a:hover { color: var(--green-dark); }
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-donate-btn {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    color: white !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(46,125,50,0.3), inset 0 1px 1px rgba(255,255,255,0.3);
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
  }
  .nav-donate-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,125,50,0.4), inset 0 1px 1px rgba(255,255,255,0.3) !important; }
  .nav-donate-btn:active { transform: translateY(0); }
  .nav-donate-btn::after { display: none !important; }
  .nav-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
  .nav-burger span { display: block; width: 24px; height: 2px; background: var(--green-dark); border-radius: 2px; transition: var(--transition); }

  /* ─── HERO ─── */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    overflow: hidden;
    z-index: 1;
  }
  .hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244,197,66,0.15);
    border: 1px solid rgba(244,197,66,0.4);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
  }
  .hero-badge .dot {
    width: 7px; height: 7px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
  }
  @keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
  }
  .hero-title {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
  }
  .hero-title .highlight {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
  }
  .hero-title .highlight-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-light);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 40px;
    font-weight: 400;
  }
  .hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-light) 100%);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(46,125,50,0.35), inset 0 1px 1px rgba(255,255,255,0.35), inset 0 -2px 6px rgba(0,0,0,0.08);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Vazirmatn', sans-serif;
    position: relative;
  }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(46,125,50,0.45), inset 0 1px 1px rgba(255,255,255,0.35), inset 0 -2px 6px rgba(0,0,0,0.08); }
  .btn-primary:active { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(46,125,50,0.4), inset 0 2px 6px rgba(0,0,0,0.12); }
  .btn-secondary {
    background: white;
    color: var(--green-dark);
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--green-pale);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(46,125,50,0.10);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Vazirmatn', sans-serif;
  }
  .btn-secondary:hover { border-color: var(--green-light); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(46,125,50,0.15); }
  .btn-secondary:active { transform: translateY(-1px); }

  /* ─── DONATION BOX ─── */
  .donation-box-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 520px;
  }
  .donation-box {
    background: white;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 64px rgba(46,125,50,0.15), 0 4px 16px rgba(46,125,50,0.08), 0 0 0 rgba(244,197,66,0);
    border: 1px solid rgba(165,214,167,0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(0px);
    transition: transform 0.1s linear;
    animation: donation-box-glow 5s ease-in-out infinite;
  }
  @keyframes donation-box-glow {
    0%, 100% { box-shadow: 0 20px 64px rgba(46,125,50,0.15), 0 4px 16px rgba(46,125,50,0.08), 0 0 0 rgba(244,197,66,0); }
    50% { box-shadow: 0 20px 64px rgba(46,125,50,0.15), 0 4px 16px rgba(46,125,50,0.08), 0 0 36px rgba(244,197,66,0.22); }
  }
  .donation-box::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-dark), var(--green-light), var(--gold), var(--green-light), var(--green-dark));
    background-size: 200% 100%;
    animation: bar-shimmer 5s linear infinite;
  }
  @keyframes bar-shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
  }
  .donation-box h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-align: center;
  }
  .donation-box p {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 28px;
  }
  .donation-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .amount-btn {
    background: var(--cream-3);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
  }
  .amount-btn:hover, .amount-btn.active {
    border-color: var(--green-dark);
    background: linear-gradient(135deg, rgba(46,125,50,0.08), rgba(102,187,106,0.12));
    color: var(--green-dark);
  }
  .amount-btn.active { box-shadow: 0 4px 16px rgba(46,125,50,0.2); }
  .donation-input-wrap {
    position: relative;
    margin-bottom: 20px;
  }
  .donation-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--cream-3);
    border-radius: var(--radius-sm);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--cream);
    transition: var(--transition);
    outline: none;
  }
  .donation-input:focus { border-color: var(--green-light); box-shadow: 0 0 0 4px rgba(102,187,106,0.15); }
  .donation-input::placeholder { color: var(--text-light); font-weight: 400; }
  .donation-currency {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
  }
  .donate-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(46,125,50,0.35), inset 0 1px 1px rgba(255,255,255,0.3), inset 0 -2px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
  }
  .donate-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(46,125,50,0.45), inset 0 1px 1px rgba(255,255,255,0.3), inset 0 -2px 6px rgba(0,0,0,0.1); }
  .donate-submit:active { transform: translateY(0); box-shadow: 0 4px 14px rgba(46,125,50,0.4), inset 0 2px 6px rgba(0,0,0,0.15); }
  .donation-trust {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
  }

  /* ─── STATS BAR ─── */
  .stats-bar {
    position: relative;
    z-index: 1;
    padding: 0 32px 80px;
  }
  .stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 28px;
    padding: 40px 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(165,214,167,0.2);
    position: relative;
    overflow: hidden;
  }
  .stats-inner::before {
    content: '';
    position: absolute;
    bottom: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-dark), var(--green-light), var(--gold), var(--green-light), var(--green-dark));
  }
  .stat-item { text-align: center; }
  .stat-num {
    font-size: 44px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
  }
  .stat-label { font-size: 14px; color: var(--text-light); font-weight: 500; line-height: 1.4; }
  .stat-divider { width: 1px; background: linear-gradient(180deg, transparent, rgba(165,214,167,0.4), transparent); align-self: stretch; }

  /* ─── SECTIONS ─── */
  section { position: relative; z-index: 1; }

  .section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
  }

  .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 16px;
  }
  .section-label::before {
    content: '';
    width: 28px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
  }

  .section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
  }
  .section-desc {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.75;
    max-width: 580px;
    margin-bottom: 48px;
  }

  /* ─── WAVE DIVIDERS ─── */
  .wave-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: 0;
  }
  .wave-divider svg { display: block; width: 100%; }

  /* ─── ABOUT SECTION ─── */
  .about-section { padding: 100px 0; }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .about-image-area {
    position: relative;
  }
  .about-img-main {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    background: linear-gradient(135deg, var(--cream-3), var(--cream-4));
  }
  .about-img-main .placeholder-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-light);
  }
  .about-img-main .placeholder-label .icon { font-size: 48px; }
  .about-img-main .placeholder-label span { font-size: 14px; font-weight: 500; }
  .about-img-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(165,214,167,0.3);
  }
  .about-img-badge .badge-icon { font-size: 32px; }
  .about-img-badge .badge-text .num { font-size: 24px; font-weight: 800; color: var(--green-dark); }
  .about-img-badge .badge-text .label { font-size: 12px; color: var(--text-light); }
  .about-img-secondary {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 140px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
  }
  .about-values { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
  .value-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(165,214,167,0.25);
    box-shadow: 0 2px 12px rgba(46,125,50,0.06);
    transition: var(--transition);
  }
  .value-item:hover { transform: translateX(-6px); box-shadow: 0 8px 24px rgba(46,125,50,0.12); }
  .value-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
  .value-text h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
  .value-text p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

  /* ─── PROGRAMS ─── */
  .programs-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(232,245,233,0.6), transparent);
  }
  .programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .program-card {
    background: white;
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: 0 4px 24px rgba(46,125,50,0.08);
    border: 1px solid rgba(165,214,167,0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }
  .program-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-dark), var(--green-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
  }
  .program-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(46,125,50,0.15); }
  .program-card:hover::after { transform: scaleX(1); }
  .program-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
  }
  .program-card:nth-child(1) .program-icon-wrap { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
  .program-card:nth-child(2) .program-icon-wrap { background: linear-gradient(135deg, #FFF9C4, #FFF176); }
  .program-card:nth-child(3) .program-icon-wrap { background: linear-gradient(135deg, #FCE4EC, #F8BBD0); }
  .program-card:nth-child(4) .program-icon-wrap { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }
  .program-card:nth-child(5) .program-icon-wrap { background: linear-gradient(135deg, #F3E5F5, #E1BEE7); }
  .program-card:nth-child(6) .program-icon-wrap { background: linear-gradient(135deg, #FBE9E7, #FFCCBC); }
  .program-card h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
  .program-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
  .program-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    background: var(--cream-3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-dark);
  }

  /* ─── GALLERY ─── */
  .gallery-section { padding: 100px 0; }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
  }
  .gallery-item {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream-3), var(--cream-4));
    position: relative;
    cursor: pointer;
    transition: var(--transition);
  }
  .gallery-item:hover { transform: scale(1.02); box-shadow: 0 12px 40px rgba(46,125,50,0.2); }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery-item:nth-child(2) { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
  .gallery-item:nth-child(3) { background: linear-gradient(135deg, #FFF8E1, #FFECB3); }
  .gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .gallery-placeholder .ph-icon { font-size: 36px; opacity: 0.5; }
  .gallery-placeholder .ph-text { font-size: 12px; font-weight: 500; color: var(--text-light); text-align: center; padding: 0 12px; }
  .gallery-item:nth-child(1) .ph-icon { font-size: 56px; }
  .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27,58,28,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 20px;
  }
  .gallery-item:hover .gallery-overlay { opacity: 1; }
  .gallery-overlay-text { color: white; font-size: 14px; font-weight: 600; }

  /* ─── TESTIMONIALS ─── */
  .testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.03), rgba(244,197,66,0.03));
  }
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(46,125,50,0.08);
    border: 1px solid rgba(165,214,167,0.2);
    transition: var(--transition);
    position: relative;
  }
  .testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 28px;
    font-size: 80px;
    line-height: 1;
    color: var(--cream-3);
    font-family: Georgia, serif;
    font-weight: 900;
  }
  .testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(46,125,50,0.12); }
  .testimonial-text {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
  }
  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .author-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
  }
  .author-info .name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
  .author-info .role { font-size: 12px; color: var(--text-light); }
  .stars { color: var(--gold); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }

  /* ─── SUPPORT / DONATE SECTION ─── */
  .support-section {
    padding: 120px 0;
    position: relative;
  }
  .support-inner {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
    border-radius: 40px;
    padding: 80px 60px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(46,125,50,0.35);
  }
  .support-inner::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
  }
  .support-inner::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    background: rgba(244,197,66,0.1);
    border-radius: 50%;
  }
  .support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  .support-text .section-label { color: var(--gold-light); }
  .support-text .section-label::before { background: var(--gold-light); }
  .support-text .section-title { color: white; }
  .support-text .section-desc { color: rgba(255,255,255,0.8); max-width: none; }
  .support-methods { display: flex; flex-direction: column; gap: 14px; }
  .support-method {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
  }
  .support-method:hover { background: rgba(255,255,255,0.16); transform: translateX(-4px); }
  .support-method .m-icon { font-size: 24px; flex-shrink: 0; }
  .support-method .m-text h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 2px; }
  .support-method .m-text p { font-size: 12px; color: rgba(255,255,255,0.7); }
  .bank-info {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 22px;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 2;
  }
  .bank-info strong { color: white; }

  /* ─── CONTACT ─── */
  .contact-section { padding: 100px 0; }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }
  .contact-cards { display: flex; flex-direction: column; gap: 16px; }
  .contact-card {
    background: white;
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 20px rgba(46,125,50,0.08);
    border: 1px solid rgba(165,214,167,0.2);
    transition: var(--transition);
  }
  .contact-card:hover { transform: translateX(-6px); box-shadow: 0 8px 32px rgba(46,125,50,0.14); }
  .contact-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cream-3), var(--cream-4));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
  }
  .contact-info h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
  .contact-info p { font-size: 13px; color: var(--text-light); line-height: 1.5; }
  .contact-form-card {
    background: white;
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(165,214,167,0.2);
  }
  .contact-form-card h3 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 24px; }
  .form-group { margin-bottom: 16px; }
  .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
  .form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--cream-3);
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--cream);
    outline: none;
    transition: var(--transition);
    resize: none;
  }
  .form-group input:focus, .form-group textarea:focus {
    border-color: var(--green-light);
    box-shadow: 0 0 0 4px rgba(102,187,106,0.12);
  }

  /* ─── FOOTER ─── */
  footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.75);
    padding: 64px 32px 32px;
    position: relative;
    z-index: 1;
  }
  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 32px;
  }
  .footer-brand .logo-text { font-size: 20px; font-weight: 800; color: white; margin-bottom: 12px; }
  .footer-brand p { font-size: 14px; line-height: 1.75; max-width: 280px; margin-bottom: 24px; }
  .footer-socials { display: flex; gap: 10px; }
  .social-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: white;
  }
  .social-btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); }
  .footer-col h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 20px; }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .footer-col ul li a {
    text-decoration: none;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
    position: relative;
    display: inline-block;
  }
  .footer-col ul li a::after {
    content: '';
    position: absolute;
    bottom: -3px; right: 0; left: 0;
    height: 1px;
    background: var(--gold-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .footer-col ul li a:hover { color: var(--gold-light); }
  .footer-col ul li a:hover::after { transform: scaleX(1); }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
  .footer-bottom .love { color: #EF5350; }

  /* ─── SCROLL ANIMATIONS ─── */
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }

  /* ─── MOBILE MENU ─── */
  .mobile-menu {
    position: fixed;
    top: 0; right: 0; left: 0; bottom: 0;
    background: rgba(27,58,28,0.97);
    backdrop-filter: blur(16px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a { font-size: 22px; font-weight: 700; color: white; text-decoration: none; opacity: 0.9; }
  .mobile-menu a:hover { color: var(--gold); }
  .mobile-close { position: absolute; top: 24px; left: 24px; background: none; border: none; color: white; font-size: 28px; cursor: pointer; }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-divider:nth-child(4) { display: none; }
    .about-grid, .contact-grid, .support-grid { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .gallery-item:nth-child(1) { grid-column: span 2; }
    .about-img-badge { bottom: 12px; left: 12px; }
    .about-img-secondary { top: 12px; right: 12px; }
  }

  @media (max-width: 600px) {
    nav { padding: 14px 20px; }
    .stats-inner { padding: 28px 24px; gap: 20px; }
    .programs-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .support-inner { padding: 48px 28px; border-radius: 28px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item:nth-child(1) { grid-column: span 1; height: 220px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  }

  /* ─── SMOOTH SCROLL TO SECTION ─── */
  .scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce-down 2.5s ease-in-out infinite;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
  }
  .scroll-indicator .arrow { font-size: 20px; }
  @keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
  }  /* ─── REDUCED MOTION (accessibility) ─── */
  @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;
    }
    #hearts-canvas, #particles-canvas, #surprise-overlay {
      display: none !important;
    }
    .bg-blob, .glow-pulse::before, .shimmer-surface::after,
    .donation-box, .hero-badge .dot, .scroll-indicator {
      animation: none !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
  }

/* ===================== GALLERY PAGE (Part B) ===================== */
  /* ─── NAVBAR ─── */
  .gp-nav {
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 100;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,248,232,0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 24px rgba(46,125,50,0.10);
  }
  .gp-nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .gp-nav-logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(46,125,50,0.3);
    flex-shrink: 0;
  }
  .gp-nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
  .gp-nav-logo-text { font-size: 15px; font-weight: 700; color: var(--green-dark); }
  .gp-nav-back {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none;
    font-size: 14px; font-weight: 600;
    color: var(--text-mid);
    padding: 9px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--green-pale);
    transition: var(--transition);
  }
  .gp-nav-back:hover { background: var(--cream-3); border-color: var(--green-light); }

  /* ─── PAGE HEADER ─── */
  .gp-hero {
    padding: 140px 32px 60px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
  }
  .gp-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--green-dark);
    margin-bottom: 16px;
  }
  .gp-label::before { content:''; width:28px; height:2px; background: var(--gold); border-radius:2px; }
  .gp-title {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
  }
  .gp-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
  }

  /* ─── QUICK JUMP NAV ─── */
  .gp-quick-nav {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .gp-quick-nav a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    background: white;
    border: 1px solid rgba(165,214,167,0.4);
    border-radius: 50px;
    padding: 9px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(46,125,50,0.06);
  }
  .gp-quick-nav a:hover { background: var(--cream-3); color: var(--green-dark); transform: translateY(-2px); }

  /* ─── STORY SECTION ─── */
  .story-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px 90px;
    scroll-margin-top: 90px;
    position: relative;
    overflow: hidden;
  }
  .story-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
  }
  .story-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
  }
  .story-head h2 { font-size: 24px; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
  .story-head p { font-size: 14px; color: var(--text-light); }

  /* ─── FEATURED GRID (3 cards) ─── */
  .story-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
  }
  .story-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(46,125,50,0.08);
    border: 1px solid rgba(165,214,167,0.2);
    transition: var(--transition);
    cursor: pointer;
  }
  .story-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(46,125,50,0.18); }
  .story-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--cream-3);
  }
  .story-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  .story-card:hover .story-img img { transform: scale(1.05); }

  /* Video card */
  .story-img.has-video::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.18);
    transition: var(--transition);
  }
  .story-card:hover .story-img.has-video::after { background: rgba(0,0,0,0.28); }

  .story-caption {
    padding: 12px 14px 14px;
  }
  .story-caption-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 6px;
  }
  .story-caption-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  /* ─── VIEW ALL BUTTON ─── */
  .view-all-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 1;
  }
  .view-all-wrap::before,
  .view-all-wrap::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(165,214,167,0.5));
  }
  .view-all-wrap::after {
    background: linear-gradient(to right, transparent, rgba(165,214,167,0.5));
  }
  .btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(46,125,50,0.28);
    transition: var(--transition);
    white-space: nowrap;
  }
  .btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(46,125,50,0.38);
    background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  }
  .btn-view-all .count-badge {
    background: rgba(255,255,255,0.22);
    border-radius: 50px;
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 600;
  }

  /* category accent colors */
  .c-cultural .story-icon { background: linear-gradient(135deg, #FCE4EC, #F8BBD0); }
  .c-education .story-icon { background: linear-gradient(135deg, #FFF9C4, #FFF176); }
  .c-camps .story-icon { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }
  .c-welfare .story-icon { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
  .c-medical .story-icon { background: linear-gradient(135deg, #F3E5F5, #E1BEE7); }
  .c-employment .story-icon { background: linear-gradient(135deg, #FBE9E7, #FFCCBC); }

  /* ─── ARCHIVE MODAL OVERLAY ─── */
  .archive-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  .archive-overlay.open {
    opacity: 1;
    pointer-events: all;
  }
  .archive-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 30, 16, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .archive-card {
    position: relative;
    z-index: 1;
    background: var(--cream);
    border-radius: 28px;
    box-shadow:
      0 32px 80px rgba(15,30,16,0.28),
      0 0 0 1px rgba(165,214,167,0.25);
    width: 100%;
    max-width: 1060px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1);
  }
  .archive-overlay.open .archive-card {
    transform: translateY(0) scale(1);
  }

  /* Modal header */
  .archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px 18px;
    border-bottom: 1px solid rgba(165,214,167,0.3);
    flex-shrink: 0;
    background: rgba(255,255,255,0.7);
  }
  .archive-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .archive-header-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
  }
  .archive-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3px;
  }
  .archive-header .archive-subtitle {
    font-size: 13px;
    color: var(--text-light);
  }
  .archive-close {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--cream-3);
    border: 1px solid rgba(165,214,167,0.4);
    color: var(--text-mid);
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
  }
  .archive-close:hover { background: #ffecec; border-color: #f4a0a0; color: #c0392b; }

  /* Modal body / scroll area */
  .archive-body {
    overflow-y: auto;
    flex: 1;
    padding: 24px 28px;
    scroll-behavior: smooth;
  }
  .archive-body::-webkit-scrollbar { width: 6px; }
  .archive-body::-webkit-scrollbar-track { background: transparent; }
  .archive-body::-webkit-scrollbar-thumb { background: var(--green-pale); border-radius: 6px; }

  /* Archive grid */
  .archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
  }
  .archive-item {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(46,125,50,0.07);
    border: 1px solid rgba(165,214,167,0.18);
    transition: var(--transition);
    cursor: pointer;
  }
  .archive-item:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(46,125,50,0.16); }
  .archive-thumb {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: var(--cream-3);
  }
  .archive-thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  .archive-item:hover .archive-thumb img { transform: scale(1.06); }
  .archive-thumb.has-video::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.18);
  }
  .archive-item-caption {
    padding: 9px 11px 10px;
  }
  .archive-item-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-mid);
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .archive-item-date {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
  }

  /* Load more */
  .archive-footer {
    flex-shrink: 0;
    padding: 16px 28px 20px;
    border-top: 1px solid rgba(165,214,167,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255,255,255,0.7);
  }
  .btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    background: white;
    border: 1.5px solid var(--green-pale);
    color: var(--green-dark);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
  }
  .btn-load-more:hover { background: var(--cream-3); border-color: var(--green-light); transform: translateY(-1px); }
  .btn-load-more:disabled { opacity: 0.45; pointer-events: none; }
  .archive-count-info {
    font-size: 12px;
    color: var(--text-light);
  }

  /* ─── LIGHTBOX ─── */
  .lightbox {
    position: fixed; inset: 0;
    background: rgba(10, 20, 11, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }
  .lightbox.open { opacity: 1; pointer-events: all; }

  .lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 80px;
  }
  .lightbox-media {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 14px;
    box-shadow: 0 24px 72px rgba(0,0,0,0.6);
    object-fit: contain;
    transition: opacity 0.22s ease;
  }
  .lightbox-media.fading { opacity: 0; }

  .lightbox-close {
    position: absolute;
    top: 20px; left: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    z-index: 10;
  }
  .lightbox-close:hover { background: rgba(255,255,255,0.2); }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    z-index: 10;
  }
  .lightbox-nav:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) scale(1.08); }
  .lightbox-nav.prev { right: 24px; }
  .lightbox-nav.next { left: 24px; }
  .lightbox-nav:disabled { opacity: 0.3; cursor: default; }
  .lightbox-nav:disabled:hover { transform: translateY(-50%) scale(1); background: rgba(255,255,255,0.1); }

  .lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    font-weight: 600;
    background: rgba(0,0,0,0.35);
    padding: 6px 16px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
  }
  .lightbox-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0,0,0,0.4);
    padding: 8px 20px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    max-width: 600px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ─── SCROLL REVEAL ─── */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ─── BACK TO TOP ─── */
  .back-top {
    position: fixed;
    bottom: 28px; left: 28px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--green-dark);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(46,125,50,0.35);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 90;
  }
  .back-top.show { opacity: 1; pointer-events: auto; }

  /* ─── GLITTER CANVAS ─── */
  #glitter-canvas {
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
  }

  .gp-nav, header, .gp-quick-nav, .story-section, .back-top { position: relative; z-index: 1; }
  .gp-nav { z-index: 100; }
  .archive-overlay { z-index: 200; }
  .lightbox { z-index: 400; }
  .back-top { z-index: 90; }

  @media (max-width: 780px) {
    .story-featured { grid-template-columns: repeat(2, 1fr); }
    .story-featured .story-card:nth-child(3) { display: none; }
    .archive-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  }
  @media (max-width: 600px) {
    .gp-nav { padding: 12px 18px; }
    .gp-nav-logo-text { display: none; }
    .gp-hero { padding: 120px 20px 40px; }
    .story-section { padding: 0 20px 70px; }
    .story-featured { grid-template-columns: 1fr 1fr; gap: 10px; }
    .story-img { height: 150px; }
    .archive-card { border-radius: 20px; }
    .archive-header { padding: 16px 18px 14px; }
    .archive-body { padding: 16px 14px; }
    .lightbox-inner { padding: 56px 56px; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 18px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
  }

/* ===================== THEME ADDITIONS (Part C) =================== */

  /* ─── HERO TEXT (badge / title / subtitle / ctas) ───
     These reuse classes that already existed in the original stylesheet
     but were unused in the shipped markup; restoring them lets the WP
     theme expose an editable Hero headline while keeping the exact same
     visual language as the rest of the site. */
  .hero-badge { animation: none; }

  /* ─── SUCCESS STORIES (new CPT, styled to match existing card language) ─── */
  .success-section { padding: 100px 0; }
  .success-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .success-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(46,125,50,0.08);
    border: 1px solid rgba(165,214,167,0.2);
    transition: var(--transition);
  }
  .success-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(46,125,50,0.15); }
  .success-img { height: 200px; overflow: hidden; position: relative; background: var(--cream-3); }
  .success-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
  .success-card:hover .success-img img { transform: scale(1.05); }
  .success-body { padding: 24px 26px 28px; }
  .success-date { font-size: 12px; font-weight: 600; color: var(--text-light); margin-bottom: 8px; display:block; }
  .success-body h3 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; line-height: 1.5; }
  .success-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
  .success-readmore { display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-size:13px; font-weight:700; color: var(--green-dark); text-decoration:none; }

  @media (max-width: 900px) {
    .success-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .success-grid { grid-template-columns: 1fr; }
  }

  /* ─── ADMIN BAR FIX ─── */
  .admin-bar nav#navbar { top: 32px; }
  @media (max-width: 782px) {
    .admin-bar nav#navbar { top: 46px; }
  }

  /* ─── SKIP LINK (accessibility) ─── */
  .skip-link {
    position: absolute;
    right: -9999px;
    top: 0;
    background: var(--green-dark);
    color: #fff;
    padding: 10px 18px;
    z-index: 999;
    border-radius: 0 0 8px 8px;
  }
  .skip-link:focus { right: 16px; }

  /* ─── EMPTY STATES (when no CPT content yet) ─── */
  .behsud-empty-note {
    font-size: 13px;
    color: var(--text-light);
    background: var(--cream-3);
    border: 1px dashed var(--green-pale);
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
  }

  /* ─── NAV DROPDOWN (Gallery submenu) ─── */
  .nav-links li { position: relative; }
  .nav-links .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
    padding: 10px;
    min-width: 220px;
    list-style: none;
    margin: 8px 0 0;
    z-index: 200;
  }
  .nav-links li:hover > .sub-menu,
  .nav-links li:focus-within > .sub-menu {
    display: block;
  }
  .nav-links .sub-menu li { display: block; }
  .nav-links .sub-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
  }
  .nav-links .sub-menu a:hover {
    background: var(--cream-3);
    color: var(--green-dark);
  }
  .mobile-sub-link {
    padding-right: 28px !important;
    font-size: 15px !important;
    opacity: 0.85;
  }

/* ===================== PART D: FEATURED PHOTOS + GALLERY PAGE FIXES ===================== */

  /* ─── FEATURED PHOTOS SECTION (Homepage — independent from Gallery CPT) ─── */
  .featured-photos-section {
    padding: 100px 0;
  }
  .featured-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
    margin-top: 48px;
  }
  .featured-photo-item {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream-3), var(--cream-4));
    position: relative;
    cursor: pointer;
    transition: var(--transition);
  }
  .featured-photo-item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(46,125,50,0.2);
  }
  /* First item spans 2 cols × 2 rows — same hero layout as the old gallery-preview */
  .featured-photo-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .featured-photo-item:nth-child(2) { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
  .featured-photo-item:nth-child(3) { background: linear-gradient(135deg, #FFF8E1, #FFECB3); }
  /* Overlay reuses the shared .gallery-overlay + .gallery-overlay-text classes */
  .featured-photo-item:hover .gallery-overlay { opacity: 1; }

  @media (max-width: 900px) {
    .featured-photos-grid {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: auto;
    }
    .featured-photo-item:nth-child(1) { grid-column: span 2; }
  }
  @media (max-width: 540px) {
    .featured-photos-grid {
      grid-template-columns: 1fr;
    }
    .featured-photo-item:nth-child(1) { grid-column: span 1; height: 220px; }
    .featured-photo-item { height: 180px; }
  }

  /* ─── GALLERY PAGE: when using the main site header/footer ─── *
   * The original .gp-hero assumed a standalone page whose top padding
   * accommodated the custom .gp-nav (height ~68px).
   * Now it uses the site's fixed <nav> (~68px), so we add that same
   * offset so the hero doesn't slide under the navbar.
   */
  .behsud-gallery-page .gp-hero {
    padding-top: 160px; /* navbar ~68px + original 100px internal space */
  }

  /* The glitter canvas is position:fixed z-index:0; site content sits above */
  .behsud-gallery-page #glitter-canvas { z-index: 0; }
  .behsud-gallery-page #navbar         { z-index: 200; }
  .behsud-gallery-page .archive-overlay { z-index: 300; }
  .behsud-gallery-page .lightbox        { z-index: 500; }

  /* gp-quick-nav and story sections need to sit above the glitter canvas */
  .behsud-gallery-page .gp-hero,
  .behsud-gallery-page .gp-quick-nav,
  .behsud-gallery-page .story-section,
  .behsud-gallery-page .back-top {
    position: relative;
    z-index: 1;
  }

  /* Admin bar offset for gallery page */
  .admin-bar.behsud-gallery-page .gp-hero { padding-top: 192px; }

  /* ─── REMOVE GALLERY SUBMENU ARROW ─── *
   * Submenu is gone from the nav; clean up any lingering ::after arrow.
   */
  .nav-links li > a[href*="gallery"]::after { display: none !important; }


  /* ─── FEATURED PHOTOS: INTRO VIDEO + GALLERY BUTTON ─── */
  .featured-intro-video-wrap video {
    display: block;
    margin: 0 auto;
  }
  .featured-gallery-btn-wrap .btn-view-all {
    text-decoration: none;
  }

  /* ─── GALLERY: SECTION DESCRIPTION BOX (Glassmorphism) ───
   * Shown right under the category title, right above the photo grid.
   * Only rendered when the category has a long_description set in
   * inc/content/gallery-content.php — empty text = no box at all.
   */
  .story-description-box {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 22px;
    padding: 30px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.08);
    text-align: right;
    direction: rtl;
    animation: storyDescFadeIn 0.6s ease both;
  }
  .story-description-box::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--green-dark), var(--green-light));
  }
  .story-description-box p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 2;
    color: var(--text-dark);
  }
  .story-description-box p:last-child {
    margin-bottom: 0;
  }

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

  @media (max-width: 700px) {
    .story-description-box {
      padding: 22px 18px;
      border-radius: 18px;
      margin-bottom: 22px;
    }
    .story-description-box p {
      font-size: 14px;
      line-height: 1.9;
    }
  }
