/* ═══════════════════════════════════════════════════
   ROOT & RESET
═══════════════════════════════════════════════════ */
:root{
  --bg:#04100a; --bg2:#071810; --bg3:#0b2016; --bg4:#0e2a1c;
  --gold:#c9a84c; --gold-l:#e8d08a; --gold-d:#6b5520; --gold-dim:rgba(201,168,76,.12);
  --green:#1a5c35; --green2:#22794a;
  --text:#ede8d5; --muted:#7a9080; --muted2:#4a6050;
  --border:rgba(201,168,76,.15); --border2:rgba(201,168,76,.25);
  --radius:10px; --radius-lg:16px;
}
/* ── LIGHT / DAY MODE ── */
body.day-mode{
  --bg:#f5f0e8; --bg2:#ede7d8; --bg3:#e4dcc8; --bg4:#d8ceb4;
  --gold:#8a6120; --gold-l:#5c3e10; --gold-d:#b07c30; --gold-dim:rgba(138,97,32,.10);
  --green:#1a5c35; --green2:#22794a;
  --text:#1a1200; --muted:#5a5040; --muted2:#7a6850;
  --border:rgba(138,97,32,.22); --border2:rgba(138,97,32,.38);
}
body.day-mode::before{
  background:
    radial-gradient(ellipse 80% 40% at 50% 0,rgba(201,168,76,.10) 0,transparent 55%),
    radial-gradient(ellipse 30% 60% at 0 60%,rgba(26,92,53,.08) 0,transparent 60%),
    radial-gradient(ellipse 30% 40% at 100% 20%,rgba(26,92,53,.08) 0,transparent 55%);
}
body.day-mode nav{background:rgba(245,240,232,.96)}
body.day-mode .mobile-menu{background:rgba(245,240,232,.99)}
body.day-mode .p-input-grp select option{background:#e4dcc8}
body.day-mode .f-group select option{background:#d8ceb4}
/* ── BLUE MODE ── */
body.blue-mode{
  --bg:#0E1C35; --bg2:#0a1628; --bg3:#112040; --bg4:#152848;
  --gold:#c9a84c; --gold-l:#e8d08a; --gold-d:#6b5520; --gold-dim:rgba(201,168,76,.12);
  --text:#dde8f5; --muted:#6a88aa; --muted2:#4a6080;
  --border:rgba(201,168,76,.15); --border2:rgba(201,168,76,.25);
}
body.blue-mode nav{background:rgba(14,28,53,.96)}
body.blue-mode .mobile-menu{background:rgba(14,28,53,.99)}
/* ── GREEN MODE ── */
body.green-mode{
  --bg:#0E2A1C; --bg2:#071810; --bg3:#0b2016; --bg4:#0e2a1c;
  --gold:#c9a84c; --gold-l:#e8d08a; --gold-d:#6b5520; --gold-dim:rgba(201,168,76,.12);
  --text:#ede8d5; --muted:#7a9080; --muted2:#4a6050;
  --border:rgba(201,168,76,.15); --border2:rgba(201,168,76,.25);
}
body.green-mode nav{background:rgba(14,42,28,.96)}
body.green-mode .mobile-menu{background:rgba(14,42,28,.99)}
/* toggle button */
.theme-toggle{
  display:flex;align-items:center;gap:.4rem;
  background:var(--gold-dim);border:1px solid var(--gold-d);
  color:var(--gold);padding:.35rem .85rem;border-radius:20px;
  font-size:.75rem;font-weight:700;letter-spacing:.06em;cursor:pointer;
  transition:all .2s;white-space:nowrap;flex-shrink:0;
}
.theme-toggle:hover{background:rgba(201,168,76,.2)}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  font-family:'Lato',sans-serif;
  color:var(--text);
  overflow-x:hidden;
  min-height:100vh;
}
body::before{
  content:'';position:fixed;inset:0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0,rgba(201,168,76,.06) 0,transparent 55%),
    radial-gradient(ellipse 30% 60% at 0 60%,rgba(26,92,53,.2) 0,transparent 60%),
    radial-gradient(ellipse 30% 40% at 100% 20%,rgba(26,92,53,.15) 0,transparent 55%);
  pointer-events:none;z-index:0;
}
img{max-width:100%;display:block}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
nav{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  background:rgba(4,16,10,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
  padding:0 1.2rem;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  height:62px;
  gap:.5rem;
  width:100%;
}
.nav-logo{
  font-family:'Amiri',serif;
  color:var(--gold);
  font-size:1.3rem;
  white-space:nowrap;
  text-decoration:none;
  display:flex;flex-direction:column;
  line-height:1.1;
}
.nav-logo span{font-family:'Lato',sans-serif;font-size:.6rem;color:var(--muted);letter-spacing:.12em;text-transform:uppercase}
.nav-links{display:flex;gap:.05rem;flex-wrap:nowrap;align-items:center;justify-content:center}
.nav-link{
  color:var(--muted);
  text-decoration:none;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  padding:.4rem .6rem;
  border-radius:5px;
  transition:color .2s,background .2s;
  white-space:nowrap;
}
.nav-link:hover,.nav-link.active{color:var(--gold);background:var(--gold-dim)}
.nav-enroll{
  background:linear-gradient(135deg,var(--gold-d),var(--gold));
  color:#04100a!important;
  font-weight:700!important;
  padding:.45rem 1.1rem!important;
}
.nav-enroll:hover{opacity:.9}
.hamburger{display:none;background:none;border:none;color:var(--gold);font-size:1.2rem;cursor:pointer;padding:.3rem}
.mobile-menu{
  display:none;
  position:fixed;top:62px;left:0;right:0;
  background:rgba(4,16,10,.98);
  border-bottom:1px solid var(--border);
  padding:1rem;
  flex-direction:column;gap:.4rem;
  z-index:999;
}
.mobile-menu.open{display:flex}
@media(max-width:820px){
  nav{grid-template-columns:auto 1fr auto}
  .nav-links{display:none}
  .hamburger{display:block}
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;
  padding:80px 2rem 4rem;
  overflow:hidden;
}
.hero-bg{
  position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(4,16,10,.3) 0,rgba(4,16,10,.85) 60%,var(--bg) 100%),
    url('https://quranhadithonline.com/wp-content/uploads/2026/05/2-2-1024x684.webp') center/cover no-repeat;
  z-index:0;
}
.hero-geo{
  position:absolute;inset:0;z-index:0;
  background-image:
    repeating-linear-gradient(0deg,transparent,transparent 60px,rgba(201,168,76,.03) 60px,rgba(201,168,76,.03) 61px),
    repeating-linear-gradient(90deg,transparent,transparent 60px,rgba(201,168,76,.03) 60px,rgba(201,168,76,.03) 61px);
}
.hero-content{
  position:relative;z-index:1;
  text-align:center;
  max-width:980px;
}
.hero-badge{
  display:inline-flex;align-items:center;gap:.5rem;
  background:rgba(201,168,76,.1);border:1px solid var(--gold-d);
  color:var(--gold);font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;
  padding:.35rem 1.2rem;border-radius:20px;margin-bottom:1.4rem;
  animation:fadeInDown .8s ease both;
}
.hero h1{
  font-family:'Amiri',serif;
  font-size:clamp(2.4rem,6vw,4.2rem);
  color:var(--gold);
  line-height:1.15;
  margin-bottom:.8rem;
  animation:fadeInUp .8s .1s ease both;
}
.hero h1 em{color:var(--text);font-style:normal}
.hero-arabic{
  font-family:'Amiri',serif;
  font-size:clamp(1.1rem,3vw,1.8rem);
  color:rgba(232,208,138,.7);
  margin-bottom:1.2rem;
  animation:fadeInUp .8s .2s ease both;
  direction:rtl;
}
.hero p{
  color:rgba(237,232,213,.7);
  font-size:1rem;font-weight:300;line-height:1.75;
  max-width:700px;margin:0 auto 2rem;
  animation:fadeInUp .8s .3s ease both;
}
.hero-btns{
  display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;
  animation:fadeInUp .8s .4s ease both;
}
.btn-primary{
  background:linear-gradient(135deg,var(--gold-d),var(--gold));
  color:#04100a;padding:.8rem 2rem;border-radius:7px;
  font-weight:700;font-size:.9rem;letter-spacing:.08em;text-transform:uppercase;
  text-decoration:none;border:none;cursor:pointer;
  transition:opacity .2s,transform .1s;display:inline-flex;align-items:center;gap:.5rem;
}
.btn-primary:hover{opacity:.9;transform:translateY(-2px)}
.btn-outline{
  background:transparent;
  border:1px solid var(--border2);
  color:var(--gold);padding:.8rem 2rem;border-radius:7px;
  font-weight:700;font-size:.9rem;letter-spacing:.08em;text-transform:uppercase;
  text-decoration:none;cursor:pointer;
  transition:background .2s,transform .1s;display:inline-flex;align-items:center;gap:.5rem;
}
.btn-outline:hover{background:var(--gold-dim);transform:translateY(-2px)}

