:root{
    --ivory: #FBF7EF;
    --ivory-alt: #F2ECDC;
    --ivory-deep: #EAE1C9;
    --deep-green: #163D2E;
    --deep-green-2: #0F2E22;
    --emerald: #2C6B4F;
    --emerald-soft: #E4EEE7;
    --gold: #B8912E;
    --gold-soft: #E9DBAF;
    --maroon: #7A2131;
    --maroon-soft: #F1DEE1;
    --ink: #1E2A22;
    --muted: #5C6B5F;
    --white: #FFFFFF;
    --whatsapp: #25D366;
    --whatsapp-dark: #1DA851;
    --radius-s: 10px;
    --radius-m: 18px;
    --radius-l: 28px;
    --shadow: 0 10px 30px -12px rgba(22,61,46,0.22);
    --shadow-soft: 0 4px 16px -6px rgba(22,61,46,0.14);
    --maxw: 1180px;
  }

  /* Opt-in dark mode — toggled via [data-theme="dark"] on <html> */
  [data-theme="dark"]{
    --ivory: #16211C;
    --ivory-alt: #1C2820;
    --ivory-deep: #2A382F;
    --deep-green: #E9DBAF;
    --deep-green-2: #0A1712;
    --emerald: #6FBF9A;
    --emerald-soft: #223A2E;
    --gold: #D9B65A;
    --gold-soft: #3A3018;
    --maroon: #E6899C;
    --maroon-soft: #3A2229;
    --ink: #EDEAE0;
    --muted: #A8B5AC;
    --white: #1E2A22;
    --shadow: 0 10px 30px -12px rgba(0,0,0,0.5);
    --shadow-soft: 0 4px 16px -6px rgba(0,0,0,0.4);
  }
  [data-theme="dark"] body{ background:var(--ivory); }
  [data-theme="dark"] .hero{ background: var(--ivory); }
  [data-theme="dark"] .icon-sun{ display:none; }
  [data-theme="dark"] .icon-moon{ display:block; }
  .icon-moon{ display:none; }

  *{ box-sizing:border-box; margin:0; padding:0; }
  html{
    scroll-behavior:smooth;
    overflow-x:hidden;
    overscroll-behavior-x:none;
  }

  section[id]{ scroll-margin-top:var(--header-h, 108px); }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
  }

  body{
    font-family:'Hind Siliguri', 'Segoe UI', sans-serif;
    background:var(--ivory);
    color:var(--ink);
    line-height:1.7;
    overflow-x:hidden;
    overscroll-behavior-x:none;
    touch-action:pan-y pinch-zoom;
    max-width:100vw;
    -webkit-font-smoothing:antialiased;
    padding-top:var(--header-h, 108px);
  }

  h1,h2,h3,h4{
    font-family:'Tiro Bangla', 'Amiri', serif;
    color:var(--deep-green);
    font-weight:400;
    line-height:1.3;
  }

  .arabic{
    font-family:'Amiri', serif;
    direction:rtl;
  }

  a{ color:inherit; text-decoration:none; }
  ul{ list-style:none; }
  img,svg{ display:block; max-width:100%; }
  button{ font-family:inherit; cursor:pointer; border:none; background:none; }

  .container{
    max-width:var(--maxw);
    margin:0 auto;
    padding:0 24px;
  }

  :focus-visible{
    outline:3px solid var(--gold);
    outline-offset:3px;
  }

  /* ---------- Woven lattice signature pattern ---------- */
  .weave-divider{
    width:100%;
    height:34px;
    display:block;
  }
  .weave-divider svg{ width:100%; height:100%; }

  .weave-bg{
    position:absolute; inset:0;
    opacity:0.05;
    pointer-events:none;
  }

  /* ---------- Top utility bar ---------- */
  .topbar{
    background:var(--deep-green-2);
    color:var(--ivory-alt);
    font-size:0.82rem;
    letter-spacing:0.02em;
  }
  .topbar .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-top:7px;
    padding-bottom:7px;
    flex-wrap:wrap;
  }
  .topbar .arabic{ color:var(--gold-soft); font-size:0.95rem; }
  .topbar-right{ display:flex; gap:16px; opacity:0.9; }
  .topbar-right span{ white-space:nowrap; }
  .topbar-loc{ display:inline-flex; align-items:center; gap:5px; }
  .topbar-loc svg{ width:13px; height:13px; flex-shrink:0; color:var(--gold-soft); }

  /* ---------- Nav ---------- */
  header.site-nav{
    position:fixed; top:0; left:0; right:0; width:100%;
    z-index:950;
    background:rgba(251,247,239,0.96);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border-bottom:1px solid var(--ivory-deep);
  }
  [data-theme="dark"] header.site-nav{ background:rgba(22,33,28,0.96); }
  .nav-inner{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 0;
    gap:16px;
  }
  .brand{
    display:flex; align-items:center; gap:12px;
  }
  .brand-mark{
    width:46px; height:46px; flex-shrink:0;
    object-fit:contain;
    border-radius:50%;
  }
  .brand-text{
    display:flex; flex-direction:column; line-height:1.15;
  }
  .brand-text strong{
    font-family:'Tiro Bangla', serif;
    font-size:1.18rem;
    color:var(--deep-green);
  }
  .brand-text span{
    font-size:0.72rem;
    color:var(--muted);
    letter-spacing:0.03em;
  }

  .nav-links{
    display:flex; align-items:center; gap:30px;
    font-size:0.98rem;
    font-weight:500;
  }
  .nav-links a{
    position:relative;
    color:var(--ink);
    padding:6px 2px;
  }
  .nav-links a::after{
    content:"";
    position:absolute; left:0; right:0; bottom:0;
    height:2px; background:var(--gold);
    transform:scaleX(0); transform-origin:right;
    transition:transform .25s ease;
  }
  .nav-links a:hover::after, .nav-links a:focus-visible::after{
    transform:scaleX(1); transform-origin:left;
  }

  .nav-cta{
    display:flex; align-items:center; gap:14px;
  }
  .nav-toggle-group{
    display:flex; align-items:center; gap:10px;
  }
  .btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:11px 22px;
    border-radius:999px;
    font-weight:600;
    font-size:0.95rem;
    transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space:nowrap;
  }
  .btn-primary{
    background:var(--whatsapp);
    color:#fff;
    box-shadow:0 8px 20px -8px rgba(37,211,102,0.55);
  }
  .btn-primary:hover{ background:var(--whatsapp-dark); transform:translateY(-2px); }
  .btn-outline{
    border:1.5px solid var(--deep-green);
    color:var(--deep-green);
  }
  .btn-outline:hover{ background:var(--deep-green); color:var(--ivory); transform:translateY(-2px); }
  .btn-gold{
    background:var(--gold);
    color:var(--deep-green-2);
  }
  .btn-gold:hover{ background:#a37f28; transform:translateY(-2px); }

  .hamburger{
    display:none;
    width:42px; height:42px;
    align-items:center; justify-content:center;
    border-radius:10px;
  }
  .hamburger span, .hamburger span::before, .hamburger span::after{
    content:""; display:block; width:22px; height:2px; background:var(--deep-green);
    position:relative; transition:transform .25s ease, opacity .25s ease;
  }
  .hamburger span::before{ position:absolute; top:-7px; }
  .hamburger span::after{ position:absolute; top:7px; }
  .hamburger.open span{ background:transparent; }
  .hamburger.open span::before{ transform:translateY(7px) rotate(45deg); }
  .hamburger.open span::after{ transform:translateY(-7px) rotate(-45deg); }

  /* ---------- Mobile menu panel (overlay, doesn't push fixed-header height) ---------- */
  .mobile-menu-panel{
    display:none;
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--ivory);
    border-top:1px solid var(--ivory-deep);
    padding:18px 24px 26px;
    max-height:calc(100vh - var(--header-h, 108px));
    overflow-y:auto;
    box-shadow:0 16px 32px -14px rgba(15,46,34,0.25);
  }
  [data-theme="dark"] .mobile-menu-panel{ background:var(--ivory); }

  /* ---------- Hero ---------- */
  .hero{
    position:relative;
    padding:76px 0 64px;
    overflow:hidden;
    background:
      radial-gradient(ellipse 900px 500px at 85% -10%, var(--emerald-soft) 0%, transparent 60%),
      radial-gradient(ellipse 700px 500px at 5% 110%, var(--gold-soft) 0%, transparent 55%),
      var(--ivory);
  }
  .hero-inner{
    display:grid;
    grid-template-columns:1.15fr 0.85fr;
    align-items:center;
    gap:48px;
  }
  .eyebrow{
    display:inline-flex; align-items:center; gap:10px;
    font-size:0.82rem; font-weight:600; letter-spacing:0.08em;
    color:var(--emerald);
    background:var(--emerald-soft);
    padding:7px 16px 7px 12px;
    border-radius:999px;
    margin-bottom:22px;
  }
  .eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--maroon); flex-shrink:0; }

  .hero h1{
    font-size:clamp(2.3rem, 4.6vw, 3.6rem);
    margin-bottom:16px;
    color:var(--deep-green-2);
  }
  .hero h1 em{
    font-style:normal;
    color:var(--maroon);
  }
  .hero .lede{
    font-size:1.08rem;
    color:var(--muted);
    max-width:56ch;
    margin-bottom:8px;
  }
  .hero .location-line{
    display:flex; align-items:center; gap:8px;
    font-size:0.98rem;
    color:var(--deep-green);
    font-weight:600;
    margin:18px 0 30px;
  }
  .hero .location-line svg{ width:19px; height:19px; flex-shrink:0; color:var(--maroon); }

  .hero-actions{
    display:flex; flex-wrap:wrap; gap:14px;
  }

  .hero-visual{
    position:relative;
    display:flex; align-items:center; justify-content:center;
  }
  .hero-visual svg{ width:100%; max-width:420px; height:auto; }

  .hero-photo-frame{
    position:relative;
    width:100%;
    border-radius:var(--radius-l);
    padding:10px;
    background:var(--white);
    box-shadow:var(--shadow);
    border:1px solid var(--ivory-deep);
  }
  .hero-photo-frame::before{
    content:"";
    position:absolute; inset:6px;
    border:1.5px solid var(--gold);
    border-radius:calc(var(--radius-l) - 8px);
    pointer-events:none;
    opacity:0.6;
  }
  .hero-photo-frame img{
    width:100%;
    height:auto;
    display:block;
    border-radius:calc(var(--radius-l) - 12px);
  }
  .hero-photo-caption{
    position:absolute;
    left:22px; bottom:-18px;
    background:var(--deep-green);
    color:var(--ivory);
    font-size:0.82rem;
    font-weight:600;
    padding:9px 18px;
    border-radius:999px;
    box-shadow:0 8px 20px -8px rgba(22,61,46,0.5);
    display:flex; align-items:center; gap:8px;
    white-space:nowrap;
  }
  .hero-photo-caption svg{ width:14px; height:14px; flex-shrink:0; color:var(--gold-soft); }
  @media (max-width:640px){
    .hero-photo-caption{ font-size:0.74rem; padding:7px 14px; left:14px; bottom:-15px; }
  }

  .hero-stats{
    display:flex; gap:0;
    margin-top:44px;
    border-top:1px solid var(--ivory-deep);
    padding-top:26px;
    flex-wrap:wrap;
  }
  .stat{
    flex:1;
    min-width:130px;
    padding-right:20px;
  }
  .stat strong{
    display:block;
    font-family:'Tiro Bangla', serif;
    font-size:1.7rem;
    color:var(--maroon);
  }
  .stat span{
    font-size:0.85rem;
    color:var(--muted);
  }

  /* ---------- Section shell ---------- */
  section{ position:relative; padding:84px 0; }
  .section-alt{ background:var(--ivory-alt); }
  .section-deep{ background:var(--deep-green); color:var(--ivory-alt); }
  .section-deep h2, .section-deep h3{ color:var(--ivory); }

  .section-head{
    max-width:640px;
    margin:0 auto 52px;
    text-align:center;
  }
  .section-head .eyebrow{ margin-bottom:16px; }
  .section-head h2{
    font-size:clamp(1.8rem, 3.2vw, 2.5rem);
    margin-bottom:14px;
  }
  .section-head p{ color:var(--muted); font-size:1.02rem; }
  .section-deep .section-head p{ color:#CFE0D4; }

  /* ---------- About ---------- */
  .about-grid{
    display:grid;
    grid-template-columns:0.9fr 1.1fr;
    gap:56px;
    align-items:start;
  }
  .about-card{
    background:var(--white);
    border-radius:var(--radius-l);
    padding:36px;
    box-shadow:var(--shadow-soft);
    border:1px solid var(--ivory-deep);
    position:relative;
  }
  .about-card::before{
    content:"";
    position:absolute; top:-1px; left:24px; right:24px; height:4px;
    background:linear-gradient(90deg, var(--maroon), var(--gold), var(--emerald));
    border-radius:0 0 6px 6px;
  }
  .about-card h3{ font-size:1.3rem; margin-bottom:14px; }
  .about-card p{ color:var(--muted); }
  .about-card p + p{ margin-top:14px; }
  .about-card .dua-line{
    margin-top:22px;
    padding-top:20px;
    border-top:1px dashed var(--ivory-deep);
  }
  .about-card .dua-line .arabic{
    font-size:1.3rem;
    color:var(--maroon);
    margin-bottom:6px;
  }
  .about-card .dua-line span{
    font-size:0.88rem;
    color:var(--muted);
  }

  .about-points{
    display:grid;
    gap:18px;
  }
  .point{
    display:flex; gap:16px;
    padding:20px;
    background:var(--white);
    border-radius:var(--radius-m);
    border:1px solid var(--ivory-deep);
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .point:hover{ transform:translateY(-3px); box-shadow:var(--shadow-soft); }
  .point-icon{
    width:44px; height:44px; flex-shrink:0;
    border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    background:var(--emerald-soft);
    color:var(--emerald);
  }
  .point-icon svg{ width:22px; height:22px; }
  .point h4{ font-size:1.02rem; margin-bottom:5px; font-family:'Hind Siliguri',sans-serif; font-weight:600; color:var(--deep-green); }
  .point p{ font-size:0.92rem; color:var(--muted); }

  /* ---------- Weekly program ---------- */
  .program-wrap{
    display:grid;
    grid-template-columns:0.85fr 1.15fr;
    gap:56px;
    align-items:center;
  }
  .program-card{
    background:linear-gradient(160deg, var(--deep-green) 0%, var(--deep-green-2) 100%);
    border-radius:var(--radius-l);
    padding:44px 36px;
    color:var(--ivory);
    position:relative;
    overflow:hidden;
    box-shadow:var(--shadow);
  }
  .program-card .weave-bg{ opacity:0.09; }
  .program-day{
    font-family:'Tiro Bangla', serif;
    font-size:2.6rem;
    color:var(--gold-soft);
    position:relative;
  }
  .program-card .sub{
    font-size:0.95rem;
    color:#CFE0D4;
    margin-top:6px;
    position:relative;
  }
  .program-card .divider-line{
    width:56px; height:3px; background:var(--gold);
    margin:22px 0; border-radius:3px; position:relative;
  }
  .program-card p{
    color:#DCEAE0;
    font-size:0.96rem;
    position:relative;
  }

  .timeline{
    display:grid;
    gap:0;
  }
  .tl-item{
    display:grid;
    grid-template-columns:90px 1fr;
    gap:20px;
    padding:22px 0;
    border-bottom:1px solid var(--ivory-deep);
  }
  .tl-item:first-child{ padding-top:0; }
  .tl-item:last-child{ border-bottom:none; }
  .tl-time{
    font-family:'Tiro Bangla', serif;
    color:var(--maroon);
    font-size:1.05rem;
    text-align:right;
  }
  .tl-body h4{ font-size:1.02rem; color:var(--deep-green); margin-bottom:4px; font-family:'Hind Siliguri',sans-serif; font-weight:600; }
  .tl-body p{ color:var(--muted); font-size:0.92rem; }

  /* ---------- Objectives grid ---------- */
  .obj-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:24px;
  }
  .obj-card{
    background:var(--white);
    border:1px solid var(--ivory-deep);
    border-radius:var(--radius-m);
    padding:30px 24px;
    text-align:left;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .obj-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow);
    border-color:var(--gold);
  }
  .obj-num{
    font-family:'Tiro Bangla', serif;
    font-size:0.85rem;
    color:var(--gold);
    letter-spacing:0.08em;
    margin-bottom:16px;
    display:block;
  }
  .obj-card .point-icon{ margin-bottom:16px; background:var(--maroon-soft); color:var(--maroon); }
  .obj-card h4{ font-size:1.06rem; margin-bottom:8px; color:var(--deep-green); font-family:'Hind Siliguri',sans-serif; font-weight:600; }
  .obj-card p{ font-size:0.9rem; color:var(--muted); }

  /* ---------- Prayer times ---------- */
  .prayer-note{
    display:flex; align-items:center; gap:10px;
    background:var(--gold-soft);
    color:#5c4813;
    padding:12px 18px;
    border-radius:var(--radius-s);
    font-size:0.88rem;
    max-width:640px;
    margin:0 auto 36px;
  }
  .prayer-note svg{ width:18px; height:18px; flex-shrink:0; }

  .prayer-table{
    background:var(--white);
    border-radius:var(--radius-l);
    overflow:hidden;
    box-shadow:var(--shadow-soft);
    border:1px solid var(--ivory-deep);
  }
  .prayer-row{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr;
    align-items:center;
    padding:18px 30px;
    border-bottom:1px solid var(--ivory-alt);
  }
  .prayer-row:last-child{ border-bottom:none; }
  .prayer-row.head{
    background:var(--deep-green);
    color:var(--ivory);
    font-weight:600;
    font-size:0.9rem;
  }
  .prayer-name{
    display:flex; align-items:center; gap:12px;
    font-weight:600;
    color:var(--deep-green);
  }
  .prayer-row.head .prayer-name{ color:var(--ivory); }
  .prayer-name .p-icon{
    width:34px; height:34px; border-radius:9px;
    background:var(--emerald-soft); color:var(--emerald);
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .prayer-name .p-icon svg{ width:17px; height:17px; }
  .prayer-time{ color:var(--muted); font-size:0.95rem; }
  .prayer-time.placeholder{ color:var(--maroon); font-style:italic; font-size:0.88rem; }

  /* ---------- WhatsApp CTA banner ---------- */
  .cta-banner{
    background:
      radial-gradient(ellipse 700px 400px at 15% 20%, rgba(37,211,102,0.16), transparent 60%),
      var(--deep-green-2);
    border-radius:var(--radius-l);
    padding:56px 44px;
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:32px;
    color:var(--ivory);
    position:relative;
    overflow:hidden;
  }
  .cta-banner .weave-bg{ opacity:0.07; }
  .cta-banner h3{
    color:var(--ivory);
    font-size:clamp(1.5rem, 2.6vw, 2.1rem);
    margin-bottom:10px;
    position:relative;
  }
  .cta-banner p{ color:#CFE0D4; max-width:52ch; position:relative; }
  .cta-banner .btn{ position:relative; font-size:1.02rem; padding:15px 30px; }

  /* ---------- Dua section ---------- */
  .dua-section{
    text-align:center;
    padding:90px 0;
  }
  .dua-section .arabic{
    font-size:clamp(1.8rem, 4vw, 2.7rem);
    color:var(--maroon);
    margin-bottom:20px;
    line-height:1.8;
  }
  .dua-section .translit{
    font-size:1.02rem;
    color:var(--deep-green);
    font-weight:600;
    margin-bottom:10px;
  }
  .dua-section .translation{
    color:var(--muted);
    max-width:52ch;
    margin:0 auto;
  }
  .dua-ornament{
    width:60px; margin:0 auto 30px;
  }

  /* ---------- Contact ---------- */
  .contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:44px;
    align-items:stretch;
  }
  .contact-card{
    background:var(--white);
    border:1px solid var(--ivory-deep);
    border-radius:var(--radius-l);
    padding:38px;
    box-shadow:var(--shadow-soft);
  }
  .contact-list{ display:grid; gap:22px; margin-top:26px; }
  .contact-list li{ display:flex; gap:16px; align-items:flex-start; }
  .contact-list .point-icon{ background:var(--gold-soft); color:#7a5f18; }
  .contact-list h4{ font-size:0.96rem; color:var(--deep-green); font-weight:600; margin-bottom:3px; }
  .contact-list p, .contact-list a{ font-size:0.92rem; color:var(--muted); }
  .contact-list a:hover{ color:var(--maroon); }

  .map-frame{
    border-radius:var(--radius-l);
    overflow:hidden;
    border:1px solid var(--ivory-deep);
    box-shadow:var(--shadow-soft);
    min-height:340px;
    position:relative;
  }
  .map-frame iframe{ width:100%; height:100%; min-height:340px; border:0; filter:saturate(0.9) contrast(0.96); }
  .map-fallback{
    position:absolute; inset:0;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:10px; text-align:center; padding:24px;
    background:var(--ivory-alt);
    color:var(--muted); font-size:0.88rem;
  }

  /* ---------- Footer ---------- */
  footer{
    background:var(--deep-green-2);
    color:#B9CBC0;
    padding:60px 0 0;
  }
  .footer-grid{
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr 1.1fr;
    gap:40px;
    padding-bottom:44px;
    border-bottom:1px solid rgba(255,255,255,0.08);
  }
  .footer-brand{ display:flex; gap:12px; align-items:center; margin-bottom:16px; }
  .footer-brand strong{ font-family:'Tiro Bangla', serif; color:var(--ivory); font-size:1.15rem; }
  footer p{ font-size:0.9rem; line-height:1.75; color:#9FB4A8; }
  footer h5{
    color:var(--ivory);
    font-size:0.92rem;
    font-weight:600;
    letter-spacing:0.03em;
    margin-bottom:18px;
    font-family:'Hind Siliguri',sans-serif;
  }
  footer ul{ display:grid; gap:11px; }
  footer ul a{ font-size:0.9rem; color:#9FB4A8; transition:color .2s ease; }
  footer ul a:hover{ color:var(--gold-soft); }
  .footer-bottom{
    display:flex; justify-content:space-between; align-items:center;
    padding:22px 0; font-size:0.82rem; color:#7C9086; flex-wrap:wrap; gap:10px;
  }
  .social-row{ display:flex; gap:12px; margin-top:16px; }
  .social-row a{
    width:38px; height:38px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,0.07);
    color:var(--ivory);
    transition:background .2s ease, transform .2s ease;
  }
  .social-row a:hover{ background:var(--gold); color:var(--deep-green-2); transform:translateY(-2px); }
  .social-row svg{ width:17px; height:17px; }

  /* ---------- Reveal animation ---------- */
  .reveal{
    opacity:0;
    transform:translateY(22px);
    transition:opacity .7s ease, transform .7s ease;
  }
  .reveal.in{ opacity:1; transform:translateY(0); }

  /* ---------- Floating WhatsApp button (mobile-friendly) ---------- */
  .float-wa{
    position:fixed;
    bottom:22px; right:22px;
    z-index:200;
    width:58px; height:58px;
    border-radius:50%;
    background:var(--whatsapp);
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 10px 26px -8px rgba(37,211,102,0.6);
    transition:transform .2s ease;
  }
  .float-wa:hover{ transform:scale(1.08); }
  .float-wa svg{ width:28px; height:28px; color:#fff; }

  .scroll-top-btn{
    position:fixed;
    bottom:22px; left:22px;
    z-index:200;
    width:52px; height:52px;
    border-radius:50%;
    background:var(--deep-green);
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 10px 26px -8px rgba(22,61,46,0.5);
    opacity:0; visibility:hidden; transform:translateY(12px) scale(0.9);
    transition:opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
  }
  .scroll-top-btn.is-visible{
    opacity:1; visibility:visible; transform:translateY(0) scale(1);
  }
  .scroll-top-btn:hover{ background:var(--emerald); transform:translateY(-3px) scale(1.05); }
  .scroll-top-btn svg{ width:22px; height:22px; color:var(--ivory); }
  @media (max-width:640px){
    .scroll-top-btn{ width:46px; height:46px; bottom:18px; left:18px; }
    .scroll-top-btn svg{ width:19px; height:19px; }
  }

  /* ================= Responsive ================= */
  @media (max-width: 980px){
    .nav-links{ display:none; }
    .hamburger{ display:flex; }
    .nav-whatsapp-btn{ display:none; }
    .hero-inner{ grid-template-columns:1fr; }
    .hero-visual{ order:-1; max-width:280px; margin:0 auto; }
    .about-grid, .program-wrap, .contact-grid{ grid-template-columns:1fr; }
    .obj-grid{ grid-template-columns:repeat(2, 1fr); }
    .footer-grid{ grid-template-columns:1fr 1fr; }
    .cta-banner{ grid-template-columns:1fr; text-align:center; }
    .cta-banner p{ margin:0 auto; }
  }

  @media (max-width: 640px){
    .container{ padding:0 18px; }
    section{ padding:60px 0; }
    .topbar .arabic{ display:none; }
    .topbar-right{ gap:10px; font-size:0.76rem; }
    .hero{ padding:52px 0 44px; text-align:left; }
    .hero-stats{ gap:16px; }
    .stat{ min-width:100px; padding-right:0; }
    .obj-grid{ grid-template-columns:1fr; }
    .footer-grid{ grid-template-columns:1fr; gap:32px; }
    .prayer-row{ padding:14px 16px; grid-template-columns:1.3fr 0.85fr 0.85fr; }
    .cta-banner{ padding:38px 24px; }
    .nav-inner{ padding:12px 0; }
    .brand-text strong{ font-size:1rem; }
  }

/* ================= Prayer Widget (API-driven, method: Univ. of Islamic Sciences, Karachi) ================= */
.pw-main{
  max-width:640px;
  margin:0 auto 28px;
  border-radius:var(--radius-l);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid var(--ivory-deep);
  background:var(--white);
}
.pw-main-top{
  background:linear-gradient(160deg, var(--emerald) 0%, var(--deep-green) 65%, var(--deep-green-2) 100%);
  color:var(--ivory);
  padding:26px 26px 30px;
  position:relative;
  overflow:hidden;
}
.pw-main-top::after{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(circle at 85% 0%, rgba(184,145,46,0.35), transparent 55%);
  pointer-events:none;
}
.pw-date-row{
  display:flex; align-items:center; gap:14px;
  position:relative;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:var(--radius-m);
  padding:14px 16px;
}
.pw-date-badge{
  width:42px; height:42px; flex-shrink:0;
  border-radius:12px;
  background:rgba(255,255,255,0.14);
  display:flex; align-items:center; justify-content:center;
}
.pw-date-badge svg{ width:20px; height:20px; color:var(--gold-soft); }
.pw-date-text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.pw-date-text strong{ font-size:0.96rem; font-weight:600; line-height:1.45; }
.pw-date-text span{ font-size:0.8rem; color:#CFE0D4; line-height:1.4; }

.pw-arc-wrap{
  position:relative;
  max-width:280px; margin:22px auto 8px;
}
.pw-arc-svg{ width:100%; display:block; }
#pwArcProgress{ transition:stroke-dashoffset 1s linear; }
.pw-arc-center{
  position:absolute; left:0; right:0; bottom:6px;
  display:flex; flex-direction:column; align-items:center; gap:2px;
  text-align:center;
}
.pw-waqt-name{ font-family:'Tiro Bangla', serif; font-size:1.2rem; color:var(--gold-soft); }
.pw-waqt-sub{ font-size:0.76rem; color:#CFE0D4; }
.pw-waqt-count{ font-size:1.5rem; font-weight:700; letter-spacing:0.02em; }

.pw-chip-row{
  display:flex; flex-wrap:wrap; gap:10px; justify-content:center;
  margin-top:18px; position:relative;
}
.pw-chip{
  background:rgba(255,255,255,0.14);
  padding:8px 14px; border-radius:999px;
  font-size:0.82rem; display:flex; align-items:center; gap:6px;
}
.pw-chip strong{ font-weight:700; }
.pw-chip-loc svg{ width:14px; height:14px; color:var(--gold-soft); }
.pw-chip .pw-icon-sm{ width:15px; height:15px; color:var(--gold-soft); }

.pw-list{ padding:6px 8px; }
.pw-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--ivory-alt);
}
.pw-row:last-child{ border-bottom:none; }
.pw-row-name{ display:flex; align-items:center; gap:12px; font-weight:600; color:var(--deep-green); }
.pw-icon-sm{ display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; flex-shrink:0; color:var(--emerald); }
.pw-icon-sm svg{ width:100%; height:100%; }
.pw-row-time{ color:var(--muted); font-size:0.95rem; font-weight:600; }
.pw-row.is-active .pw-row-time{ color:var(--maroon); }
.pw-check{
  width:20px; height:20px; border-radius:50%;
  border:2px solid var(--ivory-deep);
  flex-shrink:0; display:flex; align-items:center; justify-content:center;
  margin-left:14px;
}
.pw-row.is-done .pw-check{ background:var(--emerald); border-color:var(--emerald); }
.pw-row.is-done .pw-check::after{ content:"✓"; color:#fff; font-size:11px; line-height:1; }
.pw-row-mid{ display:flex; align-items:center; gap:12px; }

.pw-footer-actions{
  display:flex; align-items:center; justify-content:center; gap:18px;
  padding:14px 16px 20px;
}
.pw-footer-btn{
  display:flex; align-items:center; gap:8px;
  font-size:0.9rem; font-weight:600; color:var(--deep-green);
  padding:8px 14px; border-radius:999px;
  transition:background .2s ease;
}
.pw-footer-btn:hover{ background:var(--ivory-alt); }
.pw-footer-btn svg{ width:17px; height:17px; }
.pw-footer-divider{ width:1px; height:22px; background:var(--ivory-deep); }
.pw-footer-sublink{
  display:block; width:100%; text-align:center;
  font-size:0.78rem; color:var(--muted); text-decoration:underline;
  text-underline-offset:3px; padding:0 16px 18px;
}
.pw-footer-sublink:hover{ color:var(--emerald); }
.pw-footer-sublink:disabled{ opacity:0.6; cursor:default; text-decoration:none; }

.pw-card{
  max-width:640px;
  margin:0 auto 24px;
  background:var(--white);
  border:1px solid var(--ivory-deep);
  border-radius:var(--radius-l);
  padding:26px 26px 28px;
  box-shadow:var(--shadow-soft);
}
.pw-card-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:10px;
}
.pw-card-title{ font-size:1.15rem; margin:0; }
.pw-title-maroon{ color:var(--maroon); }
.pw-ref-link{ font-size:0.85rem; font-weight:600; color:var(--emerald); white-space:nowrap; }
.pw-ref-link:hover{ text-decoration:underline; }
.pw-card-desc{ color:var(--muted); font-size:0.92rem; margin-bottom:20px; }

.pw-prohibited-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:12px;
}
.pw-prohibited-box{
  background:var(--maroon-soft);
  border-radius:var(--radius-m);
  padding:16px 10px;
  text-align:center;
  display:flex; flex-direction:column; gap:8px;
}
.pw-prohibited-box span{ font-size:0.82rem; color:var(--maroon); font-weight:600; }
.pw-prohibited-box strong{ font-size:0.92rem; color:var(--ink); font-weight:700; }

.pw-nafal-list{ display:grid; gap:0; margin-top:6px; }
.pw-nafal-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 4px; border-bottom:1px solid var(--ivory-alt);
  gap:12px;
}
.pw-nafal-row:last-child{ border-bottom:none; }
.pw-nafal-name{ display:flex; align-items:center; gap:10px; font-weight:600; color:var(--deep-green); font-size:0.95rem; }
.pw-nafal-icon{ display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; flex-shrink:0; color:var(--gold); }
.pw-nafal-icon svg{ width:100%; height:100%; }
.pw-nafal-row strong{ color:var(--muted); font-weight:700; font-size:0.92rem; }
.pw-nafal-right{ display:flex; flex-direction:column; align-items:flex-end; gap:3px; }
.pw-nafal-note{ font-size:0.76rem; color:var(--gold); font-weight:600; }

.pw-iftar-bar{
  display:grid; grid-template-columns:1fr 1fr 1.2fr;
  gap:0; margin-top:20px;
  background:var(--emerald-soft);
  border-radius:var(--radius-m);
  overflow:hidden;
}
.pw-iftar-col{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:18px 10px; text-align:center;
  border-right:1px solid rgba(22,61,46,0.1);
}
.pw-iftar-col:last-child{ border-right:none; }
.pw-iftar-col strong{ font-family:'Tiro Bangla', serif; font-size:1.15rem; color:var(--deep-green); }
.pw-iftar-col span{ font-size:0.76rem; color:var(--muted); }
.pw-iftar-main strong{ font-size:1.3rem; color:var(--maroon); }

.pw-fullscreen-btn{
  display:flex; align-items:center; justify-content:center; gap:6px;
  width:100%; margin-top:18px; padding:10px;
  font-size:0.88rem; font-weight:600; color:var(--emerald);
  border-top:1px solid var(--ivory-alt);
}
.pw-fullscreen-btn svg{ width:14px; height:14px; }
.pw-fullscreen-btn:hover{ color:var(--maroon); }

.pw-card.pw-fullscreen{
  position:fixed; inset:0; z-index:970;
  max-width:none; margin:0; border-radius:0;
  overflow-y:auto;
  display:flex; flex-direction:column; justify-content:center;
  padding:40px 24px;
}

.pw-disclaimer{
  max-width:640px; margin:0 auto; text-align:center;
  font-size:0.8rem; color:var(--muted); line-height:1.7;
}
.pw-error-fallback{
  max-width:640px; margin:16px auto 0; text-align:center;
  background:var(--maroon-soft); color:var(--maroon);
  padding:14px 18px; border-radius:var(--radius-s); font-size:0.9rem;
}

@media (max-width:640px){
  .pw-main-top{ padding:20px 18px 24px; }
  .pw-date-row{ padding:12px 13px; gap:11px; }
  .pw-date-badge{ width:36px; height:36px; border-radius:10px; }
  .pw-date-badge svg{ width:17px; height:17px; }
  .pw-date-text strong{ font-size:0.86rem; }
  .pw-date-text span{ font-size:0.74rem; }
  .pw-card{ padding:22px 18px 24px; }
  .pw-prohibited-grid{ gap:8px; }
  .pw-prohibited-box{ padding:12px 6px; }
  .pw-prohibited-box strong{ font-size:0.74rem; line-height:1.4; }
  .pw-iftar-col{ padding:14px 6px; }
  .pw-iftar-col strong{ font-size:0.98rem; }
  .pw-iftar-main strong{ font-size:1.08rem; }
  .pw-waqt-count{ font-size:1.25rem; }
}

/* ================= Scroll progress bar ================= */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background:linear-gradient(90deg, var(--gold), var(--maroon));
  z-index:1000; transition:width .1s linear;
}

/* ================= Nav: icon toggles + active link ================= */
.icon-toggle{
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:1.5px solid var(--ivory-deep);
  color:var(--deep-green); font-size:0.78rem; font-weight:700;
  transition:background .2s ease, transform .2s ease;
}
.icon-toggle:hover{ background:var(--ivory-alt); transform:translateY(-2px); }
.icon-toggle svg{ width:18px; height:18px; }
.nav-links a.is-active-link{ color:var(--maroon); }
.nav-links a.is-active-link::after{ transform:scaleX(1); transform-origin:left; background:var(--maroon); }

/* ================= Daily quote strip ================= */
.quote-strip{
  background:linear-gradient(90deg, var(--emerald-soft), var(--gold-soft));
  padding:18px 0;
  border-top:1px solid var(--ivory-deep);
  border-bottom:1px solid var(--ivory-deep);
}
.quote-strip-inner{ display:flex; align-items:flex-start; gap:16px; }
.quote-mark{ width:26px; height:26px; color:var(--maroon); flex-shrink:0; opacity:0.8; }
.quote-text{ font-family:'Tiro Bangla', serif; font-size:1.08rem; color:var(--deep-green-2); line-height:1.6; }
.quote-source{ display:block; margin-top:4px; font-size:0.82rem; color:var(--muted); }

/* ================= Islamic tools grid ================= */
.tools-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-bottom:28px;
  width:100%;
  max-width:100%;
}
.tool-card{
  background:var(--white);
  border:1px solid var(--ivory-deep);
  border-radius:var(--radius-l);
  padding:28px;
  box-shadow:var(--shadow-soft);
  min-width:0; max-width:100%; overflow:hidden;
}
.tool-card-wide{ grid-column:1 / -1; }
.tool-title{
  display:flex; align-items:center; gap:10px;
  font-size:1.1rem; margin-bottom:8px;
}
.tool-title svg{ width:22px; height:22px; color:var(--emerald); flex-shrink:0; }
.tool-desc{ color:var(--muted); font-size:0.9rem; margin-bottom:20px; }

