  :root{
    --cream:#f7f1e6;
    --cream-2:#EEE5D6;
    --green:#23604C;
    --green-dark:#0e3527;
    --gold:#C4A265;
    --gold-dark:#A68A58;
    --brown:#4E3E2B;
    --brown-dark:#4E3E2B;
    --text-dark:#1D211F;
    --text-light:#57534E;
    --text-body:#3E3E3E;
    --white:#ffffff;
    --radius:10px;
  }

  *{box-sizing:border-box;margin:0;padding:0;}

  body{
    font-family:'DM Sans', sans-serif;
    background:#fff;
    color:var(--text-dark);
    -webkit-font-smoothing:antialiased;
  }
  p{letter-spacing: 0.2px;}
  h1, h2, h3, h4, h5, h6 { font-family: 'Rubik', sans-serif;}

  img,svg{display:block;max-width:100%;}

  a{color:inherit;text-decoration:none;}

  button{font-family:inherit;cursor:pointer;}

  .wrap{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
  }

  /* ---------- HEADER ---------- */
  header{
    background:#ffffff10;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:20;
    border-bottom:1px solid rgba(255,255,255,0.55);
    backdrop-filter:blur(3px);
  }

  .nav-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 20px;
  }

  .logo{
    display:flex;
    align-items:center;
    gap:10px;
    width: 65px;
  }
  .logo-icon{
    width:42px;height:42px;flex-shrink:0;
    border-radius:6px;
    background:var(--green);
    display:flex;align-items:center;justify-content:center;
    color:var(--gold);
    font-size:20px;
  }
  .logo-text{
    line-height:1.1;
  }
  .logo-text .main{
    font-weight:700;
    font-size:15px;
    color:var(--green);
    letter-spacing:0.5px;
  }
  .logo-text .sub{
    font-size:9px;
    color:var(--brown);
    letter-spacing:0.3px;
    text-transform:uppercase;
  }

  .nav-links{
    display:none;
    gap:28px;
    list-style:none;
    font-size:14.5px;
    font-weight:600;
    color:var(--text-dark);
  }

  .nav-actions{
    display:none;
    gap:10px;
    align-items:center;
  }

