/* Al Rawdah Islamic Center */
@font-face { font-family: "Bitter"; src: url("../fonts/bitter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bitter"; src: url("../fonts/bitter-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-700.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("../fonts/amiri-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("../fonts/amiri-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --olive-950: #1b1f09;
  --olive-900: #23280c;
  --olive-800: #2e3410;
  --olive-700: #3b4316;
  --olive: #48511b;
  --olive-500: #5d6826;
  --olive-100: #e9ebdc;
  --gold: #c9a24a;
  --gold-bright: #e8bb5f;
  --gold-soft: #f3e4bd;
  --cream: #faf8f1;
  --sand: #f3efe2;
  --paper: #ffffff;
  --ink: #1f2214;
  --text: #45483a;
  --muted: #727565;
  --line: rgba(72, 81, 27, .14);
  --line-strong: rgba(72, 81, 27, .28);
  --display: "Bitter", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --quran: "Amiri", "Traditional Arabic", serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 34, 20, .06), 0 10px 30px rgba(31, 34, 20, .08);
  --wrap: 1180px;
  --lattice: url("../img/lattice-gold.svg");
  --lattice-faint: url("../img/lattice-faint.svg");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 400 1rem/1.7 var(--sans); color: var(--text); background: var(--cream); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: var(--arabic); font-size: 1.06rem; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-underline-offset: .2em; }
a:hover { color: var(--olive-800); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
html[lang="ar"] :is(h1, h2, h3, h4) { font-family: var(--arabic); font-weight: 800; letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.1rem, 3.6vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--olive); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.section-head .lead { margin: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.5em; border-radius: 999px; border: 1.5px solid transparent; font: 600 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
html[lang="ar"] .btn { font-family: var(--arabic); font-weight: 700; font-size: 1.02rem; }
.btn-sm { min-height: 40px; padding: .5em 1.15em; font-size: .9rem; }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-800); color: #fff; }
.btn-gold { background: var(--gold-bright); color: var(--olive-950); }
.btn-gold:hover { background: #f1c873; color: var(--olive-950); box-shadow: 0 6px 20px rgba(232, 187, 95, .35); }
.btn-outline { border-color: var(--line-strong); color: var(--olive); background: transparent; }
.btn-outline:hover { border-color: var(--olive); background: var(--olive); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.row-links { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.5rem; }

/* Announcement bar */
.announce { background: var(--olive-950); color: var(--gold-soft); font-size: .9rem; }
.announce-inner { display: flex; align-items: center; gap: .9rem; min-height: 42px; overflow: hidden; }
.announce-label { color: var(--gold-bright); display: inline-flex; }
.announce-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.announce-track p { margin: 0; white-space: nowrap; display: inline-block; padding-inline-start: 100%; animation: ticker 38s linear infinite; animation-delay: -9s; }
.announce:hover .announce-track p, .announce:focus-within .announce-track p { animation-play-state: paused; }
html[dir="rtl"] .announce-track p { animation-name: ticker-rtl; }
@keyframes ticker { to { transform: translateX(-100%); } }
@keyframes ticker-rtl { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .announce-track p { white-space: normal; padding: .5rem 0; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 241, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 700 1.25rem var(--display); color: var(--olive-800); }
html[lang="ar"] .brand-text strong { font-family: var(--arabic); font-weight: 800; font-size: 1.2rem; }
.brand-text small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: .2rem; }
html[lang="ar"] .brand-text small { letter-spacing: .02em; text-transform: none; font-family: var(--sans); }
.nav { margin-inline-start: auto; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; }
.nav a, .sub-toggle { display: inline-flex; align-items: center; gap: .25rem; padding: .55rem .8rem; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 .95rem var(--sans); background: none; border: 0; cursor: pointer; }
html[lang="ar"] :is(.nav a, .sub-toggle) { font-family: var(--arabic); font-size: 1.02rem; font-weight: 500; }
.nav a:hover, .sub-toggle:hover { color: var(--olive); background: var(--olive-100); }
.nav a[aria-current="page"] { color: var(--olive); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.sub-toggle .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + .4rem); inset-inline-start: 0; min-width: 200px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: none; }
.sub a { display: flex; width: 100%; }
.has-sub.open .sub, .has-sub:focus-within .sub { display: block; }
@media (hover: hover) and (min-width: 1081px) { .has-sub:hover .sub { display: block; } .has-sub::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: .6rem; } }
.has-sub.open .sub-toggle .icon { transform: rotate(180deg); }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--olive); color: var(--olive); }
.lang-switch { padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--olive-800); background: var(--paper); }
.lang-switch[lang="ar"] { font-family: var(--arabic); font-size: 1rem; }
.lang-switch[lang="en"] { font-family: var(--sans); }
.lang-switch:hover { border-color: var(--olive); }
.menu-btn { display: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-only { display: none; }
.search-panel { border-top: 1px solid var(--line); background: var(--paper); }
.search-form { display: flex; align-items: center; gap: .75rem; padding-block: .9rem; }
.search-form > .icon { color: var(--muted); }
.search-form input { flex: 1; border: 0; font: inherit; font-size: 1.1rem; background: transparent; padding: .5rem 0; color: var(--ink); }
.search-form input:focus { outline: none; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-grid; }
  .header-donate { display: none; }
  .nav-mobile-only { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 80px); overflow: auto; display: none; margin: 0; }
  .menu-open .nav { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.5rem; gap: 0; }
  .nav a, .sub-toggle { width: 100%; padding: .85rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-inline-start: .9rem; }
  .sub { position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; background: transparent; }
  html[dir="rtl"] .sub { padding: 0 1rem 0 0; }
  .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
}
@media (max-width: 560px) {
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1.08rem; }
  .brand img { width: 44px; height: 44px; }
  .header-inner { gap: .6rem; }
  .lang-switch { padding: .4rem .6rem; font-size: .85rem; }
}

