/* =========================================================
   Tarteel — Redesigned Homepage Stylesheet (v2)
   Palette strictly limited to the original brand colors:
   green rgba(37,97,66,.836), olive rgba(53,90,50,.6/.918/1),
   gold rgb(202,170,120), cream rgb(233,205,161).
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root{
  --green-rgb: 37, 97, 66;
  --olive-rgb: 53, 90, 50;
  --gold-rgb: 202, 170, 120;
  --cream-rgb: 233, 205, 161;

  --green: rgba(var(--green-rgb), .836);
  --olive-soft: rgba(var(--olive-rgb), .6);
  --olive-hover: rgba(var(--olive-rgb), .918);
  --olive: rgb(var(--olive-rgb));
  --gold: rgb(var(--gold-rgb));
  --cream: rgb(var(--cream-rgb));

  --text-soft: rgba(var(--green-rgb), .72);
  --bg: #ffffff;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 12px rgba(18, 40, 28, .08);
  --shadow-md: 0 14px 34px rgba(18, 40, 28, .14);
  --shadow-lg: 0 28px 70px rgba(18, 40, 28, .22);

  --container: 1240px;
  --font: 'Tajawal', sans-serif;
}

*{ margin:0; padding:0; box-sizing:border-box; font-family: var(--font); }

/* Bootstrap's reboot sets margins on these via element selectors, which beat
   the universal reset above regardless of stylesheet load order. */
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, pre{ margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  font-family: var(--font);
  color: var(--green);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; }