.btn{
    width: min-content !important;
    padding:10px 18px;
    border-radius:8px;
    font-size:14px;
    font-weight:500;
    border:1.5px solid transparent;
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
    gap:6px;
    transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  }
  .btn-brown{ background:var(--brown); color:var(--white); }
  .btn-brown:hover{ background:var(--brown-dark); transform:translateY(-2px); box-shadow:0 8px 18px rgba(74,55,40,0.32); }
  .btn-green{ background:var(--green); color:var(--white); }
  .btn-green:hover{ background:var(--green-dark); transform:translateY(-2px); box-shadow:0 8px 18px rgba(21,71,52,0.32); }
  .btn-outline{ background:transparent; border-color:var(--green); color:var(--green); }
  .btn-outline:hover{ background:var(--green); color:var(--white); transform:translateY(-2px); box-shadow:0 8px 18px rgba(21,71,52,0.22); }
  .btn:active{ transform:translateY(0); box-shadow:none; }

  /* ---------- NAV DROPDOWN ---------- */
  .nav-links li.has-dropdown{ position:relative; }
  .nav-links li.has-dropdown > a{ display:inline-flex; align-items:center; gap:5px; }
  .nav-links li.has-dropdown .chevron{ width:9px; height:9px; flex-shrink:0; transition:transform .18s ease; }
  .nav-links li.has-dropdown:hover .chevron,
  .nav-links li.has-dropdown:focus-within .chevron{ transform:rotate(180deg); }
  .dropdown{
    position:absolute;
    top:calc(100% + 16px);
    left:-14px;
    min-width:220px;
    background:var(--white);
    border-radius:10px;
    box-shadow:0 16px 34px rgba(44,38,32,0.2);
    padding:8px;
    list-style:none;
    opacity:0;
    visibility:hidden;
    transform:translateY(8px);
    transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .nav-links li.has-dropdown:hover .dropdown,
  .nav-links li.has-dropdown:focus-within .dropdown{
    opacity:1; visibility:visible; transform:translateY(0);
  }
  .dropdown li a{
    display:block;
    padding:10px 14px;
    border-radius:7px;
    font-size:14px;
    font-weight:600;
    color:var(--text-dark);
  }
  .dropdown li a:hover{ background:var(--cream-2); color:var(--green); }

  .mobile-menu .has-dropdown-mobile > .mobile-parent{
    display:flex;
    align-items:center;
    justify-content:space-between;
    cursor:pointer;
  }
  .mobile-menu .mobile-parent .chevron{ width:10px; height:10px; transition:transform .2s ease; }
  .mobile-menu .has-dropdown-mobile.open .mobile-parent .chevron{ transform:rotate(180deg); }
  .mobile-submenu{
    max-height:0;
    overflow:hidden;
    list-style:none;
    transition:max-height .25s ease;
  }
  .mobile-menu .has-dropdown-mobile.open .mobile-submenu{ max-height:200px; }
  .mobile-submenu li{ border-bottom:none; padding:8px 0 4px 14px; font-weight:500; font-size:14px; }
  .mobile-submenu li a{ color:var(--green); }

  .menu-toggle{
    background:none;
    border:none;
    width:38px;height:38px;
    display:flex;align-items:center;justify-content:center;
  }
  .menu-toggle span, .menu-toggle::before, .menu-toggle::after{
    content:"";
    display:block;
    width:22px;height:2px;
    background:var(--green);
    position:relative;
    transition:all .2s ease;
  }
  .menu-toggle::before{ position:absolute; transform:translateY(-7px); }
  .menu-toggle::after{ position:absolute; transform:translateY(7px); }
  .menu-toggle.open span{ background:transparent; }
  .menu-toggle.open::before{ transform:rotate(45deg); }
  .menu-toggle.open::after{ transform:rotate(-45deg); }

  .mobile-menu{
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease;
    background:var(--cream-2);
  }
  .mobile-menu.open{ max-height:420px; }
  .mobile-menu ul{
    list-style:none;
    padding:10px 20px 6px;
  }
  .mobile-menu li{
    padding:12px 0;
    border-bottom:1px solid rgba(0,0,0,0.06);
    font-weight:600;
    font-size:15px;
  }
  .mobile-menu .mobile-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:16px 20px 20px;
  }
  .mobile-actions .btn{ justify-content:center; }

  /* ---------- HERO ---------- */
  .hero{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    min-height:680px;
    background:#f7f3eb;
    padding:40px 0 46px;
  }

  .hero::before,
  .hero::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
  }
  .hero::before{
    z-index:-2;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.80) 43.27%, #FFF7EB 100%), url(assets/masjid.png) lightgray 0px -140.163px / 102.904% 144.216% no-repeat;;
  }
  .hero::after{
    z-index:-1;
    background:rgba(250, 248, 243, 0);
  }

  .hero-arch{
    position:absolute;
    top:-40px;
    right:-60px;
    width:360px;
    height:520px;
    opacity:0.22;
    pointer-events:none;
  }

  .hero-inner{
    position:relative;
    z-index:2;
  }

  .eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:rgba(244, 241, 234, 0.8) !important;
    border:1px solid rgba(21,71,52,0.25);
    color:var(--green) !important;
    font-size:12.5px;
    font-weight:400;
    padding:7px 14px;
    border-radius:30px;
    margin-bottom:22px;
  }
  .eyebrow .dot{
    width:6px;height:6px;border-radius:50%;
    background:var(--green) !important;
  }

  .hero h1{
    font-size:clamp(2.1rem, 8vw, 3.4rem);
    line-height:1.08;
    font-weight:700;
    color:var(--brown);
    letter-spacing:-0.5px;
  }
  .hero h1 .accent{ color:var(--gold); }

  .hero p.lede{
    margin-top:22px;
    font-size:16px;
    line-height:1.65;
    color:var(--text-body);
    max-width:44ch;
  }

  .hero-ctas{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:28px;
  }
  .hero-ctas .btn{ padding:14px 22px; font-size:14.5px; }

  /* quote / fatwa card */
  .quote-card{
    margin-top:32px;
    background:rgba(248, 246, 241, 0);
    backdrop-filter:blur(4px);
    border:1px solid rgba(166,143,108,0.72);
    border-radius:12px;
    padding:34px;
  }
  .quote-card .quote-body{
    transition:opacity .25s ease, transform .25s ease;
    opacity:1;
    transform:translateY(0);
  }
  .quote-card .quote-body.fading{
    opacity:0;
    transform:translateY(6px);
  }
  .quote-footer{ cursor:pointer; }
  .quote-footer:hover span:last-child{ transform:translateX(4px); }
  .quote-footer span:last-child{ display:inline-block; transition:transform .18s ease; }
  .quote-tag{
    display:inline-block;
    background:#f7f1e654;
    border:1px solid rgba(21,71,52,0.2);
    color:var(--green);
    font-size:11px;
    font-weight:700;
    letter-spacing:0.6px;
    text-transform:uppercase;
    padding:6px 12px;
    border-radius:6px;
    margin-bottom:14px;
  }
  .quote-card blockquote{
    font-size:19px;
    line-height:1.4;
    font-weight:700;
    color:var(--brown-dark);
  }
  .quote-card .divider{
    height:1px;
    background:rgba(0,0,0,0.12);
    margin:16px 0;
  }
  .quote-card .quote-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:14px;
    color:var(--text-body);
    font-weight:500;
  }

  .carousel-dots{
    display:flex;
    justify-content:center;
    gap:7px;
    margin-top:34px;
  }
  .carousel-dots span{
    width:8px;height:8px;border-radius:50%;
    background:rgba(21,71,52,0.3);
    cursor:pointer;
    transition:background-color .2s ease, width .2s ease;
    display:inline-block;
  }
  .carousel-dots span:hover{ background:rgba(21,71,52,0.55); }
  .carousel-dots span.active{ background:var(--green); width:22px; border-radius:5px; }

  /* ---------- TABLET / DESKTOP ---------- */
  @media (min-width:900px){
    .nav-links{ display:flex; }
    .nav-actions{ display:flex; }
    .menu-toggle{ display:none; }
    .mobile-menu{ display:none; }

    .hero{ padding:150px 0 40px; }
    .hero-grid{
      display:grid;
      grid-template-columns:1.45fr 1fr;
      gap:42px;
      align-items:center;
    }
    .hero-inner{ max-width:1700px; }
    .hero p.lede{ max-width:61ch; }
    .quote-card{ margin-top:0; }
    .carousel-dots{ margin-top:64px; }
    .hero h1{ font-size:clamp(3rem,3.5vw,4rem); line-height:1.02; letter-spacing:-1.5px; }
    .hero p.lede{ font-size:18px; line-height:1.55; }
    .quote-card blockquote{ font-size:20px; line-height:1.55; }
    .quote-card .divider{ margin:20px 0 24px; }
    .quote-card .quote-footer{ font-size:16px; }
  }

  @media (min-width:1200px){
    .hero{ min-height:100vh; padding:164px 0 38px; }
    .hero-inner{ max-width:1400px; }
    header .nav-bar{ max-width:1400px; margin:0 auto; }
  }

  @media (max-width:899px){
    header{ position:relative; background:rgba(255,255,255,0.94); }
    .nav-bar{ padding:14px 20px; }
    .hero{ min-height:calc(100svh - 67px); }
    .hero::before{ background-position:center; }
    .hero::after{ background:rgba(250,248,243,0.84); }
  }

  /* ---------- ABOUT SECTION ---------- */
  .about{
    background:var(--white);
    padding:56px 0;
  }
  .about-grid{
    display:flex;
    flex-direction:column;
    gap:36px;
  }
  .about-image{
    position:relative;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 3px 20px rgba(44,38,32,0.18);
  }
  .about-image svg{ width:100%; height:auto; display:block; }
  .about-image .caption{
    position:absolute;
    left:18px; bottom:16px;
    color:#ffffff30;
    font-weight:800;
    font-size:20x;
    letter-spacing:0.3px;
    text-shadow:0 2px 8px rgba(0,0,0,0.45);
    font-family: 'Oswald', sans-serif;
    right: 0;
  text-align: right;
  padding-right: 25px;
  }

  .about h2{
    font-size:clamp(1.7rem, 6vw, 2.5rem);
    font-weight:500;
    color:var(--text-dark);
    letter-spacing:-0.5px;
    line-height:1.12;
  }
  .about p.about-lede{
    margin-top:16px;
    font-size:15.5px;
    line-height:1.7;
    color:var(--text-body);
  }
  .about p.about-lede .read-more{
    color:var(--green);
    font-weight:700;
  }
  .about p.about-lede .read-more:hover{ text-decoration:underline; }

  .services-title{
    margin-top:28px;
    font-size:20px;
    font-weight:500;
    color:var(--text-dark);
    font-family: 'Rubik', sans-serif;
  }
  .services-list{
    margin-top:16px;
    display:grid;
    grid-template-columns:1fr;
    gap:12px 28px;
  }
  .services-list li{
    list-style:none;
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:500;
    font-size:15px;
    color:var(--text-dark);
  }
  .check{
    width:22px;height:22px;
    flex-shrink:0;
    border-radius:50%;
    border:2px solid var(--green);
    color:var(--green);
    display:flex;align-items:center;justify-content:center;
    font-size:12px;
  }

  .about-ctas{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:28px;
  }
  .about-ctas .btn{ padding:14px 22px; font-size:14.5px; }

  @media (min-width:900px){
    .about{ padding:100px 0; }
    .about-grid{
      flex-direction:row-reverse;
      align-items:center;
      gap:60px;
    }
    .about-grid > div{ flex:1; min-width:0; height: 430px;}
    .services-list{ grid-template-columns:1fr 1fr; }
  }

  /* ---------- PRAYERS SECTION ---------- */
  .prayers{
    background:var(--cream);
    padding:50px 0 60px;
  }
  .prayers-grid{
    display:flex;
    flex-direction:column;
    gap:28px;
  }

  .prayers h2{
    font-size:clamp(1.7rem, 6vw, 2.5rem);
    font-weight:500;
    color:var(--text-dark);
    letter-spacing:-0.5px;
  }

  .date-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:16px;
    background:var(--white);
    border:1px solid #DADADA;
    border-radius:8px;
    padding: 8px 15px 8px 15px;
    font-size:12.5px;
    font-weight:700;
    color:var(--text-light);
    letter-spacing:0.3px;
  }
  .date-badge .hijri{ color:var(--green); }
  .date-badge .sep{ color:var(--brown); }

  .prayer-table{
    margin-top:22px;
    overflow:hidden;
    display: grid;
    gap: 15px;
  }
  .prayer-head{
    display:grid;
    grid-template-columns:1.3fr 0.85fr 0.85fr;
    background:var(--gold-dark);
    color:var(--white);
    font-size: 18px;
    font-weight:800;
    letter-spacing:0.8px;
    text-transform:uppercase;
    padding:15px 18px;
    border-radius: 10px;
  }
  .prayer-head span:nth-child(2){ text-align:center; }
  .prayer-head span:nth-child(3){ text-align:right; }

  .prayer-row{
    display:grid;
    grid-template-columns:1.3fr 0.85fr 0.85fr;
    align-items:center;
    background:var(--cream-2);
    padding:12px 18px;
    border-bottom:2px solid var(--cream);
    border-radius: 10px;
  }
  .prayer-row:last-child{ border-bottom:none; }

  .prayer-name{
    display:flex;
    align-items:center;
    gap:12px;
  }
  .prayer-icon{
    width:34px;height:34px;
    border-radius:9px;
    background:var(--green);
    color:var(--white);
    display:flex;align-items:center;justify-content:center;
    font-size:16px;
    flex-shrink:0;
  }
  .prayer-name .names{ line-height:1.3; }
  .prayer-name .en{ font-weight: 800; font-size:16px; color:var(--text-light); }
  .prayer-name .ar{ font-size:20px; color:var(--text-light); }

  .adhan-time{
    text-align:center;
    font-weight: 500;
    font-size:16px;
    color:var(--text-light);
  }
  .adhan-time small{ font-size:12px; color:var(--text-light); font-weight:500; }

  .iqamah-pill{
    justify-self:end;
    background:var(--white);
    border-radius:7px;
    padding:7px 12px;
    font-weight:800;
    font-size:13px;
    color:var(--text-dark);
    box-shadow:0 2px 6px rgba(0,0,0,0.06);
  }

  /* jumuah card */
  .jumuah-card{
    background:var(--cream-2);
    border-radius:14px;
    padding:22px;
  }
  .jumuah-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .jumuah-head h3{
    font-size:25px;
    font-weight:600;
    color:var(--green);
  }
  .jumuah-badge{
    width:38px;height:38px;
    border-radius:50%;
    background:var(--green);
    color:var(--white);
    display:flex;align-items:center;justify-content:center;
    font-size:16px;
    flex-shrink:0;
  }

  .khutbah-list{
    margin-top:16px;
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .khutbah-row{
    background:var(--white);
    border-radius:8px;
    padding:10px 14px;
  }
  .khutbah-top{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    font-size:11px;
    font-weight: 600;
    letter-spacing:0.4px;
    color:var(--text-light);
    text-transform:uppercase;
  }
  .khutbah-top .time{
    font-size:15px;
    color:var(--brown-dark);
    text-transform:none;
    letter-spacing:0;
  }
  .khutbah-bottom{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    margin-top:2px;
    font-size:14px;
    color:var(--text-dark);
  }
  .khutbah-bottom b{ font-weight:800; }
  .khutbah-bottom span{ font-size:14px; color:var(--text-light); font-weight:500; }

  .jumuah-footer{
    margin-top:18px;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:14px;
  }
  .jumuah-footer .btn{ padding:11px 16px; font-size:13.5px; }
  .jumuah-notes{
    font-size:11.5px;
    color:var(--text-light);
    font-weight: 500;
    line-height:1.7;
    text-align:right;
    display: flex;
  justify-content: space-between;
  width: 100%;
  }
  .jumuah-notes div{ display:flex; align-items:center; gap:6px; justify-content:flex-end; }

  .sanctuary-card{
    position:relative;
    border-radius:14px;
    overflow:hidden;
    /* box-shadow: 6px 8px 10px rgba(44, 38, 32, 0.37); */
    height: 232px;
    align-items: start;
    display: grid;
  }
  .sanctuary-card img{ top: -5px;  position: relative; }
  .sanctuary-overlay{
    position:absolute;
    left:0; right:0; bottom:0;
    padding:16px 18px;
    color:var(--white);
  }
  .sanctuary-overlay .tag{
    font-size:10.5px;
    font-weight:800;
    letter-spacing:0.8px;
    text-transform:uppercase;
    opacity:0.85;
  }
  .sanctuary-overlay p{
    margin-top:6px;
    font-size:14px;
    line-height:1.4;
    font-weight:600;
    max-width:34ch;
  }

.prayers-right{
      gap:40px;
      display: grid;
}
  @media screen and (max-width: 767px) {
    .sanctuary-card{ height: min-content;}
    .sanctuary-card img {top: 0;}
  }

  @media (min-width:900px){
    .prayers-grid{
      flex-direction:row;
      align-items:end;
      gap:40px;
      justify-content: space-between;
    }
    .prayers-grid > .prayers-left{ flex:1.35; min-width:0; max-width: 600px;}
    .prayers-grid > .prayers-right{ flex:1; min-width:0; display:flex; flex-direction:column; gap:20px; max-width: 600px;}
  }

  /* ---------- PROGRAMS SECTION ---------- */
  .programs{
    background:var(--white);
    padding:54px 0 64px;
  }
  .programs h2{
    font-size:clamp(1.7rem, 6vw, 2.5rem);
    font-weight:500;
    color:var(--text-dark);
    letter-spacing:-0.5px;
  }

  .programs-grid{
    margin-top:28px;
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
  }

  .program-card{
    border-radius:16px;
    padding:24px;
    display:flex;
    flex-direction:column;
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .program-card:hover{ transform:translateY(-4px); box-shadow:0 16px 32px rgba(44,38,32,0.16); }

  .program-card .eyebrow2{
    font-size:11px;
    font-weight:800;
    letter-spacing:0.8px;
    text-transform:uppercase;
  }
  .program-card h3{
    margin-top:8px;
    font-size:22px;
    font-weight:600;
    letter-spacing:-0.3px;
  }
  .program-card p{
    margin-top:10px;
    font-size:14.5px;
    line-height:1.6;
    flex-grow:1;
  }
  .program-card .learn-more{
    margin-top:22px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-weight:800;
    font-size:14px;
  }
  .program-card .learn-more span{ transition:transform .18s ease; display:inline-block; }
  .program-card:hover .learn-more span{ transform:translateX(4px); }

  .program-card.image-card{
    min-height:400px;
    color:var(--white);
    justify-content:flex-end;
    position:relative;
    background-size:cover;
    background-position:center;
    border-radius: 10px;
  }
  .program-card.image-card::before{
    content:"";
    position:absolute; inset:0;
    background:linear-gradient(180deg, rgba(20,16,12,0.60) 0%, rgba(15,12,9,0.60) 100%);
    border-radius: 10px;
  }
  .program-card.image-card > *{ position:relative; z-index:1; }
  .program-card.image-card .eyebrow2{ color:var(--gold); }
  .program-card.image-card p{ color:rgba(255,255,255,0.85); }

  .program-card.quran{ background-image: url(./assets/Quran-Academy.webp) }
  .program-card.youth{ background-image: url(./assets/building.webp)}
  .program-card.sisters{ background-image: url(./assets/womens-group.webp) }

  .program-card.light-card{
    background:var(--cream);
    color:var(--text-dark);
    height: 170px;
  }
  .program-card.light-card .eyebrow2{ color:var(--green); }
  .program-card.light-card p{ color:var(--text-body); }
  .program-card.light-card .learn-more{ color:var(--green); }

  @media (min-width:640px){
    .programs-grid{ grid-template-columns:repeat(2,1fr); }
  }
  @media (min-width:900px){
    .programs-grid{ grid-template-columns:repeat(3,1fr); }
  }

  /* ---------- WELCOMING BANNER ---------- */
  .welcoming{
    position:relative;
    overflow:hidden;
    min-height:400px;
    display:flex;
    align-items:center;
    background:linear-gradient(270deg, #fff0 0%, #AC80516B  43.27%, #906A2082 100%), 
               url(assets/womens-hall.webp) lightgray 0px -140.163px / 102.904% 144.216% no-repeat;
  }
  .welcoming::after{
    content:"";
    position:absolute; inset:0;
    background:rgba(250,232,193,0.78);
    z-index:1;
  }
  .welcoming-content{
    position:relative;
    z-index:2;
    width:100%;
    max-width:1200px;
    padding:64px 20px;
  }
  .welcoming h2{
    font-size:clamp(1.7rem, 6vw, 2.5rem);
    font-weight:500;
    color:var(--brown);
    letter-spacing:-0.6px;
    line-height:1.15;
  }
  .welcoming p{
    margin-top:18px;
    font-size:15.5px;
    line-height:1.55;
    color:var(--text-light);
    max-width:75ch;
  }
  .welcoming .btn{
    margin-top:24px;
    padding:11px 20px;
    font-size:13.5px;
  }

  @media (min-width:900px){
    .welcoming{ min-height:450px; background-position:center 35%; }
  }
  @media (max-width:600px){
    .welcoming{ min-height:440px; background-position:58% center; }
    .welcoming::after{ background:rgba(250,232,193,0.84); }
    .welcoming-content{ padding:60px 24px; }
    .welcoming h2{ max-width:14ch; }
    .welcoming p{ font-size:15px; line-height:1.65; }
  }

  /* ---------- GUIDANCE & PHILANTHROPY ---------- */
  .guidance{
    background:var(--white);
    padding:54px 0 30px;
  }
  .guidance h2{
    text-align:center;
    font-size:clamp(1.7rem, 6vw, 2.5rem);
    font-weight:500;
    color:var(--text-dark);
    letter-spacing:-0.5px;
  }

  .guidance-grid{
    margin-top:40px;
    display:flex;
    flex-direction:column;
    gap:36px;
  }
  .guidance-col{
    display:flex;
    flex-direction:column;
    gap:36px;
  }

  .guidance-item{
    text-align:center;
    padding-bottom:2px;
  }
  .guidance-item .item-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    font-size:18.5px;
    font-weight:800;
    color:var(--text-dark);
    letter-spacing:-0.2px;
  }
  .guidance-item .item-desc{
    margin-top:10px;
    font-size:14.5px;
    line-height:1.7;
    color:var(--text-body);
    max-width:41ch;
    margin-left:auto;
    margin-right:auto;
    text-align:left;
  }

  .icon-box{
    width:36px;height:36px;
    border-radius:9px;
    background:var(--green);
    color:var(--white);
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
  }
  .icon-box svg{ width:18px; height:18px; }
  .icon-plain{
    width:34px;height:34px;
    border-radius:9px;
    background:rgba(21,71,52,0.08);
    color:var(--green);
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
  }
  .icon-plain svg{ width:18px; height:18px; }

  @media (min-width:900px){
    .guidance-grid{
      flex-direction:row;
      gap:80px;
    }
    .guidance-col{ flex:1; gap:48px; }
    .guidance-item{ text-align:right; }
    .guidance-item .item-desc{ margin-left:auto; margin-right:0; }
    .guidance-item .item-title{ justify-content:flex-end; }
    .guidance-col.right{ text-align:left; }
    .guidance-col.right .guidance-item{ text-align:left; }
    .guidance-col.right .item-desc{ margin-left:0; margin-right:auto; }
    .guidance-col.right .item-title{ justify-content:flex-start; }
  }

  @media (orientation:portrait){
    .guidance-item{ text-align:left; }
    .guidance-item .item-title{ justify-content:flex-start; }
    .guidance-item .item-title > .icon-box,
    .guidance-item .item-title > .icon-plain{ order:-1; }
    .guidance-item .item-desc{ margin-left:0; margin-right:auto; text-align:left; }
    .guidance-col.right .guidance-item{ text-align:left; }
    .guidance-col.right .item-title{ justify-content:flex-start; }
    .guidance-col.right .item-desc{ margin-left:0; margin-right:auto; text-align:left; }
  }

  /* ---------- CTA BANNER ---------- */
  .cta-section{
    background:var(--white);
    padding:15px 0 60px;
  }
  .cta-banner{
    position:relative;
    overflow:hidden;
    background:var(--cream-2);
    border-radius:20px;
    padding:34px 26px;
  }
  .cta-banner::before, .cta-banner::after{
    content:"";
    position:absolute;
    border:1px solid rgba(74,55,40,0.18);
    border-radius:50%;
  }
  .cta-banner::before{ width:280px; height:280px; right:-35px; top:10px; }
  .cta-banner::after{ width:180px; height:180px; right:30px; top:50px; }

  .cta-inner{ position:relative; z-index:1; }
  .cta-banner h2{
    font-size:clamp(1.7rem, 6vw, 2.5rem);
    font-weight:500;
    line-height:1.15;
    color:var(--brown-dark);
    letter-spacing:-0.4px;
  }
  .cta-banner p{
    margin-top:14px;
    font-size:14.5px;
    line-height:1.65;
    color:var(--text-body);
    max-width:52ch;
  }
  .cta-ctas{
    margin-top:24px;
    display:flex;
    flex-wrap:wrap;
    gap:12px;
  }
  .cta-ctas .btn{ padding:13px 20px; font-size:14px; }

  @media (min-width:900px){
    .cta-section{ padding:15px 0 60px; }
    .cta-banner{ padding:52px 60px; }
    .cta-inner{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:40px;
    }
    .cta-inner .cta-text{ flex:1; }
    .cta-ctas{ margin-top:0; flex-shrink:0; }
  }

  /* ---------- PAGE HEADER (internal pages) ---------- */
  .page-header{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    background:var(--green);
    padding:118px 0 46px;
    text-align:center;
  }
  .page-header::before{
    content:"";
    position:absolute; inset:0;
    z-index:-1;
    background:
      linear-gradient(270deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.80) 43.27%, #FFF7EB 100%), url(assets/masjid.png) lightgray center no-repeat
  }

  .page-header h1{
    margin-top:6px;
    font-size:clamp(2rem, 7vw, 3.1rem);
    font-weight:700;
    color:var(--brown);
    letter-spacing:-0.5px;
  }
  .breadcrumb{
    margin-top:16px;
    display:flex;
    justify-content:center;
    gap:8px;
    font-size:14px;
    font-weight:500;
    color:var(--gold);
  }
  .breadcrumb a{ color:var(--text-light) }
  .breadcrumb a:hover{ text-decoration:underline; }
  .breadcrumb .sep{ color:var(--text-light) }
  @media (min-width:900px){
    .page-header{ padding:130px 0 60px; }
  }

  /* ---------- SERVICE BLOCKS ---------- */
  .service-block{
    padding:52px 0;
  }
  .service-block:nth-of-type(even){ background:var(--white); }
  .service-block:nth-of-type(odd){ background:#FAF7F0; }

  .service-block h2{
    font-size:clamp(1.7rem, 6vw, 2.5rem);
    font-weight:500;
    color:var(--text-dark);
    letter-spacing:-0.4px;
  }
  .service-block .lede{
    margin-top:14px;
    font-size:15.5px;
    line-height:1.75;
    color:var(--text-body);
  }
  .service-block .lede + .lede{ margin-top:12px; }

  .topic-grid{
    margin-top:24px;
    gap:20px 30px;
    flex-wrap: wrap;
    display: flex;
  }
  .topic-grid li{
    list-style:none;
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:500;
    font-size:15px;
    color:var(--text-dark);
  }
  /* @media (min-width:640px){
    .topic-grid{ grid-template-columns:1fr 1fr; }
  } */

  .gallery-grid{
    margin-top:28px;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    max-width:100%;
  }
  .gallery-grid div{
    border-radius:12px;
    overflow:hidden;
    aspect-ratio:4/2;
    /* background:linear-gradient(135deg, var(--cream-2), #e4d9c4); */
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--gold-dark);
  }
  .gallery-grid img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius: 7px;
  }
  .gallery-grid svg{ width:30px; height:30px; opacity:0.55; }
  @media (min-width:640px){
    .gallery-grid{ grid-template-columns:repeat(3,1fr); }
  }
  /* .services-card-icon-head {
    display: flex;
  } */


  .comm-events {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.64) 0%, #FFF7EBE3 43.27%, #FFF7EBCC 100%), url(assets/masjid.png) lightgray 0px -140.163px / 102.904% 144.216% no-repeat !important;
} 

  .subcard-grid{
    margin-top:20px;
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
  }
  .subcard{
    margin-top: 20px;
    background: rgba(248, 246, 241, 0);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(166,143,108,0.72);
    border-radius: 12px;
    padding: 34px;
  }
  .subcard .icon-box{ margin-bottom:14px; }
  .subcard h3{
    font-size:18.5px;
    font-weight:700;
    color:var(--text-dark);
  }
  .subcard p{
    margin-top:10px;
    font-size:14.5px;
    line-height:1.7;
    color:var(--text-body);
  }
  .subcard ul{ margin-top:12px; display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 0px; }
  .subcard ul li{
    list-style:none;
    display:flex;
    align-items:start;
    gap:9px;
    font-size:14px;
    font-weight:500;
    color:var(--text-dark);
  }
  @media (min-width:768px){
    .subcard-grid{ grid-template-columns:1fr 1fr; }
  }