/* Qibla compass */
.qibla-wrap{
  position:relative; width:200px; height:200px; margin:0 auto 18px;
}
.qibla-dial{ width:100%; height:100%; }
.qibla-needle{
  position:absolute; top:50%; left:50%;
  width:40px; height:140px;
  margin-left:-20px; margin-top:-70px;
  transform-origin:50% 50%;
  transition:transform .3s ease;
}
.qibla-center-dot{
  position:absolute; top:50%; left:50%; width:10px; height:10px;
  margin:-5px; border-radius:50%; background:var(--deep-green);
}
.qibla-info{ text-align:center; font-size:0.9rem; color:var(--muted); margin-bottom:14px; }
.qibla-info strong{ color:var(--deep-green); }
.qibla-enable-btn{ display:flex; width:100%; justify-content:center; margin-bottom:12px; }
.qibla-status{ font-size:0.82rem; color:var(--muted); text-align:center; line-height:1.6; }

/* Tasbih counter */
.tasbih-wrap{ display:flex; justify-content:center; margin-bottom:18px; }
.tasbih-ring-btn{
  position:relative; width:150px; height:150px;
  display:flex; align-items:center; justify-content:center;
  transition:transform .1s ease;
}
.tasbih-ring-btn:active{ transform:scale(0.96); }
.tasbih-ring-svg{ position:absolute; inset:0; width:100%; height:100%; }
#tasbihRing{ transition:stroke-dashoffset .2s ease; }
.tasbih-count{
  position:relative; font-family:'Tiro Bangla', serif;
  font-size:2.4rem; color:var(--deep-green); font-weight:700;
}
.tasbih-controls{
  display:flex; align-items:center; justify-content:center; gap:16px;
  font-size:0.88rem; color:var(--muted);
}
.tasbih-controls select{
  border:1.5px solid var(--ivory-deep); border-radius:8px;
  padding:6px 10px; font-family:inherit; color:var(--deep-green); font-weight:600;
  margin-left:6px; background:var(--white);
}