ul{ list-style:none; }
.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.5px;
  color: var(--gold);
  background: var(--green);
  border: 1px solid rgba(255,255,255,.22);
  padding:6px 16px;
  border-radius:99px;
  margin-bottom:14px;
}
.section-head{
  text-align:center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2{
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--green);
  line-height:1.3;
}
.section-head p{
  margin-top:12px;
  color: var(--text-soft);
  font-size:17px;
  line-height:1.8;
}
.section-head.on-dark h2{ color:#fff; }
.section-head.on-dark p{ color: rgba(255,255,255,.75); }

/* ---------- reveal-on-scroll ---------- */
.reveal{
  opacity:0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity:1; transform: translateY(0); }
.reveal-delay-1{ transition-delay:.1s; }
.reveal-delay-2{ transition-delay:.2s; }
.reveal-delay-3{ transition-delay:.3s; }

/* =========================================================
   Page loader
   ========================================================= */
#page-loader{
  position: fixed; inset:0;
  background: var(--bg);
  display:flex; align-items:center; justify-content:center;
  z-index: 9999;
}
.loader-mark{
  width:64px; height:64px;
  border-radius:50%;
  border: 5px solid rgba(var(--green-rgb), .15);
  border-top-color: var(--green);
  animation: spin 0.9s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* =========================================================
   Topbar
   ========================================================= */
.topbar{
  background: var(--green);
  color: #fff;
  font-size: 13.5px;
  height: 38px;
  position: fixed;
  top:0; right:0; left:0;
  z-index: 300;
  transition: transform .3s ease, opacity .3s ease;
}
.topbar.hidden{ transform: translateY(-100%); opacity:0; }
.topbar .wrap{
  height:100%;
  display:flex; align-items:center; justify-content:space-between;
}
.topbar .contact-info{ display:flex; align-items:center; gap:22px; }
.topbar .contact-info a{
  color:#fff; text-decoration:none; display:inline-flex; align-items:center; gap:6px;
  opacity:.92; transition:.25s;
}
.topbar .contact-info a:hover{ opacity:1; color: var(--gold); }
.topbar .social-links{ display:flex; align-items:center; gap:16px; }
.topbar .social-links a{
  color: rgba(255,255,255,.75); transition:.25s; font-size:14px;
}
.topbar .social-links a:hover{ color: var(--gold); }
@media (max-width:700px){
  .topbar .social-links{ display:none; }
  .topbar .contact-info{ gap:14px; font-size:12.5px; }
}

/* =========================================================
   Navbar
   ========================================================= */
header.site-nav{
  position: fixed;
  top: 38px; right:0; left:0;
  z-index: 250;
  background: var(--olive-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: top .3s ease, box-shadow .3s ease;
}
header.site-nav.scrolled{ box-shadow: var(--shadow-sm); }
.topbar.hidden ~ header.site-nav{ top:0; }

.nav-inner{
  max-width: var(--container);
  margin:0 auto;
  padding: 0 24px;
  height: 78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
  font-weight:800; font-size:26px;
  line-height:1;
  color: #fff;
  position:relative;
  -webkit-mask-image: linear-gradient(-75deg, rgba(0,0,0,.65) 30%, #000 50%, rgba(0,0,0,.65) 70%);
  -webkit-mask-size: 200%;
  animation: shine 3s linear infinite;
  transition: color .25s ease;
}
.brand:hover{ color: var(--gold); }
.brand .dot{
  width:10px; height:10px; border-radius:3px;
  background: var(--gold);
  transform: rotate(45deg);
  display:inline-block;
}
@keyframes shine{
  from{ -webkit-mask-position: 150%; }
  to{ -webkit-mask-position: -50%; }
}
.nav-links{
  margin:0;
  display:flex; align-items:center; gap:6px;
}
.nav-links li{
  display:flex; align-items:center;
}
.nav-links a{
  display:flex; align-items:center; justify-content:center;
  text-decoration:none;
  color: #fff;
  font-weight:700;
  font-size:15.5px;
  line-height:1;
  padding: 10px 18px;
  border-radius: 99px;
  transition: all .25s ease;
}
.nav-links a:hover{ background: var(--olive-hover); color:#fff; }
.nav-cta{
  background: var(--gold) !important;
  color: var(--green) !important;
  padding: 11px 24px !important;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover{ background: var(--olive-hover) !important; color:#fff !important; }

.nav-toggle{
  display:none;
  width: 44px; height:44px;
  border-radius: 50%;
  border:none;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size:20px;
  align-items:center; justify-content:center;
  cursor:pointer;
}

@media (max-width: 900px){
  .nav-links{
    position: fixed;
    top:0; right:-100%;
    height:100vh;
    width: min(80%, 340px);
    background: var(--green);
    flex-direction:column;
    align-items:stretch;
    padding: 100px 28px 28px;
    gap:6px;
    box-shadow: var(--shadow-lg);
    transition: right .35s ease;
    z-index: 260;
  }
  .nav-links.open{ right:0; }
  .nav-links a{ padding:16px 18px; font-size:17px; text-align:right; }
  .nav-toggle{ display:flex; }
  .nav-close{
    display:flex; align-items:center; justify-content:center;
    position:absolute; top:24px; left:24px;
    width:40px; height:40px; border-radius:50%;
    background: rgba(255,255,255,.1); color:#fff;
    font-size:18px; cursor:pointer;
  }
  .nav-overlay{
    display:none;
    position:fixed; inset:0; background: rgba(0,0,0,.45);
    z-index:255;
  }
  .nav-overlay.open{ display:block; }
}
@media (min-width:901px){
  .nav-close, .nav-overlay{ display:none; }
}

/* =========================================================
   Hero
   ========================================================= */
#hero{
  position:relative;
  min-height: 76vh;
  display:flex; align-items:center;
  overflow:hidden;
  background-color: var(--cream);
}
#hero .hero-bg{
  position:absolute; inset:0;
  background: url("/img/LightBackground.jpg") center/cover no-repeat;
  transform: scale(1.05);
}
#hero .hero-overlay{
  position:absolute; inset:0;
  background: rgba(255,255,255,.6);
}
#hero .wrap{
  position:relative; z-index:2;
  width:100%;
  padding-top: 70px; padding-bottom: 90px;
}
.hero-content{ max-width: 660px; margin-top: 32px; margin-bottom: 28px; }
#hero h1{
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--green);
  margin-bottom: 22px;
  animation: hero-text-animation 1.2s ease-in-out;
}
#hero h1 span{
  color: var(--gold);
  position:relative;
  display:inline-block;
  -webkit-mask-image: linear-gradient(-75deg, rgba(0,0,0,.6) 30%, #000 50%, rgba(0,0,0,.6) 70%);
  -webkit-mask-size: 200%;
  animation: shine 2.5s linear infinite;
}
@keyframes hero-text-animation{
  0%{ opacity:0; transform: translateY(-14px); }
  100%{ opacity:1; transform: translateY(0); }
}
#hero .hero-tagline{
  margin-top:16px;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight:700;
  color: var(--green);
  min-height: 34px;
}
.hero-tagline .typing-cursor{
  display:inline-block;
  width: 3px;
  height: 1em;
  margin-right: 3px;
  vertical-align: -0.15em;
  background: var(--gold);
  animation: cursor-blink 900ms step-end infinite;
}
@keyframes cursor-blink{
  0%, 50%{ opacity:1; }
  50.01%, 100%{ opacity:0; }
}
.hero-quote{
  margin-top: 22px;
  padding-right: 18px;
  border-right: 3px solid var(--gold);
  color: rgba(var(--green-rgb),.85);
  font-size: 16.5px;
  line-height:1.9;
}
.hero-actions{
  margin-top: 36px;
  display:flex; align-items:center; gap:26px; flex-wrap:wrap;
}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:700; font-size:15.5px;
  padding: 15px 30px;
  border-radius: 99px;
  text-decoration:none;
  border:none; cursor:pointer;
  transition: all .3s ease;
}
.btn-primary{
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 30px rgba(var(--green-rgb),.3);
}
.btn-primary:hover{ background: var(--olive-hover); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(var(--olive-rgb),.4); }
.btn-outline{
  background: transparent;
  color: var(--green);
  border: 1.5px solid rgba(var(--green-rgb),.4);
}
.btn-outline:hover{ background: rgba(var(--green-rgb),.08); border-color: var(--green); }

