/*
Theme Name: Hazrat Al Fazal Trust
Theme URI: https://haftrust.org
Author: HAF Trust
Description: Official theme for Hazrat Al Fazal Trust - Mosque, Jamia and Community Charity
Version: 6.0.0
License: GNU General Public License v2 or later
Text Domain: haf
*/

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --green-dark:  #1a3a2a;
  --green-mid:   #2d5a3d;
  --green-light: #3a6b42;
  --gold:        #c9a84c;
  --gold-light:  #e2c06a;
  --cream:       #f5f0e8;
  --cream-dark:  #ede5d8;
  --text-dark:   #1a1a1a;
  --text-mid:    #444;
  --text-light:  #777;
  --white:       #fff;
  --shadow:      0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.16);
  --radius:      10px;
  --radius-lg:   18px;
}

/* ============================================================
   RESET — mobile-first base
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body   {
  font-family: 'Outfit', sans-serif; color: var(--text-dark);
  background: var(--white); overflow-x: hidden; line-height: 1.65;
  max-width: 100vw;
}
img    { max-width: 100%; height: auto; display: block; }
a      { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY  (mobile sizes — scale up at breakpoints)
============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.18; font-weight: 700;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.28rem; }

.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .6rem;
}
.section-label::before {
  content: ''; width: 18px; height: 2px;
  background: var(--gold); flex-shrink: 0;
}

/* ============================================================
   LAYOUT
============================================================ */
.container {
  width: 100%; max-width: 1200px;
  margin-left: auto; margin-right: auto;
  padding-left: 1rem; padding-right: 1rem;
  box-sizing: border-box;
}
.section      { padding: 2.75rem 0; }
.section-alt  { background: var(--cream); }
.section-dark { background: var(--green-dark); color: var(--white); }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 2rem; }
.section-header p { color: var(--text-light); margin-top: .6rem; font-size: .93rem; line-height: 1.72; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .82rem 1.6rem; border-radius: 50px;
  font-weight: 600; font-size: .92rem; cursor: pointer; border: none;
  transition: all .25s ease; white-space: nowrap; min-height: 48px;
}
.btn-gold          { background: var(--gold); color: var(--green-dark); }
.btn-gold:active   { background: var(--gold-light); }
.btn-green         { background: var(--green-mid); color: var(--white); }
.btn-green:active  { background: var(--green-dark); }
.btn-outline       { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:active { background: var(--gold); color: var(--green-dark); }
.btn-outline-white  { background: transparent; border: 2px solid rgba(255,255,255,.65); color: var(--white); }
.btn-lg { padding: .95rem 2rem; font-size: 1rem; }
.btn-sm { padding: .48rem .95rem; font-size: .8rem; min-height: 38px; }

/* ============================================================
   GLOBAL NAV / MENU RESET
   Targets every class WordPress assigns via wp_nav_menu()
   and kills list-style bullets at ALL screen sizes.
============================================================ */
.nav-links,
.nav-links ul,
.nav-links ul li,
.nav-links > ul,
.nav-links > ul > li,
.mobile-nav ul,
.mobile-nav ul li,
ul.menu,
ul.menu li,
ul.nav-menu,
ul.nav-menu li,
.menu-item,
li.menu-item,
li.page_item,
li.page-item {
  list-style:      none !important;
  list-style-type: none !important;
  margin:          0    !important;
  padding:         0    !important;
  background:      none !important;
}
.nav-links ul li::before,
.nav-links ul li::after,
.mobile-nav ul li::before,
.mobile-nav ul li::after,
ul.menu li::before,
ul.menu li::after,
.menu-item::before,
.menu-item::after {
  display: none    !important;
  content: none    !important;
}
/* Remove any marker pseudo-elements */
.nav-links li,
.mobile-nav li,
ul.menu li {
  list-style-image: none !important;
}

/* ============================================================
   TOPBAR  — hidden mobile, shown ≥900px
============================================================ */
.topbar { display: none; }

/* ============================================================
   NAVBAR  (mobile-first)
============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 900;
  background: var(--white); box-shadow: 0 2px 16px rgba(0,0,0,.09);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 28px rgba(0,0,0,.14); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 1.1rem;
}
.nav-logo     { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.nav-logo img { width: 42px; height: 42px; object-fit: contain; }
.nav-logo-text .logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 700; color: var(--green-dark); line-height: 1.1;
}
.nav-logo-text .logo-sub { font-size: .62rem; color: var(--text-light); letter-spacing: .07em; }

/* Desktop nav — hidden on mobile */
.nav-links   { display: none; }
.nav-actions { display: none; }

/* Hamburger — visible mobile */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: .5rem; border-radius: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-dark); border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FULLSCREEN MOBILE NAV
============================================================ */
.mobile-nav {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1800; background: var(--white);
  overflow-y: auto; flex-direction: column;
  padding: 1.5rem 1.1rem 2.5rem;
}
.mobile-nav.open { display: flex; }

.mobile-nav-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 2px solid var(--cream-dark);
}
.mobile-nav-logo     { display: flex; align-items: center; gap: .6rem; }
.mobile-nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.mobile-nav-logo span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 700; color: var(--green-dark);
}
.mobile-nav-close {
  background: var(--cream); border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; color: var(--text-dark);
}