/* Fiqhi lesson table — reference layout */
.fiqhi-reference-page{padding:50px 22px 50px;background:#fff}
.fiqhi-table-scroll{width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.fiqhi-reference-table{width:100%;min-width:760px;table-layout:fixed;border-collapse:collapse;border:3px solid #454545;color:#292929;font-family:Arial,sans-serif}
.fiqhi-reference-table th,.fiqhi-reference-table td{width:25%;border:3px solid #454545;text-align:center;vertical-align:middle}
.fiqhi-reference-table th{height:70px;padding:8px;font-size:19px;font-weight:400;text-decoration:underline}
.fiqhi-reference-table td{height:290px;padding:12px;font-size:20px}
.fiqhi-video-preview{display:block;width:min(100%,328px);height:auto;margin:0 auto;object-fit:cover}
@media(max-width:600px){.fiqhi-reference-page{padding:10px 12px 0}.fiqhi-reference-table{min-width:760px}.fiqhi-reference-table th{height:58px;font-size:17px}.fiqhi-reference-table td{height:230px;padding:8px;font-size:17px}}






/* ---------- Masjid Expansion ---------- */


/* ---------- IMAGE CAROUSEL (gallery has 27 images) ---------- */
.img-carousel{
  position:relative;
  margin-top:28px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(166,143,108,0.35);
}
.carousel-track{
  display:flex;
  transition:transform .45s ease;
}
.carousel-slide{
  min-width:100%;
  aspect-ratio:16/9;
  /* background:linear-gradient(135deg, var(--cream-2), #e4d9c4); */
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.carousel-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.carousel-slide svg{ width:34px; height:34px; opacity:0.55; color:var(--gold-dark); }
.carousel-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;height:38px;
  border-radius:50%;
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(166,143,108,0.5);
  display:flex;align-items:center;justify-content:center;
  color:var(--green);
  font-size:18px;
  cursor:pointer;
  z-index:2;
  transition:transform .18s ease, background-color .18s ease;
}
.carousel-arrow:hover{ background:var(--green); color:var(--white); }
.carousel-arrow.prev{ left:12px; }
.carousel-arrow.next{ right:12px; }
.img-carousel .carousel-dots{
  margin:0;
  padding:12px 6px;
  background:var(--white);
  flex-wrap:wrap;
  row-gap:6px;
}

/* placeholder gallery tile icon (swap the <div class="ph-img"> for a real <img> later) */
.ph-img{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
}
.ph-img svg{ width:28px; height:28px; opacity:0.5; color:var(--gold-dark); }

/* internal page title without a breadcrumb row */
.page-header.no-crumb{ padding-bottom:38px; }

/* donation address card width, used in the "Support This Project" section */
.subcard.donate-card{ max-width:520px; }
.subcard.donate-card p{ margin-top:0; }
.subcard.donate-card p + p{ margin-top:10px; }

.expansion-gallery-heading{
  margin:32px 0 12px;
  color:var(--green-dark);
  font-size:clamp(19px,2vw,24px);
}
.expansion-carousel{
  --slides-per-view:4;
  overflow:hidden;
}
.expansion-carousel .carousel-track{
  margin-inline:-6px;
  will-change:transform;
}
.expansion-carousel .carousel-slide{
  min-width:0;
  flex:0 0 calc(100% / var(--slides-per-view));
  padding:0 6px;
}
.expansion-carousel .carousel-slide img{
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  cursor:zoom-in;
}
.expansion-carousel .carousel-arrow{ min-width:44px; min-height:44px; }
.expansion-carousel .carousel-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.expansion-carousel .carousel-dots button{
  appearance:none;
  display:block;
  flex:0 0 9px;
  width:9px;
  height:9px;
  margin:0;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(21,71,52,.3);
  cursor:pointer;
}
.expansion-carousel .carousel-dots button.active{
  flex-basis:22px;
  width:22px;
  border-radius:5px;
  background:var(--green);
}
.expansion-carousel .carousel-dots button[hidden]{ display:none; }
.expansion-carousel img:focus-visible,
.expansion-carousel button:focus-visible{ outline:3px solid var(--green-dark); outline-offset:3px; }
@media (max-width:899px){ .expansion-carousel{ --slides-per-view:2; } }
@media (max-width:639px){ .expansion-carousel{ --slides-per-view:1; } }

.expansion-lightbox{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  padding:56px 76px 24px;
  border:0;
  background:rgba(8,15,12,.96);
  color:#fff;
  overflow:hidden;
}
.expansion-lightbox[open]{ display:grid; grid-template-columns:48px minmax(0,1fr) 48px; align-items:center; gap:18px; }
.expansion-lightbox::backdrop{ background:rgba(8,15,12,.96); }
.expansion-lightbox figure{ min-width:0; margin:0; text-align:center; }
.expansion-lightbox .lightbox-image{ display:block; max-width:100%; max-height:calc(100vh - 130px); width:auto; height:auto; margin:auto; object-fit:contain; }
.expansion-lightbox .lightbox-caption{ margin-top:12px; color:#fff; font-size:15px; }
.expansion-lightbox button{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
}
.expansion-lightbox button:hover{ background:rgba(255,255,255,.24); }
.expansion-lightbox .lightbox-close{ position:absolute; top:18px; right:22px; font-size:30px; }
.expansion-lightbox button:focus-visible{ outline:3px solid #d7b66f; outline-offset:4px; }
@media (max-width:639px){
  .expansion-lightbox{ padding:64px 12px 22px; }
  .expansion-lightbox[open]{ grid-template-columns:42px minmax(0,1fr) 42px; gap:6px; }
  .expansion-lightbox button{ width:42px; height:42px; }
  .expansion-lightbox .lightbox-close{ width:42px; height:42px; top:12px; right:12px; }
  .expansion-lightbox .lightbox-image{ max-height:calc(100vh - 150px); }
}





/* ---------- EVENTS Page ---------- */

/* internal page title without a breadcrumb row */

.page-header.no-crumb{ padding-bottom:38px; }

/* ---------- EVENTS TABLE ---------- */
.events-table-wrap{
  margin-top:24px;
  border:1px solid rgba(166,143,108,0.35);
  border-radius:12px;
  overflow:hidden;
  background:var(--white);
}

.events-table{
  width:100%;
  border-collapse:collapse;
}
.events-table thead th{
  text-align:left;
  padding:16px 22px;
  background:var(--green);
  color:var(--white);
  font-family:'Rubik', sans-serif;
  font-size:14px;
  font-weight:600;
  letter-spacing:0.3px;
}
.events-table tbody td{
  padding:18px 22px;
  font-size:14.5px;
  color:var(--text-body);
  border-top:1px solid rgba(21,71,52,0.1);
}
.events-table tbody tr:nth-child(even){ background:#FAF7F0; }

.events-empty{
  padding:36px 22px;
  text-align:center;
}
.events-empty h4{
  font-family:'Rubik', sans-serif;
  font-size:16px;
  font-weight:600;
  color:var(--text-light);
}

/* Stack into cards on narrow screens instead of a cramped 2-col table */
@media (max-width:600px){
  .events-table thead{ display:none; }
  .events-table, .events-table tbody, .events-table tr, .events-table td{ display:block; width:100%; }
  .events-table tbody tr{ border-top:1px solid rgba(21,71,52,0.1); }
  .events-table tbody tr:first-child{ border-top:none; }
  .events-table tbody td{ padding:10px 22px; border-top:none; }
  .events-table tbody td[data-label]::before{
    content:attr(data-label);
    display:block;
    font-size:11.5px;
    font-weight:700;
    color:var(--green);
    text-transform:uppercase;
    letter-spacing:0.4px;
    margin-bottom:4px;
  }
}





/* ---------- FATWA Page ---------- */


/* internal page title without a breadcrumb row */
.page-header.no-crumb{ padding-bottom:38px; }

/* ---------- FATWA LAYOUT ---------- */
.fatwa-grid{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:36px;
}

.fatwa-image{
  border-radius:14px;
  overflow:hidden;
  background:linear-gradient(135deg, var(--cream-2), #e4d9c4);
  aspect-ratio:16/11;
}
.fatwa-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ---------- FATWA FORM ---------- */
.fatwa-form{
  margin-top:24px;
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

.form-field{ display:flex; flex-direction:column; gap:7px; }
.form-field label{
  font-family:'Rubik', sans-serif;
  font-size:13.5px;
  font-weight:600;
  color:var(--text-dark);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea{
  width:100%;
  border:1.5px solid rgba(166,143,108,0.4);
  border-radius:8px;
  padding:12px 14px;
  font-family:'DM Sans', sans-serif;
  font-size:14.5px;
  color:var(--text-dark);
  background:var(--white);
  transition:border-color .18s ease, box-shadow .18s ease;
}
.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field select:focus,
.form-field textarea:focus{
  outline:none;
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(21,71,52,0.12);
}
.form-field textarea{ resize:vertical; min-height:130px; }

.fatwa-form .btn{
  justify-self:start;
  border:none;
  font-size:14.5px;
  padding:13px 26px;
}

@media (min-width:900px){
  .fatwa-grid{
    flex-direction:row-reverse;
    align-items:flex-start;
    gap:50px;
  }
  .fatwa-grid > .fatwa-image{ flex:1; min-width:0; position:sticky; top:24px; }
  .fatwa-grid > .fatwa-content{ flex:1.3; min-width:0; }
  .fatwa-form{ grid-template-columns:1fr 1fr; }
  .fatwa-form .form-field.full,
  .fatwa-form .btn{ grid-column:1 / -1; }
}






/* ---------- VIDEO Page ---------- */


/* internal page title without a breadcrumb row */
.page-header.no-crumb{ padding-bottom:38px; }

/* ---------- VIDEO GALLERY GRID ---------- */
.video-grid{
  margin-top:28px;
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}

.video-card{
  display:block;
  border-radius:14px;
  overflow:hidden;
  background:var(--white);
  border:1px solid rgba(166,143,108,0.3);
  box-shadow:0 10px 26px rgba(44,38,32,0.06);
  transition:transform .2s ease, box-shadow .2s ease;
}
.video-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(44,38,32,0.14);
}

.video-thumb{
  position:relative;
  aspect-ratio:16/9;
  background:linear-gradient(135deg, var(--cream-2), #e4d9c4);
  overflow:hidden;
}
.video-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.play-btn{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:56px; height:56px;
  border-radius:50%;
  background:rgba(35,96,76,0.9);
  display:flex;
  align-items:center;
  justify-content:center;
}
.play-btn svg{ width:20px; height:20px; fill:var(--white); margin-left:3px; }
.video-card:hover .play-btn{ background:var(--green-dark); }

.video-info{ padding:18px 20px 20px; }
.video-info h3{
  font-size:17px;
  font-weight:700;
  line-height:1.4;
  color:var(--text-dark);
}
.video-card:hover .video-info h3{ color:var(--green); }
.video-date{
  display:inline-block;
  margin-top:10px;
  font-size:13px;
  font-weight:600;
  color:var(--gold-dark);
}

@media (min-width:640px){
  .video-grid{ grid-template-columns:1fr 1fr; }
}
@media (min-width:1000px){
  .video-grid{ grid-template-columns:repeat(3,1fr); gap:26px; }
}









/* ---------- new school project page ---------- */


/* internal page title without a breadcrumb row */
.page-header.no-crumb{ padding-bottom:38px; }

/* ---------- IMAGE CAROUSEL (high school gallery has 22 images) ---------- */
.img-carousel{
  position:relative;
  margin-top:28px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(166,143,108,0.35);
}
.carousel-track{
  display:flex;
  transition:transform .45s ease;
}
.carousel-slide{
  min-width:100%;
  aspect-ratio:16/9;
  background:linear-gradient(135deg, var(--cream-2), #e4d9c4);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.carousel-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.carousel-slide svg{ width:34px; height:34px; opacity:0.55; color:var(--gold-dark); }
.carousel-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;height:38px;
  border-radius:50%;
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(166,143,108,0.5);
  display:flex;align-items:center;justify-content:center;
  color:var(--green);
  font-size:18px;
  cursor:pointer;
  z-index:2;
  transition:transform .18s ease, background-color .18s ease;
}
.carousel-arrow:hover{ background:var(--green); color:var(--white); }
.carousel-arrow.prev{ left:12px; }
.carousel-arrow.next{ right:12px; }
.img-carousel .carousel-dots{
  margin:0;
  padding:12px 6px;
  background:var(--white);
  flex-wrap:wrap;
  row-gap:6px;
}

/* placeholder gallery tile icon (swap the <div class="ph-img"> for a real <img> later) */
.ph-img{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
}
.ph-img svg{ width:28px; height:28px; opacity:0.5; color:var(--gold-dark); }

/* donation address card, used in the "Building and Construction Information" section */
.subcard.donate-card{ max-width:520px; }
.subcard.donate-card p{ margin-top:0; }
.subcard.donate-card p + p{ margin-top:6px; }







/* ---------- quran recitation ---------- */


/* internal page title without a breadcrumb row */
.page-header.no-crumb{ padding-bottom:38px; }

/* ---------- VIDEO CARDS GRID ---------- */
.video-grid{
  margin-top:28px;
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}

.video-card{
  display:block;
  border-radius:14px;
  overflow:hidden;
  background:var(--white);
  border:1px solid rgba(166,143,108,0.3);
  box-shadow:0 10px 26px rgba(44,38,32,0.06);
  transition:transform .2s ease, box-shadow .2s ease;
}
.video-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(44,38,32,0.14);
}

.video-thumb{
  position:relative;
  aspect-ratio:16/9;
  background:linear-gradient(135deg, var(--cream-2), #e4d9c4);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.video-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.video-thumb svg.thumb-icon{ width:32px; height:32px; opacity:0.5; color:var(--gold-dark); }

.play-btn{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:54px; height:54px;
  border-radius:50%;
  background:rgba(35,96,76,0.9);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background-color .2s ease, transform .2s ease;
}
.play-btn svg{ width:20px; height:20px; fill:var(--white); margin-left:3px; }
.video-card:hover .play-btn{ background:var(--green-dark); transform:translate(-50%,-50%) scale(1.08); }

.video-info{ padding:18px 20px 20px; }
.video-info h3{
  font-size:16.5px;
  font-weight:700;
  color:var(--text-dark);
  line-height:1.35;
}
.video-info p{
  margin-top:8px;
  font-size:13.5px;
  color:var(--text-light);
}

@media (min-width:640px){
  .video-grid{ grid-template-columns:1fr 1fr; }
}
@media (min-width:1000px){
  .video-grid{ grid-template-columns:repeat(3,1fr); gap:26px; }
}


/* Page title without breadcrumb spacing */
.page-header.no-crumb{ padding-bottom:38px; }

/* Clickable Quran video cards */
.video-grid{
  margin-top:28px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.video-card{
  display:block;
  min-width:0;
  border-radius:14px;
  overflow:hidden;
  background:var(--white);
  border:1px solid rgba(166,143,108,0.3);
  box-shadow:0 10px 26px rgba(44,38,32,0.06);
  transition:transform .2s ease, box-shadow .2s ease;
}
.video-card:hover,
.video-card:focus-visible{
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(44,38,32,0.14);
}
.video-card:focus-visible{
  outline:3px solid var(--green);
  outline-offset:3px;
}
.video-thumb{
  position:relative;
  aspect-ratio:16/9;
  background:linear-gradient(135deg, var(--cream-2), #e4d9c4);
  overflow:hidden;
}
.video-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.play-btn{
  position:absolute;
  top:50%;
  left:50%;
  display:flex;
  width:58px;
  height:42px;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#d90000;
  transform:translate(-50%,-50%);
  transition:transform .2s ease, background-color .2s ease;
}
.play-btn svg{ width:22px; height:22px; fill:var(--white); margin-left:3px; }
.video-card:hover .play-btn,
.video-card:focus-visible .play-btn{
  background:#b80000;
  transform:translate(-50%,-50%) scale(1.08);
}
.video-info{ padding:16px 18px 18px; }
.video-info h2{
  font-size:16px;
  font-weight:700;
  color:var(--text-dark);
  line-height:1.4;
}
.video-info span{
  display:inline-block;
  margin-top:8px;
  color:var(--green);
  font-size:14px;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
}

@media (max-width:999px){
  .video-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
}
@media (max-width:639px){
  .video-grid{ grid-template-columns:minmax(0,1fr); gap:18px; }
  .video-info{ padding:14px 16px 16px; }
}




/* ====================  disclaimer page  ======================== */
.education-page .topic-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 28px;
}
.education-page .topic-grid li{
  min-width:0;
  align-items:flex-start;
  line-height:1.5;
}
.education-page .topic-grid .check{ flex:0 0 auto; }
.education-page .gallery-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.education-page .img-carousel{ width:100%; }
.education-page .carousel-slide img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.education-page .carousel-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  row-gap:8px;
}
.education-page .carousel-dots button{
  appearance:none;
  display:block;
  flex:0 0 9px;
  width:9px;
  height:9px;
  margin:0;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(21,71,52,.3);
  cursor:pointer;
  transition:background-color .2s ease, width .2s ease, border-radius .2s ease;
}
.education-page .carousel-dots button:hover{ background:rgba(21,71,52,.55); }
.education-page .carousel-dots button.active{
  flex-basis:22px;
  width:22px;
  border-radius:5px;
  background:var(--green);
}
.education-page .carousel-dots button:focus-visible,
.education-page .carousel-arrow:focus-visible{
  outline:3px solid var(--green-dark);
  outline-offset:3px;
}
.education-page .carousel-arrow{ min-width:44px; min-height:44px; }
@media (min-width:900px){
  .education-page .topic-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:639px){
  .education-page .service-block{ padding:40px 0; }
  .education-page .topic-grid{ grid-template-columns:minmax(0,1fr); gap:12px; }
  .education-page .carousel-arrow{ width:44px; height:44px; }
  .education-page .carousel-arrow.prev{ left:6px; }
  .education-page .carousel-arrow.next{ right:6px; }
  .education-page .carousel-dots{ padding:12px; }
}
@media (prefers-reduced-motion:reduce){
  .education-page .carousel-track,
  .education-page .carousel-dots button{ transition:none; }
}

/* Four-image carousel on desktop, fewer visible items on smaller screens. */
.education-page .img-carousel{
  --slides-per-view:4;
  overflow:hidden;
}
.education-page .carousel-track{
  margin-inline:-6px;
  will-change:transform;
}
.education-page .carousel-slide{
  min-width:0;
  flex:0 0 calc(100% / var(--slides-per-view));
  padding:0 6px;
}
.education-page .carousel-dots button[hidden]{ display:none; }
@media (max-width:899px){
  .education-page .img-carousel{ --slides-per-view:2; }
}
@media (max-width:639px){
  .education-page .img-carousel{ --slides-per-view:1; }
}

.education-page .carousel-slide img{ cursor:zoom-in; }
.education-lightbox{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  padding:56px 76px 24px;
  border:0;
  background:rgba(8,15,12,.96);
  color:#fff;
  overflow:hidden;
}
.education-lightbox[open]{ display:grid; grid-template-columns:48px minmax(0,1fr) 48px; align-items:center; gap:18px; }
.education-lightbox::backdrop{ background:rgba(8,15,12,.96); }
.education-lightbox figure{ min-width:0; margin:0; text-align:center; }
.education-lightbox .lightbox-image{
  display:block;
  max-width:100%;
  max-height:calc(100vh - 130px);
  width:auto;
  height:auto;
  margin:auto;
  object-fit:contain;
}
.education-lightbox .lightbox-caption{ margin-top:12px; font-size:15px; color:#fff; }
.education-lightbox button{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
}
.education-lightbox button:hover{ background:rgba(255,255,255,.24); }
.education-lightbox .lightbox-close{ position:absolute; top:18px; right:22px; font-size:30px; }
.education-page .carousel-slide img:focus-visible,
.education-lightbox button:focus-visible{ outline:3px solid #d7b66f; outline-offset:4px; }
@media (max-width:639px){
  .education-lightbox{ padding:64px 12px 22px; }
  .education-lightbox[open]{ grid-template-columns:42px minmax(0,1fr) 42px; gap:6px; }
  .education-lightbox button{ width:42px; height:42px; }
  .education-lightbox .lightbox-close{ width:42px; height:42px; top:12px; right:12px; }
  .education-lightbox .lightbox-image{ max-height:calc(100vh - 150px); }
}














/* ====================  disclaimer page  ======================== */

.legal-wrap{
  max-width: 760px;
  margin: 0 auto;
}

.legal-card{
  background: var(--white);
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: 0 10px 30px rgba(44, 38, 32, 0.08);
  border: 1px solid rgba(44, 38, 32, 0.06);
}

.legal-card::before{
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--gold);
  margin-bottom: 22px;
}

.legal-card .legal-meta{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}

.legal-card .legal-meta svg{
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.legal-card p{
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
}

.legal-card p + p{
  margin-top: 20px;
}

@media (max-width: 640px){
  .legal-card{
    padding: 30px 22px;
  }
}


/* ---------- Contact Us ------------- */
/* ==========================================================
   contact-us.css
   Page-specific styles for the Contact Us page only.
   Relies on tokens & shared classes already in style.css
   (--cream, --green, --gold, --brown, --white, --text-*,
   .wrap, .btn, .icon-box, .eyebrow, .page-header, .cta-*).
   ========================================================== */

/* ---------- GET IN TOUCH HUB ---------- */
.contact-hub{
  padding:56px 0;
  /* background:var(--cream); */
}

.contact-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
}

/* Card base — light, flat, same family as the rest of the site
   (cream-2 card on cream section, gold accent bar, green icon squares) */
.glass-card{
  position:relative;
  background:var(--cream-2);
  border:1px solid rgba(44,38,32,0.06);
  border-radius:20px;
  padding:32px 26px;
  box-shadow:0 14px 30px rgba(44,38,32,0.08);
}


.glass-card .eyebrow2{
  display:inline-block;
  font-size:11.5px;
  font-weight:800;
  letter-spacing:0.7px;
  text-transform:uppercase;
  color:var(--gold-dark);
}

.glass-card h2{
  margin-top:8px;
  font-size:clamp(1.4rem, 5vw, 1.75rem);
  font-weight:600;
  color:var(--text-dark);
  letter-spacing:-0.3px;
}

.glass-card .hub-lede{
  margin-top:12px;
  font-size:14.5px;
  line-height:1.7;
  color:var(--text-body);
  max-width:46ch;
}

/* ----- info rows (contact-info-card) ----- */
.contact-info-card .info-row{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-top:22px;
}
.info-label{
  font-size:11.5px;
  font-weight:700;
  letter-spacing:0.4px;
  text-transform:uppercase;
  color:var(--text-light);
  margin-bottom:3px;
}
.info-value{
  font-size:15px;
  font-weight:600;
  color:var(--text-dark);
}
a.info-value:hover{ color:var(--green); text-decoration:underline; }
.info-value.plain{ font-weight:500; color:var(--text-body); }

.hub-divider{
  height:1px;
  background:rgba(44,38,32,0.1);
  margin:26px 0 20px;
}

.social-row{
  display:flex;
  gap:10px;
}
.social-btn{
  width:40px;height:40px;
  border-radius:50%;
  background:var(--white);
  border:1px solid rgba(44,38,32,0.08);
  color:var(--green);
  display:flex;align-items:center;justify-content:center;
  transition:background-color .18s ease, color .18s ease, transform .18s ease;
}
.social-btn svg{ width:17px; height:17px; }
.social-btn:hover{ background:var(--green); color:var(--white); transform:translateY(-2px); }

/* ----- contact form card ----- */
.contact-form{ margin-top:24px; }
.form-row{ margin-top:16px; }
.form-row:first-child{ margin-top:0; }
.form-row.two-col{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
.form-group label{
  display:block;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.3px;
  color:var(--text-dark);
  margin-bottom:7px;
}
.form-group label .optional{
  font-weight:400;
  color:var(--text-light);
  text-transform:none;
}
.form-group input,
.form-group textarea{
  width:100%;
  background:var(--white);
  border:1px solid rgba(44,38,32,0.14);
  border-radius:10px;
  padding:12px 14px;
  font-family:'DM Sans', sans-serif;
  font-size:14px;
  color:var(--text-dark);
  transition:border-color .18s ease, box-shadow .18s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder{ color:var(--text-light); }
.form-group input:focus,
.form-group textarea:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(196,162,101,0.25);
}
.form-group textarea{ resize:vertical; min-height:110px; }

.form-submit{
  margin-top:22px;
  width:100%;
  justify-content:center;
  padding:14px 22px;
  font-size:14.5px;
}
.form-submit svg{ width:15px; height:15px; }

@media (min-width:640px){
  .form-row.two-col{ grid-template-columns:1fr 1fr; }
}

@media (min-width:1000px){
  .contact-grid{ grid-template-columns:0.85fr 1.15fr; gap:28px; align-items:stretch; }
  .glass-card{ padding:40px 36px; }
}

/* ---------- MAP ---------- */
.map-section{
  background:var(--cream);
  padding:56px 0;
}
.map-frame-wrap{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(44,38,32,0.14);
}
.map-frame{
  width:100%;
  height:360px;
  border:0;
  display:block;
  filter:grayscale(12%) contrast(1.02);
}

.map-float-card{
  position:relative;
  margin:-56px 16px 0;
  background:rgba(255,255,255,0.72);
  border:1px solid rgba(255,255,255,0.6);
  box-shadow:0 16px 34px rgba(44,38,32,0.18);
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.map-float-card .icon-box{ background:var(--green); color:var(--white); }
.map-float-card .info-label{ color:var(--gold-dark); }
.map-float-card .info-value.plain{ color:var(--text-dark); font-weight:600; }
.map-directions-btn{
  align-self:flex-start;
  padding:9px 16px;
  font-size:13px;
}

@media (min-width:820px){
  .map-float-card{
    position:absolute;
    left:32px;
    bottom:24px;
    top:auto;
    margin:0;
    width:340px;
    flex-direction:row;
    align-items:center;
    flex-wrap:wrap;
  }
  .map-float-card .icon-box{ flex-shrink:0; }
  .map-float-card > div{ flex:1; min-width:150px; }
  .map-directions-btn{ width:100%; justify-content:center; margin-top:4px; }
}

/* ---------- QUICK CONTACT CARDS ---------- */
.quick-contact{
  background:var(--white);
  padding:50px 0 50px;
}
.quick-contact-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.quick-contact-card{
  background:var(--cream-2);
  border-radius:16px;
  padding:26px;
  transition:transform .18s ease, box-shadow .18s ease;
}
.quick-contact-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 28px rgba(44,38,32,0.12);
}
.quick-contact-card h3{
  margin-top:16px;
  font-size:17px;
  font-weight:700;
  color:var(--text-dark);
}
.quick-contact-card p{
  margin-top:8px;
  font-size:13.5px;
  line-height:1.6;
  color:var(--text-body);
}
.quick-contact-card .quick-link{
  display:inline-block;
  margin-top:14px;
  font-size:13.5px;
  font-weight:700;
  color:var(--green);
}
.quick-contact-card .quick-link:hover{ text-decoration:underline; }

@media (min-width:640px){
  .quick-contact-grid{ grid-template-columns:1fr 1fr; }
}
@media (min-width:1000px){
  .quick-contact-grid{ grid-template-columns:repeat(4,1fr); }
}


/* ---------- PLEDGE Page ---------- */



/* ==========================================================
   pledge.css
   Page-specific styles for the Make a Pledge page only.
   Relies on tokens & shared classes already in style.css
   (--cream, --cream-2, --green, --gold, --brown, --white,
   --text-*, .wrap, .btn, .icon-box, .eyebrow, .page-header,
   .cta-*). No green section backgrounds — green is used only
   for icon accents and buttons, matching the rest of the site.
   ========================================================== */

/* ---------- WHY PLEDGE + FORM ---------- */
.pledge-hub{
  background:var(--white);
  padding:44px 0 56px;
}
.pledge-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
}

.pledge-card{
  background:var(--cream-2);
  border:1px solid rgba(44,38,32,0.06);
  border-radius:20px;
  padding:30px 24px;
  box-shadow:0 14px 30px rgba(44,38,32,0.07);
}
/* .pledge-card .tag-line{
  width:52px;
  height:4px;
  border-radius:4px;
  background:var(--gold);
  margin-bottom:16px;
} */
.pledge-card .eyebrow2{
  display:inline-block;
  font-size:11.5px;
  font-weight:800;
  letter-spacing:0.7px;
  text-transform:uppercase;
  color:var(--gold-dark);
}
.pledge-card h2{
  margin-top:8px;
  font-size:clamp(1.4rem, 5vw, 1.7rem);
  font-weight:600;
  color:var(--text-dark);
  letter-spacing:-0.3px;
}
.pledge-card .hub-lede{
  margin-top:12px;
  font-size:14.5px;
  line-height:1.7;
  color:var(--text-body);
  max-width:46ch;
}

/* ----- why-card rows ----- */
.why-row{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-top:24px;
}
.why-row h3{
  font-size:15.5px;
  font-weight:700;
  color:var(--text-dark);
}
.why-row p{
  margin-top:4px;
  font-size:13.5px;
  line-height:1.6;
  color:var(--text-body);
}

/* ----- form card ----- */
.pledge-form{ margin-top:22px; }
.form-row{ margin-top:16px; }
.form-row:first-child{ margin-top:0; }
.form-row.two-col{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
.form-group label{
  display:block;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.3px;
  color:var(--text-dark);
  margin-bottom:7px;
}
.form-group input,
.form-group select{
  width:100%;
  background:var(--white);
  border:1px solid rgba(44,38,32,0.14);
  border-radius:10px;
  padding:12px 14px;
  font-family:'DM Sans', sans-serif;
  font-size:14px;
  color:var(--text-dark);
  transition:border-color .18s ease, box-shadow .18s ease;
}
.form-group select{ appearance:auto; cursor:pointer; }
.form-group input::placeholder{ color:var(--text-light); }
.form-group input:focus,
.form-group select:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(196,162,101,0.25);
}

.amount-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
}
.amount-chip{
  background:var(--white);
  border:1.5px solid rgba(44,38,32,0.14);
  border-radius:8px;
  padding:9px 16px;
  font-family:'DM Sans', sans-serif;
  font-size:13.5px;
  font-weight:700;
  color:var(--text-dark);
  transition:border-color .18s ease, background-color .18s ease, color .18s ease;
}
.amount-chip:hover{ border-color:var(--green); }
.amount-chip.active{
  background:var(--green);
  border-color:var(--green);
  color:var(--white);
}
.amount-custom{
  position:relative;
  display:flex;
  align-items:center;
}
.amount-prefix{
  position:absolute;
  left:14px;
  font-size:14px;
  font-weight:700;
  color:var(--text-light);
}
.amount-custom input{ padding-left:26px; }

.form-group-note{
  display:flex;
  align-items:flex-end;
}
.secure-note{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  font-weight:600;
  color:var(--text-light);
  padding-bottom:12px;
}
.secure-note svg{ width:15px; height:15px; color:var(--green); flex-shrink:0; }

.form-submit{
  margin-top:22px;
  width:100%;
  justify-content:center;
  padding:14px 22px;
  font-size:14.5px;
}
.form-submit svg{ width:15px; height:15px; }

@media (min-width:640px){
  .form-row.two-col{ grid-template-columns:1fr 1fr; }
}

@media (min-width:1000px){
  .pledge-grid{ grid-template-columns:0.85fr 1.15fr; gap:28px; align-items:start; }
  .pledge-card{ padding:38px 34px; }
}



/* ============ privacy policy page ========== */

/* internal page title without a breadcrumb row */
.page-header.no-crumb{ padding-bottom:38px; }

/* comfortable line length for a long legal-text page */
.legal-copy{ max-width:78ch; }
.legal-copy .lede + .lede,
.legal-copy .lede + h3,
.legal-copy .lede + ul{ margin-top:18px; }
.legal-copy h2{ margin-top:36px; }
.legal-copy h2:first-child{ margin-top:0; }
.legal-copy h3{
  margin-top:30px;
  margin-bottom:12px;
  font-family:'Rubik', sans-serif;
  font-size:19px;
  font-weight:700;
  color:var(--green);
}
.legal-copy ul.plain-list{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-left:20px;
}
.legal-copy ul.plain-list li{
  font-size:15px;
  line-height:1.6;
  color:var(--text-body);
  list-style:disc;
}