/* Flash */
.flashes { padding-top: 1.25rem; }
.flash { padding: .9rem 1.1rem; border-radius: 10px; margin: 0 0 .5rem; font-weight: 500; }
.flash-success { background: #eaf2df; color: #2f4413; border: 1px solid #c9dbb0; }
.flash-error { background: #fbeceb; color: #7a1f1a; border: 1px solid #efc4c0; }

/* Hero */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--olive-900); border-bottom: 6px solid var(--gold); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(27, 31, 9, .94) 0%, rgba(46, 52, 16, .86) 45%, rgba(72, 81, 27, .55) 100%); }
html[dir="rtl"] .hero-bg::after { background: linear-gradient(-100deg, rgba(27, 31, 9, .94) 0%, rgba(46, 52, 16, .86) 45%, rgba(72, 81, 27, .55) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero-bismillah { font: 400 clamp(1.5rem, 1.4vw + 1rem, 2.1rem)/1.6 var(--quran); color: var(--gold-bright); margin: 0 0 .75rem; }
.hero h1 { color: #fff; margin-bottom: .35em; text-wrap: balance; }
.hero-tagline { font: 500 clamp(1.15rem, .8vw + .9rem, 1.45rem)/1.4 var(--display); color: var(--gold-soft); margin-bottom: 1.4rem; }
html[lang="ar"] .hero-tagline { font-family: var(--arabic); }
.hero-address { display: flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .78); margin-bottom: 2rem; }
.hero-address .icon { color: var(--gold-bright); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Prayer card */
.prayer-card { background: var(--paper); color: var(--text); border-radius: 20px; padding: 1.5rem 1.6rem 1.25rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); position: relative; overflow: hidden; }
.prayer-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--gold); }
.prayer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.prayer-head h2 { font-size: 1.5rem; margin: 0 0 .15rem; }
.prayer-date { margin: 0; font-size: .9rem; color: var(--muted); display: flex; flex-direction: column; line-height: 1.45; }
.prayer-date span { color: var(--olive); font-weight: 500; }
.prayer-mark { color: var(--gold); }
.prayer-mark .icon { width: 2.1rem; height: 2.1rem; }
.prayer-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prayer-table th, .prayer-table td { padding: .62rem .4rem; text-align: start; border-bottom: 1px solid var(--line); }
.prayer-table thead th { font: 600 .76rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
html[lang="ar"] .prayer-table thead th { font-family: var(--arabic); font-size: .9rem; letter-spacing: 0; }
.prayer-table td { text-align: end; font-weight: 500; color: var(--ink); white-space: nowrap; }
.prayer-table td:last-child { font-weight: 600; color: var(--olive); }
.prayer-table tbody th { font-weight: 600; color: var(--ink); }
.prayer-table tr.is-sunrise :is(th, td) { color: var(--muted); font-weight: 400; font-size: .92rem; }
.prayer-table tr.is-next { background: var(--olive); }
.prayer-table tr.is-next :is(th, td) { color: #fff; border-color: transparent; }
.prayer-table tr.is-next td:last-child { color: var(--gold-bright); }
.prayer-table tr.is-next th { border-start-start-radius: 10px; border-end-start-radius: 10px; padding-inline-start: .75rem; }
.prayer-table tr.is-next td:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; padding-inline-end: .75rem; }
.next-tag { display: inline-block; margin-inline-start: .4rem; padding: .05rem .5rem; border-radius: 999px; background: var(--gold-bright); color: var(--olive-950); font-size: .7rem; font-weight: 700; vertical-align: 1px; }
.jumuah { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 0; padding: .75rem 1rem; border-radius: 12px; background: var(--sand); color: var(--olive-800); }
.jumuah.is-today { background: var(--gold-soft); }
.jumuah .icon { color: var(--olive); }
.prayer-empty { color: var(--muted); }

/* About band */
.about-band { background: linear-gradient(100deg, var(--olive) 0%, var(--olive-900) 100%); color: rgba(255, 255, 255, .86); }
html[dir="rtl"] .about-band { background: linear-gradient(-100deg, var(--olive) 0%, var(--olive-900) 100%); }
.about-band h2 { color: #fff; }
.about-band .text-link { color: #fff; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-text { font-size: 1.08rem; }
.about-figure { margin: 0; position: relative; }
.about-figure img { border-radius: 18px 18px 120px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
html[dir="rtl"] .about-figure img { border-radius: 18px 18px 18px 120px; }
.about-figure figcaption { position: absolute; inset-inline-start: -1.2rem; bottom: 1.5rem; background: var(--gold-bright); color: var(--olive-950); padding: .8rem 1.2rem; border-radius: 12px; box-shadow: var(--shadow); line-height: 1.25; }
.about-figure .since { display: block; font-size: .8rem; font-weight: 500; }
.about-figure strong { font: 700 1.7rem var(--display); }
.lattice-strip { height: 64px; background: var(--olive-900) var(--lattice) center / 56px repeat; border-bottom: 1px solid rgba(201, 162, 74, .4); }

/* Features / programs */
.features { background: var(--cream) var(--lattice-faint) center / 56px; }
.feature-grid { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; text-align: center; box-shadow: 0 1px 2px rgba(31, 34, 20, .04); }
.feature-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--olive); color: var(--gold-bright); margin-bottom: 1rem; box-shadow: 0 0 0 5px var(--olive-100); }
.feature-icon .icon { width: 28px; height: 28px; }
.feature h3 { margin-bottom: .3rem; }
.feature-when { color: var(--olive); font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.feature p:last-child { margin-bottom: 0; font-size: .95rem; }

/* Verse band */
.verse-band { background: var(--olive-950) var(--lattice) center / 56px; color: #fff; position: relative; isolation: isolate; }
.verse-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(27, 31, 9, .9) 30%, rgba(27, 31, 9, .97) 75%); }
.verse-ar { font: 400 clamp(1.7rem, 2vw + 1rem, 2.6rem)/1.9 var(--quran); color: var(--gold-bright); margin: 0 0 .5rem; }
.verse-en { font: italic 400 1.15rem/1.6 var(--display); color: rgba(255, 255, 255, .85); max-width: 46ch; margin-inline: auto; }
.verse-ref { color: var(--gold); font-weight: 600; font-size: .92rem; margin-bottom: 2rem; }

/* Reviews */
.reviews-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; text-align: start; }
.reviews-head h2 { margin-bottom: .3rem; }
.rating-summary { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--muted); flex-wrap: wrap; }
.rating-summary strong { color: var(--ink); font-size: 1.1rem; }
.stars { display: inline-flex; color: #e3a92b; gap: 1px; }
.stars .icon { width: 1.1rem; height: 1.1rem; }
.stars-sm .icon { width: .9rem; height: .9rem; }
.review-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; }
.review-top { display: flex; gap: .8rem; align-items: center; margin-bottom: .9rem; }
.review-top img, .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar { display: inline-grid; place-items: center; background: var(--olive-100); color: var(--olive); font-weight: 700; }
.avatar-lg { width: 100%; height: 100%; font-size: 3rem; border-radius: 0; }
.review-top div { display: flex; flex-direction: column; }
.review-top strong { color: var(--ink); line-height: 1.3; }
.review-body { flex: 1; font-size: .95rem; white-space: pre-line; }
.review-date { margin: 0; font-size: .82rem; color: var(--muted); }