/* Nav links — both fallback anchors and wp_nav_menu */
.mobile-nav > a,
.mobile-nav ul li a {
  display: block; padding: .95rem .25rem;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 1.08rem; font-weight: 600; color: var(--text-dark); transition: color .2s;
}
.mobile-nav > a:hover,
.mobile-nav ul li a:hover { color: var(--gold); }
.mobile-nav ul,
.mobile-nav ul li         { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.mobile-nav ul li::before,
.mobile-nav ul li::after  { display: none !important; content: none !important; }

.mobile-nav-donate       { margin-top: 1.5rem; }
.mobile-nav-donate .btn  { width: 100%; font-size: 1.02rem; }

.mobile-nav-bank {
  margin-top: auto; padding-top: 1.5rem;
  border-top: 1px solid var(--cream-dark);
  font-size: .76rem; color: var(--text-light); line-height: 1.72;
}
.mobile-nav-bank strong { color: var(--green-dark); }

/* ============================================================
   HERO  (mobile-first)
============================================================ */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--green-dark);
}
.hero-video-wrap            { position: absolute; inset: 0; overflow: hidden; }
.hero-video-wrap video      { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg,
    rgba(26,58,42,.93) 0%,
    rgba(26,58,42,.72) 55%,
    rgba(26,58,42,.38) 100%);
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: 4rem 1.1rem 2.5rem;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: .5rem;
  color: var(--gold); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem;
}
.he-dot {
  width: 8px; height: 8px; background: var(--gold);
  border-radius: 50%; flex-shrink: 0; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.35); }
}
.hero-content h1 {
  color: var(--white); margin-bottom: 1rem;
  font-size: clamp(1.9rem, 7.5vw, 3.6rem);
  text-shadow: 0 2px 14px rgba(0,0,0,.3);
}
.hero-content h1 em { color: var(--gold); font-style: italic; }
.hero-content > p {
  color: rgba(255,255,255,.86); font-size: .95rem;
  max-width: 540px; line-height: 1.76; margin-bottom: 1.85rem;
}
.hero-buttons {
  display: flex; flex-direction: column; gap: .72rem;
  width: 100%; max-width: 100%; margin-bottom: 1.5rem;
}
.hero-buttons .btn { width: 100%; font-size: 1rem; max-width: 100%; box-sizing: border-box; }
.hero-trust  { display: none; }  /* shown ≥640px */
.hero-stats  { display: none; }  /* shown ≥900px */

/* ============================================================
   MARQUEE
============================================================ */
.marquee-bar { background: var(--gold); padding: .52rem 0; overflow: hidden; }
.marquee-track {
  display: flex; white-space: nowrap;
  animation: marquee 28s linear infinite;
}
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.marquee-item { padding: 0 1.4rem; font-weight: 600; font-size: .76rem; color: var(--green-dark); flex-shrink: 0; }
.marquee-dot  { color: var(--green-dark); opacity: .45; flex-shrink: 0; padding: 0 .25rem; }

/* ============================================================
   QUICK DONATE BAR
============================================================ */
.quick-donate { background: var(--cream); border-bottom: 3px solid var(--gold); padding: 1rem 0; }
.qd-inner     { display: flex; flex-direction: column; gap: .72rem; }
.qd-label     { font-weight: 700; font-size: .86rem; color: var(--green-dark); }
.qd-amounts   { display: flex; flex-wrap: wrap; gap: .4rem; }
.qd-btn {
  flex: 1; min-width: 44px; padding: .52rem .5rem; border-radius: 50px;
  border: 2px solid var(--green-mid); background: var(--white);
  font-weight: 700; font-size: .8rem; cursor: pointer; color: var(--green-dark);
  transition: all .2s; text-align: center; min-height: 42px;
}
.qd-btn:hover, .qd-btn.active { background: var(--green-mid); color: var(--white); border-color: var(--green-mid); }
.qd-input-wrap { display: flex; gap: .45rem; }
.qd-custom {
  flex: 1; padding: .5rem .9rem; border: 2px solid var(--cream-dark);
  border-radius: 50px; font-size: .9rem; outline: none;
}
.qd-custom:focus { border-color: var(--gold); }

