:root {
  color-scheme: light;
  --ink: #1d3029;
  --green: #176b52;
  --green-deep: #104a3b;
  --green-soft: #eaf2ec;
  --gold: #c7a65d;
  --cream: #f7f6ef;
  --paper: #fffefa;
  --line: #e4e8df;
  --muted: #77837b;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-card: 0 12px 34px rgba(19, 53, 40, .07);
  --shadow-hover: 0 18px 42px rgba(19, 53, 40, .12);
}

html { scroll-padding-top: 96px; }
body {
  color: var(--ink);
  background: radial-gradient(ellipse at 90% 0%, rgba(221, 232, 219, .55), transparent 38%), var(--cream);
  font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif;
  line-height: 1.85;
}
img, video, canvas, svg { max-width: 100%; }
::selection { color: #fff; background: var(--green); }
a { color: var(--green); transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
a:hover { color: var(--green-deep); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(191, 150, 83, .68); outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 48px)); }

/* Shared site header and mobile navigation */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border: 0;
  border-bottom: 1px solid rgba(216, 230, 221, .9);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 24px rgba(20, 57, 42, .055);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.site-header__inner { display: flex; align-items: center; min-height: 78px; gap: 10px; }
.site-header .brand { gap: 11px; color: var(--ink); font-size: 20px; white-space: nowrap; }
.site-header .brand img { width: 46px; height: 46px; border-radius: 14px; }
.site-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; white-space: nowrap; }
.site-nav a {
  padding: 7px 8px;
  border-radius: 999px;
  color: #52645b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green-deep); background: var(--green-soft); }
.site-language-switch { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; min-width: 0; margin-inline-start: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--green-deep); z-index: 40; }
.site-language-switch:focus-within { outline: 3px solid rgba(191, 150, 83, .35); outline-offset: 2px; }
.site-language-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 12px; border: 0; border-radius: inherit; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.site-language-trigger:hover { background: #f4f8f5; color: var(--ink); box-shadow: none; transform: none; }
.site-language-current-flag,.site-language-option-flag { font-size: 16px; line-height: 1; }
.site-language-current-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.site-language-chevron { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.site-language-switch.is-open .site-language-chevron { transform: rotate(180deg); }
.site-language-menu { position: fixed; inset: auto; z-index: 1000; display: grid; grid-template-rows: auto minmax(0,1fr) auto; width: 270px; max-width: calc(100vw - 24px); max-height: min(390px, 70vh); box-sizing: border-box; overflow: hidden; border: 1px solid #e4ebe6; border-radius: 16px; background: #fff; box-shadow: 0 18px 48px rgba(18,48,38,.18),0 2px 8px rgba(18,48,38,.06); }
.site-language-menu[hidden] { display: none; }
.site-language-menu-head { padding: 14px 14px 11px; border-bottom: 1px solid #edf1ee; }
.site-language-menu-head strong { display: block; margin-bottom: 9px; color: var(--ink); font-size: 13px; font-weight: 700; }
.site-language-search { width: 100%; height: 36px; padding: 7px 10px; border: 1px solid #e2e9e4; border-radius: 9px; outline: 0; background: #f8faf9; color: var(--ink); font: inherit; font-size: 12px; }
.site-language-search:focus { border-color: #82ad99; background: #fff; box-shadow: 0 0 0 3px rgba(14,92,75,.08); }
.site-language-options { overflow: auto; padding: 6px; overscroll-behavior: contain; }
.site-language-option-form { margin: 0; }
.site-language-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: #35483e; text-align: start; font: inherit; font-size: 13px; cursor: pointer; transition: background .15s,color .15s; }
.site-language-option:hover,.site-language-option:focus-visible { outline: 0; background: #f4f8f5; }
.site-language-option[aria-current="true"] { background: var(--green-soft); color: var(--green-deep); font-weight: 700; }
.site-language-check { margin-inline-start: auto; color: var(--green); font-weight: 700; }
.site-language-empty { padding: 18px 12px; color: var(--muted); text-align: center; font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-toggle { display: none; }
.site-notifications-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--green-deep); background: #fff; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.site-notifications-link:hover { color: var(--green-deep); background: var(--green-soft); }
.site-notifications-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top-ad-wrap .adspace { min-height: 0; margin: 0; }
.site-main { display: block; width: 100%; max-width: none; min-height: 58vh; }
.notification-page { max-width: 980px; padding-block: 38px 64px; }
.notification-page__heading { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding: 24px; border: 1px solid #dcebe2; border-radius: 22px; background: linear-gradient(135deg, #e7f3eb, #fff 72%); }
.notification-page__icon { display: grid; width: 58px; height: 58px; flex: 0 0 58px; place-items: center; border-radius: 18px; color: #fff; background: var(--green-deep); }
.notification-page__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-page__heading .eyebrow { margin: 0 0 4px; color: #8b7442; font-size: 13px; font-weight: 800; }
.notification-page__heading h1 { margin: 0; color: var(--ink); font-size: clamp(24px, 4vw, 34px); }
.notification-page__heading p:last-child { margin: 5px 0 0; color: #708078; }
.notification-page__list { display: grid; gap: 14px; }
.notification-card { display: grid; grid-template-columns: minmax(0, 1fr) 220px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(20, 57, 42, .05); }
.notification-card__image { width: 100%; height: 100%; min-height: 170px; object-fit: cover; }
.notification-card__content { padding: 20px 22px; }
.notification-card__content time { color: #89968f; font-size: 12px; }
.notification-card__content h2 { margin: 8px 0; color: var(--green-deep); font-size: 20px; }
.notification-card__content p { margin: 0; color: #52645b; line-height: 1.9; overflow-wrap: anywhere; }
.notification-page__empty { padding: 48px 20px; border: 1px dashed #cbd9d0; border-radius: 20px; background: #fff; text-align: center; }
.notification-page__empty strong { color: var(--green-deep); font-size: 18px; }
.notification-page__empty p { margin: 8px 0 0; color: #708078; }

/* Page headings */
.intro, .intro.intro-v2 {
  isolation: isolate;
  margin: 24px auto 0;
  padding: clamp(36px, 6vw, 68px) 24px;
  overflow: hidden;
  border: 1px solid #dcebe2;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e7f3eb 0%, #fbfdfb 58%, #f6efe1 100%);
  box-shadow: var(--shadow-card);
}
.intro.intro-v2 {
  position: relative;
  min-height: 300px;
  display: grid;
  align-items: center;
  border: 1px solid rgba(199, 166, 93, .38);
  background:
    radial-gradient(ellipse at 12% 110%, rgba(199,166,93,.18), transparent 38%),
    radial-gradient(ellipse at 88% -8%, rgba(74,139,111,.28), transparent 40%),
    linear-gradient(125deg, #0b392f 0%, #104a3b 52%, #176b52 100%);
  box-shadow: 0 20px 48px rgba(11, 57, 47, .17);
}
.intro.intro-v2::before, .intro.intro-v2::after { color: rgba(231, 211, 160, .12); }
.intro.intro-v2 h1 { color: #fffdf4; }
.intro.intro-v2 p, .intro.intro-v2 .intro-sub { color: rgba(255, 253, 244, .82); }
.intro.intro-v2 .wrap { position: relative; z-index: 1; }
.intro.intro-v2 h1::after { display: block; width: 64px; height: 3px; margin: 16px auto 0; border-radius: 3px; background: var(--gold); content: ""; }
.home-hero { min-height: 420px; padding: clamp(42px, 6vw, 68px) 24px; }
.home-hero__inner { display: grid; min-height: 290px; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); align-items: center; gap: 28px; text-align: right; }
.home-hero__copy { max-width: 690px; }
.home-hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #e7d39f; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.home-hero__eyebrow i, .home-hero__trust i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.home-hero .home-hero__copy h1 { margin: 12px 0 0; font-size: clamp(40px, 6vw, 62px); letter-spacing: -.04em; }
.home-hero .home-hero__copy h1::after { margin: 13px 0 0; }
.home-hero .home-hero__copy .intro-sub { max-width: 600px; margin: 16px 0 0; font-size: clamp(16px, 2vw, 19px); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.home-hero__actions a { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid transparent; border-radius: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.home-hero__actions a:hover { transform: translateY(-2px); }
.home-hero__primary { background: linear-gradient(135deg, #ddc27c, #c7a65d); box-shadow: 0 9px 24px rgba(4, 31, 25, .25); color: #173c31 !important; }
.home-hero__primary span { font-size: 20px; }
.home-hero__primary b { font-size: 18px; }
.home-hero__secondary { border-color: rgba(255,255,255,.3) !important; background: rgba(255,255,255,.07); color: #fffdf4 !important; }
.home-hero__trust { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: rgba(255,253,244,.68); font-size: 12px; }
.home-hero__trust i { width: 3px; height: 3px; opacity: .75; }
.home-hero__art { position: relative; display: grid; min-height: 290px; place-items: center; isolation: isolate; }
.home-hero__halo { position: absolute; z-index: -1; width: min(290px, 90%); aspect-ratio: 1; border: 1px solid rgba(231,211,160,.3); border-radius: 50%; background: radial-gradient(circle, rgba(199,166,93,.16), rgba(199,166,93,.03) 62%, transparent 63%); box-shadow: 0 0 70px rgba(199,166,93,.12); }
.home-hero__arch { position: relative; display: grid; width: 190px; height: 242px; place-items: center; overflow: hidden; border: 1px solid rgba(231,211,160,.58); border-radius: 100px 100px 24px 24px; background: linear-gradient(155deg, rgba(255,255,255,.13), rgba(255,255,255,.025)); box-shadow: inset 0 0 0 8px rgba(255,255,255,.025), 0 20px 48px rgba(2,28,22,.23); transform: rotate(3deg); }
.home-hero__arch::before { position: absolute; inset: 10px; border: 1px solid rgba(231,211,160,.2); border-radius: 92px 92px 17px 17px; content: ""; }
.home-hero__book { display: flex; width: 126px; height: 158px; align-items: center; flex-direction: column; justify-content: center; border: 1px solid rgba(235,215,164,.64); border-radius: 8px 15px 15px 8px; background: linear-gradient(145deg,#175a45,#0b382e); box-shadow: 7px 10px 22px rgba(0,0,0,.26), inset 4px 0 0 rgba(231,211,160,.17); color: #f4e5b7; text-align: center; transform: rotate(-3deg); }
.home-hero__book-mark { margin-bottom: 9px; color: var(--gold); font-size: 26px; }
.home-hero__book strong { font-family: Georgia,serif; font-size: 19px; line-height: 1.55; }
.home-hero__book small { margin-top: 8px; color: rgba(255,253,244,.65); font-size: 10px; }
.home-hero__star { position: absolute; color: #e7d39f; text-shadow: 0 0 18px rgba(231,211,159,.65); }
.home-hero__star--one { top: 22px; right: 18%; font-size: 24px; }
.home-hero__star--two { bottom: 28px; left: 16%; font-size: 19px; }
.home-hero__season-image { display:block; width:min(100%,520px); height:290px; object-fit:cover; object-position:center; border:1px solid rgba(231,211,160,.55); border-radius:30px; box-shadow:0 22px 54px rgba(2,28,22,.28); }
.intro::before, .intro::after { z-index: -1; color: rgba(23, 99, 78, .075); font-size: clamp(60px, 10vw, 112px); }
.intro h1 { color: var(--green-deep); font-family: Tahoma, Arial, sans-serif; font-size: clamp(29px, 4.4vw, 44px); font-weight: 800; line-height: 1.4; }
.intro p, .intro .intro-sub { max-width: 760px; margin: 10px auto 0; color: #5c6e64; font-size: clamp(15px, 2vw, 18px); line-height: 1.9; }
h1, h2, h3 { color: var(--ink); line-height: 1.5; }
h2 { font-size: clamp(22px, 3vw, 30px); }
.section { padding-block: clamp(24px, 4vw, 46px); }
.crumb, .surah-breadcrumb { color: var(--muted); }
.crumb a, .surah-breadcrumb a { color: var(--green); text-decoration: none; }

/* Buttons, search and form controls */
.btn, .button, .search button, button, .btn-primary {
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--green);
  box-shadow: 0 5px 13px rgba(23, 99, 78, .14);
  color: #fff;
  font-weight: 700;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:hover, .button:hover, .search button:hover, button:hover, .btn-primary:hover {
  background: var(--green-deep);
  box-shadow: 0 9px 20px rgba(23, 99, 78, .2);
  transform: translateY(-1px);
}
.btn.alt { background: #a77a35; }
.btn.danger { background: #b33d3d; }
.search { gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); }
.search input { min-height: 48px; padding-inline: 16px; color: var(--ink); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  border: 1px solid #d7e2db;
  border-radius: 11px;
  background-color: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: #71a48d; box-shadow: 0 0 0 4px rgba(23, 99, 78, .09); outline: 0; }
label { color: #33483d; font-weight: 700; }

/* Common cards and content surfaces */
.service-card, .article-card, .wordlist a, .alphabet a, .name-card, .source-card,
.athkar-card, .tool-card, .faq-item, .sidebox, .contact-form, .contact-info .info-box,
.source-page, .sources-page, .single-article, .calendar-nav, .calendar-grid,
.event-card, .prayer-card, .about-cta, .about-note, .privacy-page, .terms-page,
.managed-content__card, .zakat-calculator, .interpretation, .source, .result-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 6px 22px rgba(20, 57, 42, .045);
}
.service-card, .article-card, .wordlist a, .alphabet a, .name-card, .source-card {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover, .article-card:hover, .wordlist a:hover, .alphabet a:hover, .name-card:hover, .source-card:hover {
  border-color: #a9cdb8;
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.services-title { margin: 0 0 24px; color: var(--green-deep); font-weight: 800; text-align: center; }
.services-grid { display: grid; width: 100%; max-width: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 16px; }
.service-card { min-height: 230px; padding: 24px 22px; text-align: right; }
.service-card { border-color: #e5e8df; background: linear-gradient(145deg, #fffefa, #fff); }
.service-card { position: relative; min-height: 244px; overflow: hidden; border-radius: 22px; }
.service-card::after { position: absolute; right: -30px; bottom: -52px; width: 120px; height: 120px; border: 1px solid rgba(199,166,93,.18); border-radius: 50%; content: ""; pointer-events: none; }
.service-card:hover { border-color: rgba(199,166,93,.65); }
.service-icon { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 0 14px; border-radius: 17px; background: var(--green-soft); font-size: 29px; }
.service-icon { box-shadow: inset 0 0 0 1px rgba(16,74,59,.04); }
.service-card h3 { margin-bottom: 7px; font-size: 18px; }
.service-card p { line-height: 1.8; }
.service-cta { color: var(--green); }
.articles-grid, .quran-grid, .names-grid, .sources-grid { gap: 16px; }
.articles-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.quran-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.names-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
.tools-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; max-width: 1080px; }
.article-card, .surah-card, .source-card { border-radius: var(--radius-md); }
.article-card::before { background: var(--green); }
.article-cat, .article-cat-badge { border-radius: 999px; background: var(--green-soft); color: var(--green-deep); }
.article-card h3, .article-header h1, .article-body h2, .article-body h3 { color: var(--ink); }
.article-body blockquote { border-color: var(--green); background: #eff7f1; color: var(--green-deep); }
.surah-card { padding: 16px 18px; }
.surah-number, .name-number { background: var(--green-soft); color: var(--green-deep); }
.surah-info b, .name-title { color: var(--green-deep); }
.name-card.read { border-color: #a6d4b7; background: #f2faf4; }
.name-card.read .name-number, .name-card.read .name-read-btn { background: var(--green); }
.name-explain { border-color: var(--green); background: #f5faf6; }
.wordlist { gap: 10px; }
.wordlist a { min-height: 62px; padding: 12px 16px; }
.alphabet a { border-radius: 14px; }
.lettersbar a { border-radius: 10px; }
.lettersbar a:hover, .lettersbar a.on { background: var(--green); border-color: var(--green); }

/* Topic tabs, counters, FAQ, calculator and calendar widgets */
.athkar-tabs, .zakat-tabs, .tool-tabs, .articles-categories { gap: 9px; }
.athkar-tab, .zakat-tab, .tool-tab, .cat-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #41564a;
  font-weight: 700;
}
.athkar-tab.active, .zakat-tab.active, .tool-tab.active, .cat-btn.active { border-color: var(--green); background: var(--green); color: #fff; }
.athkar-card { padding: clamp(18px, 3vw, 28px); }
.athkar-title { color: var(--green-deep); }
.athkar-text { line-height: 2.15; }
.athkar-virtue { border-color: #d8b76e; background: #fff9e9; }
.athkar-btn { min-height: 88px; border-radius: 20px; background: var(--green); }
.athkar-btn.completed, .name-read-btn { background: var(--green); }
.faq { gap: 12px; }
.faq-item { border-radius: 14px; }
.faq-item summary { color: var(--green-deep); font-weight: 800; }
.faq-item[open] { border-color: #9dc7ad; box-shadow: var(--shadow-card); }
.faq-icon, .faq-item[open] .faq-icon { background: var(--green-soft); color: var(--green-deep); }
.faq-item[open] .faq-icon { transform: none; }
.faq-answer { color: #52635a; }
.tool-card, .zakat-calculator { padding: clamp(18px, 3vw, 28px); }
.tool-card h2, .zakat-info h3, .tool-result h3 { color: var(--green-deep); }
.zakat-info { border-color: #d5e8dc; background: #f3f9f5; }
.tool-result { border-color: #d5e8dc; background: #f3f9f5; }
.result-big { color: var(--green); }
.tool-result, .result-box { border-radius: 14px; }
.result-box { border-color: #b9ddc5; background: #eff8f1; }
.result-box p, .result-box h2, .result-box h3 { color: var(--green-deep); }
.zakat-disclaimer { border-color: #ead8ac; border-radius: 14px; background: #fff9e9; }
.calendar-grid { overflow: hidden; border-radius: 18px; }
.month-title, .month-events-box { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); }
.month-title h2, .month-events-box h3, .event-content strong { color: var(--green-deep); }
.cal-header, .calendar-header { background: #edf5f0; color: var(--green-deep); font-weight: 800; }
.cal-day { min-height: 90px; background: #fff; }
.cal-day:hover { background: #f1f8f3; }
.cal-day.cal-today, .cal-day.today { outline: 2px solid #68a486; outline-offset: -2px; }
.cal-day.cal-event { border-color: #e5cc91; background: #fff9e9; }
.cal-day.cal-today::before, .event-date, .cal-nav-btn { background: var(--green); }
.cal-header-friday { background: #e7f3ed; color: var(--green-deep); }
.month-events-list li { background: #f6faf7; }
.nav-btn, .page-nav { border-color: var(--line); border-radius: 13px; }
.nav-btn-center, .reciter-chip.active { border-color: var(--green); background: var(--green); color: #fff; }
.reciter-chip { border-radius: 12px; }
.mushaf-image { border-color: var(--line); border-radius: 16px; box-shadow: var(--shadow-card); }
.prayer-card { border-color: #d5e8dc; }
.prayer-card { background: linear-gradient(145deg, #fffefa, #fff); }
.prayer-card { border-radius: 24px; box-shadow: 0 14px 38px rgba(16,74,59,.08); }
.prayer-times-section, .events-section, .services-section { display: block; width: 100%; clear: both; padding-block: 26px; }
.prayer-card { max-width: 1180px; margin-inline: auto; padding: clamp(18px, 3vw, 28px); }
.prayer-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.prayer-header h3 { color: var(--green-deep); }
.prayer-description { margin: 0; color: var(--muted); font-size: 14px; }
.prayer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 12px; }
.prayer-item { border-radius: 14px; background: #f6faf7; }
.prayer-item { padding: 13px 8px; text-align: center; }
.prayer-name { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.prayer-time { display: block; color: var(--green-deep); font-size: 20px; font-weight: 800; }
.prayer-item:hover { background: var(--green-soft); border-color: #aad0b9; }
.hijri-date { padding: 6px 12px; border-radius: 999px; background: #f1f7f3; color: #52645b; font-size: 13px; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; max-width: 1180px; margin: 0 auto; }
.event-card { padding: 22px; text-align: right; }
.event-card h3 { margin: 0 0 8px; color: #6f5527; }
.event-card p { margin: 0; color: #76684e; }
.sidebox { height: 100%; padding: 20px; }
.sidebox h3 { margin-top: 0; color: var(--green-deep); }
.event-card { background: linear-gradient(135deg, #fff9e9, #fff); border-color: #f0dfbd; }
.how-step, .step-num { border-radius: 14px; }

/* Long-form pages, legal copy and notices */
.about-page, .privacy-page, .terms-page, .sources-page, .source-page, .single-article {
  padding: clamp(20px, 4vw, 40px);
}
.about-page h1, .privacy-hero h1, .terms-hero h1, .sources-hero h1, .source-hero h1 { color: var(--green-deep); }
.lead, .privacy-sub, .terms-sub, .sources-sub { color: #53665b; }
.about-stats, .sources-stats { gap: 14px; }
.stat-card { border: 1px solid var(--line); border-radius: 16px; background: #f7fbf8; }
.stat-card b { color: var(--green); }
.privacy-toc, .terms-toc { border: 1px solid var(--line); border-radius: 16px; background: #f7fbf8; }
.privacy-section, .terms-section { scroll-margin-top: 96px; }
.privacy-icon, .terms-icon { border-radius: 13px; background: var(--green-soft); }
.article-body, .content, .interpretation, .about-section { color: #34483d; line-height: 2; }
.article-body img { max-width: 100%; height: auto; border-radius: 14px; }
.source-count, .result-count { color: var(--muted); }
.empty { border: 1px dashed #c7d8cd; border-radius: 16px; background: #f8fbf9; color: var(--muted); }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.result-count { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.source-icon, .source-icon-lg { border-radius: 16px; background: var(--green-soft); color: var(--green-deep); }
.privacy-cta, .terms-cta { border: 1px solid var(--line); border-radius: var(--radius-md); background: #f7fbf8; }
.btn-print { color: var(--green-deep); }
.page-selector select, .cal-selectors select { min-height: 42px; }
.article-info { flex-wrap: wrap; }
.article-footer { border-color: var(--line); }
.alert, .contact-alert { border-radius: 14px; }
.contact-grid { align-items: start; gap: 20px; }
.contact-form, .contact-info .info-box { padding: clamp(18px, 3vw, 28px); }
.contact-form-wrap h2 { color: var(--green-deep); }
.form-row input, .form-row textarea { width: 100%; min-height: 48px; padding: 12px 14px; }
.form-row textarea { min-height: 150px; }
.source-links a, .privacy-toc a, .terms-toc a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid #dce8e0; background: #132d24; color: #e8f2ec; }
.site-footer .foot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 38px; }
.site-footer .foot-brand b { color: #fff; font-size: 19px; }
.site-footer .foot-brand p { max-width: 390px; margin: 8px 0 0; color: #b8ccc0; }
.site-footer .foot-column { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; min-width: 0; }
.site-footer .foot-column h2 { margin: 0 0 5px; color: #fff; font-size: 19px; font-weight: 700; }
.site-footer .foot-column > a { color: #d8e9df; text-decoration: none; }
.site-footer .foot-column > a:hover { color: #fff; text-decoration: underline; }
.site-footer .foot-follow { gap: 16px; }
.site-footer .foot-social { display:flex; align-items:flex-start; flex-wrap:wrap; gap:10px; }
.site-footer .foot-social a { display:grid; width:40px; height:40px; place-items:center; border:1px solid rgba(255,255,255,.2); border-radius:13px; color:#e7d39f; transition:background .18s ease,color .18s ease,transform .18s ease; }
.site-footer .foot-social a:hover { background:#e7d39f; color:#132d24; transform:translateY(-2px); }
.site-footer .foot-social svg { width:21px; height:21px; }
.site-footer .foot-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .foot-store { display: inline-flex; align-items: center; gap: 9px; min-height: 54px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: #e8f2ec; text-decoration: none; }
.site-footer .foot-store:hover { background: rgba(255,255,255,.08); }
.site-footer .foot-store svg { width: 25px; height: 25px; flex: 0 0 auto; }
.site-footer .foot-store span { display: flex; flex-direction: column; line-height: 1.2; }
.site-footer .foot-store small { color: #b8ccc0; font-size: 10px; }
.site-footer .foot-store strong { font-size: 13px; }
.site-footer .copy { padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.12); color: #b8ccc0; text-align: center; font-size: 13px; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 36px, 760px); }
  .site-header__inner { display: flex; flex-wrap: nowrap; min-height: 70px; gap: 8px; }
  .site-header .brand { min-width: 0; gap: 7px; font-size: 16px; }
  .site-header .brand img { width: 38px; height: 38px; }
  .site-language-switch { margin-inline-start: 10px; }
  .site-language-trigger { min-height: 38px; gap: 6px; padding-inline: 9px; font-size: 12px; }
  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: none;
  }
  .site-notifications-link { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 12px; }
  .site-notifications-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .nav-toggle span { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--green-deep); }
  .nav-toggle:hover { background: var(--green-soft); box-shadow: none; transform: none; }
  .top .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: var(--shadow-card);
  }
  .top .site-nav.is-open { display: flex; }
  .site-nav a { border-radius: 10px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
}

@media (max-width: 600px) {
  .site-header__inner { gap: 7px; }
  .site-header .brand img { width: 34px; height: 34px; }
  .site-header .brand { gap: 5px; font-size: 15px; }
  .site-language-switch { width: auto; height: 38px; margin-inline-start: 0; }
  .site-language-trigger { min-height: 36px; max-width: 112px; gap: 5px; padding-inline: 7px; font-size: 11px; }
  .site-language-current-name { max-width: 58px; }
  .site-language-menu { width: 250px; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  .site-header .brand { gap: 8px; font-size: 17px; }
  .site-header .brand img { width: 40px; height: 40px; }
  .notification-page { padding-block: 22px 44px; }
  .notification-page__heading { gap: 12px; padding: 18px 14px; border-radius: 18px; }
  .notification-page__icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 15px; }
  .notification-card { grid-template-columns: minmax(0, 1fr); }
  .notification-card__image { height: 180px; min-height: 0; }
  .notification-card__content { padding: 17px; }
  .intro, .intro.intro-v2 { margin-top: 14px; padding: 34px 16px; border-radius: 20px; }
  .home-hero { min-height: 0; padding: 34px 18px 30px !important; }
  .home-hero__inner { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-hero__art { display: none; }
  .home-hero--ramadan .home-hero__art { display: grid; min-height: 150px; margin-top: 18px; }
  .home-hero__season-image { width: 100%; height: 170px; border-radius: 20px; }
  .home-hero .home-hero__copy h1 { font-size: 43px; }
  .home-hero .home-hero__copy .intro-sub { font-size: 15px; }
  .home-hero__actions { margin-top: 20px; }
  .home-hero__actions a { min-height: 46px; padding-inline: 14px; font-size: 13px; }
  .home-hero__trust { flex-wrap: wrap; gap: 7px; margin-top: 18px; font-size: 10px; }
  .intro::before, .intro::after { font-size: 58px; }
  .search { align-items: stretch; flex-direction: column; }
  .search button { min-height: 46px; }
  .services-grid, .articles-grid, .quran-grid, .names-grid, .sources-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { width: 100%; min-width: 0; min-height: auto; text-align: center; }
  .service-card .service-icon { margin-inline: auto; }
  .services-title { width: 100%; text-align: center; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .calendar-grid { overflow-x: auto; }
  .cal-day { min-width: 42px; min-height: 66px; padding: 4px; }
  .site-footer .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .home-hero__inner { grid-template-columns: minmax(0, 1fr) 230px; gap: 10px; }
  .home-hero__arch { width: 160px; height: 210px; }
  .home-hero__book { width: 108px; height: 142px; }
}

@media print {
  .site-header, .top-ad-wrap, .site-footer, .nav-toggle, .reciters-section, .audio-card, .page-nav { display: none !important; }
  body { background: #fff; }
  .wrap, .site-main { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.search-form { margin-top: 22px; }
.search-form input { min-height: 52px; }
.search-form button { padding-inline: 24px; }
.mushaf-container { max-width: 900px; margin-inline: auto; text-align: center; }
.mushaf-page-title { margin: 0 0 16px; color: var(--green-deep); font-size: 21px; }
.no-results { color: var(--muted); }
.back-link { color: var(--green); }
.back-link:hover, .name-read-btn:hover, .athkar-btn:hover { background: var(--green-deep); color: #fff; }

/* Homepage highlights use a full-width grid, never the legacy two-column sidebar. */
.home-extras {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-inline: 0;
}
.home-extra-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 15px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.home-extra-card h2 { margin: 0 0 8px; color: var(--green-deep); font-size: 20px; }
.home-extra-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 15px; background: var(--green-soft); font-size: 24px; }
.home-extra-text { margin: 0 0 7px; color: #31463b; font-size: 17px; line-height: 1.9; }
.home-extra-note { margin: 0; color: var(--muted); font-size: 13px; }
.home-extras__ad { grid-column: 1 / -1; min-width: 0; }
.home-extras__ad .ad-box { width: 100%; max-width: 500px !important; }
.home-extras__ad img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
@media (max-width: 700px) { .home-extras { grid-template-columns: minmax(0, 1fr); } .home-extras__ad { grid-column: auto; } }

/* Dashboard-like home layout inspired by the shared app wireframe. */
.services-section .wrap { max-width: 980px; }
.services-title { position: relative; margin: 0 0 18px; padding-bottom: 12px; text-align: right; }
.services-title::after { position: absolute; right: 0; bottom: 0; width: 54px; height: 3px; border-radius: 3px; background: var(--gold); content: ""; }
.services-section .services-grid { max-width: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); gap: 14px; margin-inline: auto; }
.services-section .service-card { display: flex; min-width: 0; min-height: 0; aspect-ratio: 1 / 1; flex-direction: column; align-items: center; gap: 7px; padding: 16px 14px; border-radius: 20px; text-align: center; }
.services-section .service-icon { display: grid; width: 50px; height: 50px; flex: 0 0 50px; place-items: center; margin: 0 0 2px; border-radius: 16px; background: var(--green-deep); color: #efd58e; }
.services-section .service-card h3 { max-width: 100%; margin: 0; font-size: 16px; line-height: 1.4; }
.services-section .service-card p { display: -webkit-box; max-width: 100%; margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.services-section .service-cta { margin-top: auto; padding: 6px 11px; border-radius: 999px; background: #f4efdf; color: var(--green-deep); font-size: 11px; font-weight: 800; white-space: nowrap; }
.services-section .service-card::after { display: block; right: -36px; bottom: -58px; width: 112px; height: 112px; }
.services-section .service-card:hover { background: #fff; box-shadow: 0 12px 28px rgba(16,74,59,.1); }
@media (max-width: 600px) {
  .services-section .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .services-section .service-card { gap: 5px; padding: 10px 8px; border-radius: 17px; }
  .services-section .service-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; font-size: 24px; }
  .services-section .service-card h3 { font-size: 13px; line-height: 1.35; }
  .services-section .service-card p { font-size: 10px; line-height: 1.4; -webkit-line-clamp: 2; }
  .services-section .service-cta { padding: 5px 8px; font-size: 9px; }
  .services-title { text-align: right; }
}
@media (max-width: 370px) {
  .services-section .service-card p { -webkit-line-clamp: 1; }
}
