/*
Theme Name: Etdal Foundation
Theme URI: https://etdalfoundation.org
Author: OutSprout
Description: Custom-built theme for Etdal Foundation — an educational and welfare NGO. Hand-coded, no page builder.
Version: 1.0
Text Domain: etdal
*/

:root{
  --teal:#1a5c5e;
  --teal-deep:#123f40;
  --turquoise:#05b6ab;
  --dim-gray:#6b6c6c;
  --cool-gray:#c0bfbf;
  --cool-gray-bg:#f2f4f3;
  --white:#ffffff;
  --radius-lg:28px;
  --radius-md:18px;
  --maxw:1240px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Poppins', sans-serif;
  color:var(--dim-gray);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,.display{
  font-family:'Josefin Sans', sans-serif;
  color:var(--teal-deep);
  line-height:1.08;
}
a{text-decoration:none; color:inherit;}
button{font-family:inherit; cursor:pointer; border:none; background:none;}
ul{list-style:none;}
img{max-width:100%; display:block;}
:focus-visible{outline:3px solid var(--turquoise); outline-offset:3px;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}
.wrap-full{max-width:1560px; margin:0 auto; padding:0 64px;}

/* ---------- HEADER / NAV ---------- */
.site-header{position:absolute; top:0; left:0; right:0; z-index:50; background:var(--teal-deep);}

.utility-bar{padding:20px 0;}
.utility-inner{display:flex; align-items:center; justify-content:flex-end; gap:14px;}

.nav{
  padding:16px 0 26px;
  background:linear-gradient(to bottom, rgba(9,36,37,.5) 0%, rgba(9,36,37,0) 100%);
}
.nav-row{display:flex; align-items:center; justify-content:space-between; gap:32px;}

.logo{display:flex; align-items:center; gap:12px; height:76px; overflow:hidden; flex-shrink:0;}
.logo-img{display:block;}
.logo-text{font-family:'Josefin Sans'; font-weight:700; font-size:1.4rem; letter-spacing:.5px; color:var(--white); white-space:nowrap;}
.logo-text span{display:block; font-weight:400; font-size:.8rem; letter-spacing:2px; color:rgba(255,255,255,.75);}

.nav-menu-wrap{display:flex; flex:1; justify-content:flex-end;}
.nav-links{display:flex; gap:24px; flex-wrap:nowrap; white-space:nowrap;}
.nav-links li{position:relative; padding-bottom:16px; margin-bottom:-16px;}
.nav-links a{
  color:rgba(255,255,255,.85); font-size:1.05rem; font-weight:500;
  transition:color .25s ease;
  position:relative;
}
.nav-links a:hover, .nav-links .current-menu-item a{color:var(--turquoise);}
.nav-links > li:not(.menu-item-has-children) > a::after{
  content:''; position:absolute; left:0; right:0; bottom:-4px; height:2px;
  background:var(--turquoise); transform:scaleX(0); transform-origin:left;
  transition:transform .25s ease;
}
.nav-links > li:not(.menu-item-has-children) > a:hover::after{transform:scaleX(1);}
.nav-links .menu-item-has-children > a::after{content:'▾'; margin-left:6px; font-size:.7em; opacity:.8;}

/* mega menu (e.g. Markaz e Etdal facilities, Education > Makatib) */
.nav-links .sub-menu{
  position:absolute; top:calc(100% + 16px); left:0; width:max-content; max-width:520px;
  background:var(--white); border-radius:16px; padding:14px;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.28);
  opacity:0; visibility:hidden; transform:translateY(-10px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index:20;
  display:grid; grid-template-columns:repeat(2, minmax(180px, 1fr)); gap:4px;
}
.nav-links li:hover .sub-menu, .nav-links li:focus-within .sub-menu{
  opacity:1; visibility:visible; transform:translateY(0);
}
.nav-links .sub-menu li{padding-bottom:0; margin-bottom:0;}
.nav-links .sub-menu a{
  display:block; padding:14px 18px; border-radius:10px;
  font-size:.95rem; color:var(--teal-deep) !important; white-space:normal;
}
.nav-links .sub-menu a:hover{background:var(--cool-gray-bg); color:var(--turquoise) !important;}

.nav-right{display:none;} /* legacy — donate/lang now live in utility bar */

.btn-donate{
  background:var(--turquoise); color:var(--white);
  padding:10px 24px; border-radius:999px; font-weight:600; font-size:.86rem;
  transition:transform .25s ease, background .25s ease; display:inline-block; white-space:nowrap;
}
.btn-donate:hover{background:#04a096; transform:translateY(-2px);}
.lang-pill{
  display:flex; align-items:center; gap:6px; color:rgba(255,255,255,.85);
  font-size:.82rem; border:1px solid rgba(255,255,255,.3); padding:6px 13px; border-radius:999px;
  white-space:nowrap;
}
.lang-switcher{position:relative;}
.lang-pill-trigger{background:none; cursor:pointer; font-family:inherit;}
.lang-pill-trigger .lang-caret{font-size:.7em; transition:transform .2s ease;}
.lang-pill-trigger[aria-expanded="true"] .lang-caret{transform:rotate(180deg);}
.lang-dropdown{
  display:none; position:absolute; top:calc(100% + 8px); right:0; margin:0; padding:6px 0;
  list-style:none; min-width:150px; background:#fff; border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.18); z-index:80; text-align:left;
}
.lang-dropdown.open{display:block;}
.lang-dropdown li a{
  display:block; padding:9px 18px; color:#1a5c5e; text-decoration:none;
  font-size:.85rem; font-family:'Poppins',sans-serif; white-space:nowrap;
}
.lang-dropdown li a:hover{background:#f2f5f4;}
.lang-dropdown li a.is-current{font-weight:600; color:#05b6ab;}
html[dir="rtl"] .lang-dropdown{right:auto; left:0; text-align:right;}

/* mobile menu toggle */
.menu-toggle{
  display:none; flex-direction:column; gap:5px; width:32px; height:24px; z-index:60;
}
.menu-toggle span{
  display:block; width:100%; height:2px; background:var(--white); border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  min-height:100vh;
  background:
    radial-gradient(ellipse at 75% 15%, rgba(5,182,171,.35), transparent 55%),
    linear-gradient(150deg, var(--teal-deep) 0%, var(--teal) 55%, #0f4547 100%);
  display:flex; align-items:center;
  padding:260px 0 120px;
  overflow:hidden;
}
.hero .wrap{position:relative; z-index:2; width:100%;}
.hero-grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:start;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  color:var(--turquoise); font-size:.82rem; font-weight:600; letter-spacing:1.5px;
  text-transform:uppercase; margin-bottom:22px;
}
.eyebrow::before{content:''; width:28px; height:1px; background:var(--turquoise);}
.hero h1{
  font-size:clamp(2.4rem, 4.6vw, 4.1rem);
  font-weight:700; color:var(--white); max-width:640px;
  letter-spacing:-.5px;
}
.hero-sub{
  color:rgba(255,255,255,.82); font-size:1.08rem; font-weight:300;
  max-width:440px; margin:26px 0 36px; line-height:1.7;
}
.btn-primary{
  background:var(--white); color:var(--teal-deep);
  padding:16px 30px; border-radius:999px; font-weight:600; font-size:.95rem;
  transition:transform .25s ease, box-shadow .25s ease; display:inline-block;
}
.btn-primary:hover{transform:translateY(-3px); box-shadow:0 14px 30px rgba(0,0,0,.25);}

/* On light/white section backgrounds, invert so the button stays visible everywhere */
.involved-section .btn-primary,
.vm-section .btn-primary,
.directory-hero .btn-primary,
section.section:not(.markaz-spotlight):not(.live-section) > .wrap > .btn-primary{
  background:var(--turquoise); color:var(--white);
}
.involved-section .btn-primary:hover,
.vm-section .btn-primary:hover,
.directory-hero .btn-primary:hover,
section.section:not(.markaz-spotlight):not(.live-section) > .wrap > .btn-primary:hover{
  background:var(--teal-deep);
}

/* CTA buttons everywhere: turquoise fill */
.cta-band .btn-primary{background:var(--turquoise); color:var(--white);}
.cta-band .btn-primary:hover{background:var(--teal-deep);}

/* floating cards */
.card-stack{position:relative; min-height:520px;}
.float-card{
  position:absolute; background:var(--white); border-radius:var(--radius-md);
  box-shadow:0 30px 60px -15px rgba(0,0,0,.35);
  animation:rise .9s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes rise{
  from{opacity:0; transform:translateY(28px);}
  to{opacity:1; transform:translateY(0);}
}
.card-image{
  width:100%; aspect-ratio:16/10; border-radius:var(--radius-md) var(--radius-md) 0 0;
  background:linear-gradient(135deg, var(--turquoise), var(--teal));
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.55); font-size:.72rem; letter-spacing:1px; text-transform:uppercase;
}
.card-body{padding:20px 22px 24px;}
.card-eyebrow{font-size:.72rem; text-transform:uppercase; letter-spacing:1px; color:var(--turquoise); font-weight:600; margin-bottom:6px;}
.card-title{font-family:'Josefin Sans'; font-weight:600; font-size:1.25rem; color:var(--teal-deep);}

.card-1{ width:300px; top:0; right:60px; animation-delay:.1s;}
.card-2{
  width:230px; bottom:0; right:0; animation-delay:.3s;
  padding:22px; display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.card-2 .stat-num{font-family:'Josefin Sans'; font-size:2.1rem; font-weight:700; color:var(--teal-deep);}
.card-2 .stat-label{font-size:.78rem; color:var(--dim-gray);}
.badge-mark{
  width:88px; height:88px; border-radius:50%; background:var(--cool-gray-bg);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.badge-mark svg{width:44px; height:44px;}
.card-3{
  width:190px; bottom:64px; left:0; animation-delay:.5s; padding:18px;
}
.card-3 .card-eyebrow{margin-bottom:4px;}
.card-3 .card-title{font-size:1rem;}

.scroll-tag{
  position:absolute; right:8px; bottom:40px; z-index:3;
  display:flex; flex-direction:column; align-items:center; gap:14px;
}
.scroll-tag span{
  writing-mode:vertical-rl; color:rgba(255,255,255,.6); font-size:.72rem;
  letter-spacing:3px;
}
.scroll-line{width:1px; height:50px; background:rgba(255,255,255,.35);}

/* ---------- IMPACT BAR ---------- */
.impact{background:var(--teal-deep); margin-top:-1px; padding:50px 0;}
.impact-inner{
  display:grid; grid-template-columns:repeat(6,1fr); gap:18px;
}
.impact-item{
  background:rgba(255,255,255,.06); border-radius:var(--radius-md);
  box-shadow:0 20px 40px -18px rgba(0,0,0,.4);
  padding:32px 18px; text-align:center;
}
.impact-num{font-family:'Josefin Sans'; font-weight:700; font-size:2.1rem; color:var(--turquoise);}
.impact-label{font-size:.76rem; color:rgba(255,255,255,.7); margin-top:6px; line-height:1.4;}

/* ---------- WHO WE ARE ---------- */
.section{padding:120px 0;}
.who{background:var(--white); position:relative;}
.who-grid{display:grid; grid-template-columns:.85fr 1.15fr; gap:70px; align-items:center;}
.who-visual{
  aspect-ratio:4/5; border-radius:var(--radius-lg);
  background:linear-gradient(160deg, var(--turquoise) 0%, var(--teal) 100%);
  position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.who-visual span{color:rgba(255,255,255,.55); font-size:.8rem; letter-spacing:1px;}
.section-label{
  display:flex; align-items:center; gap:10px; color:var(--turquoise);
  font-size:.82rem; font-weight:600; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:18px;
}
.section-label::before{content:''; width:28px; height:1px; background:var(--turquoise);}
.who h2{font-size:clamp(1.9rem,3vw,2.6rem); margin-bottom:24px; max-width:520px;}
.who p{font-size:1rem; line-height:1.85; max-width:540px; margin-bottom:18px; font-weight:300;}
.tagline-block{
  margin:32px 0 30px; padding:24px 28px; border-left:3px solid var(--turquoise);
  background:var(--cool-gray-bg); border-radius:0 var(--radius-md) var(--radius-md) 0;
}
.tagline-ar{font-size:1.3rem; color:var(--teal-deep); font-weight:600; margin-bottom:8px;}
.tagline-en{font-size:.9rem; font-style:italic; color:var(--dim-gray);}
.link-cta{
  display:inline-flex; align-items:center; gap:10px; color:var(--teal-deep);
  font-weight:600; font-size:.95rem; border-bottom:2px solid var(--turquoise); padding-bottom:4px;
}

/* ---------- THREE PILLARS ---------- */
.pillars{background:var(--cool-gray-bg);}
.pillars-head{max-width:600px; margin-bottom:60px;}
.pillars-head h2{font-size:clamp(1.9rem,3vw,2.6rem);}
.pillars-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
.pillar-card{
  background:var(--white); border-radius:var(--radius-md); padding:40px 32px;
  transition:transform .3s ease, box-shadow .3s ease;
}
.pillar-card:hover{transform:translateY(-8px); box-shadow:0 24px 44px -18px rgba(26,92,94,.28);}
.pillar-icon{
  width:116px; height:116px; border-radius:50%; background:var(--teal-deep);
  display:flex; align-items:center; justify-content:center; margin-bottom:26px;
}
.pillar-icon svg{width:52px; height:52px;}
.pillar-card h3{font-size:1.35rem; margin-bottom:14px;}
.pillar-card p{font-size:.92rem; line-height:1.75; font-weight:300; margin-bottom:22px;}
.pillar-link{
  display:inline-flex; align-items:center; gap:8px; font-size:.88rem; font-weight:600; color:var(--turquoise);
}
.pillar-link svg{width:14px; height:14px; transition:transform .25s ease;}
.pillar-card:hover .pillar-link svg{transform:translateX(4px);}

/* ---------- MARKAZ SPOTLIGHT ---------- */
.markaz-spotlight{background:var(--teal-deep);}
.markaz-grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:70px; align-items:center;}
.markaz-visual{
  aspect-ratio:4/5; border-radius:var(--radius-lg);
  background:linear-gradient(160deg, var(--turquoise) 0%, var(--teal) 100%);
  display:flex; align-items:center; justify-content:center;
}
.markaz-visual span{color:rgba(255,255,255,.5); font-size:.8rem; letter-spacing:1px;}
.markaz-spotlight h2{font-size:clamp(1.9rem,3vw,2.6rem); margin-bottom:22px;}
.markaz-spotlight p{font-size:1rem; line-height:1.85; font-weight:300; margin-bottom:16px; max-width:540px;}

/* ---------- ETDAL LIVE ---------- */
.live-section{background:var(--cool-gray-bg);}
.live-inner{display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap;}
.live-inner h2{font-size:clamp(1.7rem,2.6vw,2.2rem); margin:14px 0 12px;}
.live-inner p{font-size:1rem; max-width:520px; font-weight:300; line-height:1.7;}
.btn-teal{background:var(--turquoise); color:var(--white); white-space:nowrap;}
.btn-teal:hover{background:var(--teal);}

/* ---------- GET INVOLVED ---------- */
.involved-section{background:#6b6c6c; text-align:center;}
.involved-section h2{font-size:clamp(1.9rem,3vw,2.6rem); margin-bottom:18px; color:var(--white);}
.involved-text{max-width:600px; margin:0 auto 50px; font-size:1rem; font-weight:300; line-height:1.8; color:rgba(255,255,255,.85);}
.involved-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; text-align:left;}
.involved-card{
  display:block; background:var(--cool-gray-bg); border-radius:var(--radius-md);
  padding:34px 30px; transition:transform .3s ease, box-shadow .3s ease;
}
.involved-card:hover{transform:translateY(-6px); box-shadow:0 20px 38px -16px rgba(26,92,94,.25);}
.involved-card h3{font-size:1.2rem; margin-bottom:8px;}
.involved-card p{font-size:.9rem; color:var(--dim-gray); font-weight:300;}
.involved-card-accent{background:var(--teal-deep);}
.involved-card-accent h3, .involved-card-accent p{color:var(--white);}
.involved-card-accent p{color:rgba(255,255,255,.75);}

/* ---------- DIRECTORY PAGES (Mosques / Makatib) ---------- */
.directory-hero .section-label{color:var(--turquoise);}

.directory-grid-section{padding-top:70px;}
.directory-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
.directory-card{
  display:block; background:var(--cool-gray-bg); border-radius:var(--radius-md); overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease;
}
.directory-card:hover{transform:translateY(-6px); box-shadow:0 22px 40px -16px rgba(26,92,94,.25);}
.directory-card-image{
  aspect-ratio:4/3; background:linear-gradient(135deg, var(--turquoise), var(--teal));
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.55); font-size:.72rem; letter-spacing:1px; text-transform:uppercase;
}
.directory-card-body{padding:22px 24px 26px;}
.directory-card-body h3{font-size:1.15rem; margin-bottom:10px;}
.directory-meta{font-size:.88rem; color:var(--teal-deep); font-weight:500; margin-bottom:4px;}
.directory-meta-light{font-size:.82rem; color:var(--dim-gray); margin-top:6px;}

.curriculum-snapshot{background:var(--cool-gray-bg);}
.curriculum-snapshot h2{font-size:clamp(1.7rem,2.6vw,2.2rem); margin:14px 0 16px;}
.curriculum-snapshot p{max-width:680px; font-size:1rem; line-height:1.8; font-weight:300;}

.single-directory-hero{padding:250px 0 100px;}
.single-directory-grid{display:grid; grid-template-columns:1fr 1.2fr; gap:60px; align-items:center;}
.single-directory-image{
  aspect-ratio:4/3; border-radius:var(--radius-lg);
  background:linear-gradient(135deg, var(--turquoise), var(--teal));
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.55); font-size:.8rem; letter-spacing:1px;
}
.single-directory-hero h1{font-size:clamp(2rem,3.2vw,2.8rem); margin-bottom:16px;}
html[lang="ur"] .single-directory-hero h1, html[lang="ar"] .single-directory-hero h1{line-height:1.9;}
.single-directory-meta{font-size:1rem; color:var(--dim-gray); margin-bottom:6px;}

/* ---------- ABOUT US ---------- */
.about-story p{max-width:720px; font-size:1.05rem; line-height:1.9; font-weight:300; margin-bottom:22px;}
.vm-section{background:var(--cool-gray-bg); padding:80px 0;}
.vm-grid{display:grid; grid-template-columns:1fr 1fr; gap:28px;}
.vm-card{background:var(--white); border-radius:var(--radius-md); padding:38px 34px;}
.vm-card h3{color:var(--turquoise); font-size:1rem; text-transform:uppercase; letter-spacing:1.5px; margin-bottom:16px;}

/* ---------- CONTENT-PAGE HERO ---------- */
.directory-hero{padding:260px 0 70px; background:var(--cool-gray-bg);}
.directory-hero h1{font-size:clamp(2rem, 3.6vw, 2.9rem); color:var(--teal-deep); font-weight:700; margin:14px 0 18px; max-width:760px;}
.directory-intro{font-size:1.05rem; color:var(--dim-gray); max-width:680px; line-height:1.8; font-weight:300;}
.directory-grid-section{padding:70px 0 100px;}

/* ---------- PROGRAM CARDS (Education / Welfare sections) ---------- */
.program-row{
  display:grid; grid-template-columns:.8fr 1.2fr; gap:0; align-items:stretch;
  background:var(--white); border-radius:var(--radius-md); overflow:hidden;
  box-shadow:0 24px 50px -28px rgba(18,63,64,.22); margin-bottom:32px;
}
.program-row-reverse{grid-template-columns:1.2fr .8fr;}
.program-row-reverse .program-image{order:2;}
.program-row-reverse .program-text{order:1;}
.program-image{
  background:linear-gradient(135deg, var(--turquoise), var(--teal));
  display:flex; align-items:center; justify-content:center; min-height:220px;
  color:rgba(255,255,255,.6); font-size:.72rem; letter-spacing:1px; text-transform:uppercase;
}
.program-text{padding:40px 44px;}
.program-text .section-label{margin-bottom:14px;}
.program-text p{font-size:.98rem; line-height:1.85; font-weight:300; margin-bottom:18px;}

/* ---------- BUILDING / OUTREACH CARDS ---------- */
.building-grid{display:grid; gap:26px; margin-top:10px;}
.building-card{
  background:var(--white); border-radius:var(--radius-md); overflow:hidden; display:block;
  box-shadow:0 24px 50px -28px rgba(18,63,64,.22); transition:transform .25s ease, box-shadow .25s ease;
  text-decoration:none; color:inherit;
}
.building-card:hover{transform:translateY(-6px); box-shadow:0 30px 60px -22px rgba(18,63,64,.3);}
.building-card-image{
  aspect-ratio:16/10; background:linear-gradient(135deg, var(--turquoise), var(--teal));
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.6); font-size:.72rem; letter-spacing:1px; text-transform:uppercase;
}
.building-card-body{padding:26px 24px;}
.building-card-body h3{color:var(--teal-deep); font-size:1.1rem; margin-bottom:10px;}
.building-card-body p{font-size:.9rem; line-height:1.7; font-weight:300; color:var(--dim-gray);}

/* ---------- CTA BAND (e.g. Support a Student) ---------- */
.cta-band{
  background:#6b6c6c; border-radius:var(--radius-lg); padding:56px 50px;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
  margin-top:20px;
}
.cta-band h2{color:var(--white); font-size:1.6rem; margin-bottom:10px;}
.cta-band p{color:rgba(255,255,255,.8); font-size:.98rem; font-weight:300; max-width:520px;}
.cta-band .btn-primary{flex-shrink:0;}

/* ---------- CONTACT PAGE ---------- */
.contact-section{padding:70px 0 110px;}
.contact-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
.contact-item{
  background:var(--white); border-radius:var(--radius-md); padding:36px 30px;
  box-shadow:0 24px 50px -28px rgba(18,63,64,.22); text-align:left;
}
.contact-item-icon{
  width:56px; height:56px; border-radius:50%; background:var(--turquoise);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
}
.contact-item-icon svg{width:26px; height:26px;}
.contact-item h4{color:var(--teal-deep); font-size:1.05rem; margin-bottom:10px;}
.contact-item p{font-size:.92rem; line-height:1.7; color:var(--dim-gray);}
.contact-item p a{color:var(--dim-gray); text-decoration:none;}
.contact-item p a:hover{color:var(--turquoise);}

/* ---------- NUMBERS / TRANSPARENCY ---------- */
.numbers-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
.numbers-card{
  background:var(--white); border-radius:var(--radius-md); padding:30px 20px; text-align:center;
  box-shadow:0 20px 40px -24px rgba(18,63,64,.2);
}
.doc-list{list-style:none; margin-top:20px;}
.doc-list li{
  padding:18px 24px; background:var(--white); border-radius:var(--radius-md);
  margin-bottom:12px; font-size:.95rem; color:var(--dim-gray);
}

/* ---------- GALLERY / ALBUM CARDS ---------- */
.album-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
.album-card{
  background:var(--white); border-radius:var(--radius-md); overflow:hidden; display:block;
  box-shadow:0 24px 50px -28px rgba(18,63,64,.22); transition:transform .25s ease, box-shadow .25s ease;
  text-decoration:none; color:inherit;
}
.album-card:hover{transform:translateY(-6px); box-shadow:0 30px 60px -22px rgba(18,63,64,.3);}
.album-mosaic{position:relative; aspect-ratio:16/10; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:2px; background:var(--cool-gray-bg); overflow:hidden;}
.album-mosaic.single{grid-template-columns:1fr; grid-template-rows:1fr;}
.album-mosaic img{width:100%; height:100%; object-fit:cover; display:block;}
.album-mosaic-placeholder{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--turquoise), var(--teal));
  color:rgba(255,255,255,.6); font-size:.72rem; letter-spacing:1px; text-transform:uppercase;
}
.album-photo-badge{
  position:absolute; bottom:12px; right:12px; background:rgba(18,63,64,.85); color:var(--white);
  font-size:.75rem; font-weight:600; padding:5px 12px; border-radius:999px; display:flex; align-items:center; gap:5px;
}
.album-photo-badge svg{width:13px; height:13px;}
.album-card-body{padding:22px 22px 26px;}
.album-card-body h3{color:var(--teal-deep); font-size:1.1rem; margin-bottom:8px;}
.album-card-body p{font-size:.88rem; line-height:1.65; font-weight:300; color:var(--dim-gray);}

/* ---------- SINGLE POST / ALBUM VIEW ---------- */
.single-album-hero{padding:250px 0 40px; background:var(--cool-gray-bg);}
.single-album-hero h1{font-size:clamp(1.9rem, 3.4vw, 2.7rem); color:var(--teal-deep); font-weight:700; margin:14px 0 10px;}
.single-album-hero .post-date{color:var(--dim-gray); font-size:.88rem;}
.single-album-gallery{padding:50px 0 30px;}
.single-album-gallery-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.single-album-gallery-grid a{display:block; border-radius:14px; overflow:hidden; aspect-ratio:4/3;}
.single-album-gallery-grid img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s ease;}
.single-album-gallery-grid a:hover img{transform:scale(1.04);}
.single-album-content{padding:30px 0 100px; font-size:1.02rem; line-height:1.9; font-weight:300; max-width:800px;}
.single-album-content p{margin-bottom:20px;}

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