/* Hijri calendar */
.hijri-cal-header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:14px;
}
.hijri-cal-label-group{ display:flex; flex-direction:column; align-items:center; gap:2px; }
.hijri-cal-label{ font-family:'Tiro Bangla', serif; font-size:1.05rem; color:var(--deep-green); }
.hijri-cal-hijri-label{ font-size:0.78rem; color:var(--maroon); font-weight:600; }
.hijri-cal-nav{
  width:32px; height:32px; border-radius:50%;
  border:1.5px solid var(--ivory-deep);
  display:flex; align-items:center; justify-content:center;
  color:var(--deep-green);
}
.hijri-cal-nav svg{ width:15px; height:15px; }
.hijri-cal-nav:hover{ background:var(--ivory-alt); }
.hijri-cal-weekdays{
  display:grid; grid-template-columns:repeat(7,1fr);
  text-align:center; font-size:0.75rem; color:var(--muted);
  font-weight:600; margin-bottom:6px;
}
.hijri-cal-grid{
  display:grid; grid-template-columns:repeat(7,1fr); gap:4px;
  contain:layout paint style;
  transform:translateZ(0);
  -webkit-transform:translateZ(0);
}
.hijri-cal-cell{
  min-height:40px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  border-radius:8px; background:var(--ivory-alt); gap:1px;
  overflow:hidden;
  contain:layout paint style;
  transform:translateZ(0);
  -webkit-transform:translateZ(0);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
.hijri-cal-cell.is-today{ background:var(--deep-green); }
.hijri-cal-cell.is-today strong, .hijri-cal-cell.is-today span{ color:var(--ivory); }
.hijri-cal-cell strong{ font-size:0.82rem; color:var(--deep-green); line-height:1.2; }
.hijri-cal-cell span{ font-size:0.62rem; color:var(--muted); line-height:1.2; }
.hijri-cal-empty{ background:transparent; }
.hijri-cal-loading{ grid-column:1/-1; text-align:center; color:var(--muted); font-size:0.85rem; padding:20px 0; }
@media (max-width:640px){
  .hijri-cal-cell{ min-height:36px; }
}

/* Notify banner */
.notify-banner{
  display:flex; align-items:center; gap:18px;
  background:var(--deep-green); color:var(--ivory);
  border-radius:var(--radius-l); padding:24px 28px;
  flex-wrap:wrap;
}
.notify-banner svg{ width:30px; height:30px; color:var(--gold-soft); flex-shrink:0; }
.notify-banner strong{ display:block; margin-bottom:4px; }
.notify-banner p{ font-size:0.86rem; color:#CFE0D4; max-width:44ch; }
.notify-banner .btn{ margin-left:auto; }

/* ================= Committee ================= */
.committee-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:22px;
}
.committee-card{
  background:var(--white); border:1px solid var(--ivory-deep);
  border-radius:var(--radius-m); padding:26px 20px; text-align:center;
  transition:transform .2s ease, box-shadow .2s ease;
}
.committee-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-soft); }
.committee-avatar{
  width:64px; height:64px; margin:0 auto 14px;
  border-radius:50%; background:var(--emerald-soft); color:var(--emerald);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.committee-avatar svg{ width:30px; height:30px; }
.committee-avatar img{
  width:100%; height:100%; object-fit:cover; border-radius:50%;
}
.committee-card h4{ font-size:1.02rem; color:var(--deep-green); margin-bottom:4px; }
.committee-role{ font-size:0.82rem; color:var(--gold); font-weight:600; display:block; margin-bottom:8px; }
.committee-note{ font-size:0.84rem; color:var(--muted); }

/* ================= Gallery + lightbox ================= */
.gallery-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
}
.gallery-item{
  position:relative; aspect-ratio:4/3; border-radius:var(--radius-m);
  overflow:hidden; border:1px solid var(--ivory-deep); display:block;
}
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.gallery-item:hover img{ transform:scale(1.06); }
.gallery-caption{
  position:absolute; left:0; right:0; bottom:0;
  background:linear-gradient(0deg, rgba(15,46,34,0.85), transparent);
  color:var(--ivory); font-size:0.8rem; padding:24px 14px 10px; text-align:left;
}
.gallery-item-add{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  border:2px dashed var(--ivory-deep); color:var(--muted); font-size:0.8rem;
  text-align:center; padding:16px; cursor:default;
}
.gallery-item-add svg{ width:26px; height:26px; }