/* Stats bar */
.stats-bar{
  position:relative;z-index:1;
  display:flex;flex-wrap:wrap;justify-content:center;gap:0;
  border-top:1px solid var(--border);
  margin-top:3rem;
  animation:fadeInUp .8s .5s ease both;
}
.stat-item{
  flex:1;min-width:130px;max-width:200px;
  padding:1.2rem 1rem;text-align:center;
  border-right:1px solid var(--border);
}
.stat-item:last-child{border:none}
.stat-num{font-size:1.6rem;font-weight:700;color:var(--gold);line-height:1}
.stat-lbl{font-size:.7rem;color:var(--muted);letter-spacing:.1em;text-transform:uppercase;margin-top:.3rem}

/* ═══════════════════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════════════════ */
section{position:relative;z-index:1;padding:5rem 2rem}
.section-inner{max-width:1280px;margin:0 auto;width:100%}
.section-tag{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--gold-d);margin-bottom:.7rem;font-weight:700;
}
.section-title{
  font-family:'Amiri',serif;
  font-size:clamp(1.8rem,4vw,2.6rem);
  color:var(--gold);
  margin-bottom:.5rem;line-height:1.2;
}
.section-sub{font-size:.9rem;color:var(--muted);line-height:1.7;max-width:640px;font-weight:400}
.ornament{display:flex;align-items:center;gap:1rem;margin:1.5rem 0}
.ornament::before,.ornament::after{content:'';flex:1;max-width:100px;height:1px;background:linear-gradient(to right,transparent,var(--gold-d))}
.ornament::after{background:linear-gradient(to left,transparent,var(--gold-d))}
.ornament span{color:var(--gold);font-size:1rem}
.divider{height:1px;background:linear-gradient(to right,transparent,var(--border2),transparent);margin:0}

/* ═══════════════════════════════════════════════════
   3 MAIN SOFTWARE CARDS
═══════════════════════════════════════════════════ */
#software{background:var(--bg2)}
.sw-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
  margin-top:2.5rem;
}
@media(max-width:700px){.sw-grid{grid-template-columns:1fr}}
.sw-card{
  background:var(--bg3);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  cursor:pointer;
  transition:border-color .25s,transform .2s,box-shadow .25s;
  display:flex;flex-direction:column;
  scroll-margin-top:80px;
}
.sw-card:hover{
  border-color:var(--border2);
  transform:translateY(-4px);
  box-shadow:0 12px 40px rgba(0,0,0,.4);
}
.sw-card.open{border-color:var(--gold)}
.sw-thumb{
  height:160px;
  display:flex;align-items:center;justify-content:center;
  font-size:4rem;
  border-bottom:1px solid var(--border);
  background:linear-gradient(135deg,var(--bg4),var(--bg3));
  position:relative;overflow:hidden;
}
.sw-thumb-img{
  position:absolute;inset:0;
  background-size:cover;background-position:center;
  opacity:.2;
}
.sw-thumb-icon{position:relative;z-index:1;font-family:'Amiri',serif;font-size:2.5rem;color:var(--gold)}
.sw-body{padding:1.4rem;flex:1;display:flex;flex-direction:column}
.sw-title{font-family:'Amiri',serif;font-size:1.2rem;color:var(--gold);margin-bottom:.4rem}
.sw-desc{font-size:.82rem;color:var(--muted);line-height:1.65;flex:1;font-weight:300}
.sw-open-btn{
  margin-top:1.2rem;
  display:flex;align-items:center;justify-content:center;gap:.5rem;
  background:var(--gold-dim);
  border:1px solid var(--gold-d);
  color:var(--gold);
  padding:.6rem;border-radius:7px;
  font-size:.78rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  cursor:pointer;transition:background .2s;
}
.sw-open-btn:hover{background:rgba(201,168,76,.2)}