/* ---------- CURRICULUM SNAPSHOT ---------- */
.curriculum-snapshot{background:var(--cool-gray-bg); padding:70px 0;}
.curriculum-snapshot h2{color:var(--teal-deep); margin:14px 0 18px;}
.curriculum-snapshot p{max-width:720px; font-size:1rem; line-height:1.85; font-weight:300;}

.amenity-tile{
  background:var(--cool-gray-bg); border-radius:var(--radius-md); padding:24px 18px;
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px;
}
.amenity-tile span{font-size:.9rem; color:var(--teal-deep); font-weight:500;}

@media (max-width:900px){
  .program-row, .program-row-reverse{grid-template-columns:1fr;}
  .program-row-reverse .program-image, .program-row-reverse .program-text{order:initial;}
  .contact-grid{grid-template-columns:1fr;}
  .numbers-grid{grid-template-columns:repeat(2,1fr);}
  .cta-band{flex-direction:column; text-align:center;}
  .building-grid{grid-template-columns:1fr !important;}
}
.vm-card p{font-size:1rem; line-height:1.8; font-weight:300;}

.numbers-grid{display:grid; grid-template-columns:repeat(6,1fr); gap:20px; margin-top:40px;}
.number-item{background:var(--white); border-radius:var(--radius-md); padding:28px 18px; text-align:center;}
.number-val{font-family:'Josefin Sans'; font-weight:700; font-size:1.9rem; color:var(--teal-deep);}
.number-label{font-size:.78rem; color:var(--dim-gray); margin-top:6px; line-height:1.4;}