.hero-video-cta{
  display:inline-flex; align-items:center; gap:14px;
  text-decoration:none; cursor:pointer;
}
.video-play-button{
  position:relative;
  flex: 0 0 auto;
  width:56px; height:56px;
}
.video-play-button .vpb-ring{
  position:absolute; inset:0;
  border-radius:50%;
  background: rgba(var(--green-rgb),.55);
  animation: pulse-border 1800ms ease-out infinite;
}
.video-play-button .vpb-circle{
  position:relative; z-index:1;
  width:56px; height:56px; border-radius:50%;
  background: var(--green);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:18px;
  box-shadow: var(--shadow-md);
  transition: background .3s ease;
}
.hero-video-cta:hover .vpb-circle{ background: var(--olive-hover); }
@keyframes pulse-border{
  0%{ transform: scale(1); opacity:.75; }
  100%{ transform: scale(1.6); opacity:0; }
}
.video-play-label{ font-weight:700; color: var(--green); font-size:15.5px; }

.hero-scroll{
  position:absolute; bottom: 28px; right:50%; transform: translateX(50%);
  z-index:2;
  color: rgba(var(--green-rgb),.7);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-size:12px;
}
.hero-scroll .line{
  width:1px; height:34px; background: rgba(var(--green-rgb),.35);
  overflow:hidden; position:relative;
}
.hero-scroll .line::after{
  content:""; position:absolute; top:-100%; right:0; width:100%; height:100%;
  background: var(--gold);
  animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line{
  0%{ top:-100%; } 60%{ top:100%; } 100%{ top:100%; }
}

@media (max-width: 700px){
  #hero{ min-height: auto; padding-bottom: 30px; }
  #hero .wrap{ padding-top: 56px; }
  .hero-scroll{ display:none; }
}

/* ---------- Info strip: weather + time + prayer times, full-width below the navbar ----------
   Design and colors mirror the admin dashboard's status bar (localhost:3001/dashboard):
   a plain white card with a hairline border, muted-green text, and pill-shaped prayer chips —
   the same #256142 brand green, #5b6b62 muted text, #e1e7e3 border and #eef2f0 chip fill. */
.hero-status-bar{
  position:relative;
  z-index:5;
  margin:0;
  margin-top: 116px; /* clears the fixed topbar (38px) + navbar (78px) */
  width:100%;
  animation: status-bar-in .5s ease-out;
}
@keyframes status-bar-in{
  from{ opacity:0; transform: translateY(-6px); }
  to{ opacity:1; transform: translateY(0); }
}
.info-strip-bar{
  width:100%;
  background:#fff;
  border-bottom:1px solid #e1e7e3;
  box-shadow:0 2px 10px rgba(20,40,30,.08);
}
.info-strip-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px 16px;
  padding:6px 14px;
}
.info-strip-weather{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
/* Weather chip — matches the dashboard's .status-weather widget:
   a bare pulsing icon + bold temp + muted description + a blue "breathing" humidity drop. */
.info-strip-weather .weather-icon{
  flex:0 0 auto;
  font-size:18px;
  color:#256142;
  display:inline-block;
  transform-origin:center center;
  animation: weather-pulse 3s ease-in-out infinite;
}
.info-strip-weather .weather-icon.fa-sun,
.info-strip-weather .weather-icon.fa-moon,
.info-strip-weather .weather-icon.fa-snowflake{
  animation: weather-pulse 3s ease-in-out infinite, weather-spin 10s linear infinite;
}
.info-strip-weather .weather-temp{ font-size:14.5px; font-weight:700; color:#1f2e26; }
.info-strip-weather .weather-desc{ font-size:12.5px; color:#5b6b62; }
.info-strip-weather .weather-humidity{
  display:inline-flex; align-items:center; gap:4px;
  font-size:12.5px; color:#5b6b62;
  font-variant-numeric:tabular-nums; direction:ltr;
}
.info-strip-weather .weather-humidity i{
  color:#4a9fd8;
  display:inline-block;
  animation: weather-humidity-drop 2.2s ease-in-out infinite;
}

@keyframes weather-pulse{
  0%,100%{ transform:scale(1); }
  50%{ transform:scale(1.15); }
}
@keyframes weather-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
@keyframes weather-humidity-drop{
  0%,100%{ transform: translateY(0) scaleY(1); }
  30%{ transform: translateY(1px) scaleY(1.1); }
  50%{ transform: translateY(3px) scaleY(.9); }
  70%{ transform: translateY(0) scaleY(1.05); }
}
@media (prefers-reduced-motion: reduce){
  .info-strip-weather .weather-icon,
  .info-strip-weather .weather-humidity i,
  .hero-status-bar{ animation:none !important; }
}

/* Date + live time — plain inline text, like the dashboard's calendar/clock cluster */
.info-strip-weather .weather-time{
  display:flex; align-items:center; gap:6px;
  padding-right:12px; margin-right:2px;
  border-right:1px solid #e1e7e3;
  font-size:12.5px; color:#5b6b62;
  white-space:nowrap;
}
.info-strip-weather .weather-time i{ color:#256142; }
.info-strip-weather .weather-time-sep{ opacity:.5; }
.info-strip-weather .weather-time-value{
  font-weight:700; color:#1f2e26;
  font-variant-numeric:tabular-nums; direction:ltr;
}

.info-strip-divider{ width:1px; align-self:stretch; background:#e1e7e3; }

.info-strip-prayers{ display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.info-strip-prayers .prayer-row{
  display:flex; align-items:center; gap:6px;
  font-size:12px; color:#1f2e26;
  padding:3px 9px;
  border-radius:999px;
  background:#eef2f0;
  transition:background .2s ease;
}
.info-strip-prayers .prayer-row .prayer-name{ opacity:.75; font-weight:600; }
.info-strip-prayers .prayer-row .prayer-time{ font-weight:700; font-variant-numeric:tabular-nums; direction:ltr; }
.info-strip-prayers .prayer-row.next-prayer{
  background:#256142; color:#fff; font-weight:600;
  animation: next-prayer-pulse 2s ease-in-out infinite;
}
.info-strip-prayers .prayer-row.next-prayer .prayer-name{ opacity:1; }

@keyframes next-prayer-pulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(37,97,66,.5); }
  50%{ box-shadow:0 0 0 5px rgba(37,97,66,0); }
}
@media (prefers-reduced-motion: reduce){
  .info-strip-prayers .prayer-row.next-prayer{ animation:none !important; }
}

@media (max-width:700px){
  /* Stack weather and prayers as two centered rows instead of cramming everything
     into one line — with day name + full date now in the mix there's too much
     content for a single row on a phone screen. */
  .info-strip-inner{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
  }
  .info-strip-divider{ display:none; }
  .info-strip-weather{
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
  }
  .info-strip-weather .weather-desc{ display:none; } /* secondary detail, trimmed to save space */
  .info-strip-weather .weather-time{
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }
  .info-strip-prayers{ justify-content:center; gap:4px 6px; }
  .info-strip-prayers .prayer-row{ font-size:11px; padding:3px 8px; }
}

/* ---------- Hero: two-column layout (welcome text + big Quran hero image) ---------- */
.hero-grid{
  display:flex;
  align-items:flex-start;
  gap:56px;
}
.hero-grid .hero-content{ flex:1 1 0; min-width:0; }

.hero-side{
  flex:0 0 460px;
  width:460px;
}

.hero-quran-image{
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  border:1px solid rgba(var(--green-rgb),.12);
  animation: hero-image-float 4.5s ease-in-out infinite;
  will-change: transform;
}
.hero-quran-image img{ width:100%; height:auto; display:block; }

@keyframes hero-image-float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-16px); }
}
@media (prefers-reduced-motion: reduce){
  .hero-quran-image{ animation: none; }
}

@media (max-width: 992px){
  .hero-grid{ flex-direction:column; align-items:stretch; }
  .hero-side{ width:100%; flex:1 1 auto; max-width:460px; margin:0 auto; }
}

/* =========================================================
   Values / Vision-Mission-Goals
   ========================================================= */
#values{
  padding: 100px 0 90px;
  background: var(--green);
}
.values-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card{
  background:#fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18,40,28,.05);
  transition: transform .35s ease, box-shadow .35s ease;
  position:relative;
  overflow:hidden;
}
.value-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-md); }
.value-card .icon{
  width:64px; height:64px;
  border-radius: 18px;
  background: var(--green);
  color: var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-size: 26px;
  margin-bottom: 22px;
}
.value-card h3{
  font-size: 21px; font-weight:800; color: var(--green);
  margin-bottom: 12px;
}
.value-card p{ color: var(--text-soft); line-height:1.9; font-size:15.5px; }
.value-card ul{ color: var(--text-soft); line-height:2; font-size:15px; }
.value-card ul li{ padding-right: 18px; position:relative; }
.value-card ul li::before{
  content:"";
  position:absolute; right:0; top:12px;
  width:6px; height:6px; border-radius:50%;
  background: var(--gold);
}
@media (max-width: 980px){
  .values-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   About Us
   ========================================================= */
#about{
  background: var(--olive);
  padding: 100px 0;
  position:relative;
}
.about-tabs{
  display:flex; justify-content:center; gap:10px; flex-wrap:wrap;
  margin-bottom: 40px;
}
.about-tab{
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--gold);
  padding: 12px 26px;
  border-radius: 99px;
  font-weight:700; font-size:15px;
  cursor:pointer;
  transition: all .25s ease;
  /* Equal-width pills regardless of label length, so the row of three
     reads as one consistent set instead of visibly mismatched sizes. */
  flex: 1 1 240px;
  max-width: 300px;
  text-align: center;
}
.about-tab.active{
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green);
}
.about-panel{ display:none; }
.about-panel.active{ display:block; animation: fadein .5s ease; }
@keyframes fadein{ from{ opacity:0; transform: translateY(10px);} to{opacity:1; transform:translateY(0);} }