/* ============================================================
   CAMPAIGN CARDS  — single column mobile
============================================================ */
.campaigns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
/* cols variants — only apply on desktop (overridden by media query below) */
.campaign-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.04);
  display: flex; flex-direction: column;
}
.cc-image      { position: relative; height: 215px; overflow: hidden; }
.cc-image img  { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cc-badge {
  position: absolute; top: .72rem; left: .72rem;
  padding: .2rem .65rem; border-radius: 20px;
  font-size: .66rem; font-weight: 700; text-transform: uppercase;
  background: var(--gold); color: var(--green-dark);
}
.cc-badge.urgent { background: #e74c3c; color: var(--white); }
.cc-badge.zakat  { background: var(--green-mid); color: var(--white); }
.cc-body    { padding: 1.1rem 1.1rem .75rem; flex: 1; display: flex; flex-direction: column; }
.cc-category { font-size: .66rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .09em; margin-bottom: .28rem; }
.cc-title   { font-family: 'Cormorant Garamond', serif; font-size: 1.18rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; line-height: 1.28; }
.cc-excerpt { font-size: .85rem; color: var(--text-light); line-height: 1.62; flex: 1; margin-bottom: .85rem; }
.cc-progress  { margin-bottom: .85rem; }
.cc-bar   { height: 7px; background: var(--cream-dark); border-radius: 4px; overflow: hidden; }
.cc-fill  { height: 100%; background: linear-gradient(90deg, var(--green-mid), var(--gold)); border-radius: 4px; transition: width .9s ease; }
.cc-meta  { display: flex; justify-content: space-between; font-size: .76rem; margin-top: .32rem; }
.cc-raised { font-weight: 700; color: var(--green-dark); }
.cc-goal   { color: var(--text-light); }
.cc-footer { padding: .85rem 1.1rem; border-top: 1px solid var(--cream-dark); display: flex; gap: .5rem; }
.cc-footer .btn { flex: 1; }

/* ============================================================
   POLICY BAR
============================================================ */
.policy-bar   { background: var(--green-mid); padding: .8rem 0; }
.policy-inner { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; justify-content: center; }
.policy-item  { display: flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.9); font-size: .76rem; font-weight: 500; }
.policy-icon  { font-size: .95rem; }

/* ============================================================
   STATS GRID  — 2 cols mobile
============================================================ */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.stat-card {
  text-align: center; padding: 1.5rem .65rem;
  background: rgba(255,255,255,.07); border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.1);
}
.stat-icon   { font-size: 1.55rem; margin-bottom: .5rem; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.35rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.stat-label  { font-size: .72rem; color: rgba(255,255,255,.62); margin-top: .38rem; line-height: 1.35; }

/* ============================================================
   GALLERY STRIP  — 3 cols mobile
============================================================ */
.gallery-strip { display: grid; grid-template-columns: repeat(3,1fr); height: 135px; overflow: hidden; }
.gallery-strip-item { overflow: hidden; }
.gallery-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-strip-item:hover img { transform: scale(1.07); }
.gallery-strip-item:nth-child(4),
.gallery-strip-item:nth-child(5) { display: none; }

/* ============================================================
   VIDEO SECTION
============================================================ */
.video-section  { padding: 2.75rem 0; background: var(--green-dark); }
.video-layout   { display: flex; flex-direction: column; gap: 2rem; }
.video-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16/9; background: #000; cursor: pointer;
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28); transition: opacity .3s;
}
.video-play-btn {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--gold); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; box-shadow: 0 4px 20px rgba(201,168,76,.5);
}
.video-text h2 { color: var(--white); font-size: clamp(1.38rem, 5vw, 2.1rem); margin-bottom: .72rem; }
.video-text p  { color: rgba(255,255,255,.75); line-height: 1.76; margin-bottom: 1.2rem; font-size: .9rem; }
.video-features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.6rem; }
.vf-item  { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.85); font-size: .86rem; }
.vf-icon  { width: 30px; height: 30px; border-radius: 50%; background: rgba(201,168,76,.18); display: flex; align-items: center; justify-content: center; font-size: .82rem; flex-shrink: 0; }

/* ============================================================
   ABOUT SECTION
============================================================ */
.about-layout   { display: flex; flex-direction: column; gap: 2rem; }
.about-images   { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.about-img-main { grid-column: 1/-1; border-radius: var(--radius-lg); overflow: hidden; height: 210px; }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-sub  { border-radius: var(--radius); overflow: hidden; height: 148px; }
.about-img-sub img  { width: 100%; height: 100%; object-fit: cover; }
.about-text h2  { color: var(--green-dark); font-size: clamp(1.5rem, 5vw, 2.3rem); margin-bottom: .82rem; }
.about-text p   { color: var(--text-mid); line-height: 1.78; margin-bottom: 1rem; font-size: .92rem; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: .72rem; margin-bottom: 1.65rem; }
.ah-item  { background: var(--cream); padding: .82rem .95rem; border-radius: var(--radius); border-left: 3px solid var(--gold); }
.ah-num   { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--gold); line-height: 1; }
.ah-label { font-size: .7rem; color: var(--text-light); margin-top: .1rem; }

/* ============================================================
   ZAKAT CALCULATOR
============================================================ */
.zakat-layout { display: flex; flex-direction: column; gap: 2rem; }
.zakat-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.65rem 1.2rem; box-shadow: var(--shadow-lg);
}
.zakat-box h3  { color: var(--green-dark); margin-bottom: .38rem; font-size: 1.25rem; }
.zakat-box > p { color: var(--text-light); margin-bottom: 1.4rem; font-size: .86rem; }
.zakat-field   { margin-bottom: 1rem; }
.zakat-field label { display: block; font-weight: 600; font-size: .8rem; color: var(--text-dark); margin-bottom: .32rem; }
.zakat-input {
  width: 100%; padding: .68rem .9rem; border: 2px solid var(--cream-dark);
  border-radius: var(--radius); font-size: .92rem; outline: none; transition: border .2s;
}
.zakat-input:focus { border-color: var(--gold); }
.zakat-result { background: var(--green-dark); color: var(--white); border-radius: var(--radius); padding: 1.3rem; margin-top: 1.3rem; display: none; }
.zakat-result.show { display: block; }
.zr-amount { font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; font-weight: 700; color: var(--gold); }
.zakat-info h3 { color: var(--green-dark); margin-bottom: .82rem; font-size: 1.22rem; }
.zakat-info p  { color: var(--text-mid); line-height: 1.76; margin-bottom: .82rem; font-size: .9rem; }
.nisab-box { background: var(--cream); border-radius: var(--radius); padding: 1.05rem; margin-top: .82rem; }
.nisab-box h4 { font-size: .82rem; color: var(--green-dark); margin-bottom: .6rem; }
.nisab-row { display: flex; justify-content: space-between; align-items: center; padding: .42rem 0; border-bottom: 1px solid var(--cream-dark); font-size: .8rem; }
.nisab-row:last-child { border: none; }
.nisab-val { font-weight: 700; color: var(--gold); }

