@font-face{font-family:"Vazirmatn";src:local("Vazirmatn"),url("../fonts/Vazirmatn-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Vazirmatn";src:local("Vazirmatn Bold"),url("../fonts/Vazirmatn-Bold.woff2") format("woff2");font-weight:700;font-display:swap}

:root{
  --navy:#082b49;
  --navy-2:#123b5c;
  --navy-3:#0d3554;
  --hero:#012b4d;
  --gold:#d6ab52;
  --gold-2:#c29438;
  --gold-soft:#f3e4bd;
  --cream:#f8f3e9;
  --paper:#fffdf8;
  --ink:#1d2c39;
  --muted:#6b7782;
  --line:#e8e1d5;
  --line-strong:#dcd2c2;
  --blue:#2b7bbb;
  --badge:#eaf2fb;
  --ok:#17703a;
  --danger:#b3261e;
  --radius:12px;
  --shadow:0 8px 24px rgba(8,43,73,.08);
  --shadow-sm:0 3px 12px rgba(8,43,73,.055);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:"Vazirmatn",Tahoma,"Segoe UI",system-ui,sans-serif;
  font-size:15px;
  line-height:1.85;
  color:var(--ink);
  background:
    radial-gradient(circle at 12% 8%,rgba(214,171,82,.045),transparent 34%),
    radial-gradient(circle at 88% 0%,rgba(8,43,73,.04),transparent 38%),
    var(--cream);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
main{flex:1 0 auto;display:flex;flex-direction:column}
main > *{flex:0 0 auto}
.error-page{flex:1 0 auto}
.site-footer{flex-shrink:0}
a{color:#15547a;text-decoration:none}
a:hover{text-decoration:none}
img{max-width:100%;height:auto}
h1,h2,h3,h4{line-height:1.55;margin:0 0 .6em;color:var(--navy);font-weight:700}
h1{font-size:1.75rem}
h2{font-size:1.35rem}
h3{font-size:1.05rem}
p{margin:0 0 1em}
.container{width:100%;max-width:1586px;margin-inline:auto;padding-inline:32px}
.narrow{width:min(760px,100% - 40px);margin-inline:auto}
.section{padding:40px 0}
.muted{color:var(--muted);font-size:.92rem}
.ltr{direction:ltr;unicode-bidi:plaintext;text-align:left}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.ico{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:0 0 auto}

/* ------------------------------------------------------------------ header */
.site-header{
  background:var(--navy);
  color:#fff;
  height:92px;
  position:sticky;
  top:0;
  z-index:100;
  box-shadow:0 3px 16px rgba(3,20,35,.16);
  flex-shrink:0;
}
.header-inner{height:92px;display:flex;align-items:center;gap:20px;position:relative}
.brand{display:flex;align-items:center;gap:10px;flex:0 0 auto;color:#fff;order:1}
.brand:hover{text-decoration:none}
.brand-logo{width:52px;height:50px;object-fit:contain;display:block}
.brand-name{font-size:21px;font-weight:800;letter-spacing:-.3px;white-space:nowrap;color:#fff}
.header-nav{display:flex;align-items:center;gap:1px;margin-inline:auto;font-size:16px;font-weight:600;order:2;transform:translateX(-32px)}
.header-nav>a{height:92px;display:flex;align-items:center;gap:4px;padding:0 14px;color:#e9eff4;position:relative;white-space:nowrap;transition:color .15s ease}
.header-nav>a:hover{color:var(--gold)}
.header-nav>a.active{color:var(--gold)}
.header-nav>a.active::after{content:"";position:absolute;bottom:0;right:5px;left:5px;height:2px;background:var(--gold)}
.caret{width:13px;height:13px;opacity:.75;margin-top:2px}
.header-actions{display:flex;align-items:center;gap:16px;flex:0 0 auto;order:3}
.header-actions form{margin:0;display:flex}
.header-icon{
  width:44px;height:44px;border:1.5px solid rgba(255,255,255,.75);border-radius:10px;
  display:grid;place-items:center;color:#fff;background:transparent;cursor:pointer;
  padding:0;transition:background .15s ease,border-color .15s ease;
}
.header-icon svg{width:21px;height:21px}
.header-icon:hover{background:rgba(255,255,255,.09);border-color:#fff;text-decoration:none}
.header-icon.logout{width:38px;height:38px;border-color:transparent;opacity:.75}
.header-icon.logout:hover{opacity:1;background:rgba(255,255,255,.1)}
.login-pill{
  height:42px;padding:0 18px;border-radius:999px;background:var(--gold);color:#0b2a45;
  display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:14.5px;white-space:nowrap;
  box-shadow:0 3px 10px rgba(0,0,0,.12);transition:background .15s ease;
}
.login-pill svg{width:18px;height:18px}
.login-pill:hover{background:#e3bd6d;color:#0b2a45;text-decoration:none}
#nav-toggle{display:none}
.burger{display:none;cursor:pointer;width:42px;height:42px;border:1px solid rgba(255,255,255,.35);border-radius:9px;place-items:center;padding:9px;order:4}
.burger span{display:block;width:100%;height:2px;background:#fff;margin:3px 0;border-radius:2px}

/* -------------------------------------------------------------------- hero */
.hero{
  position:relative;
  min-height:281px;
  background:var(--hero);
  color:#fff;
  overflow:hidden;
  isolation:isolate;
}
.hero-photo{
  position:absolute;inset-block:0;left:0;height:100%;width:auto;max-width:none;
  object-fit:cover;object-position:left center;z-index:0;
}
.hero-fade{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(to right,rgba(1,43,77,0) 0%,rgba(1,43,77,0) 34%,rgba(1,43,77,.82) 43%,var(--hero) 54%);
}
.hero-ornament{
  position:absolute;top:0;right:0;height:100%;width:146px;z-index:1;
  background:url("../img/hero-ornament.jpg") right center/cover no-repeat;
  opacity:.96;
  -webkit-mask-image:linear-gradient(to left,#000 55%,transparent 100%);
  mask-image:linear-gradient(to left,#000 55%,transparent 100%);
  pointer-events:none;
}
.hero-inner{
  position:relative;z-index:2;min-height:281px;display:flex;align-items:center;justify-content:flex-start;
}
.hero-copy{width:540px;max-width:50%;margin-right:115px;text-align:right;padding-block:20px;transform:translateY(16px)}
.hero-copy h1{
  color:#fff;font-size:clamp(38px,3.3vw,52px);font-weight:800;letter-spacing:-1.2px;
  margin:0 0 20px;line-height:1.25;text-shadow:0 2px 14px rgba(0,0,0,.18);
}
.hero-copy>p{
  color:#e3b85c;font-size:clamp(18px,1.9vw,31px);font-weight:700;line-height:1.5;
  margin:0;text-shadow:0 1px 8px rgba(0,0,0,.16);
}
.hero-divider{display:block;width:300px;max-width:100%;height:auto;margin:22px auto 0;opacity:.95;transform:translateY(-19px)}

/* ------------------------------------------------------------ prayer band */
.prayer-band{background:var(--navy);color:#fff;border-top:1px solid rgba(232,197,119,.28);min-height:55px}
.prayer-inner{min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:0}
.prayer-heading{display:flex;align-items:center;gap:10px;font-weight:700;font-size:15px;color:#fff;white-space:nowrap;padding-inline-end:20px}
.prayer-heading .ico{color:var(--gold);width:22px;height:22px}
.prayer-time{
  display:flex;align-items:center;gap:8px;border-inline-start:1px solid rgba(255,255,255,.18);
  padding:0 20px;min-height:55px;font-size:13.5px;white-space:nowrap;
}
.prayer-time .ico{color:var(--gold);width:19px;height:19px}
.prayer-time span{color:#dbe5ed}
.prayer-time b{color:#fff;font-size:14.5px;font-weight:700;font-variant-numeric:tabular-nums}

/* --------------------------------------------------------------- services */
.services{padding:32px 0 0}
.service-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.service-card{
  background:#fff;border:1px solid #eee8dc;border-radius:12px;
  min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:12px 10px;box-shadow:var(--shadow-sm);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.service-card:hover{transform:translateY(-4px);box-shadow:0 12px 26px rgba(8,43,73,.11);border-color:#dfc98f;text-decoration:none}
.service-card img{width:48px;height:48px;object-fit:contain;display:block;margin:0 auto 8px}
.service-card h3{font-size:16.5px;font-weight:700;color:#1b2c38;margin:0;line-height:1.6}

/* ----------------------------------------------------------------- panels */
.home-panels{padding:30px 0 40px}
.panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}
.panel{
  background:#fff;border:1px solid #e7dfd1;border-radius:10px;overflow:hidden;
  box-shadow:var(--shadow-sm);display:flex;flex-direction:column;
}
.panel-head{
  min-height:68px;background:var(--navy-2);color:#fff;display:flex;align-items:center;
  justify-content:space-between;gap:14px;padding:0 20px;flex:0 0 auto;
}
.panel-title{display:flex;align-items:center;gap:11px;min-width:0}
.panel-title .ico{color:var(--gold);width:24px;height:24px}
.panel-title h2{font-size:21px;font-weight:700;color:#fff;margin:0;line-height:1.4;white-space:nowrap}
.panel-link{display:inline-flex;align-items:center;gap:4px;color:#fff;font-size:12.5px;white-space:nowrap;opacity:.9}
.panel-link .ico{width:16px;height:16px}
.panel-link:hover{opacity:1;color:var(--gold-soft)}
.panel-body{background:#fffdf9;flex:1;display:flex;flex-direction:column;justify-content:center;min-height:176px}
.panel-empty{padding:24px 20px;color:var(--muted);font-size:14px;margin:0;text-align:center}

.notice-row{
  display:flex;align-items:center;gap:12px;padding:11px 20px;min-height:58px;
  border-bottom:1px solid #eee8dd;color:inherit;transition:background .15s ease;
}
.notice-row:last-child{border-bottom:0}
.notice-row:hover{background:#fbf7ef;text-decoration:none}
.notice-dot{width:8px;height:8px;border-radius:50%;background:var(--blue);flex:0 0 8px}
.notice-title{flex:1;min-width:0;font-size:14.5px;font-weight:600;color:#2a3a47;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notice-date{font-size:12.5px;color:#5c6974;white-space:nowrap;font-variant-numeric:tabular-nums}

.event-row{
  display:flex;align-items:center;gap:18px;padding:12px 20px;min-height:88px;
  border-bottom:1px solid #eee8dd;color:inherit;transition:background .15s ease;
}
.event-row:last-child{border-bottom:0}
.event-row:hover{background:#fbf7ef;text-decoration:none}
.event-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;text-align:right}
.event-title{display:block;font-size:15.5px;font-weight:700;color:#263744;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.event-meta{font-size:12.5px;color:#66727d;font-weight:400}
.event-date{
  width:128px;min-width:128px;background:var(--badge);border-radius:8px;
  text-align:center;padding:7px 4px;color:#1f4e7a;line-height:1.7;
}
.event-date b{display:block;font-size:14px;font-weight:700}
.event-date>span{font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums}

/* lower homepage panels */
.home-panels-lower{padding-top:0}
.panel-body-grid{padding:0;min-height:0;display:block}
.center-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
.center-mini{
  display:flex;align-items:center;gap:9px;padding:12px 14px;min-height:64px;
  border-bottom:1px solid #eee8dd;color:#263744;transition:background .15s ease;
}
.center-mini:hover{background:#fbf7ef;text-decoration:none}
.center-mini:nth-last-child(-n+3){border-bottom:0}
.center-mini-icon{width:24px;flex:0 0 24px;text-align:center;font-size:20px;line-height:1}
.center-mini-title{font-size:13px;font-weight:600;line-height:1.6;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.post-mini-grid{display:grid;grid-template-columns:1fr 1fr;width:100%}
.post-mini{
  display:flex;align-items:center;gap:10px;padding:12px 14px;min-height:96px;
  border-bottom:1px solid #eee8dd;color:inherit;transition:background .15s ease;
}
.post-mini:hover{background:#fbf7ef;text-decoration:none}
.post-mini:nth-last-child(-n+2){border-bottom:0}
.post-mini img{width:82px;height:64px;object-fit:cover;border-radius:7px;flex:0 0 82px}
.post-mini-body{display:flex;flex-direction:column;gap:1px;min-width:0}
.post-mini-body .kicker{font-size:10px}
.post-mini-body b{
  font-size:12.5px;font-weight:700;line-height:1.6;color:#263744;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.post-mini-body small{font-size:10.5px;color:#7a8792}

/* ------------------------------------------------------------- page sections */
.section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.section-title h2{font-size:23px;color:var(--navy);margin:0;font-weight:800}
.section-title .eyebrow{display:block;margin-bottom:4px}
.section-title>a{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--gold-2);white-space:nowrap}
.section-title>a .ico{width:16px;height:16px}
.eyebrow{display:block;color:var(--gold-2);font-weight:700;font-size:12px;letter-spacing:.01em}
.section-centers{padding-top:8px}
.section-posts{background:#f3eee3;border-top:1px solid #ebe4d7;margin-top:10px}
.grid.center-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.center-card{text-align:center;padding:22px 16px;min-height:170px;display:flex!important;flex-direction:column;align-items:center;justify-content:center}
.center-card .icon{font-size:34px;line-height:1;margin-bottom:8px;display:block}
.center-card h3{margin:0 0 4px;font-size:16px}
.center-card p{margin:0;font-size:12.5px;line-height:1.8}
.grid.post-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.post-card{padding:0;overflow:hidden;display:flex!important;flex-direction:column}
.post-card .cover{border-radius:0;aspect-ratio:16/9;object-fit:cover;margin:0}
.post-card-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:2px;flex:1}
.post-card-body h3{font-size:15.5px;margin:2px 0 3px;line-height:1.65}
.post-card-body .muted{margin:0;font-size:12px}
.kicker{color:var(--gold-2);font-weight:700;font-size:12px}

/* -------------------------------------------------------------- cards/grids */
.grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.card{background:#fff;border:1px solid #ece5d9;border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow-sm)}
a.card{color:inherit;display:block}
a.card:hover{border-color:#dfc98f;box-shadow:0 10px 26px rgba(8,43,73,.1);text-decoration:none}
.card h3{margin-bottom:.3rem}
.card .icon{font-size:2rem;display:block;margin-bottom:.3rem}
.cols{display:grid;gap:24px}
@media(min-width:860px){.cols.two{grid-template-columns:1.6fr 1fr}.cols.even{grid-template-columns:1fr 1fr}}
.list{list-style:none;margin:0;padding:0}
.list li{padding:.7rem 0;border-bottom:1px solid var(--line)}
.list li:last-child{border-bottom:0}
.cover{border-radius:10px;aspect-ratio:16/9;object-fit:cover;width:100%;background:#eee8dc}
.prose{line-height:2;font-size:15.5px}
.prose img{border-radius:10px;margin:14px 0}
.prose h2,.prose h3{color:var(--navy);margin-top:1.4em}
.prose table{border-collapse:collapse;width:100%}
.prose td,.prose th{border:1px solid var(--line);padding:.45rem .65rem}
.prose blockquote{border-inline-start:3px solid var(--gold);margin:1rem 0;padding:.4rem 1rem;background:#fbf7ef;border-radius:4px}

/* ------------------------------------------------------------------ buttons */
.btn{display:inline-block;background:var(--navy-2);color:#fff;border:0;border-radius:9px;padding:.62rem 1.25rem;font:inherit;font-weight:700;cursor:pointer;transition:background .15s ease}
.btn:hover{background:var(--navy);color:#fff;text-decoration:none}
.btn.gold{background:var(--gold);color:#0b2a45}
.btn.gold:hover{background:#e3bd6d;color:#0b2a45}
.btn.secondary{background:#fff;color:var(--navy);border:1px solid var(--line-strong)}
.btn.small{padding:.32rem .8rem;font-size:.88rem}
.btn.danger{background:var(--danger)}
.btn[disabled]{opacity:.5;cursor:not-allowed}

/* -------------------------------------------------------------------- forms */
.form .field{margin-bottom:1.05rem}
.form label.lbl{display:block;font-weight:700;margin-bottom:.3rem;color:#273845}
.form .req{color:var(--danger)}
.input,.form input[type=text],.form input[type=number],.form input[type=tel],.form select,.form textarea,.form input[type=password]{
  width:100%;font:inherit;padding:.6rem .8rem;border:1px solid #d9d2c5;border-radius:8px;
  background:#fff;color:var(--ink);transition:border-color .15s ease,box-shadow .15s ease;
}
.form textarea{min-height:110px}
.input:focus,.form input:focus,.form select:focus,.form textarea:focus{outline:0;border-color:var(--gold);box-shadow:0 0 0 3px rgba(214,171,82,.16)}
.form ul{list-style:none;padding:0;margin:0}
.form ul li{padding:.2rem 0}
.form ul label{display:flex;gap:.5rem;align-items:center;cursor:pointer}
.form input[type=checkbox],.form input[type=radio]{width:1.15rem;height:1.15rem;accent-color:var(--gold-2)}
.help{color:var(--muted);font-size:.88rem;margin-top:.2rem}
.errorlist{list-style:none;margin:.3rem 0 0;padding:0;color:var(--danger);font-size:.9rem}
.form-heading{margin-top:1.6rem;padding-bottom:.4rem;border-bottom:2px solid #efe7d7}
.hp{position:absolute;left:-9999px;height:0;overflow:hidden}
[hidden]{display:none!important}

/* --------------------------------------------------------------- messages */
.messages{list-style:none;margin:18px auto;padding:0;width:min(900px,100% - 40px)}
.messages li{padding:.7rem 1rem;border-radius:8px;margin-bottom:.5rem;border:1px solid}
.messages .success{background:#e8f5ec;border-color:#b9ddc5;color:var(--ok)}
.messages .error{background:#fdecea;border-color:#f3b8b3;color:var(--danger)}
.messages .info,.messages .warning{background:#edf3f9;border-color:#c5d7e8;color:var(--navy)}
.notice{background:#f4edde;border-radius:9px;padding:1rem 1.2rem;border:1px solid #e8dcc4}
.badge{display:inline-block;padding:.1rem .7rem;border-radius:999px;font-size:.83rem;color:#fff;background:var(--muted)}
.badge.ok{background:var(--ok)}.badge.warn{background:#a8650c}.badge.bad{background:var(--danger)}
.progress{height:10px;background:#ece5d8;border-radius:999px;overflow:hidden}
.progress>span{display:block;height:100%;background:linear-gradient(90deg,var(--gold-2),var(--gold))}
table.data{width:100%;border-collapse:collapse}
table.data th,table.data td{padding:.55rem .6rem;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}
.tabs{display:flex;gap:.4rem;overflow-x:auto;padding-bottom:.4rem;margin-bottom:1.2rem}
.tabs a{white-space:nowrap;padding:.35rem .9rem;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:13px}
.tabs a.active{background:var(--navy-2);color:#fff;border-color:var(--navy-2)}

/* ---------------------------------------------------- booking/khatm/contest */
.slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.6rem}
.slot input{position:absolute;opacity:0}
.slot span{display:block;text-align:center;padding:.6rem;border:1px solid #d9d2c5;border-radius:8px;background:#fff;cursor:pointer}
.slot input:checked + span{background:var(--navy-2);color:#fff;border-color:var(--navy-2)}
.slot.full span{opacity:.45;text-decoration:line-through;cursor:not-allowed}
.parts{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:.5rem}
.part{border:1px solid var(--line);border-radius:8px;padding:.5rem;text-align:center;background:#fff;font-size:.9rem}
.part.taken{background:#f0ede7;color:var(--muted)}
.part.mine{background:#edf4fb;border-color:#a9c7e2}
.part.done{background:#e8f5ec}
.part form{margin-top:.3rem}
.amounts{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.6rem}
.amounts button{border:1px solid var(--gold-2);background:#fff;color:var(--gold-2);padding:.35rem .9rem;border-radius:999px;font:inherit;cursor:pointer}
.amounts button:hover{background:#fdf7e9}
.qa{border-bottom:1px solid var(--line);padding:1rem 0}
.qa .q{font-weight:700}
.qa .a{background:#f4f8fc;border-radius:8px;padding:.7rem 1rem;margin-top:.5rem}
.bar-row{display:grid;grid-template-columns:140px 1fr 56px;gap:.6rem;align-items:center;margin:.35rem 0;font-size:.92rem}
.bar-row .progress{height:9px}
.pager{display:flex;gap:.5rem;justify-content:center;margin:1.8rem 0}
.pager a,.pager span{padding:.32rem .8rem;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:13px}
.map{height:280px;border-radius:9px;border:1px solid var(--line)}

/* ------------------------------------------------------------------- footer */
.site-footer{background:var(--navy);color:#cfd9e3;margin-top:40px;border-top:4px solid var(--gold);padding:42px 0 0}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1.4fr;gap:36px;padding-bottom:30px}
.footer-brand{display:flex;align-items:center;gap:10px;color:#fff;margin-bottom:10px}
.footer-brand img{width:48px;height:46px;object-fit:contain}
.footer-brand strong{font-size:20px;font-weight:800}
.footer-about p{font-size:13px;line-height:1.9;color:#b9c8d6;max-width:340px;margin:0}
.footer-col h3{font-size:14px;color:var(--gold);margin:0 0 12px;font-weight:700}
.footer-col>a{display:block;color:#d8e2eb;font-size:13px;padding:3px 0;transition:color .15s ease}
.footer-col>a:hover{color:var(--gold-soft)}
.footer-contact p{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:#cbd7e2;margin:0 0 8px;line-height:1.8}
.footer-contact p svg{width:17px;height:17px;color:var(--gold);margin-top:3px;flex:0 0 auto}
.footer-social{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.footer-social a{font-size:12px;color:#e7edf3;border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:2px 10px}
.footer-social a:hover{background:rgba(255,255,255,.08);color:#fff}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:15px 0;font-size:11.5px;color:#93a7ba;flex-wrap:wrap;
}


/* ---------------------------------------------------- page hero / directory */
.page-hero{
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-3) 55%,var(--navy-2) 100%);
  color:#fff;padding:38px 0;position:relative;overflow:hidden;border-bottom:3px solid var(--gold);
}
.page-hero::after{
  content:"";position:absolute;inset:0;opacity:.10;pointer-events:none;
  background-image:radial-gradient(circle at 1px 1px,#fff 1px,transparent 0);background-size:22px 22px;
  mask-image:linear-gradient(to left,#000,transparent 70%);
}
.page-hero-inner{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:24px}
.page-hero h1{color:#fff;font-size:32px;font-weight:800;margin:0 0 7px;letter-spacing:-.4px}
.page-hero p{color:#c9d6e2;margin:0;max-width:680px;font-size:14px;line-height:1.9}
.page-hero .eyebrow{color:var(--gold)}
.page-hero .btn{white-space:nowrap}
.page-hero .btn.secondary{background:transparent;color:#fff;border-color:rgba(255,255,255,.4)}
.page-hero-compact{padding:27px 0}

.business-toolbar{padding:18px 20px;margin-bottom:24px}
.business-search{
  display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;
  padding:5px 10px;background:#fff;max-width:640px;
}
.business-search .ico{color:var(--gold-2);width:18px;height:18px}
.business-search input{flex:1;border:0;outline:0;font:inherit;background:transparent;padding:7px 2px;min-width:0;color:var(--ink)}
.business-search .btn{padding:.35rem .9rem;font-size:12px}
.business-cats{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.cat-chip{
  display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:999px;
  background:#fff;color:#344552;font-size:12px;padding:4px 11px;white-space:nowrap;
}
.cat-chip span{color:#8a96a0;font-size:10.5px}
.cat-chip:hover{border-color:#dfc98f;color:var(--navy);text-decoration:none}
.cat-chip.active{background:var(--navy-2);border-color:var(--navy-2);color:#fff}
.cat-chip.active span{color:var(--gold-soft)}

.business-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.business-card{
  background:#fff;border:1px solid #ece5d9;border-radius:12px;padding:18px 18px 16px;
  box-shadow:var(--shadow-sm);display:flex;flex-direction:column;
}
.business-card-head{display:flex;align-items:flex-start;gap:12px}
.business-photo{width:64px;height:64px;border-radius:10px;object-fit:cover;flex:0 0 64px}
.business-emoji{
  width:64px;height:64px;border-radius:10px;background:#fbf3df;display:grid;
  place-items:center;font-size:30px;flex:0 0 64px;line-height:1;
}
.business-title{min-width:0}
.business-title .kicker{font-size:10.5px}
.business-title h3{font-size:16.5px;margin:1px 0 0;line-height:1.55}
.business-title .muted{margin:2px 0 0;font-size:11.5px}
.business-desc{font-size:12.5px;color:#5d6a75;margin:12px 0 10px;line-height:1.9}
.business-meta{list-style:none;padding:0;margin:0 0 14px;font-size:11.5px;color:#5d6a75;display:flex;flex-direction:column;gap:5px}
.business-meta li{display:flex;gap:6px;align-items:flex-start;line-height:1.8}
.business-meta .ico{width:15px;height:15px;color:var(--gold-2);margin-top:2px}
.business-actions{margin-top:auto}
.business-actions .btn{width:100%;display:flex;align-items:center;justify-content:center;gap:6px}
.business-empty{grid-column:1/-1;text-align:center;padding:42px 24px}
.business-form-card{padding:26px}
.form-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.form-grid .field.full{grid-column:1/-1}

/* ---------------------------------------------------------------- comments */
.post-comments{border-top:1px solid #e7dfd1;background:#f3eee3;padding:34px 0 46px}
.comments-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.comments-head h2{font-size:23px;margin:0;color:var(--navy)}
.comment-item{background:#fff;border:1px solid #ece5d9;border-radius:10px;padding:15px 18px;margin-bottom:12px;box-shadow:var(--shadow-sm)}
.comment-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.comment-avatar{width:34px;height:34px;border-radius:50%;background:var(--navy-2);color:var(--gold);display:grid;place-items:center;font-weight:700;flex:0 0 34px}
.comment-head b{display:block;font-size:13px;color:#263744}
.comment-head time{font-size:10.5px;color:#7a8792}
.comment-item p{margin:0;font-size:13.5px;line-height:1.9;color:#334450}
.comment-empty{margin:6px 0 18px}
.comment-form-card{margin-top:22px;padding:24px}
.comment-form-card h3{margin-bottom:4px}
.comment-note{font-size:12px;margin:0 0 16px}

/* ------------------------------------------------------------------- 404 */
.error-page{
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-3) 58%,var(--navy-2) 100%);
  color:#fff;position:relative;overflow:hidden;padding:64px 0;
}
.error-page::after{
  content:"";position:absolute;inset:0;opacity:.10;pointer-events:none;
  background-image:radial-gradient(circle at 1px 1px,#fff 1px,transparent 0);background-size:23px 23px;
  mask-image:linear-gradient(to left,#000,transparent 75%);
}
.error-inner{position:relative;z-index:1;display:grid;grid-template-columns:auto 1fr;gap:48px;align-items:center;max-width:980px}
.error-art{width:250px;height:250px;display:grid;place-items:center;position:relative}
.error-code{position:absolute;font-size:150px;font-weight:800;line-height:1;color:rgba(214,171,82,.18);letter-spacing:-8px}
.error-art img{width:118px;position:relative;filter:drop-shadow(0 8px 18px rgba(0,0,0,.2))}
.error-copy .eyebrow{color:var(--gold)}
.error-copy h1{color:#fff;font-size:34px;font-weight:800;margin:4px 0 12px;line-height:1.5}
.error-copy p{color:#c9d6e2;max-width:560px;line-height:2;margin:0}
.error-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:24px}
.error-actions .btn.secondary{background:transparent;color:#fff;border-color:rgba(255,255,255,.4)}
.text-link{color:var(--gold-soft);font-weight:700}
.text-link:hover{color:#fff}

/* --------------------------------------------------------------- responsive */
/* ----------------------------------------------------------------- search */
.search-page-form{
  display:flex;align-items:center;gap:10px;max-width:820px;margin:0 auto 22px;
  background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px 10px;box-shadow:var(--shadow-sm);
}
.search-page-form .ico{color:var(--gold-2);width:20px;height:20px}
.search-page-form input{flex:1;border:0;outline:0;background:transparent;font:inherit;padding:8px 4px;min-width:0;color:var(--ink)}
.search-page-form .btn{padding:.42rem 1.1rem;font-size:13px}
.search-summary{text-align:center;color:var(--muted);font-size:13px;margin:0 0 24px}
.search-group{margin:0 0 30px}
.search-group h2{font-size:20px;color:var(--navy);border-bottom:1px solid #e8e1d5;padding-bottom:8px;margin-bottom:14px}
.search-item{
  display:block;background:#fff;border:1px solid #ece5d9;border-radius:9px;
  padding:13px 17px;margin-bottom:9px;color:inherit;box-shadow:var(--shadow-sm);transition:border-color .15s ease,transform .15s ease;
}
.search-item:hover{border-color:#dfc98f;transform:translateX(-2px);text-decoration:none}
.search-type{display:inline-block;font-size:10.5px;color:var(--gold-2);background:#fbf3df;border-radius:5px;padding:0 6px;margin-inline-end:7px;vertical-align:middle}
.search-item b{font-size:14.5px;color:#263744}
.search-item small{display:block;color:#7a8792;font-size:11.5px;margin-top:2px}
.search-item p{font-size:12.5px;color:#5d6a75;margin:5px 0 0;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.search-hints{margin-top:10px}
.search-hints h2{font-size:20px;color:var(--navy);margin-bottom:14px}
.search-hint-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.search-hint-grid .card{display:flex;flex-direction:column;gap:3px;padding:18px}
.search-hint-grid .card b{color:var(--navy)}
.search-hint-grid .card .muted{font-size:12px}
.search-empty{max-width:620px;margin:0 auto;text-align:center;padding:30px}

/* ---------------------------------------------------- new homepage layout */
.home-centers{padding:26px 0 4px}
.center-tile-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.center-tile{
  position:relative;display:block;border-radius:16px;overflow:hidden;background:#fff;
  box-shadow:0 4px 14px rgba(8,43,73,.09);aspect-ratio:1280/843;isolation:isolate;
}
.center-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.center-tile:hover img{transform:scale(1.045)}
.center-tile:hover{text-decoration:none}
.center-tile-title{
  position:absolute;right:5%;left:5%;bottom:7%;text-align:center;z-index:2;
  color:#fff;font-size:clamp(11px,1.05vw,16px);font-weight:800;line-height:1.5;
  text-shadow:0 2px 7px rgba(0,0,0,.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.center-tile-fallback{display:grid;place-items:center;height:100%;background:linear-gradient(135deg,#0b3555,#123b5c);font-size:2rem;color:var(--gold)}
.center-tile-fallback span{opacity:.9}

.home-bottom{padding:20px 0 42px}
.bottom-grid{display:grid;grid-template-columns:1fr 1.55fr 1fr;gap:18px;align-items:stretch}
.bottom-col{display:flex;flex-direction:column;gap:18px;min-width:0}
.home-bottom .panel-body{min-height:0}
.news-col .panel,.programs-col .panel{height:100%}
.services-col .panel{height:auto}
.services-col .panel:first-child{flex:0 0 auto;height:auto}
.services-col .jobs-panel{flex:0 0 140px;height:140px;overflow:hidden}
.home-bottom .panel-head{min-height:60px;padding:0 15px}
.home-bottom .panel-title{gap:8px}
.home-bottom .panel-title h2{font-size:17.5px}
.home-bottom .panel-title .ico{width:21px;height:21px}

.services-body{padding:12px;display:flex;flex-direction:column;gap:10px;min-height:0}
.special-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.special-item{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  background:#fff;border:1px solid #e9e2d5;border-radius:9px;padding:10px 5px;
  color:#1d3f5e;font-size:10.5px;font-weight:700;text-align:center;line-height:1.5;
  box-shadow:0 2px 7px rgba(8,43,73,.04);transition:border-color .15s ease,transform .15s ease;
}
.special-item:hover{border-color:#dfc98f;transform:translateY(-2px);text-decoration:none;color:var(--navy)}
.special-item .ico{width:25px;height:25px;color:#245c82}
.reserve-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:6px;padding:.45rem .8rem;font-size:12px}
.reserve-btn .ico{width:17px;height:17px}

.jobs-panel .panel-title h2{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}
.jobs-panel .panel-head{position:relative;z-index:3}
.jobs-body{display:flex;flex-direction:row;align-items:center;gap:10px;padding:8px 12px;min-height:0;overflow:hidden}
.jobs-body>img{width:76px;height:60px;object-fit:cover;border-radius:8px;flex:0 0 76px}
.jobs-copy{min-width:0;display:flex;flex-direction:column;gap:6px}
.jobs-copy p{margin:0;font-size:11.5px;color:#5d6a75;line-height:1.8}
.jobs-copy .btn{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;padding:.3rem .7rem;font-size:11px}
.jobs-copy .btn .ico{width:13px;height:13px}

.news-panel{display:flex;flex-direction:column}
.news-panel .panel-body{padding:0;min-height:0;display:flex;flex-direction:column;flex:1}
.news-slider{position:relative;flex:1;min-height:0;height:100%}
.news-slide{display:none;grid-template-columns:1.1fr 1fr;height:100%;min-height:0}
.news-slide.active{display:grid}
.news-image{min-height:0;height:100%;background:#eee8dc;overflow:hidden}
.news-image img{width:100%;height:100%;object-fit:cover;display:block}
.news-placeholder{display:grid;place-items:center;height:100%;color:#6b7782;font-size:13px}
.news-copy{padding:20px 18px;display:flex;flex-direction:column;justify-content:center;gap:7px;text-align:right;min-width:0}
.news-copy h3{font-size:19px;line-height:1.7;margin:0}
.news-copy h3 a{color:var(--navy)}
.news-copy p{font-size:12.5px;color:#5d6a75;line-height:1.9;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-copy .btn{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;padding:.35rem .8rem;font-size:11.5px}
.news-copy .btn .ico{width:14px;height:14px}
.news-dots{display:flex;justify-content:center;gap:6px;padding:7px 0 10px;background:#fffdf9}
.news-dot{width:8px;height:8px;border-radius:50%;border:0;padding:0;background:#d9d2c4;cursor:pointer}
.news-dot.active{background:var(--gold-2);width:18px;border-radius:999px}

.programs-panel{display:flex;flex-direction:column}
.programs-body{position:relative;flex:1;display:flex;flex-direction:column;min-height:0;padding:12px 14px 14px;overflow:hidden}
.program-list{list-style:none;padding:0;margin:0;position:relative;z-index:2;display:flex;flex-direction:column;gap:0}
.program-list li{border-bottom:1px solid #eee8dd}
.program-list li:last-child{border-bottom:0}
.program-list a{display:flex;align-items:flex-start;gap:9px;padding:10px 2px;color:inherit}
.program-list a:hover{text-decoration:none;color:var(--navy)}
.program-dot{width:7px;height:7px;border-radius:50%;background:var(--gold-2);flex:0 0 7px;margin-top:8px}
.program-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.program-text b{font-size:13px;color:#263744;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.program-text small{font-size:10.5px;color:#7a8792}
.programs-link{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;margin-top:auto;padding:.35rem .8rem;font-size:11px;position:relative;z-index:2}
.programs-link .ico{width:14px;height:14px}
.program-decor{position:absolute;left:-18px;bottom:-22px;width:72%;max-width:240px;opacity:.55;z-index:0;pointer-events:none;border-radius:50% 50% 0 0}

@media(max-width:1279px){
  .center-tile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .bottom-grid{grid-template-columns:1fr 1fr}
  .services-col{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr;align-items:stretch}
  .programs-col{grid-column:1}
  .news-col{grid-column:2}
}
@media(max-width:760px){
  .center-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .center-tile-title{font-size:12px}
  .home-centers{padding-top:18px}
  .home-bottom{padding-top:14px}
  .bottom-grid{grid-template-columns:1fr;gap:14px}
  .services-col{grid-column:auto;display:flex;flex-direction:column}
  .services-col .jobs-panel{flex:0 0 auto;height:auto;overflow:visible}
  .programs-col,.news-col{grid-column:auto}
  .news-slide{grid-template-columns:1fr}
  .news-image{min-height:190px;max-height:210px}
  .news-copy{padding:14px}
  .news-copy h3{font-size:16px}
  .news-slider,.news-slide{min-height:0}
  .programs-body{min-height:0}
  .program-decor{opacity:.22;width:55%}
  .special-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-bottom .panel-title h2{font-size:15px}
}
@media(max-width:1360px){
  .header-nav{font-size:14px;transform:none}
  .header-nav>a{padding:0 8px}
  .brand-name{font-size:19px}
  .hero-copy{margin-right:90px;width:470px}
}
@media(max-width:1279px){
  .site-header,.header-inner{height:76px}
  .header-nav{
    display:none;position:absolute;top:76px;right:0;left:0;background:var(--navy-2);
    flex-direction:column;align-items:stretch;gap:0;padding:10px 22px 16px;
    box-shadow:0 12px 24px rgba(0,0,0,.2);margin:0;z-index:100;max-height:calc(100vh - 76px);overflow:auto;
  }
  #nav-toggle:checked ~ .header-nav{display:flex}
  .header-nav>a{height:auto;padding:11px 6px;border-bottom:1px solid rgba(255,255,255,.08);border-radius:0}
  .header-nav>a.active::after{display:none}
  .header-nav>a.active{color:var(--gold)}
  .burger{display:grid;order:4}
  .header-actions{order:3;margin-inline-start:auto;gap:10px}
  .brand{order:1}
  .brand-name{font-size:19px}
  .header-icon{width:40px;height:40px}
  .hero-copy{margin-right:70px;width:460px;max-width:52%}
  .prayer-inner{flex-wrap:wrap;justify-content:center;padding-block:4px}
  .prayer-heading{width:100%;justify-content:center;padding:6px 0}
  .prayer-time{flex:1;justify-content:center;border-top:1px solid rgba(255,255,255,.14);border-inline-start:0;min-height:42px;padding:4px 8px}
  .service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .grid.center-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .grid.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:980px){
  .container{padding-inline:22px}
  .hero{min-height:270px}
  .hero-inner{min-height:270px}
  .hero-copy{width:420px;max-width:56%;margin-right:40px}
  .hero-copy h1{font-size:40px}
  .hero-copy>p{font-size:21px}
  .hero-photo{width:auto;height:100%;opacity:.9}
  .hero-ornament{opacity:.55;width:120px}
  .panel-grid{grid-template-columns:1fr;gap:20px}
  .panel-body{min-height:0}
  .footer-grid{grid-template-columns:1fr 1fr;gap:26px}
  .footer-about{grid-column:1/-1}
}
@media(max-width:760px){
  .container{padding-inline:16px}
  .header-actions .header-icon{display:none}
  .login-pill{height:38px;padding:0 13px;font-size:12.5px}
  .login-pill svg{width:16px;height:16px}
  .brand-logo{width:44px;height:42px}
  .brand-name{font-size:17px}
  .hero{min-height:330px}
  .hero-inner{min-height:330px;align-items:flex-end;justify-content:center;padding-bottom:26px}
  .hero-photo{width:100%;height:100%;object-fit:cover;opacity:.36}
  .hero-fade{background:linear-gradient(to top,rgba(1,43,77,.96) 8%,rgba(1,43,77,.55) 55%,rgba(1,43,77,.3) 100%)}
  .hero-ornament{opacity:.3;width:110px}
  .hero-copy{width:100%;max-width:100%;margin:0;text-align:center;padding:0;transform:none}
  .hero-copy h1{font-size:32px;margin-bottom:6px}
  .hero-copy>p{font-size:17px}
  .hero-divider{margin-top:14px;width:230px;transform:none}
  .services{padding-top:22px}
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .service-card{min-height:132px;padding:14px 8px}
  .service-card img{width:46px;height:46px;margin-bottom:6px}
  .service-card h3{font-size:14px}
  .home-panels{padding:22px 0 28px}
  .panel-head{min-height:54px;padding:0 14px}
  .panel-title h2{font-size:17px}
  .panel-title .ico{width:21px;height:21px}
  .panel-link{font-size:11.5px}
  .notice-row{padding:12px 14px;min-height:56px;gap:9px}
  .notice-title{font-size:13px}
  .notice-date{font-size:11px}
  .event-row{padding:13px 14px;min-height:86px;gap:10px}
  .event-title{font-size:13.5px}
  .event-meta{font-size:11.5px}
  .event-date{width:100px;min-width:100px;padding:6px 3px}
  .event-date b{font-size:12.5px}
  .event-date>span{font-size:11px}
  .section{padding:28px 0}
  .section-title h2{font-size:19px}
  .section-title>a{font-size:11.5px}
  .grid.center-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid.post-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:22px}
  .footer-bottom{justify-content:center;text-align:center}
  .cols.two,.cols.even{grid-template-columns:1fr}
  .form .field{margin-bottom:.9rem}
}
@media(max-width:420px){
  .brand-name{font-size:15px}
  .brand-logo{width:38px;height:36px}
  .brand{gap:6px}
  .login-pill{padding:0 10px;font-size:11.5px}
  .hero-copy h1{font-size:27px}
  .hero-copy>p{font-size:15px}
  .prayer-time{font-size:11px;padding:3px 5px;gap:4px}
  .prayer-time b{font-size:12px}
  .prayer-time .ico{width:16px;height:16px}
  .panel-title h2{font-size:15.5px}
  .panel-link{font-size:10.5px}
  .event-date{width:88px;min-width:88px}
}

@media(max-width:760px){
  .center-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .center-mini:nth-last-child(-n+3){border-bottom:1px solid #eee8dd}
  .center-mini:nth-last-child(-n+2){border-bottom:0}
  .center-mini{min-height:58px;padding:10px 10px;gap:7px}
  .center-mini-icon{width:21px;flex-basis:21px;font-size:18px}
  .center-mini-title{font-size:12px}
  .post-mini-grid{grid-template-columns:1fr}
  .post-mini{min-height:86px;padding:10px 12px}
  .post-mini:nth-last-child(-n+2){border-bottom:1px solid #eee8dd}
  .post-mini:last-child{border-bottom:0}
  .post-mini img{width:76px;height:58px;flex-basis:76px}
  .post-mini-body b{font-size:12px}
}

@media(max-width:1100px){
  .business-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .page-hero{padding:28px 0}
  .page-hero-inner{flex-direction:column;align-items:flex-start;gap:16px}
  .page-hero h1{font-size:26px}
  .page-hero p{font-size:13px}
  .business-grid{grid-template-columns:1fr}
  .business-toolbar{padding:14px}
  .business-search{max-width:100%}
  .form-grid.two{grid-template-columns:1fr;gap:0}
  .error-page{padding:40px 0 48px}
  .error-inner{grid-template-columns:1fr;gap:20px;text-align:center}
  .error-art{width:180px;height:180px;margin-inline:auto}
  .error-code{font-size:110px}
  .error-art img{width:84px}
  .error-copy h1{font-size:25px}
  .error-copy p{font-size:13px}
  .error-actions{justify-content:center}
  .comment-form-card{padding:16px}
}

body:has(.error-page) .site-footer{margin-top:0}

#comments{scroll-margin-top:105px}

@media(max-width:760px){
  .search-page-form{flex-wrap:wrap}
  .search-page-form input{flex-basis:calc(100% - 40px)}
  .search-page-form .btn{width:100%}
  .search-hint-grid{grid-template-columns:1fr}
  .search-group h2{font-size:17px}
}

.neshan-map{position:relative;overflow:hidden;background:#e9e3d7;display:block}
.neshan-map img{width:100%;height:100%;object-fit:cover;object-position:center 45%;display:block;transition:transform .25s ease}
.neshan-map:hover img{transform:scale(1.03)}
.neshan-map-badge{position:absolute;right:10px;bottom:10px;background:rgba(8,43,73,.82);color:#fff;font-size:10.5px;padding:2px 9px;border-radius:999px;backdrop-filter:blur(3px)}
.map-link{margin:8px 0 0;font-size:12px}
.map-link a{display:inline-flex;align-items:center;gap:5px;color:var(--gold-2);font-weight:700}
.map-link .ico{width:15px;height:15px}

.center-list-image{position:relative;display:block;border-radius:11px;overflow:hidden;aspect-ratio:1280/843;margin-bottom:10px}
.center-list-image img{width:100%;height:100%;object-fit:cover;display:block}
.center-list-title{position:absolute;right:5%;left:5%;bottom:8%;margin:0;text-align:center;color:#fff;font-size:15px;font-weight:800;line-height:1.5;text-shadow:0 2px 7px rgba(0,0,0,.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.center-detail-img{max-height:300px;object-fit:cover;margin-bottom:16px}

.grid.centers-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1279px){.grid.centers-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.grid.centers-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* فهرست همهٔ فرم‌ها (رزرو خدمات مسجد) */
.list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.list-heading h2{margin:0;font-size:22px;color:var(--navy)}
.form-list-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.form-list-card{display:flex;flex-direction:column;gap:4px;min-height:190px}
.form-list-card h3{font-size:17px;margin:0 0 2px}
.form-list-card p{font-size:12.5px;line-height:1.9;margin:0}
.form-list-meta{margin-top:auto;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.form-list-cta{color:var(--gold-2);font-size:12px;font-weight:800;white-space:nowrap}
.form-list-card:hover .form-list-cta{color:var(--navy)}
@media(max-width:1279px){.form-list-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.form-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.form-list-grid{grid-template-columns:1fr}.form-list-card{min-height:0}}

/* برنامهٔ هفتگی: تب‌ها و جدول مدرسه‌ای */
.weekly-block{margin-top:20px}
.weekly-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.weekly-head h2{margin:0;font-size:24px;color:var(--navy)}
.weekly-tabs{display:inline-flex;gap:5px;padding:4px;background:#eee7da;border-radius:10px}
.weekly-tab{padding:8px 14px;border-radius:7px;font-size:12.5px;font-weight:700;color:#5f6d78;transition:background .15s,color .15s}
.weekly-tab:hover{color:var(--navy);text-decoration:none}
.weekly-tab.active{background:var(--navy);color:#fff;box-shadow:0 3px 9px rgba(8,43,73,.14)}
.weekly-panel{display:none}
.weekly-panel.active{display:block}
.weekly-list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.weekly-day-card{margin:0}
.weekly-day-card h3{margin-bottom:6px;color:var(--navy)}
.weekly-day-card .list li{padding:6px 0}
.timetable-wrap{overflow-x:auto;background:#fff;border:1px solid #e9e2d5;border-radius:14px;box-shadow:0 4px 14px rgba(8,43,73,.06);-webkit-overflow-scrolling:touch}
.weekly-table{width:100%;min-width:820px;border-collapse:collapse;text-align:center}
.weekly-table th,.weekly-table td{border:1px solid #eee8dd;padding:7px 6px}
.weekly-table thead th{background:var(--navy);color:#fff;font-size:12.5px;font-weight:700;padding:12px 6px;white-space:nowrap}
.weekly-table thead th.time-col{background:var(--navy-2);width:86px}
.weekly-table .time-cell{background:#f8f3e9;color:var(--navy);font-size:12px;font-weight:800;white-space:nowrap;width:86px}
.weekly-table td{height:62px;vertical-align:middle}
.timetable-item{display:block;background:#f7efdc;border:1px solid #e4d2a7;border-radius:7px;padding:5px 6px;color:#123b5c;font-size:11.5px;font-weight:700;line-height:1.6;margin:3px 0;white-space:normal}
.timetable-empty{color:#c6bda9;font-size:12px}
.timetable-note{font-size:11.5px;margin-top:8px;line-height:1.9}
@media(max-width:760px){
  .weekly-list-grid{grid-template-columns:1fr}
  .weekly-head h2{font-size:20px}
  .weekly-tab{padding:7px 10px;font-size:11.5px}
}

/* انتخاب روز در صفحهٔ نوبت‌دهی */
.booking-days{display:flex;gap:8px;overflow-x:auto;padding:4px 0 14px;margin-bottom:6px;-webkit-overflow-scrolling:touch}
.booking-day{flex:0 0 106px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 8px;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--ink);text-align:center;transition:border-color .15s,box-shadow .15s}
.booking-day:hover{border-color:#dfc98f;text-decoration:none;box-shadow:0 4px 12px rgba(8,43,73,.07)}
.booking-day b{font-size:14px;color:var(--navy);white-space:nowrap}
.booking-day-weekday{font-size:11px;color:#7a8792}
.booking-day small{font-size:10.5px;color:#6f7d88}
.booking-day.active{border-color:var(--gold-2);background:#fffdf7;box-shadow:0 0 0 2px rgba(214,171,82,.15)}
.booking-day.full{background:#f7f4ee}
.booking-day.full small{color:#b3261e}
.booking-day.full.active{border-color:#d8b3ae}
.booking-full-note{background:#fbf1ef;border:1px solid #edcfca;color:#8d2f27;border-radius:9px;padding:10px 12px;font-size:12.5px;line-height:1.9;margin-bottom:12px}
.booking-full-note a{color:#8d2f27;font-weight:700;text-decoration:underline}

.hero-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hero-actions .btn{white-space:nowrap}