.lightbox{
  position:fixed; inset:0; z-index:980;
  background:rgba(10,23,18,0.92);
  display:none; align-items:center; justify-content:center;
  flex-direction:column; padding:40px 20px;
}
.lightbox.is-open{ display:flex; }
.lightbox img{ max-width:100%; max-height:78vh; border-radius:var(--radius-m); box-shadow:var(--shadow); }
.lightbox-caption{ color:var(--ivory); margin-top:16px; font-size:0.95rem; text-align:center; }
.lightbox-close{
  position:absolute; top:22px; right:22px;
  width:42px; height:42px; border-radius:50%;
  background:rgba(255,255,255,0.12); color:var(--ivory);
  display:flex; align-items:center; justify-content:center;
}
.lightbox-close svg{ width:20px; height:20px; }

/* ================= Confirm dialog (reusable) ================= */
.confirm-overlay{
  display:none; position:fixed; inset:0; z-index:9999;
  background:rgba(15,30,22,0.55); backdrop-filter:blur(2px);
  align-items:center; justify-content:center; padding:20px;
}
.confirm-overlay.is-open{ display:flex; }
.confirm-box{
  background:var(--white); border-radius:var(--radius-m);
  box-shadow:var(--shadow); max-width:360px; width:100%;
  padding:26px 24px 22px; text-align:center;
  animation:confirmPop .18s ease;
}
@keyframes confirmPop{ from{ transform:scale(.94); opacity:0; } to{ transform:scale(1); opacity:1; } }
.confirm-icon{
  width:52px; height:52px; margin:0 auto 14px; border-radius:50%;
  background:var(--maroon-soft); color:var(--maroon);
  display:flex; align-items:center; justify-content:center;
}
.confirm-icon svg{ width:26px; height:26px; }
.confirm-message{ color:var(--ink); font-size:0.98rem; line-height:1.6; margin-bottom:20px; }
.confirm-actions{ display:flex; gap:10px; }
.confirm-actions .btn{ flex:1; justify-content:center; }