/* ============================================================
   DONATE FORM
============================================================ */
.donate-section  { padding: 2.75rem 0; background: var(--green-dark); }
.donate-layout   { display: flex; flex-direction: column; gap: 2rem; }
.donate-form-box { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem 1.1rem; box-shadow: var(--shadow-lg); }
.donate-form-box h3  { color: var(--green-dark); margin-bottom: 1.2rem; font-size: 1.22rem; }
.donate-type-tabs    { display: flex; flex-wrap: wrap; gap: .32rem; margin-bottom: 1.2rem; }
.dtype-tab {
  padding: .38rem .82rem; border-radius: 50px; border: 2px solid var(--cream-dark);
  background: var(--white); font-size: .76rem; font-weight: 600; cursor: pointer;
  color: var(--text-mid); transition: all .2s; min-height: 38px;
}
.dtype-tab.active    { background: var(--green-mid); color: var(--white); border-color: var(--green-mid); }
.donate-amounts      { display: grid; grid-template-columns: repeat(4,1fr); gap: .38rem; margin-bottom: .82rem; }
.dam-btn {
  padding: .58rem .2rem; border: 2px solid var(--cream-dark); border-radius: var(--radius);
  background: var(--white); font-weight: 700; font-size: .85rem; cursor: pointer;
  color: var(--text-dark); transition: all .2s; text-align: center; min-height: 44px;
}
.dam-btn:hover, .dam-btn.active { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.donate-custom-row   { display: flex; gap: .45rem; margin-bottom: .95rem; }
.donate-custom {
  flex: 1; padding: .62rem .88rem; border: 2px solid var(--cream-dark);
  border-radius: var(--radius); font-size: .92rem; outline: none;
}
.donate-custom:focus { border-color: var(--gold); }
.donate-freq  { display: grid; grid-template-columns: repeat(4,1fr); gap: .32rem; margin-bottom: 1.2rem; }
.freq-btn {
  padding: .48rem .15rem; border: 2px solid var(--cream-dark); border-radius: var(--radius);
  background: var(--white); font-size: .73rem; font-weight: 600; cursor: pointer;
  color: var(--text-mid); text-align: center; transition: all .2s; min-height: 40px;
}
.freq-btn.active { background: var(--gold); color: var(--green-dark); border-color: var(--gold); }
.form-row     { display: grid; grid-template-columns: 1fr; gap: .62rem; margin-bottom: .62rem; }
.form-field   { display: flex; flex-direction: column; gap: .26rem; }
.form-field label { font-size: .78rem; font-weight: 600; color: var(--text-dark); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: .62rem .88rem; border: 2px solid var(--cream-dark);
  border-radius: var(--radius); font-size: .88rem; outline: none; transition: border .2s; width: 100%;
}
.form-field input:focus,
.form-field select:focus { border-color: var(--gold); }
.gift-aid-box { background: var(--cream); border-radius: var(--radius); padding: .88rem; margin: .82rem 0; border-left: 3px solid var(--gold); }
.gift-aid-box label { display: flex; gap: .62rem; align-items: flex-start; cursor: pointer; }
.gift-aid-box input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.gift-aid-box span { font-size: .76rem; color: var(--text-mid); line-height: 1.55; }
.donate-text    { color: rgba(255,255,255,.85); }
.donate-text h2 { color: var(--white); margin-bottom: .82rem; }
.donate-text p  { line-height: 1.78; margin-bottom: 1rem; font-size: .9rem; }
.bank-card { background: rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 1.35rem; border: 1px solid rgba(255,255,255,.13); margin-top: 1.65rem; }
.bank-card h4 { color: var(--gold); margin-bottom: .82rem; font-size: 1.02rem; }
.bank-row { display: flex; justify-content: space-between; align-items: center; padding: .52rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.bank-row:last-child { border: none; }
.bank-row span       { color: rgba(255,255,255,.56); }
.bank-row strong     { color: var(--white); }
.bank-row strong.highlight { color: var(--gold); }

/* ============================================================
   VERSE SECTION
============================================================ */
.verse-section {
  background: var(--green-dark); padding: 2.75rem 0;
  text-align: center; position: relative; overflow: hidden;
}
.verse-section::before {
  content: '﷽'; position: absolute; font-size: 10rem;
  color: rgba(255,255,255,.022); top: 50%; left: 50%;
  transform: translate(-50%,-50%); pointer-events: none;
}
.verse-arabic {
  font-size: clamp(1.35rem, 5vw, 2.55rem); color: var(--gold);
  font-family: 'Cormorant Garamond', serif; margin-bottom: .82rem;
  direction: rtl; line-height: 1.65;
}
.verse-translation { color: rgba(255,255,255,.72); font-size: .92rem; font-style: italic; max-width: 540px; margin: 0 auto .7rem; }
.verse-ref         { color: rgba(255,255,255,.36); font-size: .76rem; }

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.testimonial-card  {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.38rem;
  box-shadow: var(--shadow); border: 1px solid var(--cream-dark);
}
.tc-stars  { color: var(--gold); font-size: .92rem; margin-bottom: .62rem; letter-spacing: .1em; }
.tc-text   { font-style: italic; color: var(--text-mid); line-height: 1.7; margin-bottom: 1.05rem; font-size: .88rem; }
.tc-author { display: flex; align-items: center; gap: .62rem; }
.tc-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-mid); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.tc-name   { font-weight: 700; font-size: .84rem; color: var(--text-dark); }
.tc-loc    { font-size: .7rem; color: var(--text-light); }

/* ============================================================
   NEWS
============================================================ */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.news-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.nc-image  { height: 188px; overflow: hidden; }
.nc-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.nc-body   { padding: 1.05rem; }
.nc-date   { font-size: .7rem; color: var(--text-light); margin-bottom: .32rem; }
.nc-title  { font-family: 'Cormorant Garamond', serif; font-size: 1.06rem; font-weight: 700; color: var(--text-dark); margin-bottom: .42rem; line-height: 1.3; }
.nc-excerpt { font-size: .82rem; color: var(--text-light); line-height: 1.6; }

/* ============================================================
   CTA SECTION
============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 3rem 0; text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: .82rem; }
.cta-section p  { color: rgba(255,255,255,.78); font-size: .95rem; max-width: 520px; margin: 0 auto 1.65rem; }
.cta-buttons    { display: flex; flex-direction: column; align-items: center; gap: .72rem; }
.cta-buttons .btn { width: 100%; max-width: 300px; }

/* ============================================================
   FOOTER BANK STRIP
============================================================ */
.footer-bank-strip { background: var(--green-dark); padding: .62rem 0; border-top: 2px solid var(--gold); }
.fbs-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: .26rem; text-align: center; font-size: .74rem;
}
.fbs-item         { color: rgba(255,255,255,.62); }
.fbs-item strong  { color: var(--gold); }
.fbs-donate       { color: var(--gold); font-weight: 700; font-size: .76rem; }

