  :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{
    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.webp) 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:14px 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;
  }
  .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: 225px;
    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;
  }

  @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: 230px;
  }
  .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:450px;
    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 64px;
  }
  .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;
  }

  .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; }
  }

  /* ---------- CTA BANNER ---------- */
  .cta-section{
    background:var(--white);
    padding:40px 0 0;
  }
  .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:60px 0 0; }
    .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.webp) 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;
  }
  .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.webp) 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 COURSE ---------- */
  .fiqhi-course{
    margin-top:24px;
    padding:28px;
    border:1px solid rgba(21,71,52,.12);
    border-radius:16px;
    background:var(--white);
    box-shadow:0 12px 30px rgba(44,38,32,.07);
  }
  .fiqhi-course-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding-bottom:22px;
    border-bottom:1px solid rgba(44,38,32,.12);
  }
  .fiqhi-kicker{
    display:block;
    color:var(--green);
    font-size:11px;
    font-weight:800;
    letter-spacing:.9px;
  }
  .fiqhi-course-heading h3{
    margin-top:7px;
    color:var(--text-dark);
    font-size:clamp(1.2rem,3vw,1.65rem);
    line-height:1.25;
  }
  .fiqhi-arabic{
    color:var(--green);
    font-size:clamp(1.25rem,3vw,1.8rem);
    font-weight:700;
    text-align:right;
  }
  .fiqhi-topics{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-top:22px;
  }
  .fiqhi-topic{
    padding:18px;
    border-radius:12px;
    background:var(--cream);
  }
  .fiqhi-topic h4{
    margin-top:9px;
    color:var(--text-dark);
    font-size:17px;
  }
  .fiqhi-topic p{
    margin-top:5px;
    color:var(--text-body);
    font-size:14px;
    line-height:1.5;
  }
  .fiqhi-topic p[lang="ar"]{
    color:var(--green);
    font-size:17px;
  }
  .fiqhi-lessons{
    display:grid;
    gap:10px;
    margin-top:18px;
  }
  .fiqhi-lesson{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    align-items:center;
    gap:16px;
    padding:16px 18px;
    border:1px solid rgba(21,71,52,.12);
    border-radius:12px;
    background:#fff;
  }
  .fiqhi-lesson-number{
    display:grid;
    width:42px;
    height:42px;
    place-items:center;
    border-radius:50%;
    background:var(--green);
    color:#fff;
    font-size:13px;
    font-weight:800;
  }
  .fiqhi-lesson h4{
    margin-top:5px;
    color:var(--text-dark);
    font-size:16px;
  }
  .fiqhi-lesson-label{
    color:var(--text-body);
    font-size:13px;
    font-weight:600;
  }
  @media (max-width:600px){
    .fiqhi-course{ padding:20px; }
    .fiqhi-course-heading{ align-items:flex-start; flex-direction:column; gap:12px; }
    .fiqhi-arabic{ text-align:left; }
    .fiqhi-topics{ grid-template-columns:1fr; }
    .fiqhi-lesson{ grid-template-columns:42px minmax(0,1fr); gap:12px; padding:14px; }
    .fiqhi-lesson-number{ width:38px; height:38px; }
    .fiqhi-lesson-label{ display:none; }
  }
/* Family Services gallery: grouped responsive carousel and full-size viewer. */
:is(.family-carousel, .proven-carousel){
  --slides-per-view:4;
  overflow:hidden;
}
:is(.family-carousel, .proven-carousel) .carousel-track{ margin-inline:-6px; will-change:transform; }
:is(.family-carousel, .proven-carousel) .carousel-slide{
  min-width:0;
  flex:0 0 calc(100% / var(--slides-per-view));
  padding:0 6px;
}
:is(.family-carousel, .proven-carousel) .carousel-slide img{
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  cursor:zoom-in;
}
:is(.family-carousel, .proven-carousel) .carousel-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
:is(.family-carousel, .proven-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;
}
:is(.family-carousel, .proven-carousel) .carousel-dots button.active{ flex-basis:22px; width:22px; border-radius:5px; background:var(--green); }
:is(.family-carousel, .proven-carousel) .carousel-dots button[hidden]{ display:none; }
:is(.family-carousel, .proven-carousel) img:focus-visible,
:is(.family-carousel, .proven-carousel) button:focus-visible{ outline:3px solid var(--green-dark); outline-offset:3px; }
@media (max-width:899px){ :is(.family-carousel, .proven-carousel){ --slides-per-view:2; } }
@media (max-width:639px){ :is(.family-carousel, .proven-carousel){ --slides-per-view:1; } }

.history-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;
}
.history-lightbox[open]{ display:grid; grid-template-columns:48px minmax(0,1fr) 48px; align-items:center; gap:18px; }
.history-lightbox::backdrop{ background:rgba(8,15,12,.96); }
.history-lightbox figure{ min-width:0; margin:0; text-align:center; }
.history-lightbox .lightbox-image{ display:block; max-width:100%; max-height:calc(100vh - 130px); width:auto; height:auto; margin:auto; object-fit:contain; }
.history-lightbox .lightbox-caption{ margin-top:12px; color:#fff; font-size:15px; }
.history-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;
}
.history-lightbox button:hover{ background:rgba(255,255,255,.24); }
.history-lightbox .lightbox-close{ position:absolute; top:18px; right:22px; font-size:30px; }
.history-lightbox button:focus-visible{ outline:3px solid #d7b66f; outline-offset:4px; }
@media (max-width:639px){
  .history-lightbox{ padding:64px 12px 22px; }
  .history-lightbox[open]{ grid-template-columns:42px minmax(0,1fr) 42px; gap:6px; }
  .history-lightbox button{ width:42px; height:42px; }
  .history-lightbox .lightbox-close{ width:42px; height:42px; top:12px; right:12px; }
  .history-lightbox .lightbox-image{ max-height:calc(100vh - 150px); }
}