.leadership-grid{display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-top:10px;}
.leadership-heading{color:var(--turquoise); font-family:'Josefin Sans'; font-size:1rem; text-transform:uppercase; letter-spacing:1px; margin-bottom:16px;}
.leadership-list li{padding:10px 0; border-bottom:1px solid var(--cool-gray); font-size:.98rem; color:var(--teal-deep);}
.leadership-list li:last-child{border-bottom:none;}

/* ---------- FOOTER ---------- */
.site-footer{background:var(--teal-deep); color:rgba(255,255,255,.75); padding:70px 0 30px;}
.footer-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr 1.1fr; gap:40px; padding-bottom:50px; border-bottom:1px solid rgba(255,255,255,.12);}
.footer-brand .logo-text{color:var(--white); margin-bottom:14px; display:block;}
.footer-brand .logo-img{margin-bottom:16px;}
.footer-brand p{font-size:.88rem; line-height:1.7; color:rgba(255,255,255,.6); max-width:280px;}
.footer-col h4{color:var(--white); font-family:'Josefin Sans'; font-size:.95rem; margin-bottom:18px; letter-spacing:.5px;}
.footer-col ul{display:flex; flex-direction:column; gap:11px;}
.footer-col a{font-size:.88rem; color:rgba(255,255,255,.65); transition:color .2s ease;}
.footer-col a:hover{color:var(--turquoise);}
.footer-newsletter form{display:flex; gap:8px; margin-top:14px;}
.footer-newsletter input[type="email"]{
  flex:1; padding:11px 14px; border-radius:999px; border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.06); color:var(--white); font-size:.85rem;
}
.footer-newsletter input[type="email"]::placeholder{color:rgba(255,255,255,.45);}
.footer-newsletter button{
  background:var(--turquoise); color:var(--white); padding:11px 22px; border-radius:999px;
  font-size:.85rem; font-weight:600; white-space:nowrap;
}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:26px; font-size:.8rem; flex-wrap:wrap; gap:12px;}
.footer-bottom a{color:rgba(255,255,255,.6);}