/* Visit */
.visit { background: var(--sand); }
.visit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.map-frame { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--olive-100); aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; }
.contact-list .icon { margin-top: .25em; color: var(--gold); }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list-dark { color: var(--ink); }
.contact-list-dark .icon { color: var(--olive); }

/* Page hero */
.page-hero { background: var(--olive-900) var(--lattice) center / 56px; color: #fff; position: relative; isolation: isolate; padding-block: clamp(3rem, 6vw, 4.75rem); border-bottom: 4px solid var(--gold); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(72, 81, 27, .95) 0%, rgba(35, 40, 12, .9) 55%, rgba(27, 31, 9, .8) 100%); }
html[dir="rtl"] .page-hero::before { background: linear-gradient(-90deg, rgba(72, 81, 27, .95) 0%, rgba(35, 40, 12, .9) 55%, rgba(27, 31, 9, .8) 100%); }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .lead { color: rgba(255, 255, 255, .8); max-width: 60ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .9rem; color: rgba(255, 255, 255, .7); margin-bottom: 1rem; }
.crumbs a { color: var(--gold-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .icon { width: .9rem; height: .9rem; opacity: .6; }
html[dir="rtl"] .crumbs .icon { transform: scaleX(-1); }

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose { font-size: 1.07rem; color: var(--text); max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { font-size: 1.55rem; margin-top: 2rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8rem; color: var(--olive-800); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; background: var(--paper); border-inline-start: 4px solid var(--gold); border-radius: 0 12px 12px 0; font: italic 1.12rem/1.65 var(--display); color: var(--ink); }
html[dir="rtl"] .prose blockquote { border-radius: 12px 0 0 12px; }
html[lang="ar"] .prose blockquote { font-family: var(--arabic); font-style: normal; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--gold); }
.prose a { font-weight: 500; }
.prose .ar, .prose [lang="ar"] { font-family: var(--quran); font-size: 1.4em; line-height: 1.9; }
.prose img { border-radius: 12px; margin: 1.5rem 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.prose-sm { font-size: 1rem; }
.article-aside { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.aside-card h2 { font-size: 1.2rem; }
.aside-card p { font-size: .95rem; }
.aside-links { display: grid; border-top: 1px solid var(--line); }
.aside-links a { padding: .75rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.aside-links a:hover, .aside-links a[aria-current="page"] { color: var(--olive); }
.aside-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-inline-start: .75rem; }

/* Team */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 280px)); gap: 1.75rem; justify-content: center; }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem 1.75rem; text-align: center; }
.person-photo { width: 156px; height: 156px; margin: 0 auto 1.25rem; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold); background: var(--olive-100); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h2 { font-size: 1.35rem; margin-bottom: .2rem; }
.person-role { color: var(--olive); font-weight: 600; margin-bottom: .6rem; }
.person-bio { font-size: .95rem; margin: 0; }

/* Programs page */
.programs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.programs-layout aside { position: sticky; top: 100px; }
.programs-layout .prayer-card { box-shadow: var(--shadow); border: 1px solid var(--line); }
.program-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.program { display: flex; gap: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; scroll-margin-top: 100px; }
.program .feature-icon { width: 56px; height: 56px; margin: 0; }
.program h2 { font-size: 1.3rem; margin-bottom: .25rem; }
.program-when { display: flex; align-items: center; gap: .4rem; color: var(--olive); font-weight: 600; margin-bottom: .6rem; font-size: .95rem; }
.program-when .icon { width: 1rem; height: 1rem; }
.program p:last-child { margin-bottom: 0; }
.program:target { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

/* Forms */
.ask-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow); scroll-margin-top: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .95rem; }
.req { color: #a5372e; }
.optional { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field input, .field textarea, .search-inline input { width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .8rem .95rem; transition: border-color .15s, box-shadow .15s, background .15s; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus, .search-inline input:focus { outline: none; border-color: var(--olive); background: var(--paper); box-shadow: 0 0 0 4px rgba(72, 81, 27, .14); }
.field.has-error input, .field.has-error textarea { border-color: #a5372e; }
.field-error { color: #a5372e; font-size: .88rem; margin: .35rem 0 0; }
.form-note { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .9rem; }
.form-note .icon { color: var(--olive); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-aside { display: grid; gap: 1.5rem; }

/* Donate */
.donate-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.donate-methods { display: grid; gap: 1.25rem; }
.method { display: flex; gap: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem; box-shadow: var(--shadow); }
.method-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--olive); color: var(--gold-bright); flex: none; }
.method h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.method p { margin-bottom: .6rem; }
.copy-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 0; }
.copy-row strong { font: 700 1.35rem var(--display); color: var(--ink); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line-strong); background: var(--cream); border-radius: 999px; padding: .35rem .8rem; font: 500 .85rem var(--sans); color: var(--olive); cursor: pointer; }
html[lang="ar"] .copy-btn { font-family: var(--arabic); }
.copy-btn:hover { border-color: var(--olive); }
.copy-btn.copied { background: var(--olive); color: #fff; border-color: var(--olive); }
.copy-btn .icon { width: 1rem; height: 1rem; }
.bank-details { margin: 0; display: grid; gap: .9rem; }
.bank-details dt { font-size: .85rem; color: var(--muted); }
.bank-details dd { margin: 0; }
.donate-aside { background: var(--olive-950) var(--lattice) center / 56px; color: #fff; border-radius: 18px; padding: 2.25rem 1.75rem; text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.donate-aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(27, 31, 9, .9); }
.donate-aside .verse-ar { font-size: 1.6rem; }
.donate-aside .verse-ref { margin: 0; }

/* Search */
.search-inline { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.search-inline input { background: var(--paper); }
.result-note { color: var(--muted); }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.results a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; text-decoration: none; color: var(--text); }
.results a:hover { border-color: var(--olive); }
.results h2 { font-size: 1.15rem; margin-bottom: .25rem; color: var(--olive-800); }
.results p { margin: 0; font-size: .95rem; }
.empty { color: var(--muted); }

/* Footer */
.site-footer { background: var(--olive-800) var(--lattice) center / 56px; color: rgba(255, 255, 255, .78); position: relative; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(35, 40, 12, .93); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.site-footer h2 { font-size: 1.1rem; color: var(--gold-bright); margin-bottom: 1rem; }
.brand-light strong { color: #fff; }
.brand-light img { box-shadow: 0 0 0 2px var(--olive-800), 0 0 0 3.5px var(--gold); }
.footer-about p { margin-top: 1rem; font-style: italic; font-family: var(--display); color: var(--gold-soft); }
html[lang="ar"] .footer-about p { font-style: normal; font-family: var(--arabic); }
.site-footer .contact-list { color: rgba(255, 255, 255, .85); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-links a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-links a:hover { color: var(--gold-bright); }
.socials { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 1.25rem 0 0; }
.socials a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.socials a:hover { background: var(--gold-bright); color: var(--olive-950); border-color: var(--gold-bright); }
.footer-bottom { border-top: 1px solid rgba(201, 162, 74, .3); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; font-size: .88rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--gold-soft); }

/* Popup */
.popup { border: 0; padding: 0; border-radius: 16px; max-width: min(92vw, 720px); background: transparent; overflow: visible; }
.popup::backdrop { background: rgba(15, 17, 5, .72); }
.popup img { border-radius: 16px; max-height: 85vh; width: auto; }
.popup-close { position: absolute; top: -14px; inset-inline-end: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .visit-grid, .article-layout, .programs-layout, .ask-layout, .donate-layout { grid-template-columns: 1fr; }
  .article-aside, .programs-layout aside { position: static; }
  .about-figure { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .prayer-card { padding: 1.25rem 1.1rem 1rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .program { flex-direction: column; gap: .9rem; }
  .about-figure figcaption { inset-inline-start: .75rem; }
  .search-inline { flex-direction: column; }
}
@media print { .site-header, .site-footer, .announce, .hero-bg { display: none; } .hero { color: #000; background: none; } }
.hero-bismillah { text-align: left; }
html[dir="rtl"] .hero-bismillah { text-align: right; }
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .feature { padding: 1.25rem .8rem; }
  .feature p:not(.feature-when) { display: none; }
  .feature-icon { width: 54px; height: 54px; }
  .feature h3 { font-size: 1.05rem; }
}