/* ============================================================
   FOOTER
============================================================ */
.footer-main {
  background: #111e17; color: rgba(255,255,255,.66);
  padding: 2.75rem 0 1.5rem; text-align: center;
}
.footer-grid { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 2.25rem; }
.footer-brand .logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.18rem; font-weight: 700; color: var(--white); margin-bottom: .38rem; }
.footer-brand p  { font-size: .84rem; line-height: 1.72; margin: .6rem 0 1rem; }
.footer-col h4   { color: var(--white); font-family: 'Outfit', sans-serif; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .82rem; }
.footer-col ul   { display: flex; flex-direction: column; gap: .4rem; }
.footer-col ul a { font-size: .84rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-contact-item { display: flex; justify-content: center; gap: .52rem; align-items: flex-start; font-size: .8rem; margin-bottom: .6rem; }
.fci-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.4rem;
  display: flex; flex-direction: column; align-items: center;
  gap: .6rem; font-size: .73rem; text-align: center;
}
.footer-bottom a       { color: rgba(255,255,255,.48); }
.footer-bottom a:hover { color: var(--gold); }
.charity-number        { color: rgba(255,255,255,.36); }

/* ============================================================
   PAGE TEMPLATES
============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 3.25rem 0 2rem; color: var(--white);
}
.page-hero .section-label { color: var(--gold); }
.page-hero h1 { color: var(--white); font-size: clamp(1.6rem, 7vw, 2.75rem); }
.page-hero p  { color: rgba(255,255,255,.76); margin-top: .58rem; font-size: .95rem; }
.page-content { padding: 2.5rem 0; }
.page-content p { color: var(--text-mid); line-height: 1.82; margin-bottom: 1rem; }

/* ============================================================
   RESPONSIVE GRID UTILITY CLASSES
   Used in page templates instead of inline style= grids
============================================================ */
.haf-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.haf-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.haf-grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
/* gap variants */
.haf-grid-2.gap-lg { gap: 2rem; }
.haf-grid-3.gap-lg { gap: 1.75rem; }