/* Software viewer panels */
.sw-panel{
  display:none;
  margin-top:1.5rem;
  border:1px solid var(--gold-d);
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--bg3);
}
.sw-panel.show{display:block}
.sw-panel iframe{
  width:100%;
  height:85vh;
  border:none;
  display:block;
}
.sw-panel-top{
  display:flex;align-items:center;justify-content:space-between;
  padding:.8rem 1.2rem;
  background:var(--bg4);
  border-bottom:1px solid var(--border);
}
.sw-panel-title{font-family:'Amiri',serif;color:var(--gold);font-size:1rem}
.sw-close{
  background:none;border:1px solid var(--border);color:var(--muted);
  padding:.3rem .8rem;border-radius:5px;cursor:pointer;font-size:.75rem;
  transition:color .2s,border-color .2s;
}
.sw-close:hover{color:var(--gold);border-color:var(--gold)}

/* ═══════════════════════════════════════════════════
   PRAYER TIMINGS
═══════════════════════════════════════════════════ */
#prayer{background:var(--bg)}
.prayer-layout{
  display:grid;
  grid-template-columns:1fr 340px;
  gap:1.5rem;
  margin-top:2.5rem;
  align-items:stretch;
}
@media(max-width:820px){.prayer-layout{grid-template-columns:1fr}}
.p-right{display:flex;flex-direction:column;gap:.75rem}
.prayer-search{
  display:flex;flex-wrap:wrap;gap:.8rem;
  margin-bottom:1.5rem;
  align-items:flex-end;
}
.p-input-grp{display:flex;flex-direction:column;gap:.35rem;flex:1;min-width:160px}
.p-input-grp label{font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-d);font-weight:700}
.p-input-grp input,.p-input-grp select{
  background:var(--bg3);border:1px solid var(--gold-d);color:var(--text);
  padding:.6rem .9rem;border-radius:6px;font-family:'Lato',sans-serif;font-size:.85rem;outline:none;
}
.p-input-grp input:focus,.p-input-grp select:focus{border-color:var(--gold)}
.p-input-grp select option{background:#0b2016}
.p-fetch-btn{
  background:linear-gradient(135deg,var(--gold-d),var(--gold));
  color:#04100a;border:none;padding:.65rem 1.4rem;border-radius:6px;
  font-family:'Lato',sans-serif;font-weight:700;font-size:.82rem;letter-spacing:.08em;
  cursor:pointer;white-space:nowrap;text-transform:uppercase;transition:opacity .2s;
}
.p-fetch-btn:hover{opacity:.9}
.p-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;align-content:stretch}
.p-grid .p-card{height:100%}
@media(max-width:480px){.p-grid{grid-template-columns:1fr}}
.p-card{
  background:linear-gradient(135deg,var(--bg3),var(--bg4));
  border:1px solid var(--border);border-radius:var(--radius);
  padding:1rem 1.2rem;
  display:flex;align-items:center;justify-content:space-between;gap:.8rem;
  transition:border-color .2s,transform .15s;
}
.p-card:hover{border-color:var(--border2);transform:translateY(-1px)}
.p-card.active{border-color:var(--gold);box-shadow:0 0 16px rgba(201,168,76,.1)}
.p-card.active::before{content:'Now';font-size:.6rem;font-weight:700;background:var(--gold);color:#04100a;padding:1px 7px;border-radius:10px;position:absolute;top:6px;right:8px}
.p-card{position:relative}
.p-icon{font-size:1.4rem;color:var(--gold);opacity:.75;flex-shrink:0}
.p-info{flex:1}
.p-name{font-family:'Amiri',serif;font-size:.95rem;color:var(--text)}
.p-arabic{font-family:'Amiri',serif;font-size:1.6rem;color:var(--gold-d);direction:rtl;line-height:1.3}
.p-time{font-size:1.15rem;font-weight:700;color:var(--gold-l);letter-spacing:.04em}
/* Right col */
.p-right{}
.p-next-box{
  background:linear-gradient(135deg,var(--green),var(--bg3));
  border:1px solid var(--gold-d);border-radius:var(--radius);
  padding:1.4rem;text-align:center;
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.p-next-lbl{font-size:.65rem;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);margin-bottom:.3rem}
.p-next-name{font-family:'Amiri',serif;font-size:1.4rem;color:var(--gold);margin-bottom:.4rem}
.p-countdown{font-size:2.2rem;font-weight:700;color:var(--gold-l);letter-spacing:.08em;font-variant-numeric:tabular-nums}
.p-countdown-lbl{font-size:.65rem;color:var(--muted);letter-spacing:.1em;text-transform:uppercase;margin-top:.25rem}
.p-clock-box{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:1.4rem;text-align:center;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}
.p-clock{font-size:2.5rem;font-weight:700;color:var(--gold-l);letter-spacing:.1em;font-variant-numeric:tabular-nums;line-height:1}
.p-date{color:var(--muted);font-size:.78rem;margin-top:.4rem;font-weight:300}
.p-hijri{font-family:'Amiri',serif;color:var(--gold-d);font-size:.85rem;margin-top:.25rem}
.p-error{background:rgba(180,40,40,.1);border:1px solid rgba(180,40,40,.3);color:#f08080;padding:.6rem 1rem;border-radius:6px;font-size:.8rem;margin-bottom:.8rem;display:none}
.p-location{text-align:center;font-size:.78rem;color:var(--muted);margin-bottom:1rem;display:none}
.p-location i{color:var(--gold);margin-right:.3rem}

/* ═══════════════════════════════════════════════════
   ENROLLMENT
═══════════════════════════════════════════════════ */
#enroll{background:var(--bg2)}
.enroll-layout{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;margin-top:2.5rem;align-items:stretch}
@media(max-width:760px){.enroll-layout{grid-template-columns:1fr}}
.enroll-form{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2rem}
.enroll-info{display:flex;flex-direction:column;gap:.9rem}
.enroll-info .info-block{flex:1;margin-bottom:0!important}
.enroll-info .hadith-box{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}
.courses-pick{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-bottom:1.5rem}
@media(max-width:400px){.courses-pick{grid-template-columns:1fr}}
.course-pill{
  background:var(--bg4);border:1px solid var(--border);border-radius:8px;
  padding:.7rem .9rem;cursor:pointer;text-align:center;
  transition:all .15s;
}
.course-pill:hover{border-color:var(--border2)}
.course-pill.sel{border-color:var(--gold);background:rgba(26,92,53,.4)}
.course-pill-icon{font-size:1.2rem;margin-bottom:.3rem}
.course-pill-name{font-size:.75rem;font-weight:700;color:var(--text)}
.f-group{margin-bottom:1.1rem}
.f-group label{display:block;font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-d);font-weight:700;margin-bottom:.35rem}
.f-group input,.f-group select,.f-group textarea{
  width:100%;background:var(--bg4);border:1px solid rgba(201,168,76,.2);color:var(--text);
  padding:.65rem .9rem;border-radius:7px;font-family:'Lato',sans-serif;font-size:.88rem;outline:none;
  transition:border-color .2s;
}
.f-group input:focus,.f-group select:focus,.f-group textarea:focus{border-color:var(--gold)}
.f-group select option{background:#0b2016}
.f-group textarea{min-height:90px;resize:vertical;line-height:1.6}
.f-row{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
@media(max-width:420px){.f-row{grid-template-columns:1fr}}
.f-hint{font-size:.7rem;color:var(--muted);margin-top:.3rem}
.f-err{font-size:.7rem;color:#f08080;margin-top:.25rem;display:none}
.submit-btn{
  width:100%;background:linear-gradient(135deg,var(--gold-d),var(--gold));
  color:#04100a;border:none;padding:.9rem;border-radius:7px;
  font-family:'Lato',sans-serif;font-weight:700;font-size:.95rem;letter-spacing:.06em;
  cursor:pointer;margin-top:.5rem;transition:opacity .2s;
}
.submit-btn:hover{opacity:.9}
.submit-btn:disabled{opacity:.5;cursor:not-allowed}
/* Info panel */
.enroll-info{}
.info-block{flex:1;background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius);padding:1.3rem;display:flex;flex-direction:column}
.info-block h3{font-family:'Amiri',serif;color:var(--gold-l);font-size:1rem;margin-bottom:.9rem;display:flex;align-items:center;gap:.5rem}
.info-list{list-style:none;flex:1}
.info-list li{display:flex;align-items:flex-start;gap:.6rem;padding:.4rem 0;border-bottom:1px solid rgba(201,168,76,.05);font-size:.82rem;color:var(--muted)}
.info-list li:last-child{border:none}
.info-list li i{color:var(--gold);flex-shrink:0;margin-top:2px;font-size:.75rem}
.wa-btn{
  display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;
  background:rgba(37,211,102,.1);border:1px solid rgba(37,211,102,.35);
  color:#25d366;padding:.75rem;border-radius:7px;font-weight:700;font-size:.85rem;
  cursor:pointer;text-decoration:none;transition:background .2s;margin-top:.9rem;
}
.wa-btn:hover{background:rgba(37,211,102,.18)}
.hadith-box{flex:1;text-align:center;padding:1.6rem;background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius);display:flex;flex-direction:column;align-items:center;justify-content:center}
.hadith-ar{font-family:'Amiri',serif;font-size:1.3rem;color:var(--gold-l);direction:rtl;margin-bottom:.6rem;line-height:1.8}
.hadith-en{font-size:.8rem;color:var(--muted);line-height:1.6;font-style:italic}
.hadith-ref{font-size:.72rem;color:var(--gold-d);margin-top:.3rem}
/* Success */
.success-box{display:none;text-align:center;padding:2.5rem 1.5rem}
.success-box.show{display:block}
.success-icon{width:64px;height:64px;background:rgba(58,176,110,.12);border:2px solid #3ab06e;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;font-size:1.6rem;color:#3ab06e}

#courses{background:var(--bg)}
.courses-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.4rem;
  margin-top:2.5rem;
}
@media(max-width:820px){.courses-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.courses-grid{grid-template-columns:1fr}}
.course-card{
  background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-lg);
  overflow:hidden;
  text-align:center;
  transition:border-color .2s,transform .2s;
}
.course-card:hover{border-color:var(--border2);transform:translateY(-3px)}
.course-img-wrap{
  width:100%;height:180px;overflow:hidden;position:relative;
  background:linear-gradient(135deg,var(--bg4),var(--bg3));
}
.course-img-wrap img{
  width:100%;height:100%;object-fit:cover;opacity:.85;
  transition:transform .4s;display:block;
}
.course-card:hover .course-img-wrap img{transform:scale(1.05)}
.course-img-placeholder{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:.4rem;
  background:linear-gradient(135deg,var(--bg4),var(--bg3));
  border-bottom:1px solid var(--border);
}
.course-img-placeholder span{font-size:2.8rem}
.course-img-placeholder small{font-size:.65rem;color:var(--muted2);letter-spacing:.1em;text-transform:uppercase}
.course-card-body{padding:1.4rem 1.4rem 2rem}
.course-icon2{font-size:2rem;margin-bottom:.6rem}
.course-name2{font-family:'Amiri',serif;font-size:1.45rem;color:var(--gold);margin-bottom:.55rem}
.course-desc2{font-size:1rem;color:var(--muted);line-height:1.6}
.course-badge{display:inline-block;font-size:.85rem;background:rgba(201,168,76,.1);border:1px solid var(--gold-d);color:var(--gold);padding:3px 12px;border-radius:10px;margin-top:.7rem;letter-spacing:.06em}

/* ═══════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════ */
#testimonials{background:var(--bg2)}
.testi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.2rem;margin-top:2.5rem}
.testi-card{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem}
.testi-stars{color:var(--gold);font-size:.9rem;margin-bottom:.8rem}
.testi-text{font-size:.85rem;color:rgba(237,232,213,.8);line-height:1.7;font-style:italic;margin-bottom:1rem}
.testi-author{display:flex;align-items:center;gap:.7rem}
.testi-avatar{width:36px;height:36px;background:var(--green);border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem;color:var(--gold-l);flex-shrink:0}
.testi-name{font-size:.82rem;font-weight:700;color:var(--text)}
.testi-loc{font-size:.7rem;color:var(--muted)}