@media (max-width:980px){
  .wrap-full{padding:0 24px;}
  .hero-grid{grid-template-columns:1fr;}
  .card-stack{min-height:380px; margin-top:40px;}
  .impact-inner{grid-template-columns:repeat(3,1fr);}
  .who-grid{grid-template-columns:1fr; gap:40px;}
  .pillars-grid{grid-template-columns:1fr;}
  .markaz-grid{grid-template-columns:1fr; gap:36px;}
  .involved-grid{grid-template-columns:1fr;}
  .live-inner{flex-direction:column; align-items:flex-start;}
  .footer-grid{grid-template-columns:1fr 1fr; gap:32px;}
  .directory-grid{grid-template-columns:1fr 1fr;}
  .single-directory-grid{grid-template-columns:1fr; gap:30px;}
  .vm-grid{grid-template-columns:1fr;}
  .numbers-grid{grid-template-columns:repeat(3,1fr);}
  .leadership-grid{grid-template-columns:1fr; gap:24px;}

  .menu-toggle{display:flex;}
  .nav-row{justify-content:space-between;}
  .nav-menu-wrap{
    position:fixed; inset:0 0 0 auto; width:78%; max-width:340px; flex:none;
    background:var(--teal-deep); padding:110px 36px 40px;
    transform:translateX(100%); transition:transform .35s ease;
    justify-content:flex-start;
  }
  .nav-menu-wrap.open{transform:translateX(0);}
  .nav-links{flex-direction:column; gap:26px; white-space:normal;}
  .utility-inner{gap:10px;}
  .lang-pill{display:none;}

  .nav-links .sub-menu{
    position:static; width:auto; opacity:1; visibility:visible; transform:none;
    display:none; box-shadow:none; padding:6px 0 0 16px; grid-template-columns:1fr; gap:0;
    background:transparent; transition:none;
  }
  .nav-links li.menu-item-has-children.mobile-open > .sub-menu{display:grid;}
  .nav-links .sub-menu a{color:rgba(255,255,255,.75) !important; padding:8px 0; font-size:.92rem;}
  .nav-links .sub-menu a:hover{background:transparent; color:var(--turquoise) !important;}

  .submenu-toggle{
    display:flex; align-items:center; justify-content:center;
    position:absolute; top:-6px; right:-8px; width:36px; height:36px;
    background:none; border:none; color:rgba(255,255,255,.85); font-size:1.1rem;
    transition:transform .2s ease;
  }
  li.mobile-open > .submenu-toggle{transform:rotate(180deg);}
}
.submenu-toggle{display:none;}