/* ============================================================
   ANIMATIONS
============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ============================================================
   EMERGENCY BANNER
============================================================ */
.emergency-banner { background: linear-gradient(90deg,#c0392b,#e74c3c); color: var(--white); padding: .52rem 0; }
.eb-inner  { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.eb-pulse  { width: 8px; height: 8px; background: var(--white); border-radius: 50%; flex-shrink: 0; animation: pulse 1.5s infinite; }
.eb-text   { display: flex; align-items: center; gap: .6rem; flex: 1; flex-wrap: wrap; font-size: .8rem; }
.eb-text strong { font-weight: 700; }
.eb-btn    { background: var(--white); color: #c0392b; padding: .28rem .82rem; border-radius: 20px; font-weight: 700; font-size: .76rem; white-space: nowrap; }

/* ============================================================
   ADMIN BAR  — sticky navbar offset
============================================================ */
.admin-bar .navbar       { top: 32px; }
.admin-bar .mobile-nav   { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .navbar     { top: 46px; }
  .admin-bar .mobile-nav { top: 46px; }
}

/* ============================================================
   ≥ 640px — small tablet / large phone landscape
============================================================ */
@media (min-width: 640px) {
  h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
  h2 { font-size: clamp(1.65rem, 3.8vw, 2.5rem); }

  .campaigns-grid   { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .news-grid        { grid-template-columns: repeat(2,1fr); }
  .haf-grid-2       { grid-template-columns: repeat(2,1fr); }
  .haf-grid-3       { grid-template-columns: repeat(2,1fr); }

  .hero-buttons     { flex-direction: row; width: auto; }
  .hero-buttons .btn { width: auto; }
  .hero-trust {
    display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: .2rem;
  }
  .hero-trust span { color: rgba(255,255,255,.72); font-size: .76rem; display: flex; align-items: center; gap: .32rem; }
  .hero-trust span::before { content: '✓'; color: var(--gold); font-weight: 700; }

  .stats-grid    { gap: 1.25rem; }
  .stat-number   { font-size: 2.75rem; }

  .qd-amounts    { flex-wrap: nowrap; }
  .form-row      { grid-template-columns: 1fr 1fr; }
  .donate-amounts { grid-template-columns: repeat(4,1fr); }

  .fbs-inner     { flex-direction: row; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
  .gallery-strip { height: 170px; }

  .footer-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-main   { text-align: left; }
  .footer-contact-item { justify-content: flex-start; }
  .footer-brand p { text-align: left; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .cta-buttons   { flex-direction: row; justify-content: center; }
  .cta-buttons .btn { width: auto; }

  .section       { padding: 3.5rem 0; }
}

/* ============================================================
   ≥ 900px — desktop
============================================================ */
@media (min-width: 900px) {
  h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
  h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
  h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); }

  .container     { padding-left: 1.5rem; padding-right: 1.5rem; }
  .section       { padding: 5rem 0; }
  .section-header { margin-bottom: 3rem; }
  .section-header p { font-size: 1.05rem; }

  /* Topbar shown desktop */
  .topbar { display: block; background: var(--green-dark); color: rgba(255,255,255,.8); font-size: .8rem; padding: .5rem 0; }
  .topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
  .topbar a { color: rgba(255,255,255,.8); }
  .topbar a:hover { color: var(--gold); }
  .topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
  .topbar-item { display: flex; align-items: center; gap: .4rem; }
  .tb-bank { background: var(--gold); color: var(--green-dark); padding: .2rem .8rem; border-radius: 20px; font-weight: 700; font-size: .75rem; letter-spacing: .05em; }

  /* Navbar desktop */
  .nav-inner   { height: 72px; padding: 0 1.5rem; max-width: 1200px; margin: 0 auto; }
  .nav-logo img { width: 52px; height: 52px; }
  .nav-logo-text .logo-name { font-size: 1.2rem; }
  .nav-logo-text .logo-sub  { font-size: .72rem; }

  .nav-links        { display: flex; align-items: center; gap: .25rem; }
  /* Reset every element wp_nav_menu could generate */
  .nav-links ul               { display: flex !important; align-items: center !important; gap: .25rem !important; flex-wrap: nowrap !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
  .nav-links ul li            { list-style: none !important; margin: 0 !important; padding: 0 !important; display: block !important; }
  .nav-links ul li::marker    { display: none !important; content: '' !important; }
  .nav-links a,
  .nav-links ul li a {
    padding: .5rem .9rem; border-radius: 6px;
    font-weight: 500; font-size: .9rem; color: var(--text-mid);
    transition: all .2s; display: block; white-space: nowrap;
  }
  .nav-links a:hover,
  .nav-links ul li a:hover,
  .nav-links ul li.current-menu-item a,
  .nav-links ul li.current_page_item a { color: var(--green-dark); background: var(--cream); }

  .nav-actions { display: flex; align-items: center; gap: .75rem; }
  .hamburger   { display: none; }

  /* Hero */
  .hero        { min-height: 92vh; }
  .hero-content { max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem 3rem; }
  .hero-content > p { font-size: 1.1rem; max-width: 560px; }

  .hero-stats { display: block; position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; background: rgba(26,58,42,.85); backdrop-filter: blur(10px); }
  .hero-stats-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(5,1fr); }
  .hs-item { padding: 1.2rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
  .hs-item:last-child { border-right: none; }
  .hs-number { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }
  .hs-label  { font-size: .7rem; color: rgba(255,255,255,.6); margin-top: .2rem; }

  /* Sections */
  .quick-donate { padding: 1.25rem 0; }
  .qd-inner     { flex-direction: row; align-items: center; gap: 1.5rem; }

  .campaigns-grid { grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

  .stats-grid     { grid-template-columns: repeat(4,1fr); gap: 2rem; }
  .stat-number    { font-size: 3rem; }
  .stat-card      { padding: 2rem 1rem; }
  .stat-label     { font-size: .85rem; }

  .gallery-strip  { height: 220px; grid-template-columns: repeat(5,1fr); }
  .gallery-strip-item:nth-child(4),
  .gallery-strip-item:nth-child(5) { display: block; }

  .video-section  { padding: 5rem 0; }
  .video-layout   { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

  .about-layout   { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .about-img-main { height: 260px; }
  .about-img-sub  { height: 180px; }

  .zakat-layout   { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .zakat-box      { padding: 2.5rem; }

  .donate-section { padding: 5rem 0; }
  .donate-layout  { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .donate-form-box { padding: 2.5rem; }
  .form-row       { grid-template-columns: 1fr 1fr; }

  .testimonials-grid { grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
  .news-grid         { grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

  .cta-section    { padding: 5rem 0; }
  .fbs-inner      { flex-direction: row; gap: 2rem; }

  .footer-grid    { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
  .footer-main    { padding: 4rem 0 2rem; }
  .footer-bottom  { padding-top: 2rem; }

  .haf-grid-2     { grid-template-columns: repeat(2,1fr); }
  .haf-grid-3     { grid-template-columns: repeat(3,1fr); }
  .haf-grid-4     { grid-template-columns: repeat(4,1fr); }

  .verse-section  { padding: 4rem 0; }
  .page-hero      { padding: 5rem 0 3rem; }
  .page-content   { padding: 4rem 0; }

  /* Hover effects desktop only */
  .campaign-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
  .btn-gold:hover      { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,.4); }
  .btn-green:hover     { transform: translateY(-2px); }
  .stat-card:hover     { transform: translateY(-3px); }
  .news-card:hover     { transform: translateY(-3px); }
  .news-card:hover .nc-image img { transform: scale(1.04); }
}

/* ============================================================
   ≥ 1024px — large desktop tidy-up
   Restores any spacing that regressed during mobile-first work
============================================================ */
@media (min-width: 1024px) {
  /* Campaigns grid from shortcode — override the base single-col */
  .campaigns-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .campaigns-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .campaigns-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }

  /* Tighten nav spacing on wide screens */
  .nav-inner { height: 72px; }

  /* Section vertical rhythm */
  .section { padding: 5rem 0; }
  .quick-donate { padding: 1.25rem 0; }

  /* Hero adjustments */
  .hero { min-height: 92vh; }
  .hero-content { padding: 6rem 1.5rem 4rem; max-width: 1200px; margin: 0 auto; }
  .hero-content h1 { font-size: clamp(2.6rem, 4vw, 3.8rem); }
  .hero-content > p { font-size: 1.1rem; max-width: 580px; }

  /* Stats bar below hero */
  .hs-number { font-size: 2.1rem; }

  /* Cards */
  .campaign-card:hover { transform: translateY(-5px); }
  .cc-image { height: 235px; }

  /* About images */
  .about-img-main { height: 300px; }
  .about-img-sub  { height: 200px; }

  /* Footer 4 cols */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* ============================================================
   MOBILE OVERFLOW CRITICAL FIXES  (v6)
   Prevents white side borders and overflowing elements
============================================================ */
*, *::before, *::after { max-width: 100%; }
section, div, header, footer, nav { max-width: 100%; }

/* Fix quick donate bar on mobile */
.quick-donate { overflow: hidden; }
.qd-inner     { max-width: 100%; padding: 0 1rem; }
.qd-amounts   { max-width: 100%; }
.qd-btn       { min-width: 0; flex: 1 1 0; }

/* Fix donate amounts grid on mobile */
.donate-amounts { grid-template-columns: repeat(4,1fr); }
@media (max-width: 360px) {
  .donate-amounts { grid-template-columns: repeat(3,1fr); }
  .donate-freq    { grid-template-columns: repeat(2,1fr); }
  .donate-type-tabs .dtype-tab { padding: .32rem .55rem; font-size: .7rem; }
}

/* Fix marquee overflow */
.marquee-bar { overflow: hidden; width: 100%; }

/* Fix hero on mobile */
.hero { overflow: hidden; }
.hero-content { padding: 5rem 1rem 5rem; width: 100%; box-sizing: border-box; }

/* Fix any section that could overflow */
.policy-bar, .cta-section, .verse-section,
.donate-section, .video-section { overflow: hidden; }

/* Fix footer on mobile */
.footer-main { overflow: hidden; }

/* ============================================================
   WATER AID SECTION  (v6 — new)
============================================================ */
.water-section {
  padding: 2.75rem 0;
  background: linear-gradient(180deg, #e8f4f8 0%, #d0eaf5 100%);
  position: relative; overflow: hidden;
}
.water-section::before {
  content: '💧';
  position: absolute; font-size: 12rem; opacity: .06;
  right: -2rem; top: 50%; transform: translateY(-50%);
  pointer-events: none;
}
.water-layout {
  display: flex; flex-direction: column; gap: 2rem;
}
.water-text h2    { color: #1a4a6b; }
.water-text .section-label { color: #1a7ab4; }
.water-text .section-label::before { background: #1a7ab4; }
.water-text p     { color: #2d4a5e; line-height: 1.78; font-size: .92rem; margin-bottom: 1rem; }
.water-stats-row  { display: grid; grid-template-columns: 1fr 1fr; gap: .72rem; margin: 1.2rem 0; }
.water-stat       { background: rgba(26,122,180,.12); border-radius: var(--radius); padding: .82rem; text-align: center; border: 1px solid rgba(26,122,180,.2); }
.water-stat-num   { font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; font-weight: 700; color: #1a7ab4; line-height: 1; }
.water-stat-label { font-size: .68rem; color: #2d4a5e; margin-top: .22rem; }
.water-features   { display: flex; flex-direction: column; gap: .72rem; margin-bottom: 1.5rem; }
.wf-item { display: flex; align-items: center; gap: .72rem; }
.wf-icon { width: 36px; height: 36px; background: #1a7ab4; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.wf-text { font-size: .88rem; color: #2d4a5e; line-height: 1.52; }
.water-images { display: grid; grid-template-columns: 1fr 1fr; gap: .72rem; }
.water-img-main { grid-column: 1 / -1; border-radius: var(--radius-lg); overflow: hidden; height: 200px; }
.water-img-main img { width: 100%; height: 100%; object-fit: cover; }
.water-img-sub  { border-radius: var(--radius); overflow: hidden; height: 140px; }
.water-img-sub img  { width: 100%; height: 100%; object-fit: cover; }
.btn-water { background: #1a7ab4; color: var(--white); }
.btn-water:hover { background: #155f8f; transform: translateY(-2px); }

@media (min-width: 640px) {
  .water-stats-row { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .water-section  { padding: 5rem 0; }
  .water-layout   { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .water-img-main { height: 260px; }
  .water-img-sub  { height: 175px; }
  .water-stats-row { grid-template-columns: repeat(2,1fr); gap: 1rem; }
}

/* ============================================================
   PHOTO GALLERY SECTION (v6 — new)
============================================================ */
.photo-gallery-section { padding: 2.75rem 0; background: var(--white); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}
.photo-grid-item { border-radius: var(--radius); overflow: hidden; }
.photo-grid-item img { width: 100%; height: 160px; object-fit: cover; transition: transform .4s; display: block; }
.photo-grid-item:hover img { transform: scale(1.06); }
.photo-grid-item.tall img { height: 220px; }

@media (min-width: 640px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: .8rem; }
  .photo-grid-item img { height: 180px; }
  .photo-grid-item.tall img { height: 250px; }
}
@media (min-width: 900px) {
  .photo-gallery-section { padding: 5rem 0; }
  .photo-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .photo-grid-item img { height: 200px; }
  .photo-grid-item.tall img { height: 290px; }
}

/* ============================================================
   FUNDRAISING POSTER SECTION  (v6 — new)
============================================================ */
.poster-section {
  padding: 2.75rem 0;
  background: var(--green-dark);
  text-align: center;
}
.poster-inner { max-width: 600px; margin: 0 auto; }
.poster-inner h2 { color: var(--white); margin-bottom: .72rem; }
.poster-inner p  { color: rgba(255,255,255,.72); margin-bottom: 1.5rem; font-size: .92rem; }
.poster-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 1.5rem; }
.poster-img img { width: 100%; height: auto; display: block; }
@media (min-width: 900px) { .poster-section { padding: 4rem 0; } }

/* ============================================================
   IMPACT STORIES SECTION  (v6 — enhanced)
============================================================ */
.impact-section { padding: 2.75rem 0; background: var(--cream); }
.impact-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.impact-card-img { height: 200px; overflow: hidden; }
.impact-card-img img { width: 100%; height: 100%; object-fit: cover; }
.impact-card-body { padding: 1.2rem; flex: 1; }
.impact-card-tag  { display: inline-block; background: var(--gold); color: var(--green-dark); font-size: .66rem; font-weight: 700; text-transform: uppercase; padding: .2rem .65rem; border-radius: 20px; margin-bottom: .72rem; letter-spacing: .08em; }
.impact-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.12rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; line-height: 1.3; }
.impact-card-text  { font-size: .84rem; color: var(--text-light); line-height: 1.65; }
@media (min-width: 900px) { .impact-section { padding: 5rem 0; } }


/* ============================================================
   QUICK DONATE — container fix (v6)
   front-page now wraps qd-inner in .container
============================================================ */
.quick-donate .container .qd-inner {
  display: flex; flex-direction: column; gap: .72rem;
}
@media (min-width: 900px) {
  .quick-donate .container .qd-inner {
    flex-direction: row; align-items: center; gap: 1.5rem;
  }
}

/* ============================================================
   FOOTER SOCIAL ICONS  (v6)
============================================================ */
.footer-logo-wrap {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem;
}
.footer-logo-img {
  width: 44px; height: 44px; object-fit: contain; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.footer-social {
  display: flex; gap: .5rem; margin-top: .75rem;
}
.fsoc-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: all .2s; flex-shrink: 0;
  text-decoration: none;
}
.fsoc-btn:hover { background: var(--gold); color: var(--green-dark); border-color: var(--gold); }

/* Footer legal links */
.footer-legal-links { display: flex; gap: 1.25rem; }
.footer-legal-links a { color: rgba(255,255,255,.48); }
.footer-legal-links a:hover { color: var(--gold); }

/* ============================================================
   SINGLE CAMPAIGN LAYOUT  (v6 — responsive)
============================================================ */
.campaign-single-layout {
  display: flex; flex-direction: column; gap: 2rem;
}
.campaign-single-img {
  border-radius: var(--radius-lg); overflow: hidden;
  height: 260px; margin-bottom: 1.5rem;
}
.campaign-single-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.campaign-single-body { color: var(--text-mid); line-height: 1.82; font-size: .95rem; }
.campaign-single-body p { margin-bottom: 1rem; }
.campaign-single-body h2,
.campaign-single-body h3 { color: var(--green-dark); margin: 1.5rem 0 .75rem; }

/* Donate box */
.campaign-donate-box {
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-dark);
}
.cdb-progress { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--cream-dark); }
.cdb-raised { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.cdb-raised-amount { font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; font-weight: 700; color: var(--green-dark); }
.cdb-raised-goal { font-size: .82rem; color: var(--text-light); }
.cdb-pct { font-size: .78rem; color: var(--text-light); margin-top: .32rem; }
.cdb-title { color: var(--green-dark); margin-bottom: 1rem; font-size: 1.05rem; }
.cdb-amounts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .38rem; margin-bottom: .82rem; }
.cdb-bank { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--cream-dark); }
.cdb-bank-label { font-size: .78rem; color: var(--text-light); margin-bottom: .32rem; }
.cdb-bank-details { font-size: .82rem; color: var(--text-dark); line-height: 1.65; }

@media (min-width: 768px) {
  .campaign-single-layout {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start;
  }
  .campaign-single-img { height: 380px; }
  .campaign-donate-box { position: sticky; top: 90px; }
}

/* ============================================================
   DONATE PAGE — standalone Zakat fix  (v6)
   Zakat calc inside donate text column gets own treatment
============================================================ */
.donate-text .zakat-box { background: rgba(255,255,255,.06); }
.donate-text .zakat-box h3 { color: var(--white); }
.donate-text .zakat-box > p { color: rgba(255,255,255,.65); }
.donate-text .zakat-field label { color: rgba(255,255,255,.8); }
.donate-text .zakat-input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: var(--white); }
.donate-text .zakat-input::placeholder { color: rgba(255,255,255,.35); }
.donate-text .zakat-input:focus { border-color: var(--gold); }

/* ============================================================
   HERO EYEBROW  (v6 — ensure it renders correctly)
============================================================ */
.hero-eyebrow {
  display: flex; align-items: center; gap: .52rem;
  margin-bottom: 1rem;
}
.he-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201,168,76,.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,168,76,.3); }
  50%       { box-shadow: 0 0 0 6px rgba(201,168,76,.1); }
}
.hero-eyebrow span {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(255,255,255,.8);
}

/* ============================================================
   FOOTER BANK STRIP — container fix  (v6)
============================================================ */
.footer-bank-strip .fbs-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: .26rem; text-align: center; font-size: .74rem;
  flex-wrap: wrap;
}
@media (min-width: 640px) {
  .footer-bank-strip .fbs-inner {
    flex-direction: row; justify-content: center; gap: 1.25rem;
  }
}

/* ============================================================
   GENERAL LINK & BUTTON HOVER POLISH  (v6)
============================================================ */
a { transition: color .2s; }

/* Make sure .btn never overflows its container on any screen */
.btn { max-width: 100%; }

/* Hero on mobile — tighter padding to prevent content clipping */
@media (max-width: 480px) {
  .hero-content { padding: 4rem .9rem 4.5rem; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero-content > p { font-size: .88rem; }
  .hero-buttons { gap: .55rem; }
  .donate-amounts { grid-template-columns: repeat(3, 1fr); }
  .donate-freq    { grid-template-columns: repeat(2, 1fr); }
}