/* ═══════════════════════════════════════════════════
   GALLERY / FIVE PILLARS
═══════════════════════════════════════════════════ */
#pillars{background:var(--bg)}
.pillars-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem;margin-top:2.5rem}
@media(max-width:700px){.pillars-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:400px){.pillars-grid{grid-template-columns:1fr}}
.pillar-card{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius);padding:1.2rem;text-align:center;transition:border-color .2s,transform .2s}
.pillar-card:hover{border-color:var(--border2);transform:translateY(-3px)}
.pillar-img{width:60px;height:60px;border-radius:50%;object-fit:cover;margin:0 auto .7rem;border:2px solid var(--gold-d)}
.pillar-name{font-family:'Amiri',serif;color:var(--gold);font-size:1rem;margin-bottom:.3rem}
.pillar-desc{font-size:.72rem;color:var(--muted);line-height:1.5}

/* ═══════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════ */
#gallery{background:var(--bg2)}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.2rem;
  margin-top:2.5rem;
}
@media(max-width:820px){.gallery-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.gallery-grid{grid-template-columns:1fr}}
.gallery-card{
  background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-lg);
  overflow:hidden;transition:border-color .2s,transform .2s,box-shadow .2s;
}
.gallery-card:hover{border-color:var(--border2);transform:translateY(-3px);box-shadow:0 10px 32px rgba(0,0,0,.35)}
.gallery-img-wrap{width:100%;height:220px;overflow:hidden;position:relative}
.gallery-img-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .4s;display:block}
.gallery-card:hover .gallery-img-wrap img{transform:scale(1.06)}
.gallery-placeholder{
  width:100%;height:100%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;
  background:linear-gradient(135deg,var(--bg4),var(--bg3));
  color:var(--muted2);border-bottom:1px solid var(--border);
}
.gallery-placeholder i{font-size:2.5rem;color:var(--gold-d)}
.gallery-placeholder span{font-size:.85rem;font-weight:700;color:var(--muted);letter-spacing:.05em}
.gallery-placeholder small{font-size:.65rem;color:var(--muted2);letter-spacing:.08em;text-transform:uppercase}
.gallery-caption{
  padding:.75rem 1rem;font-size:.82rem;font-weight:700;
  color:var(--muted);letter-spacing:.05em;text-align:center;
  border-top:1px solid var(--border);
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
footer{
  background:linear-gradient(180deg,var(--bg2),#020a06);
  border-top:1px solid var(--border);
  position:relative;z-index:1;
}
.footer-grid{
  max-width:1280px;margin:0 auto;
  padding:3rem 2rem 2rem;
  display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2.5rem;
}
@media(max-width:820px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:500px){.footer-grid{grid-template-columns:1fr}}
.footer-brand{}
.footer-logo{font-family:'Amiri',serif;color:var(--gold);font-size:1.9rem;margin-bottom:.25rem}
.footer-tagline{font-size:1rem;font-weight:700;color:var(--gold-l);margin-bottom:.7rem;letter-spacing:.04em}
.footer-about{font-size:.92rem;color:var(--muted2);line-height:1.7;max-width:260px;font-weight:300}
.footer-quote{margin-top:1.1rem;padding:.75rem 1rem;border-left:3px solid var(--gold-d);background:rgba(201,168,76,.04)}
.footer-quote-ar{font-family:'Amiri',serif;font-size:1.05rem;color:var(--gold);direction:rtl;text-align:right;margin-bottom:.25rem}
.footer-quote-en{font-size:.8rem;color:var(--muted2);font-style:italic}
.footer-social{display:flex;gap:.5rem;margin-top:1.1rem}
.footer-social a{width:32px;height:32px;background:rgba(201,168,76,.06);border:1px solid var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:.78rem;text-decoration:none;transition:background .2s}
.footer-social a:hover{background:rgba(201,168,76,.15)}
.footer-heading{font-family:'Amiri',serif;color:var(--gold);font-size:1.1rem;margin-bottom:.9rem;padding-bottom:.4rem;border-bottom:1px solid var(--border)}
.footer-links{list-style:none}
.footer-links li{margin-bottom:.55rem}
.footer-links a{color:var(--muted2);font-size:.9rem;text-decoration:none;display:flex;align-items:center;gap:.4rem;transition:color .15s}
.footer-links a:hover{color:var(--gold)}
.footer-links a i{font-size:.65rem;color:var(--gold-d)}
.footer-contact li{display:flex;align-items:flex-start;gap:.6rem;padding:.4rem 0;border-bottom:1px solid rgba(201,168,76,.05);font-size:.9rem;color:var(--muted2)}
.footer-contact li:last-child{border:none}
.footer-contact li i{color:var(--gold);flex-shrink:0;margin-top:2px;font-size:.78rem}
.footer-trial{margin-top:1rem;background:rgba(201,168,76,.07);border:1px solid var(--border);border-radius:7px;padding:.8rem;text-align:center}
.footer-trial p{font-size:.85rem;color:var(--muted2);margin-bottom:.4rem}
.footer-trial a{display:inline-block;background:linear-gradient(135deg,var(--gold-d),var(--gold));color:#04100a;padding:.4rem 1.1rem;border-radius:4px;font-size:.82rem;font-weight:700;text-decoration:none;letter-spacing:.06em}
.footer-divider{max-width:1280px;margin:0 auto;height:1px;background:linear-gradient(to right,transparent,var(--border),transparent)}
.footer-bottom{max-width:1280px;margin:0 auto;padding:1rem 2rem 1.5rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem}
.footer-copy{font-size:.85rem;color:var(--muted2)}
.footer-bismi{font-family:'Amiri',serif;font-size:1rem;color:var(--muted2)}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes fadeInDown{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeInUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════ */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease}
.reveal.visible{opacity:1;transform:none}

/* ═══════════════════════════════════════════════════
   MOST READABLE SURAHS
═══════════════════════════════════════════════════ */
#popular{background:var(--bg2)}
.pop-intro{display:flex;align-items:stretch;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;margin-bottom:2rem}
.ayat-box{
  background:linear-gradient(135deg,var(--bg4),var(--bg3));
  border:1px solid var(--border2);
  border-radius:var(--radius-lg);
  padding:2.2rem 2.4rem;
  flex:1;min-width:280px;max-width:440px;
  position:relative;overflow:hidden;
}
.ayat-box::before{content:'';position:absolute;top:-30px;right:-30px;width:120px;height:120px;background:radial-gradient(circle,rgba(201,168,76,.08),transparent 70%);pointer-events:none}
.ayat-label{font-size:.65rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-d);font-weight:700;margin-bottom:.5rem}
.ayat-arabic{font-family:'Amiri Quran','Amiri',serif;font-size:1.45rem;direction:rtl;text-align:right;color:var(--gold-l);line-height:2;margin-bottom:.6rem}
.ayat-english{font-size:.78rem;color:var(--muted);line-height:1.65;font-style:italic;margin-bottom:.35rem}
.ayat-ref{font-size:.68rem;color:var(--gold-d);letter-spacing:.06em}

/* Category tabs */
.pop-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.5rem}
.pop-tab{
  background:var(--bg3);border:1px solid var(--border);
  color:var(--muted);padding:.4rem 1rem;border-radius:20px;
  font-size:.75rem;font-weight:700;letter-spacing:.06em;cursor:pointer;
  transition:all .15s;
}
.pop-tab:hover{border-color:var(--border2);color:var(--text)}
.pop-tab.active{background:rgba(201,168,76,.1);border-color:var(--gold);color:var(--gold)}

/* Surah cards grid — 5 columns = 2 equal rows of 5 */
.pop-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:.85rem;
}
@media(max-width:900px){.pop-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:600px){.pop-grid{grid-template-columns:repeat(2,1fr)}}
.surah-pop-card{
  background:var(--bg3);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1rem;
  cursor:pointer;
  transition:border-color .2s,transform .2s,box-shadow .2s;
  position:relative;overflow:hidden;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  gap:.35rem;
}
.surah-pop-card::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(201,168,76,.04),transparent);
  pointer-events:none;
}
.surah-pop-card:hover{
  border-color:var(--border2);
  transform:translateY(-3px);
  box-shadow:0 8px 24px rgba(0,0,0,.3);
}
.surah-pop-card.special{border-color:rgba(201,168,76,.3);background:linear-gradient(135deg,rgba(26,92,53,.3),var(--bg3))}
.surah-pop-num{
  width:32px;height:32px;
  background:var(--bg4);
  border:1px solid var(--gold-d);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:.68rem;color:var(--gold);font-weight:700;flex-shrink:0;
}
.surah-pop-ar{font-family:'Amiri',serif;font-size:1.2rem;color:var(--gold-l);line-height:1.3}
.surah-pop-en{font-size:.72rem;font-weight:700;color:var(--text)}
.surah-pop-meta{font-size:.65rem;color:var(--muted)}
.surah-pop-virtue{font-size:.65rem;color:rgba(201,168,76,.6);line-height:1.4;margin-top:.15rem;font-style:italic}
.surah-pop-read{
  margin-top:.4rem;
  display:flex;align-items:center;gap:.3rem;
  font-size:.68rem;font-weight:700;color:var(--gold);letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.7;transition:opacity .15s;
}
.surah-pop-card:hover .surah-pop-read{opacity:1}
.surah-badge{
  position:absolute;top:7px;right:7px;
  font-size:.55rem;padding:2px 6px;border-radius:8px;
  background:rgba(201,168,76,.15);color:var(--gold);border:1px solid var(--gold-d);
  font-weight:700;letter-spacing:.06em;text-transform:uppercase;
}

