/* AL-ISRAA — Starter Frontend */
:root{
  --green-950:#063d2b;
  --green-900:#075139;
  --green-800:#0b6547;
  --green-700:#147454;
  --green-100:#e7f0e9;
  --gold:#d7ad4c;
  --gold-light:#f3d784;
  --cream:#f7f5ed;
  --white:#fff;
  --ink:#14211b;
  --muted:#66706b;
  --border:#e8e9e2;
  --shadow:0 14px 40px rgba(8,55,39,.10);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fbfbf8;color:var(--ink);font-family:Inter,Arial,sans-serif}
a{text-decoration:none;color:inherit}
.container{width:min(1440px,92%);margin:auto}

/* Header */
.site-header{height:76px;background:#fff;position:sticky;top:0;z-index:1000;border-bottom:1px solid rgba(0,0,0,.04)}
.nav-wrap{height:100%;display:flex;align-items:center;gap:32px}
.brand{display:flex;align-items:center;gap:10px;margin-right:auto;min-width:max-content}
.brand-logo{width:56px;height:60px;object-fit:contain;display:block;flex:0 0 auto}
.brand-name{font-family:"Cormorant Garamond",serif;font-size:34px;line-height:1;font-weight:700;letter-spacing:.5px;color:var(--green-950);white-space:nowrap}
.main-nav{display:flex;align-items:center;gap:27px;font-size:14px}
.main-nav>a{padding:29px 0 25px;border-bottom:3px solid transparent}
.main-nav>a:hover,.main-nav>a.active{border-color:var(--green-800);color:var(--green-900);font-weight:600}
.search-btn{width:42px;height:42px;border:1px solid var(--border);border-radius:50%;background:#fff;color:var(--green-900);font-size:25px;cursor:pointer}
.mosque-btn{display:inline-flex;align-items:center;gap:9px;background:var(--green-800);color:#fff;padding:12px 18px;border-radius:12px;font-size:13px;font-weight:700;white-space:nowrap}
.language{position:relative;margin-left:4px}
.language-btn{border:0;background:#f3f5ef;border-radius:999px;padding:10px 13px;cursor:pointer;font:600 13px Inter;color:var(--green-900)}
.language-dropdown{display:none;position:absolute;right:0;top:48px;width:150px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:7px}
.language.open .language-dropdown{display:block}
.language-dropdown button{width:100%;padding:10px;border:0;background:#fff;text-align:left;border-radius:9px;cursor:pointer;font:500 13px Inter}
.language-dropdown button:hover{background:var(--green-100);color:var(--green-900)}
.menu-toggle{display:none;border:0;background:none;font-size:28px}

/* Hero */
.hero{position:relative;overflow:hidden;background:var(--green-950);min-height:480px}
.hero-pattern{position:absolute;inset:0;opacity:.16;background-image:radial-gradient(circle at 10px 10px,#fff 1px,transparent 1px);background-size:22px 22px}
.hero-grid{position:relative;display:grid;grid-template-columns:43% 57%;min-height:480px}
.hero-copy{padding:65px 45px 55px 45px;color:#fff;z-index:2}
.eyebrow{color:var(--gold-light);font-size:14px;font-weight:700;letter-spacing:2px;margin:0 0 20px}
.hero h1{font-family:"Cormorant Garamond",serif;font-size:88px;line-height:.85;margin:0;color:#fff;letter-spacing:1px}
.location-title{margin:12px 0 20px;color:#fff;font-family:"Cormorant Garamond",serif;font-size:29px;font-weight:700}
.location-title small{display:block;font:600 15px Inter;letter-spacing:3px;color:#f6e3a5;margin-top:4px}
.hero-text{max-width:540px;line-height:1.65;color:#edf4ef;font-size:16px}
.hero-actions{display:flex;gap:16px;margin-top:26px}
.btn{display:inline-flex;align-items:center;gap:12px;padding:14px 23px;border-radius:999px;font-weight:700;font-size:14px}
.btn-gold{background:var(--gold-light);color:#173c2b}
.btn-outline{border:1px solid rgba(255,255,255,.75);color:#fff}
.btn-green{background:var(--green-800);color:#fff}
.play{font-size:11px}
.hero-photo{position:relative;min-height:480px;overflow:hidden;border-radius:90px 0 0 90px}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center 48%;display:block}
.photo-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,61,43,.45),transparent 30%,rgba(255,255,255,.02))}

/* Service cards */
.quick-links{margin-top:-25px;position:relative;z-index:5}
.cards-4{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.service-card{background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:18px;padding:20px 18px;display:grid;grid-template-columns:56px 1fr 30px;gap:12px;align-items:center;transition:.25s}
.service-card:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(8,55,39,.14)}
.service-icon{width:52px;height:52px;border-radius:50%;background:#e9f1e9;color:var(--green-800);display:grid;place-items:center;font-size:24px}
.service-card strong{font-family:"Cormorant Garamond",serif;font-size:19px;line-height:1.05}
.service-card small{display:block;color:var(--muted);line-height:1.4;margin-top:7px;font-size:12px}
.service-card>b{width:30px;height:30px;border-radius:50%;background:#f2f2e9;display:grid;place-items:center}

/* Content */
.content-section{padding:38px 0 70px}
.content-grid{display:grid;grid-template-columns:1.35fr 1.1fr .85fr;gap:20px}
.program-panel{min-height:330px;position:relative;overflow:hidden;border-radius:20px;background:#eee}
.program-image{position:absolute;inset:0;background:linear-gradient(90deg,rgba(249,247,235,.98) 0%,rgba(249,247,235,.85) 46%,rgba(249,247,235,.05) 100%),url("../img/masjid-al-israa.png") center/cover}
.program-copy{position:relative;z-index:1;padding:32px;max-width:600px}
.section-label{font-size:12px;letter-spacing:1.8px;color:var(--green-800);font-weight:800}
h2{font:700 35px/1.05 "Cormorant Garamond",serif;margin:8px 0 12px}
.program-copy>p:not(.section-label){color:#5f6763;line-height:1.55}
.news-panel,.prayer-panel{border:1px solid var(--border);border-radius:20px;background:#fff;box-shadow:var(--shadow);padding:22px}
.panel-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding-bottom:13px}
.panel-head h3{margin:0;font:700 24px "Cormorant Garamond",serif}
.panel-head a{font-size:12px;color:var(--green-800);font-weight:700}
.news-item{display:grid;grid-template-columns:64px 1fr;gap:14px;padding:15px 0;border-bottom:1px solid var(--border)}
.news-item:last-child{border-bottom:0}
.date{background:var(--green-800);color:#fff;border-radius:9px;height:54px;display:grid;place-items:center;align-content:center}
.date strong{font-size:18px;line-height:1}
.date small{font-size:10px}
.news-item h4{margin:0 0 4px;font-size:13px}
.news-item p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.prayer-panel{background:linear-gradient(145deg,#0d6849,#063d2b);color:#fff;border:0}
.prayer-head{display:flex;gap:12px;align-items:center}
.mosque-icon{font-size:31px;color:var(--gold-light)}
.prayer-head h3{margin:0;font:700 24px "Cormorant Garamond",serif}
.prayer-head small{color:#cbded4}
.next-prayer{margin:22px 0 14px;padding:18px;border-radius:15px;background:rgba(255,255,255,.10)}
.next-prayer small{display:block;color:#d4e4dc}
.next-prayer strong{display:block;font:700 27px "Cormorant Garamond",serif;margin-top:3px}
.next-prayer span{display:block;color:var(--gold-light);font-size:30px;font-weight:700;margin-top:3px}
.prayer-times{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.prayer-times span{text-align:center}
.prayer-times b{display:block;font-size:10px;font-weight:500;color:#d0e1d9}
.prayer-times strong{font-size:13px}
.prayer-link{display:block;text-align:center;border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:11px;margin-top:20px;font-size:12px}

/* Footer */
footer{background:#052f22;color:#dceae4;padding:30px 0}
.footer-inner{display:flex;justify-content:space-between;gap:20px}
.footer-inner div{display:flex;flex-direction:column;gap:4px}
.footer-inner strong{font:700 27px "Cormorant Garamond",serif;color:#fff}
.footer-inner span{font-size:12px}
.footer-inner p{font-size:12px;color:#a8c2b6}

/* Arabic */
html[dir="rtl"] .main-nav>a{font-family:Arial,sans-serif}
html[dir="rtl"] .language-dropdown{right:auto;left:0}
html[dir="rtl"] .hero-copy{text-align:right}
html[dir="rtl"] .hero-actions{justify-content:flex-start}
html[dir="rtl"] .service-card{text-align:right}
html[dir="rtl"] .news-item{text-align:right}
html[dir="rtl"] .panel-head{flex-direction:row-reverse}
html[dir="rtl"] .hero-grid{direction:rtl}

/* Responsive */
@media(max-width:1100px){
  .main-nav{gap:16px}
  .hero h1{font-size:72px}
  .cards-4{grid-template-columns:repeat(2,1fr)}
  .content-grid{grid-template-columns:1fr 1fr}
  .prayer-panel{grid-column:1/-1}
}
@media(max-width:820px){
  .site-header{height:68px}
  .menu-toggle{display:block}
  .main-nav{display:none;position:absolute;left:4%;right:4%;top:68px;background:#fff;padding:12px;border-radius:0 0 18px 18px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:0}
  .main-nav.open{display:flex}
  .main-nav>a{padding:13px 15px;border:0}
  .language{margin:4px 0}
  .search-btn,.mosque-btn{display:none}
  .language-btn{width:100%;text-align:left}
  .language-dropdown{position:static;width:100%;box-shadow:none;border:0}
  .hero-grid{grid-template-columns:1fr}
  .hero-copy{padding:50px 30px 35px}
  .hero-photo{height:330px;min-height:330px;border-radius:0}
  .content-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .brand-name{font-size:28px}
  .brand-logo{width:46px;height:50px}
  .hero h1{font-size:58px}
  .location-title{font-size:24px}
  .cards-4{grid-template-columns:1fr}
  .hero-actions{flex-direction:column;align-items:flex-start}
  .footer-inner{flex-direction:column}
}


/* --- Homepage reference refinement --- */
.about-strip{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
  padding:38px 34px;
  margin-bottom:0;
  background:#f4f5ec;
  border-radius:22px;
}
.about-strip h2{margin:5px 0 0}
.about-strip>p{margin:0;color:var(--muted);line-height:1.7;font-size:14px}
.compact-section{padding-top:0}
/* Center the Galeri section heading to match Jadwal Shalat. */
.gallery-section > .container > .section-label,
.gallery-section > .container > h2{
  text-align:center;
}
.gallery-placeholder{
  padding:34px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--border);
  text-align:center;
}
.gallery-placeholder h2{margin:5px 0}
.gallery-placeholder p:last-child{color:var(--muted);margin-bottom:0}

.prayer-top-date{
  text-align:right;
  margin-bottom:4px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.prayer-top-date span{font-size:11px;color:#d8e8e0}
.prayer-top-date strong{font-size:12px;color:#fff}
.prayer-top-date small{font-size:10px;color:#bfd6ca}

@media(max-width:820px){
  .about-strip{grid-template-columns:1fr;gap:10px;padding:25px}
  .prayer-top-date{text-align:left}
}


/* =========================================================
   AL-ISRAA — ONE PAGE HOMEPAGE / REFERENCE MATCH
   ========================================================= */
body.one-page{
  overflow-x:hidden;
}

/* Elegant high-contrast display face, closer to the uploaded
   fashion/editorial reference. */
.hero h1,
.brand-name,
.location-title,
.service-card strong,
.panel-head h3,
.program-copy h2,
.about-strip h2,
.gallery-placeholder h2,
.footer-inner strong{
  font-family:"Cormorant Garamond", Georgia, serif;
}

.hero h1{
  font-weight:500;
  letter-spacing:2px;
  font-size:86px;
  line-height:.82;
}

/* Keep the first viewport compact enough to show the main composition. */
.hero,
.hero-grid{
  min-height:455px;
}
.hero-copy{
  padding-top:54px;
  padding-bottom:42px;
}

/* 16:9 mosque image area.
   The image itself remains natural photographic content;
   object-fit crops only as needed for the hero viewport. */
.hero-photo{
  aspect-ratio:16 / 9;
  height:auto;
  min-height:0;
  align-self:center;
  border-radius:0 0 0 0;
  overflow:hidden;
  position:relative;
}

/* Layered 3D scalloped divider between text and mosque.
   These are intentionally separate layers to create depth. */
.hero-photo::before,
.hero-photo::after{
  content:"";
  position:absolute;
  left:-64px;
  top:-15%;
  width:145px;
  height:130%;
  border-radius:50%;
  pointer-events:none;
  z-index:3;
}
.hero-photo::before{
  background:var(--gold-light);
  box-shadow:
    18px 0 0 #d6ae51,
    31px 0 0 rgba(255,255,255,.80);
}
.hero-photo::after{
  left:-43px;
  width:108px;
  background:var(--green-950);
  box-shadow:16px 0 0 rgba(7,81,57,.95);
}

/* Extra curved gold accents, visually similar to the reference. */
.curve-3d{
  position:absolute;
  z-index:4;
  pointer-events:none;
  left:-70px;
  width:150px;
  height:170px;
  border:7px solid var(--gold-light);
  border-left-color:transparent;
  border-radius:50%;
  filter:drop-shadow(5px 0 0 rgba(151,112,35,.55));
}
.curve-back{top:14%}
.curve-front{top:48%;transform:rotate(180deg)}

.scroll-cue{
  position:absolute;
  z-index:8;
  bottom:14px;
  left:50%;
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:21px;
  opacity:.8;
  transform:translateX(-50%);
}
.scroll-cue:hover{
  background:rgba(255,255,255,.12);
}

/* Cards sit naturally between hero and lower content. */
.quick-links{
  margin-top:-20px;
}
.cards-4{
  gap:12px;
}

/* Make the next sections visually compact; clicking menu items
   scrolls to them rather than opening separate pages. */
.content-section{
  scroll-margin-top:82px;
}
#tentang{
  padding-top:32px;
  padding-bottom:28px;
}
#program,#berita,#galeri,#kontak{
  scroll-margin-top:82px;
}

/* Desktop: preserve the intended one-screen composition. */
@media(min-width:1101px){
  .hero-grid{
    grid-template-columns:43% 57%;
  }
  .hero-photo{
    width:100%;
    height:auto;
    min-height:0;
  }
}

/* Tablet/mobile: remove the desktop curved divider so it
   doesn't crowd the image. */
@media(max-width:820px){
  .hero,
  .hero-grid{
    min-height:auto;
  }
  .hero-copy{
    padding-top:42px;
  }
  .hero-photo{
    aspect-ratio:16 / 9;
    height:auto;
    min-height:0;
  }
  .hero-photo::before,
  .hero-photo::after,
  .curve-3d{
    display:none;
  }
}


/* FINAL VISUAL TUNING — approved homepage reference */
.main-nav{
  gap:24px;
  font-size:15px;
}
.main-nav>a{
  font-size:15px;
  font-weight:500;
}
.main-nav>a.active{
  font-weight:700;
}
.search-btn{
  font-size:27px;
}
.mosque-btn{
  font-size:14px;
  padding:13px 19px;
}
.language-btn{
  font-size:14px;
}

/* Balanced hero proportions: mosque photo follows a panoramic 16:9
   crop instead of showing excessive sky and road. */
.hero-grid{
  min-height:440px;
}
.hero-copy{
  padding-top:48px;
  padding-bottom:38px;
}
.hero-photo{
  aspect-ratio:16 / 9;
  height:auto;
  min-height:0;
  align-self:center;
  max-height:440px;
}
.hero-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 52%;
}

/* Layered 3D scallop separator, visually joining the text panel
   and mosque photo. */
.hero-photo::before{
  left:-74px;
  width:155px;
  background:var(--gold-light);
  box-shadow:
    13px 0 0 #d0a644,
    27px 0 0 rgba(255,255,255,.75);
}
.hero-photo::after{
  left:-49px;
  width:112px;
  background:var(--green-950);
  box-shadow:15px 0 0 rgba(7,81,57,.96);
}
.curve-3d{
  left:-74px;
  width:153px;
  height:170px;
  border-width:8px;
}
.curve-back{top:12%}
.curve-front{top:50%}

/* Keep the four cards tight enough that the complete first
   composition fits naturally in one desktop viewport. */
.quick-links{
  margin-top:-22px;
}
.service-card{
  padding:17px 16px;
}
.service-card strong{
  font-size:18px;
}
.service-card small{
  font-size:11px;
}

@media(max-width:1100px){
  .main-nav{font-size:14px;gap:14px}
  .main-nav>a{font-size:14px}
}


/* =========================================================
   HERO BANNER V2
   Semua judul/narasi hero berasal dari gambar banner.
   Hanya dua tombol yang dibuat sebagai HTML agar clickable.
   ========================================================= */
.hero-banner{
  background:var(--green-950);
  position:relative;
  overflow:hidden;
  min-height:0;
}
.hero-banner-wrap{
  width:100%;
  max-width:none;
  margin:0;
}
.hero-banner-image{
  position:relative;
  width:100%;
  line-height:0;
  overflow:hidden;
}
.hero-banner-image>img{
  display:block;
  width:100%;
  height:auto;
  max-width:none;
}

/* Menutup tombol dekoratif yang sudah tercetak pada gambar,
   lalu meletakkan tombol HTML pada posisi yang sama. */
.hero-html-actions{
  position:absolute;
  left:8.45%;
  top:67.9%;
  display:flex;
  gap:18px;
  align-items:center;
  z-index:5;
  line-height:normal;
}
.hero-html-actions .btn{
  min-height:54px;
  padding:13px 24px;
  font-size:14px;
  box-shadow:0 7px 18px rgba(0,0,0,.20);
}
.hero-html-actions .btn-gold{
  min-width:326px;
  justify-content:center;
}
.hero-html-actions .btn-outline{
  min-width:264px;
  justify-content:center;
  background:rgba(6,61,43,.72);
  backdrop-filter:blur(2px);
}
.hero-banner .scroll-cue{
  position:absolute;
  bottom:12px;
  left:50%;
  z-index:10;
}

/* The banner itself already contains the Islamic motif and
   decorative curved frame, so no extra CSS curve is needed. */
.hero-banner .curve-3d,
.hero-banner .hero-pattern,
.hero-banner .photo-overlay{
  display:none;
}

@media(max-width:1100px){
  .hero-html-actions{
    left:8.2%;
    top:67%;
    gap:12px;
  }
  .hero-html-actions .btn{
    min-height:46px;
    padding:10px 18px;
    font-size:12px;
  }
  .hero-html-actions .btn-gold{min-width:230px}
  .hero-html-actions .btn-outline{min-width:190px}
}

@media(max-width:820px){
  .hero-html-actions{
    left:8%;
    top:67%;
    gap:8px;
  }
  .hero-html-actions .btn{
    min-height:38px;
    padding:8px 13px;
    font-size:10px;
  }
  .hero-html-actions .btn-gold{min-width:150px}
  .hero-html-actions .btn-outline{min-width:125px}
}

@media(max-width:560px){
  .hero-html-actions{
    left:7%;
    top:66%;
    gap:6px;
  }
  .hero-html-actions .btn{
    min-height:31px;
    padding:6px 9px;
    font-size:8px;
  }
  .hero-html-actions .btn-gold{min-width:112px}
  .hero-html-actions .btn-outline{min-width:92px}
}


/* V3 — Hero artwork only.
   No navigation/header and no CTA buttons are embedded in the artwork.
   Navigation and buttons remain ordinary HTML components. */
.hero-banner .hero-html-actions{
  display:none !important;
}

/* V4 — compact active navigation */
.main-nav > a{
  border-bottom:0 !important;
  padding:9px 12px !important;
  border-radius:9px;
  transition:background .2s ease, color .2s ease;
}
.main-nav > a:hover{
  background:#cfe8d8;
  color:var(--green-900);
}
.main-nav > a.active{
  background:var(--green-800);
  color:#fff;
  font-weight:700;
  border-bottom:0 !important;
  box-shadow:0 4px 10px rgba(7,81,57,.16);
}
.main-nav > a.active:hover{
  background:var(--green-900);
  color:#fff;
}
@media(max-width:820px){
  .main-nav > a{
    padding:11px 15px !important;
    border-radius:9px;
  }
}


/* =========================================================
   V5 — GOLD SERVICE CARDS
   Four service cards: glossy gold + deep-green shadow.
   ========================================================= */
.service-card{
  background:
    radial-gradient(circle at 18% 15%, rgba(255,255,255,.72), transparent 25%),
    linear-gradient(145deg,#fff7c9 0%,#f6d96a 34%,#e9bd3d 65%,#fff0a0 100%);
  border:1px solid rgba(194,145,28,.72);
  box-shadow:
    0 9px 0 rgba(4,57,39,.18),
    0 15px 28px rgba(3,57,39,.30),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(151,105,15,.28);
  position:relative;
  overflow:hidden;
}

.service-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(115deg,
      transparent 0%,
      transparent 42%,
      rgba(255,255,255,.42) 48%,
      rgba(255,255,255,.08) 54%,
      transparent 62%);
  transform:translateX(-105%);
  transition:transform .7s ease;
}

.service-card:hover::before{
  transform:translateX(105%);
}

.service-card:hover{
  transform:translateY(-5px);
  box-shadow:
    0 10px 0 rgba(4,57,39,.22),
    0 20px 34px rgba(3,57,39,.38),
    inset 0 1px 0 rgba(255,255,255,.98);
}

.service-icon{
  background:linear-gradient(145deg,#117451,#063d2b);
  color:#f8d96c;
  box-shadow:
    0 4px 10px rgba(3,57,39,.32),
    inset 0 1px 0 rgba(255,255,255,.20);
}

.service-card>b{
  background:linear-gradient(145deg,#fff8d0,#e9bd3d);
  color:var(--green-950);
  box-shadow:
    0 4px 9px rgba(3,57,39,.28),
    inset 0 1px 0 rgba(255,255,255,.85);
}

.service-card strong{
  color:#123c2b;
}

.service-card small{
  color:#536155;
}

@media(max-width:820px){
  .service-card{
    box-shadow:
      0 8px 0 rgba(4,57,39,.18),
      0 13px 24px rgba(3,57,39,.28),
      inset 0 1px 0 rgba(255,255,255,.95);
  }
}


/* =========================================================
   V6 — GOLD CARD SHADOW: RIGHT + BOTTOM
   ========================================================= */
.service-card{
  box-shadow:
    9px 9px 0 rgba(3,57,39,.20),
    14px 15px 25px rgba(3,57,39,.34),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(151,105,15,.28);
}

.service-card:hover{
  transform:translate(-2px,-4px);
  box-shadow:
    11px 11px 0 rgba(3,57,39,.22),
    18px 19px 31px rgba(3,57,39,.40),
    inset 0 1px 0 rgba(255,255,255,.98);
}

@media(max-width:820px){
  .service-card{
    box-shadow:
      7px 8px 0 rgba(3,57,39,.18),
      11px 13px 23px rgba(3,57,39,.30),
      inset 0 1px 0 rgba(255,255,255,.95);
  }
}


/* =========================================================
   V7 — DYNAMIC PRAYER TIMES
   ========================================================= */
.prayer-panel{
  position:relative;
}
.prayer-date{
  position:absolute;
  top:22px;
  right:22px;
  text-align:right;
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.prayer-date span{
  font-size:10px;
  color:#d6e6df;
}
.prayer-date strong{
  font-size:11px;
  color:#fff;
}
.prayer-date small{
  font-size:9px;
  color:#c0d6cc;
  margin-top:2px;
}
.prayer-source{
  display:block;
  text-align:center;
  color:rgba(255,255,255,.58);
  font-size:8px;
  margin-top:7px;
}
#nextPrayerName{
  text-transform:none;
}
@media(max-width:820px){
  .prayer-date{
    top:18px;
    right:18px;
  }
}


/* Full prayer schedule modal */
.prayer-link{width:100%;font-family:Inter,sans-serif;color:#fff;background:transparent;cursor:pointer}
.prayer-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:24px}
.prayer-modal.open{display:flex}
.prayer-modal-backdrop{position:absolute;inset:0;background:rgba(3,31,23,.72);backdrop-filter:blur(5px)}
.prayer-modal-card{position:relative;z-index:1;width:min(1050px,100%);max-height:min(88vh,900px);overflow:hidden;background:#fff;border-radius:24px;box-shadow:0 25px 80px rgba(0,0,0,.28);display:flex;flex-direction:column}
.prayer-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:25px 28px 18px;background:linear-gradient(135deg,#0d6849,#063d2b);color:#fff}
.prayer-modal-head .section-label{color:#f4d98a}
.prayer-modal-head h2{margin:5px 0 3px;color:#fff;font-size:34px}
.prayer-modal-head p{margin:0;color:#d4e4dc;font-size:12px}
.prayer-close{width:40px;height:40px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:27px;line-height:1;cursor:pointer}
.prayer-month-nav{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:10px;padding:14px 22px;border-bottom:1px solid #e6e9e4;background:#f7f8f3}
.prayer-month-nav strong{text-align:center;font-family:"Cormorant Garamond",serif;font-size:25px;color:#174c38}
.prayer-month-nav button{width:38px;height:38px;border:0;border-radius:50%;background:#e5efe8;color:#0d6849;font-size:28px;cursor:pointer}
.prayer-month-nav button:hover{background:#d4e5da}
.prayer-table-wrap{overflow:auto;padding:0 22px 12px}
.prayer-table{width:100%;border-collapse:separate;border-spacing:0;min-width:650px;font-size:13px}
.prayer-table th{position:sticky;top:0;z-index:2;background:#0d6849;color:#fff;padding:11px 10px;text-align:center;font-weight:700}
.prayer-table th:first-child{border-radius:10px 0 0 0}
.prayer-table th:last-child{border-radius:0 10px 0 0}
.prayer-table td{padding:9px 10px;border-bottom:1px solid #e9ece7;text-align:center;color:#33433c}
.prayer-table tbody tr:nth-child(even) td{background:#f8faf7}
.prayer-table tbody tr:hover td{background:#eef5ef}
.prayer-table td:first-child{text-align:left;font-weight:700;color:#174c38;white-space:nowrap}
.prayer-table .today-row td{background:#fff5d8;font-weight:700}
.prayer-loading,.prayer-error{text-align:center!important;padding:30px!important;color:#6a756f!important}
.prayer-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 22px;border-top:1px solid #e5e8e2;background:#fbfcf9;color:#68736d;font-size:11px}
.prayer-today{border:0;border-radius:999px;background:#0d6849;color:#fff;padding:8px 14px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
body.modal-open{overflow:hidden}
@media(max-width:650px){
  .prayer-modal{padding:10px}
  .prayer-modal-card{border-radius:18px;max-height:94vh}
  .prayer-modal-head{padding:20px 18px 14px}
  .prayer-modal-head h2{font-size:29px}
  .prayer-month-nav{padding:10px 12px}
  .prayer-table-wrap{padding:0 10px 10px}
  .prayer-modal-foot{align-items:flex-start;flex-direction:column}
}


/* Full prayer schedule section */
.full-prayer-section{background:#f6f8f4;padding:70px 0}
.section-heading.center{text-align:center;margin-bottom:28px}
.section-heading.center p:last-child{color:#6b766f;margin-top:8px}
.full-prayer-card{background:#fff;border-radius:24px;box-shadow:0 16px 45px rgba(3,57,39,.14);overflow:hidden;border:1px solid #e6ece7}
.full-prayer-nav{display:flex;align-items:center;justify-content:center;gap:16px;padding:18px 22px;background:linear-gradient(135deg,#0d6849,#063d2b);color:#fff;flex-wrap:wrap}
.full-prayer-nav strong{min-width:190px;text-align:center;font-size:20px}
.full-prayer-nav button{border:0;border-radius:10px;padding:8px 14px;background:rgba(255,255,255,.14);color:#fff;font-weight:700;cursor:pointer}
.full-prayer-nav button:hover{background:rgba(255,255,255,.24)}
.full-prayer-nav .prayer-today{background:#f1d27d;color:#173f31}
.full-prayer-table-wrap{overflow:auto}
.full-prayer-section .prayer-table{width:100%;border-collapse:collapse;min-width:700px}
.full-prayer-section .prayer-table th{background:#eef5ef;color:#174f3a;padding:13px 12px;text-align:center;font-size:12px}
.full-prayer-section .prayer-table td{padding:12px;border-top:1px solid #e9eeea;text-align:center;font-size:13px;color:#34433c}
.full-prayer-section .prayer-table td:first-child{text-align:left;font-weight:600;white-space:nowrap}
.full-prayer-section .prayer-table tr.today-row{background:#fff8df}
.full-prayer-section .prayer-table tr.today-row td{font-weight:700;color:#174f3a}
.full-prayer-section .prayer-loading,.full-prayer-section .prayer-error{text-align:center!important;padding:30px!important}
.full-prayer-source{padding:14px 20px;border-top:1px solid #e7ece8;color:#738078;font-size:11px;text-align:center}
@media(max-width:700px){.full-prayer-section{padding:45px 0}.full-prayer-nav{gap:8px}.full-prayer-nav strong{min-width:150px;font-size:17px}}

/* V13 — Dropdown submenu Program & Layanan */
.nav-dropdown-item{position:relative;display:flex;align-items:center}
.nav-dropdown-toggle{display:inline-flex;align-items:center;gap:6px;padding:9px 12px !important;border-radius:9px;border-bottom:0 !important;white-space:nowrap}
.nav-chevron{font-size:14px;line-height:1;transition:transform .2s ease}
.nav-dropdown-item:hover > .nav-dropdown-toggle,
.nav-dropdown-item.open > .nav-dropdown-toggle{background:#cfe8d8;color:var(--green-900);font-weight:600}
.nav-dropdown-item.open > .nav-dropdown-toggle .nav-chevron{transform:rotate(180deg)}
.nav-dropdown-item > .nav-dropdown-toggle.active{background:var(--green-800);color:#fff;font-weight:700;box-shadow:0 4px 10px rgba(7,81,57,.16)}
.nav-submenu{display:none;position:absolute;top:100%;left:0;min-width:255px;background:#fff;border:1px solid var(--border);border-radius:14px;padding:7px;box-shadow:0 16px 35px rgba(8,55,39,.16);z-index:1100}
.nav-dropdown-item:hover > .nav-submenu,
.nav-dropdown-item.open > .nav-submenu{display:block}
.nav-submenu a{display:block;padding:11px 13px;border-radius:9px;font-size:13px;line-height:1.25;color:var(--ink);white-space:normal}
.nav-submenu a:hover{background:var(--green-100);color:var(--green-900)}
.nav-submenu a.active{background:var(--green-800);color:#fff;font-weight:700}
html[dir="rtl"] .nav-submenu{left:auto;right:0}

@media(max-width:820px){
  .nav-dropdown-item{display:block;width:100%}
  .nav-dropdown-toggle{width:100%;justify-content:space-between;padding:11px 15px !important}
  .nav-submenu{position:static;min-width:0;margin:0 7px 6px;box-shadow:none;border:0;border-left:3px solid var(--green-100);border-radius:0;padding:2px 0 2px 8px}
  .nav-dropdown-item.open > .nav-submenu{display:block}
  .nav-submenu a{padding:10px 12px;font-size:12px}
  html[dir="rtl"] .nav-submenu{border-left:0;border-right:3px solid var(--green-100);padding:2px 8px 2px 0}
}
#yayasan,#majelis,#tpq,#gedung,#layanan{scroll-margin-top:90px}

/* Admin Galeri navigation */
.main-nav > .admin-nav-link{
  padding:8px 12px !important;
  border:1px solid rgba(3,57,39,.20) !important;
  border-radius:999px;
  background:#f4ead0;
  color:var(--green-900);
  font-weight:600;
  white-space:nowrap;
}
.main-nav > .admin-nav-link:hover{
  background:var(--green-800);
  color:#fff;
  border-color:var(--green-800) !important;
}
@media (max-width: 1100px){
  .main-nav > .admin-nav-link{padding:9px 12px !important;}
}
/* Berita publik */
.news-copy{min-width:0;flex:1}
.news-copy h4{margin:0 0 4px;min-width:0}
.news-more-row{display:flex;justify-content:flex-end;margin-top:4px}
.news-more{white-space:nowrap;font-size:11px;font-weight:700;color:#146b4b;text-decoration:none}
.news-more:hover{text-decoration:underline}
@media(max-width:600px){.news-more{font-size:10px}}