/* =========================================================
   RTL SUPPORT (Urdu / Arabic)
   WordPress sets dir="rtl" automatically via language_attributes()
   for Polylang languages flagged is_rtl — Urdu and Arabic both are.
   ========================================================= */

html[dir="rtl"] body{
  font-family: 'Noto Naskh Arabic', 'Noto Nastaliq Urdu', serif;
  text-align: right;
}

/* Urdu gets Noto Nastaliq Urdu specifically (headings bold, body regular) */
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] .display,
html[lang="ur"] .logo-text, html[lang="ur"] .card-title, html[lang="ur"] .stat-num,
html[lang="ur"] .impact-num, html[lang="ur"] .number-val {
  font-family: 'Noto Nastaliq Urdu', serif;
  line-height: 1.9; /* Nastaliq's tall loops and diacritics need real room, or lines collide */
}
html[lang="ur"] body, html[lang="ur"] p, html[lang="ur"] a, html[lang="ur"] li, html[lang="ur"] span {
  font-family: 'Noto Nastaliq Urdu', serif;
  line-height: 2.1; /* Nastaliq script needs extra line height to avoid clipping descenders */
}

/* Arabic gets Noto Naskh Arabic (a calmer, more legible naskh style than Nastaliq) */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .display,
html[lang="ar"] .logo-text, html[lang="ar"] .card-title, html[lang="ar"] .stat-num,
html[lang="ar"] .impact-num, html[lang="ar"] .number-val {
  font-family: 'Noto Naskh Arabic', serif;
  font-weight: 700;
}
html[lang="ar"] body, html[lang="ar"] p, html[lang="ar"] a, html[lang="ar"] li, html[lang="ar"] span {
  font-family: 'Noto Naskh Arabic', serif;
  line-height: 1.9;
}