/* 4 Quls special row */
.quls-row{display:grid;grid-template-columns:repeat(4,1fr);gap:.85rem;margin-top:.85rem}
@media(max-width:600px){.quls-row{grid-template-columns:repeat(2,1fr)}}

/* ═══════════════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════════════ */
.back-top{
  position:fixed;bottom:2rem;right:2rem;z-index:500;
  width:42px;height:42px;
  background:var(--green);border:1px solid var(--gold-d);
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  color:var(--gold);font-size:.9rem;cursor:pointer;
  opacity:0;pointer-events:none;transition:opacity .3s,transform .2s;
  text-decoration:none;
}
.back-top.show{opacity:1;pointer-events:all}
.back-top:hover{transform:translateY(-2px)}


/* ═══════════════════════════════════════════════════
   WORDPRESS BLOG STYLES
═══════════════════════════════════════════════════ */
.wp-blog-section{padding:5rem 2rem;position:relative;z-index:1;background:var(--bg2)}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem;margin-top:2.5rem}
.blog-card{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;transition:border-color .2s,transform .2s}
.blog-card:hover{border-color:var(--border2);transform:translateY(-3px)}
.blog-card-img{width:100%;height:200px;object-fit:cover;display:block}
.blog-card-img-placeholder{width:100%;height:200px;background:linear-gradient(135deg,var(--bg4),var(--bg3));display:flex;align-items:center;justify-content:center;font-size:3rem}
.blog-card-body{padding:1.5rem}
.blog-card-cat{font-size:.65rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold-d);font-weight:700;margin-bottom:.5rem}
.blog-card-title{font-family:'Amiri',serif;font-size:1.3rem;color:var(--gold-l);line-height:1.3;margin-bottom:.6rem}
.blog-card-title a{color:inherit;text-decoration:none;transition:color .15s}
.blog-card-title a:hover{color:var(--gold)}
.blog-card-excerpt{font-size:.82rem;color:var(--muted);line-height:1.65;margin-bottom:1rem}
.blog-card-meta{display:flex;align-items:center;gap:.8rem;font-size:.7rem;color:var(--muted2)}
.blog-card-meta i{color:var(--gold-d)}
.blog-card-read{display:inline-flex;align-items:center;gap:.3rem;font-size:.75rem;font-weight:700;color:var(--gold);letter-spacing:.08em;text-transform:uppercase;text-decoration:none;margin-top:.8rem;transition:opacity .15s}
.blog-card-read:hover{opacity:.7}