.about-card{
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 44px;
  display:flex; gap: 36px;
  align-items:flex-start;
}
.about-card .photo{
  flex: 0 0 160px;
  width:160px; height:180px;
  border-radius: 16px;
  overflow:hidden;
  border: 3px solid rgba(var(--gold-rgb),.6);
  box-shadow: var(--shadow-md);
}
.about-card .photo img{ width:100%; height:100%; object-fit:cover; }
.about-card .text h4{
  color: var(--gold);
  font-size: 19px; font-weight:800; margin-bottom:14px;
  text-align:center;
}
.about-card .text p{
  color: rgba(255,255,255,.9);
  line-height: 2.05;
  font-size: 15.5px;
  text-align:justify;
}
@media (max-width: 800px){
  .about-card{ flex-direction:column; align-items:center; text-align:center; padding: 30px 22px; }
  .about-card .text p{ text-align:right; }
}

/* =========================================================
   Registration / New semester
   ========================================================= */
#register{
  padding: 100px 0;
  background: var(--cream);
  position:relative;
  overflow:hidden;
}
#register::before{
  content:"";
  position:absolute; inset:0;
  background: url("/img/Dark.png") repeat;
  opacity:.12;
  pointer-events:none;
}
.register-grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items:center;
}
.register-text .section-eyebrow{ display:flex; width:fit-content; margin:0 auto 18px; font-size:20px; padding:10px 24px; gap:10px; }
.register-text h2{
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight:900;
  color: var(--green);
  line-height:1.35;
  margin-bottom: 18px;
}
.register-text > p{
  color: var(--green);
  opacity:.85;
  font-size: 17px;
  line-height:1.9;
  margin-bottom: 34px;
}
.register-actions{
  display:flex; flex-direction:column; gap:14px;
}
.register-action{
  display:flex; align-items:center; gap:16px;
  background:#fff;
  border-radius: 16px;
  padding: 18px 22px;
  text-decoration:none;
  color: var(--green);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18,40,28,.05);
  transition: all .3s ease;
  font-weight:700;
}
.register-action:hover{ transform: translateX(-6px); box-shadow: var(--shadow-md); border-color: rgba(var(--gold-rgb),.4); }
.register-action .ic{
  width:48px; height:48px; border-radius:12px;
  background: rgba(var(--green-rgb),.1);
  color: var(--green);
  display:flex; align-items:center; justify-content:center;
  font-size:19px; flex:0 0 auto;
}
.register-action.primary{ background: var(--green); color:#fff; }
.register-action.primary .ic{ background: rgba(255,255,255,.15); color: var(--gold); }
.register-action span.label{ flex:1; }
.register-action .arrow{ opacity:.6; }

.register-image{
  position:relative;
  display:flex; justify-content:center;
}
.register-image img{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 78%;
  border: 6px solid #fff;
}
.register-image::after{
  content:"";
  position:absolute;
  width: 220px; height:220px;
  background: var(--gold);
  border-radius:50%;
  opacity:.25;
  bottom:-40px; left: 10%;
  z-index:-1;
  filter: blur(10px);
}
@media (max-width: 980px){
  .register-grid{ grid-template-columns:1fr; }
  .register-image{ order:-1; }
  .register-image img{ max-width:60%; }
}
@media (max-width:520px){
  .register-image img{ max-width:85%; }
}

/* =========================================================
   Honour slider (swiper)
   ========================================================= */
#honour{
  padding: 100px 0;
  background: var(--olive);
  position:relative;
  overflow:hidden;
}
#honour::before{
  content:"";
  position:absolute; inset:0;
  background: url("/img/Dark.png") repeat;
  opacity:.08;
}
.honour-swiper{ position:relative; z-index:1; padding-bottom: 10px; }
.honour-card{
  background: var(--olive-soft);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius);
  padding: 32px 24px 34px;
  text-align:center;
  height:100%;
}
.honour-card .avatar{
  width: 190px; height:190px;
  border-radius:50%;
  overflow:hidden;
  margin: 0 auto 22px;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-md);
}
.honour-card .avatar img{ width:100%; height:100%; object-fit:cover; }
.honour-card h4{ color:#fff; font-size:19px; font-weight:800; margin-bottom:6px; }
.honour-card p{ color: rgba(255,255,255,.7); font-size:14.5px; }

@media (max-width: 700px){
  .honour-card .avatar{ width: 150px; height:150px; }
}
/* Pagination sat absolutely positioned over the bottom edge of the middle
   card by default (Swiper's own bottom:8px), reading as if it belonged to
   that card. Taking it out of the absolute stack moves it into normal flow
   below the whole card row instead — clearly its own control. */
.honour-swiper .swiper-pagination{
  position: static;
  margin-top: 28px;
}
.honour-swiper .swiper-pagination-bullet{
  width: 16px;
  height: 16px;
  margin: 0 6px;
  background: var(--gold);
  opacity:.4;
}
.honour-swiper .swiper-pagination-bullet-active{ opacity:1; }
.honour-swiper .swiper-button-prev, .honour-swiper .swiper-button-next{
  width: 46px; height:46px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  border-radius:50%;
  color:#fff;
  top: 44%;
}
.honour-swiper .swiper-button-prev::after, .honour-swiper .swiper-button-next::after{ font-size:16px; color:#fff; }
.honour-swiper .swiper-button-prev:hover, .honour-swiper .swiper-button-next:hover{ background: var(--gold); border-color: var(--gold); }
.honour-swiper .swiper-button-prev:hover::after, .honour-swiper .swiper-button-next:hover::after{ color: var(--green); }

/* =========================================================
   Gallery
   ========================================================= */
#gallery{
  padding: 100px 0;
  background: var(--bg);
}
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
.gallery-grid button{
  border:none; padding:0; margin:0; cursor:pointer;
  border-radius: var(--radius);
  overflow:hidden;
  position:relative;
  background: var(--olive);
}
.gallery-grid img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .5s ease, opacity .4s ease;
}
.gallery-grid button:hover img{ transform: scale(1.08); opacity:.85; }
.gallery-grid button::after{
  content: "\f00e";
  font-family: "Font Awesome 6 Free"; font-weight:900;
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:22px;
  background: rgba(var(--green-rgb),0);
  opacity:0;
  transition: all .3s ease;
}
.gallery-grid button:hover::after{ opacity:1; background: rgba(var(--green-rgb),.45); }
.gallery-grid .g-big{ grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 520px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gallery-grid .g-big{ grid-column: span 2; grid-row: span 1; }
}