/* ================= Prohibited-times reference overlay ================= */
.pw-ref-overlay{
  display:none; position:fixed; inset:0; z-index:1100;
  background:rgba(15,30,22,0.55);
  align-items:flex-start; justify-content:center;
}
.pw-ref-overlay.is-open{ display:flex; }
.pw-ref-panel{
  background:var(--white); width:100%; height:100%;
  display:flex; flex-direction:column; overflow:hidden;
}
.pw-ref-header{
  display:flex; align-items:center; gap:14px; flex-shrink:0;
  padding:18px 18px; border-bottom:1px solid var(--ivory-deep);
}
.pw-ref-back{
  width:38px; height:38px; flex-shrink:0; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--deep-green); background:transparent;
}
.pw-ref-back:hover{ background:var(--ivory-alt); }
.pw-ref-back svg{ width:22px; height:22px; }
.pw-ref-title{
  font-size:1.15rem; color:var(--deep-green); font-family:'Tiro Bangla', serif;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.pw-ref-body{ flex:1; overflow-y:auto; padding:22px 20px 24px; }
.pw-ref-footer{
  flex-shrink:0; text-align:center; font-size:0.8rem; color:var(--muted);
  padding:12px 16px; border-top:1px solid var(--ivory-deep); background:var(--ivory-alt);
}
.pw-ref-footer a{ color:var(--emerald); font-weight:600; text-decoration:underline; }

/* --- list view --- */
.pw-ref-list-item{
  display:block; width:100%; text-align:left; padding:18px 4px;
  border-bottom:1px solid var(--ivory-deep);
}
.pw-ref-list-item:first-child{ padding-top:6px; }
.pw-ref-item-title{ font-size:1.02rem; color:var(--deep-green); font-weight:600; line-height:1.5; }
.pw-ref-item-sub{ display:block; margin-top:6px; font-size:0.88rem; color:var(--muted); line-height:1.55; }

/* --- detail view --- */
.pw-ref-detail h1{
  font-size:1.28rem; color:var(--deep-green); font-family:'Tiro Bangla', serif;
  line-height:1.4; margin-bottom:10px;
}
.pw-ref-detail-sub{ font-size:0.92rem; color:var(--muted); line-height:1.6; margin-bottom:22px; }
.pw-ref-detail p{ font-size:0.96rem; color:var(--ink); line-height:1.8; margin-bottom:18px; }
.pw-ref-detail ul{ margin:0 0 18px; padding-left:0; list-style:none; }
.pw-ref-detail ul li{
  position:relative; padding-left:20px; font-size:0.96rem; color:var(--ink);
  line-height:1.75; margin-bottom:10px;
}
.pw-ref-detail ul li::before{
  content:''; position:absolute; left:2px; top:9px;
  width:7px; height:7px; border-radius:50%; background:var(--emerald);
}
.pw-ref-hadith-title{
  font-size:1.08rem; color:var(--deep-green); font-family:'Tiro Bangla', serif;
  margin:26px 0 12px;
}
.pw-ref-hadith-title:first-of-type{ margin-top:8px; }
.pw-ref-hadith-narrator{ font-size:0.94rem; color:var(--ink); line-height:1.75; margin-bottom:10px; }
.pw-ref-hadith-text{
  font-size:0.96rem; color:var(--ink); line-height:1.85;
  background:var(--emerald-soft); border-radius:var(--radius-s);
  padding:14px 16px; margin-bottom:8px;
}
.pw-ref-hadith-ref{ color:var(--maroon); font-weight:600; }
.pw-ref-detail p a.pw-ref-inline-link{ color:var(--emerald); font-weight:600; text-decoration:underline; word-break:break-word; }
.pw-ref-detail h2{
  font-size:1.06rem; color:var(--deep-green); font-family:'Tiro Bangla', serif;
  margin:24px 0 12px;
}
.pw-ref-detail h2:first-of-type{ margin-top:8px; }
.pw-ref-quote{
  text-align:center; font-style:italic; color:var(--muted);
  line-height:1.85; padding:2px 12px; margin-bottom:20px;
}
.pw-ref-note{ font-size:0.92rem; color:var(--maroon); line-height:1.75; margin-bottom:18px; }
.pw-ref-note strong{ font-weight:700; }

@media (min-width:640px){
  .pw-ref-overlay{ align-items:center; padding:24px; }
  .pw-ref-panel{
    width:100%; max-width:480px; height:auto; max-height:85vh;
    border-radius:var(--radius-l); box-shadow:var(--shadow);
    animation:confirmPop .18s ease;
  }
}

/* ================= Events ================= */
.events-list{ display:grid; gap:16px; max-width:760px; margin:0 auto; }
.event-row{
  display:flex; gap:18px; align-items:flex-start;
  background:var(--white); border:1px solid var(--ivory-deep);
  border-radius:var(--radius-m); padding:20px 24px;
}
.event-date-badge{
  width:44px; height:44px; flex-shrink:0; border-radius:12px;
  background:var(--emerald-soft); color:var(--emerald);
  display:flex; align-items:center; justify-content:center;
}
.event-date-badge svg{ width:20px; height:20px; }
.event-info h4{ font-size:1rem; color:var(--deep-green); margin-bottom:3px; }
.event-date{ font-size:0.82rem; color:var(--maroon); font-weight:600; }
.event-info p{ font-size:0.88rem; color:var(--muted); margin-top:4px; }

/* ================= Khutbah archive ================= */
.khutbah-list{ display:grid; gap:18px; max-width:760px; margin:0 auto; }
.khutbah-card{
  background:var(--white); border:1px solid var(--ivory-deep);
  border-radius:var(--radius-m); padding:24px 26px;
}
.khutbah-date{ font-size:0.8rem; color:var(--gold); font-weight:700; letter-spacing:0.03em; }
.khutbah-card h4{ font-size:1.05rem; color:var(--deep-green); margin:6px 0 8px; }
.khutbah-card p{ font-size:0.9rem; color:var(--muted); }
.khutbah-audio{ width:100%; margin-top:14px; }

.khutbah-read-more {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
}

.khutbah-read-more:hover {
  text-decoration: underline;
  transform: translateX(3px);
}

/* ================= Contact form ================= */
.contact-form{ margin-top:18px; display:grid; gap:14px; }
.form-row{ display:grid; gap:6px; }
.form-row label{ font-size:0.84rem; font-weight:600; color:var(--deep-green); }
.form-row input, .form-row textarea{
  border:1.5px solid var(--ivory-deep); border-radius:var(--radius-s);
  padding:11px 14px; font-family:inherit; font-size:0.92rem; color:var(--ink);
  background:var(--ivory); resize:vertical;
}
.form-row input:focus, .form-row textarea:focus{ border-color:var(--gold); outline:none; }
.contact-form-status{ font-size:0.85rem; text-align:center; min-height:1.2em; }
.contact-form-status.is-success{ color:var(--emerald); }
.contact-form-status.is-error{ color:var(--maroon); }

/* ================= Responsive: new sections ================= */
@media (max-width: 980px){
  .tools-grid{ grid-template-columns:1fr; }
  .committee-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .donation-grid{ grid-template-columns:1fr; }
  .notify-banner .btn{ margin-left:0; width:100%; justify-content:center; }
}
@media (max-width: 640px){
  .committee-grid{ grid-template-columns:1fr 1fr; gap:14px; }
  .committee-card{ padding:18px 12px; }
  .gallery-grid{ grid-template-columns:1fr 1fr; gap:10px; }
  .quote-text{ font-size:0.95rem; }
  .qibla-wrap{ width:170px; height:170px; }
  .tasbih-ring-btn{ width:130px; height:130px; }
  .tasbih-count{ font-size:2rem; }
  .icon-toggle{ width:36px; height:36px; }
  .nav-cta{ gap:8px; }
  .event-row, .khutbah-card{ padding:16px 18px; }
}
@media (max-width: 480px){
  .nav-cta{ gap:6px; }
  .brand-mark{ width:38px; height:38px; }
}

/* ================= Mobile menu: WhatsApp + install actions ================= */
.mobile-menu-actions{
  display:none;
  flex-direction:column; gap:12px;
  margin-top:20px; padding-top:18px;
  border-top:1px solid var(--ivory-deep);
}
@media (max-width: 980px){
  .mobile-menu-actions{ display:flex; }
}