/* Single post */
.single-post-wrap{max-width:820px;margin:0 auto;padding:7rem 2rem 4rem}
.single-post-cat{font-size:.65rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-d);font-weight:700;margin-bottom:.7rem}
.single-post-cat a{color:inherit;text-decoration:none}
.single-post-title{font-family:'Amiri',serif;font-size:clamp(1.8rem,4vw,2.8rem);color:var(--gold);line-height:1.2;margin-bottom:1rem}
.single-post-meta{display:flex;align-items:center;gap:1rem;font-size:.78rem;color:var(--muted);margin-bottom:2rem;flex-wrap:wrap}
.single-post-meta i{color:var(--gold-d)}
.single-post-img{width:100%;border-radius:var(--radius-lg);margin-bottom:2rem;border:1px solid var(--border)}
.single-post-content{font-size:.95rem;color:var(--text);line-height:1.85;font-weight:300}
.single-post-content h2,.single-post-content h3{font-family:'Amiri',serif;color:var(--gold);margin:1.5rem 0 .6rem}
.single-post-content p{margin-bottom:1.2rem}
.single-post-content a{color:var(--gold);text-decoration:underline}
.single-post-content blockquote{border-left:3px solid var(--gold-d);padding:.6rem 1.2rem;margin:1.2rem 0;background:rgba(201,168,76,.05);border-radius:0 var(--radius) var(--radius) 0;font-style:italic;color:var(--muted)}
.single-post-content img{border-radius:var(--radius);border:1px solid var(--border);margin:1rem 0}
.single-post-content ul,.single-post-content ol{padding-left:1.5rem;margin-bottom:1.2rem}
.single-post-content li{margin-bottom:.4rem;color:var(--muted)}
.post-nav{display:flex;justify-content:space-between;gap:1rem;margin-top:3rem;padding-top:1.5rem;border-top:1px solid var(--border);flex-wrap:wrap}
.post-nav a{display:flex;flex-direction:column;gap:.3rem;text-decoration:none;flex:1;min-width:200px}
.post-nav-lbl{font-size:.65rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold-d)}
.post-nav-title{font-family:'Amiri',serif;font-size:1rem;color:var(--gold-l)}
.post-nav .next{text-align:right}