.lightbox-modal .modal-content{ background:transparent; border:none; }
.lightbox-modal .modal-body{ padding:0; }
.lightbox-modal img{ width:100%; border-radius: var(--radius); }
.lightbox-close{
  position:absolute; top:-14px; left:-14px;
  width:44px; height:44px; border-radius:50%;
  background:#fff; border:none; color: var(--green);
  font-size:16px; cursor:pointer; z-index:5; box-shadow: var(--shadow-md);
}

/* =========================================================
   Centers (مراكزنا) — same area-tab layout as the registration
   form's center list, restyled to the homepage's own --green/--gold
   design system instead of the form's --fh-* variables.
   ========================================================= */
#centers{
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg), var(--cream) 55%, var(--bg));
}
.centers-tabs{
  display:flex; flex-wrap:wrap; gap:10px;
  justify-content:center;
  border:none;
  margin-bottom: 40px;
}
.centers-tabs .nav-link{
  background:#fff;
  border-radius: 99px;
  font-weight:700;
  font-size:15px;
  color: var(--green);
  border: 1.5px solid rgba(var(--green-rgb),.28);
  padding: 11px 26px;
  transition: all .25s ease;
}
.centers-tabs .nav-link:hover{
  background: rgba(var(--green-rgb),.06);
  border-color: var(--green);
}
.centers-tabs .nav-link.active{
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.centers-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.center-card{
  background: #fff;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(var(--gold-rgb),.35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.center-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.center-card-header{
  background: var(--green);
  color: var(--gold);
  font-weight:700;
  font-size: 14px;
  text-align:center;
  padding: 10px 12px;
}
/* The full mosque photo is always shown intact (object-fit:contain on a
   neutral tint) instead of being cover-cropped/zoomed — matches the
   object-fit:contain convention already used for the registration form's
   own photo frames. Falls back to a placeholder if the image 404s (a few
   center photos reference filenames that don't exist on disk). */
.center-card .img-frame{
  width:100%;
  height: 150px;
  margin-top: 14px;
  background: rgba(var(--green-rgb),.05);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.center-card img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.center-card-body{
  padding: 16px 18px 18px;
  text-align:center;
  background: rgba(var(--gold-rgb),.045);
}
.center-card-body p{
  font-size: 13px;
  color: var(--green);
  opacity:.85;
  margin-bottom: 8px;
}
.center-card-body p:last-child{ margin-bottom:0; }
.center-card-body .map-line a{ color: var(--gold); font-size:15px; }
.no-centers{
  grid-column: 1 / -1;
  text-align:center;
  color: var(--green);
  opacity:.7;
  padding: 30px 0;
}
@media (max-width: 980px){
  .centers-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .centers-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   Contact
   ========================================================= */
#contact{
  padding: 100px 0 120px;
  background: linear-gradient(180deg, var(--bg), var(--cream));
}
.contact-grid{
  display:grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 30px;
  align-items:stretch;
}
.contact-card{
  background: var(--olive);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  color:#fff;
  display:flex; flex-direction:column; justify-content:center;
}
.contact-card h3{ font-size:26px; font-weight:800; margin-bottom:10px; }
.contact-card > p{ color: rgba(255,255,255,.75); margin-bottom:30px; }
.contact-line{
  display:flex; align-items:center; gap:14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.contact-line:first-of-type{ border-top:none; }
.contact-line .ic{
  width:44px; height:44px; border-radius:12px;
  background: rgba(255,255,255,.12);
  color: var(--gold);
  display:flex; align-items:center; justify-content:center;
  flex:0 0 auto;
}
.contact-line .lbl{ font-size:13px; color: rgba(255,255,255,.6); margin-bottom:2px; }
.contact-line a, .contact-line span.val{ color:#fff; text-decoration:none; font-weight:700; font-size:15.5px; }
.contact-line a:hover{ color: var(--gold); }

.map-card{
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-md);
  position:relative;
  min-height: 380px;
}
.map-card iframe{ width:100%; height:100%; min-height:380px; border:0; display:block; }

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.float-whatsapp{
  position: fixed;
  width:58px; height:58px;
  bottom: 30px; left:30px;
  background: #25d366;
  color:#fff;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 26px;
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
  z-index: 150;
  text-decoration:none;
  animation: float-btn 3s ease-in-out infinite;
}
@keyframes float-btn{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}

/* =========================================================
   Footer
   ========================================================= */
footer.site-footer{
  background: var(--olive);
  color: rgba(255,255,255,.8);
  padding: 60px 0 26px;
}
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap: 30px; flex-wrap:wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand{ display:flex; align-items:center; gap:12px; }
.footer-brand img{ width:56px; height:56px; object-fit:contain; background:#fff; border-radius:12px; padding:6px; }
.footer-brand .name{ font-size:22px; font-weight:800; color:#fff; }
.footer-brand .tag{ font-size:13px; color: rgba(255,255,255,.55); }
.footer-links{ display:flex; gap:26px; flex-wrap:wrap; }
.footer-links a{ color: rgba(255,255,255,.75); text-decoration:none; font-size:14.5px; font-weight:600; transition:.25s; }
.footer-links a:hover{ color: var(--gold); }
.footer-socials{ display:flex; gap:12px; }
.footer-socials a{
  width:40px; height:40px; border-radius:50%;
  background: rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:center;
  color:#fff; text-decoration:none; transition:.25s;
}
.footer-socials a:hover{ background: var(--gold); color: var(--green); }
.footer-bottom{
  padding-top: 22px;
  text-align:center;
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
}

/* modal titles / general modal polish */
.modal-close-x{
  position:absolute; top:14px; left:16px; z-index:10;
  width:38px; height:38px; border:none; border-radius:50%;
  background:transparent; color: var(--text-soft); font-size:1.05rem;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition: all .2s ease;
}
.modal-close-x:hover{ background: rgba(var(--gold-rgb),.18); color: var(--green); transform: rotate(90deg); }
.modal-content h2{ color: var(--green); }