/* Mirror layout direction for RTL: flip flex rows, text alignment, floating elements */
/* RTL flexbox already flows row direction right-to-left natively when dir="rtl" is set -- no override needed here. */
html[dir="rtl"] .hero-grid{direction:rtl;}
body.rtl .eyebrow::before, html[dir="rtl"] .eyebrow::before, html[lang="ur"] .eyebrow::before, html[lang="ar"] .eyebrow::before,
body.rtl .section-label::before, html[dir="rtl"] .section-label::before, html[lang="ur"] .section-label::before, html[lang="ar"] .section-label::before{margin-left:10px; margin-right:0;}
body.rtl .eyebrow, html[dir="rtl"] .eyebrow, html[lang="ur"] .eyebrow, html[lang="ar"] .eyebrow,
body.rtl .section-label, html[dir="rtl"] .section-label, html[lang="ur"] .section-label, html[lang="ar"] .section-label{justify-content:flex-start;}
html[dir="rtl"] .who-grid, html[dir="rtl"] .markaz-grid, html[dir="rtl"] .program-row{direction:rtl;}
html[dir="rtl"] .program-row-reverse{direction:rtl;}
html[dir="rtl"] .card-1{right:auto; left:60px;}
html[dir="rtl"] .card-3{left:auto; right:0;}
html[dir="rtl"] .card-2{right:auto; left:0;}
html[dir="rtl"] .scroll-tag{right:auto; left:8px;}
html[dir="rtl"] .tagline-block{border-left:none; border-right:3px solid var(--turquoise); border-radius:var(--radius-md) 0 0 var(--radius-md);}
body.rtl .link-cta, html[dir="rtl"] .link-cta, html[lang="ur"] .link-cta, html[lang="ar"] .link-cta,
body.rtl .pillar-link, html[dir="rtl"] .pillar-link, html[lang="ur"] .pillar-link, html[lang="ar"] .pillar-link{justify-content:flex-start;}
html[dir="rtl"] .footer-grid{direction:rtl;}
html[dir="rtl"] .contact-grid{direction:rtl;}
html[dir="rtl"] .involved-grid, html[dir="rtl"] .pillars-grid, html[dir="rtl"] .building-grid, html[dir="rtl"] .directory-grid{direction:rtl;}