/* Page 404 / Archive header */
.archive-header{padding:7rem 2rem 2rem;text-align:center}
.archive-header h1{font-family:'Amiri',serif;font-size:2.5rem;color:var(--gold);margin-bottom:.5rem}
.archive-header p{color:var(--muted);font-size:.9rem}

/* Pagination */
.wp-pagination{display:flex;justify-content:center;gap:.5rem;margin-top:2.5rem;flex-wrap:wrap}
.wp-pagination a,.wp-pagination span{
  width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius);
  color:var(--muted);font-size:.82rem;font-weight:700;text-decoration:none;transition:all .15s;
}
.wp-pagination a:hover,.wp-pagination .current{background:rgba(201,168,76,.1);border-color:var(--gold);color:var(--gold)}

/* Yoast breadcrumb */
.yoast-breadcrumb{font-size:.72rem;color:var(--muted2);padding:5rem 2rem 0;max-width:1280px;margin:0 auto}
.yoast-breadcrumb a{color:var(--gold-d);text-decoration:none}

/* ═══════════════════════════════════════════════════
   HERO SLIDER — Auto-advances every 10s
═══════════════════════════════════════════════════ */
.hero{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:80px 2rem 4rem;overflow:hidden;}
.hero-slider{position:absolute;inset:0;z-index:0;}
.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.4s ease;}
.hero-slide.active{opacity:1;}
.hero-slide::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,16,10,.2) 0,rgba(4,16,10,.72) 55%,var(--bg) 100%);}
.hero-dots{position:absolute;bottom:2.2rem;left:50%;transform:translateX(-50%);display:flex;gap:.55rem;z-index:10;}
.hero-dot{width:11px;height:11px;border-radius:50%;background:rgba(201,168,76,.3);border:1px solid var(--gold-d);cursor:pointer;transition:all .3s;}
.hero-dot.active{background:var(--gold);transform:scale(1.3);}
.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:10;background:rgba(201,168,76,.12);border:1px solid var(--gold-d);color:var(--gold);width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s;font-size:1.1rem;}
.hero-arrow:hover{background:rgba(201,168,76,.28);}
.hero-arrow-left{left:1.4rem;}
.hero-arrow-right{right:1.4rem;}
.slide-caption{position:absolute;bottom:4.2rem;left:50%;transform:translateX(-50%);z-index:10;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(232,208,138,.55);white-space:nowrap;}

/* ═══════════════════════════════════════════════════
   COURSE IMAGE SLOT
═══════════════════════════════════════════════════ */
.course-img-wrap{width:100%;height:160px;background:var(--bg4);border-bottom:1px solid var(--border);position:relative;overflow:hidden;border-radius:var(--radius-lg) var(--radius-lg) 0 0;display:flex;align-items:center;justify-content:center;}
.course-img-wrap img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s;}
.course-card:hover .course-img-wrap img{transform:scale(1.06);}
.course-img-ph{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--muted2);font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;pointer-events:none;}
.course-img-ph i{font-size:1.8rem;color:var(--gold-d);opacity:.45;}
.course-card{padding:0;}
.course-card-body{padding:1.4rem 1.2rem 1.3rem;text-align:center;}

/* ═══════════════════════════════════════════════════
   GALLERY SECTION
═══════════════════════════════════════════════════ */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2.5rem;}
@media(max-width:700px){.gallery-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:420px){.gallery-grid{grid-template-columns:1fr;}}
.gallery-item{position:relative;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);aspect-ratio:4/3;background:var(--bg3);cursor:pointer;transition:border-color .2s,transform .2s;display:flex;align-items:center;justify-content:center;}
.gallery-item:hover{border-color:var(--gold);transform:scale(1.02);}
.gallery-item img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .4s;}
.gallery-item:hover img{transform:scale(1.07);}
.gallery-ph{display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--muted2);font-size:.68rem;text-transform:uppercase;letter-spacing:.07em;pointer-events:none;text-align:center;}
.gallery-ph i{font-size:1.8rem;color:var(--gold-d);opacity:.4;}
.gallery-ph small{font-size:.6rem;color:var(--muted2);opacity:.7;}
.gallery-label{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top,rgba(4,16,10,.85),transparent);padding:.5rem .7rem;font-size:.68rem;font-weight:700;color:var(--gold);letter-spacing:.06em;pointer-events:none;}

/* Prayer Arabic — bigger */
.p-arabic{font-family:'Amiri',serif!important;font-size:1.5rem!important;color:var(--gold)!important;direction:rtl;line-height:1.3;}

/* ═══════════════════════════════════════════════════
   BLOG STYLES (archive.php / single.php)
═══════════════════════════════════════════════════ */
.wp-blog-section{padding:5rem 0;min-height:60vh;}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem;margin-top:2rem;}
.blog-card{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;transition:border-color .2s,transform .2s;display:flex;flex-direction:column;}
.blog-card:hover{border-color:var(--gold-d);transform:translateY(-4px);}
.blog-card-img{width:100%;height:200px;object-fit:cover;display:block;}
.blog-card-img-placeholder{width:100%;height:200px;background:var(--bg4);display:flex;align-items:center;justify-content:center;font-size:3rem;color:var(--muted2);}
.blog-card-body{padding:1.3rem 1.4rem 1.4rem;flex:1;display:flex;flex-direction:column;}
.blog-card-cat{font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-d);margin-bottom:.5rem;}
.blog-card-cat a{color:var(--gold-d);text-decoration:none;}
.blog-card-title{font-size:1.05rem;font-weight:700;color:var(--text);line-height:1.4;margin-bottom:.5rem;font-family:'Lato',sans-serif;}
.blog-card-title a{color:inherit;text-decoration:none;}
.blog-card-title a:hover{color:var(--gold);}
.blog-card-meta{font-size:.72rem;color:var(--muted);display:flex;gap:.8rem;flex-wrap:wrap;margin-bottom:.7rem;}
.blog-card-excerpt{font-size:.84rem;color:var(--muted);line-height:1.7;flex:1;}
.blog-card-read{margin-top:1rem;display:inline-flex;align-items:center;gap:.4rem;font-size:.78rem;font-weight:700;color:var(--gold);text-decoration:none;letter-spacing:.06em;text-transform:uppercase;transition:color .2s;}
.blog-card-read:hover{color:var(--gold-l);}
.blog-cat-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:2rem;}
.blog-cat-tab{padding:.4rem 1rem;border-radius:20px;border:1px solid var(--border);color:var(--muted);font-size:.78rem;font-weight:700;text-decoration:none;transition:all .2s;letter-spacing:.06em;}
.blog-cat-tab:hover,.blog-cat-tab.current-cat{background:var(--gold-dim);border-color:var(--gold-d);color:var(--gold);}
.wp-pagination{display:flex;gap:.4rem;justify-content:center;margin-top:3rem;flex-wrap:wrap;}
.wp-pagination .page-numbers{padding:.5rem 1rem;border:1px solid var(--border);border-radius:8px;color:var(--muted);text-decoration:none;font-size:.82rem;transition:all .2s;}
.wp-pagination .page-numbers:hover,.wp-pagination .page-numbers.current{background:var(--gold-dim);border-color:var(--gold-d);color:var(--gold);}

/* Single post */
.single-post-wrap{max-width:820px;margin:5rem auto;padding:0 1.5rem;}
.single-post-cat{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-d);margin-bottom:.6rem;}
.single-post-cat a{color:var(--gold-d);text-decoration:none;}
.single-post-title{font-size:clamp(1.6rem,4vw,2.4rem);font-weight:700;color:var(--text);line-height:1.3;margin-bottom:.8rem;font-family:'Lato',sans-serif;}
.single-post-meta{display:flex;gap:1rem;flex-wrap:wrap;font-size:.78rem;color:var(--muted);margin-bottom:1.5rem;border-bottom:1px solid var(--border);padding-bottom:1rem;}
.single-post-meta span{display:flex;align-items:center;gap:.3rem;}
.single-post-img{width:100%;border-radius:var(--radius-lg);margin-bottom:2rem;max-height:420px;object-fit:cover;}
.single-post-content{font-size:1rem;line-height:1.9;color:var(--text);}
.single-post-content h2{font-size:1.4rem;color:var(--gold);margin:2rem 0 .7rem;font-family:'Lato',sans-serif;}
.single-post-content h3{font-size:1.15rem;color:var(--gold-l);margin:1.5rem 0 .5rem;}
.single-post-content p{margin-bottom:1.1rem;}
.single-post-content ul,.single-post-content ol{padding-left:1.4rem;margin-bottom:1rem;}
.single-post-content li{margin-bottom:.4rem;}
.single-post-content blockquote{border-left:3px solid var(--gold);padding:.8rem 1.2rem;margin:1.5rem 0;background:var(--bg3);border-radius:0 var(--radius) var(--radius) 0;font-style:italic;color:var(--muted);}
.single-post-content a{color:var(--gold-d);text-decoration:underline;}
.post-nav{display:flex;justify-content:space-between;gap:1rem;margin-top:3rem;padding-top:2rem;border-top:1px solid var(--border);}
.post-nav a{display:flex;flex-direction:column;gap:.3rem;text-decoration:none;max-width:45%;}
.post-nav .post-nav-lbl{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);}
.post-nav .post-nav-title{font-size:.88rem;color:var(--gold);font-weight:700;line-height:1.4;}
.post-nav .next{text-align:right;margin-left:auto;}
.yoast-breadcrumb{padding:.8rem 0;font-size:.78rem;color:var(--muted);max-width:1200px;margin:0 auto;padding-left:1.5rem;}
.yoast-breadcrumb a{color:var(--gold-d);text-decoration:none;}

/* ═══════════════════════════════════════════════════
   NAVBAR — wider, centered
═══════════════════════════════════════════════════ */
nav{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  background:rgba(4,16,10,.92);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
  padding:0 1.2rem;
  display:grid;grid-template-columns:auto 1fr auto;
  align-items:center;height:62px;gap:.5rem;width:100%;
}
.nav-links{display:flex;gap:0;flex:1;justify-content:center;flex-wrap:wrap;padding:0 .5rem;}
.nav-link{color:var(--muted);text-decoration:none;font-size:.88rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:.35rem .55rem;border-radius:5px;transition:color .2s,background .2s;white-space:nowrap;}
.nav-link:hover{color:var(--gold);background:var(--gold-dim);}