@media (max-width:980px){
  html[dir="rtl"] .nav-menu-wrap{inset:0 auto 0 0; transform:translateX(-100%);}
  html[dir="rtl"] .nav-menu-wrap.open{transform:translateX(0);}
}

/* Language switcher dropdown */
.lang-switcher{position:relative;}
.lang-pill-trigger{background:none; cursor:pointer; font-family:inherit;}
.lang-pill-trigger .lang-caret{font-size:.7em; transition:transform .2s ease;}
.lang-pill-trigger[aria-expanded="true"] .lang-caret{transform:rotate(180deg);}
.lang-dropdown{
  display:none; position:absolute; top:calc(100% + 8px); right:0; margin:0; padding:6px 0;
  list-style:none; min-width:150px; background:#fff; border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.18); z-index:80; text-align:left;
}
.lang-dropdown.open{display:block;}
.lang-dropdown li a{
  display:block; padding:9px 18px; color:#1a5c5e; text-decoration:none;
  font-size:.85rem; font-family:'Poppins',sans-serif; white-space:nowrap;
}
.lang-dropdown li a:hover{background:#f2f5f4;}
.lang-dropdown li a.is-current{font-weight:600; color:#05b6ab;}
html[dir="rtl"] .lang-dropdown{right:auto; left:0; text-align:right;}
