:root {
    --green: #2e8e39;
    --green-hover: #3ea54a;
    --green-active: #246f2d;
    --green-tint: #eaf6eb;
    --green-tint-2: #eaf6ec;
    --green-line: #cfe9d3;
    --green-line-2: #bfe3c3;
    --green-line-3: #b7e0bd;
    --row: #f6fbf7;
    --yellow: #f5c518;
    --prayer-link: #a8d9ae;
    --text: rgba(0, 0, 0, 0.88);
    --text-2: rgba(0, 0, 0, 0.65);
    --text-3: rgba(0, 0, 0, 0.55);
    --muted: rgba(0, 0, 0, 0.45);
    --disabled: rgba(0, 0, 0, 0.25);
    --surface: #ffffff;
    --page: #f5f5f5;
    --border: #d9d9d9;
    --hairline: #f0f0f0;
    --success-bg: #f6ffed;
    --success-border: #b7eb8f;
    --success-text: #135200;
    --error-bg: #fff2f0;
    --error-border: #ffccc7;
    --danger: #ff4d4f;
    --elevation: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    --ease: cubic-bezier(0.645, 0.045, 0.355, 1);
    --wrap: 1200px;
    --latin: "Lato", sans-serif;
    --urdu: "Noto Nastaliq Urdu", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--urdu);
    font-size: 15px;
    line-height: 2;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--green-hover);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.latin,
.hours-chip,
.brand-en,
.pager,
.prayer-time,
.token-number,
.token-updated,
.meta-date,
.video-meta {
    font-family: var(--latin);
    direction: ltr;
    unicode-bidi: isolate;
}

.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: -40px;
    background: var(--green);
    color: #fff;
    padding: 8px 12px;
    z-index: 100;
}

.skip-link:focus {
    top: 8px;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: 24px;
}

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
    flex: 0 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.1s var(--ease);
}

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 2px 0 rgba(46, 142, 57, 0.1);
}

.btn-primary:hover {
    background: var(--green-hover);
    color: #fff;
}

.btn-primary:active {
    background: var(--green-active);
}

.btn-default {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.btn-default:hover {
    color: var(--green-hover);
    border-color: var(--green-hover);
}

.btn-default:active {
    color: var(--green-active);
    border-color: var(--green-active);
}

.btn-outline {
    background: #fff;
    border-color: var(--green);
    color: var(--green);
}

.btn-outline:hover {
    background: var(--green-tint-2);
    color: var(--green);
}

.header-duty {
    display: inline-flex;
}

.header-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: 100%;
}

.header-actions .btn {
    white-space: nowrap;
}

.nav-list > li.nav-duty {
    display: none;
}

/* Top bar */
.topbar {
    background: var(--green);
    color: #fff;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 48px;
}

.topbar-hours {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 2;
    color: #fff;
}

.topbar-hours .icon {
    width: 15px;
    height: 15px;
}

.hours-chip {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    padding: 0 8px;
    font-weight: 700;
}

.hamd {
    height: 41px;
    width: auto;
    object-fit: contain;
    flex: 1;
    min-width: 200px;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    top: 7px;
}

.social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1;
}

.social a:hover {
    color: #fff;
}

.footer-main .social a {
    color: rgba(255, 255, 255, 0.75);
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand:hover {
    color: var(--text);
}

.brand img {
    width: 65px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.9;
}

.brand-en {
    font-size: 14px;
    color: rgb(0 0 0);
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-top: 10px;
    font-weight: bold;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    padding: 10px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 0;
    background: var(--text);
    border-radius: 1px;
}

.main-nav {
    border-top: 1px solid var(--hairline);
}

.nav-list,
.dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
    padding: 0 16px;
    max-width: var(--wrap);
    margin: 0 auto;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: inline-flex;
    align-items: center;
    padding: 8px 6px;
    font-size: 15px;
    line-height: 2;
    color: var(--text);
    border-bottom: 2px solid transparent;
}

.nav-list > li > a:hover,
.nav-list > li:focus-within > a {
    color: var(--green);
    border-bottom-color: var(--green);
}

.caret {
    font-family: var(--latin);
    font-size: 10px;
    color: var(--muted);
    margin-inline-start: 6px;
}

.dropdown {
    display: none;
    position: absolute;
    inset-inline-start: 0;
    top: 100%;
    z-index: 50;
    min-width: 240px;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    box-shadow: var(--elevation);
}

.nav-list > li:hover > .dropdown,
.nav-list > li:focus-within > .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 2.1;
    white-space: nowrap;
    color: var(--text);
}

.dropdown a:hover,
.dropdown a.is-current {
    background: rgba(0, 0, 0, 0.04);
    color: var(--green);
}

.nav-list > li.nav-duty > a {
    color: #fff;
    background: var(--green);
    border-radius: 8px;
    border-bottom-color: transparent;
    margin-block: 8px;
    height: 40px;
    padding: 0 16px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 2px 0 rgba(46, 142, 57, 0.1);
}

.nav-list > li.nav-duty > a:hover {
    background: var(--green-hover);
    color: #fff;
    border-bottom-color: transparent;
}

/* Page band */
.page-band {
    background: var(--green);
    color: #fff;
}

.page-band .wrap {
    padding-top: 28px;
    padding-bottom: 28px;
}

.crumbs {
    font-size: 13px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.75);
}

.crumbs a {
    color: rgba(255, 255, 255, 0.75);
}

.crumbs a:hover {
    color: #fff;
}

.crumbs .sep {
    margin: 0 8px;
}

.page-band h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 2.1;
    color: #fff;
}

.band-sub,
.band-meta {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.85);
}

.band-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 16px;
    font-size: 13px;
    line-height: 2;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
}

.pill:hover {
    color: var(--green);
    border-color: var(--green-hover);
}

.pill.is-active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.band-meta .meta-date,
.band-meta .meta-date .icon {
    color: rgba(255, 255, 255, 0.85);
}

.band-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
}

.band-meta-item .icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.85);
}

.band-meta-item .meta-date-text {
    font-family: var(--latin);
    direction: ltr;
    unicode-bidi: isolate;
}

.education-intro h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
    line-height: 2;
}

.band-meta .pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 1px 14px;
}

.page-body {
    padding: 28px 0 56px;
}

.page-body.tight {
    padding-top: 24px;
}

.with-side {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.with-side > .card,
.with-side > .stack,
.side-nav {
    min-width: 0;
}

.side-nav {
    padding: 8px;
}

.side-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 12px;
    border-radius: 4px;
    color: var(--text);
    font-size: 14px;
    line-height: 2;
}

.side-nav a:hover {
    background: rgba(0, 0, 0, 0.04);
}

.side-nav a.is-current {
    color: var(--green);
    font-weight: 700;
}

/* Cards and grids */
.card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    overflow: hidden;
}

.card-hover {
    transition: box-shadow 0.2s var(--ease);
}

.card-hover:hover {
    box-shadow: var(--elevation);
}

.grid-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.grid-daily {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.grid-books {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.article-card img,
.daily-card img,
.gallery-card img {
    width: 100%;
    display: block;
    object-fit: cover;
    background: var(--page);
}

.article-card img {
    aspect-ratio: 4 / 3;
}

.daily-figure {
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
}

.daily-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.daily-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 16px 16px;
    flex: 1;
}

.daily-body h3 {
    margin: 0;
    flex: 1;
}

.tag {
    display: inline-flex;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 2;
}

.tag:hover {
    color: inherit;
}

.tag-ayat {
    background: #eaf6eb;
    color: #2e8e39;
    border: 1px solid #a8d9ae;
}

.tag-hadees {
    background: #fffbe6;
    color: #613400;
    border: 1px solid #ffe58f;
}

.tag-quote {
    background: #f9f0ff;
    color: #22075e;
    border: 1px solid #d3adf7;
}

.tag-question {
    background: #e6fffb;
    color: #002329;
    border: 1px solid #87e8de;
}

.section-date {
    font-family: var(--latin);
    direction: ltr;
    unicode-bidi: isolate;
    font-size: 13px;
    color: var(--muted);
}

.gallery-card img {
    aspect-ratio: 4 / 3;
}

.daily-card {
    display: flex;
    flex-direction: column;
}

.daily-body h3,
.daily-body h3 a {
    font-size: 16px;
    line-height: 2.1;
}

.card-body {
    padding: 14px 20px 18px;
}

.card-body h3,
.card-body h3 a {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 2;
    color: var(--text);
}

.daily-card h3,
.gallery-card h3 {
    font-size: 15px;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
    unicode-bidi: isolate;
}

.meta-date .icon {
    width: 12px;
    height: 12px;
}

.more {
    font-size: 14px;
    font-weight: 700;
}

.excerpt {
    margin: 8px 0;
    font-size: 14px;
    line-height: 2.2;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    display: block;
    background: var(--page);
}

.book-card .card-body {
    padding: 10px 14px 14px;
}

.book-card h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 2;
}

.book-card p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 2;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.section-head h2,
.block-title {
    margin: 0;
    color: var(--green);
    font-weight: 700;
    line-height: 2;
}

.section-head h2 {
    font-size: 24px;
}

.block-title {
    font-size: 22px;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* Home */
.hero {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: #111;
}

.hero .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.hero .slide.is-active {
    opacity: 1;
}

.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-family: var(--latin);
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}

.hero-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.hero-prev {
    inset-inline-start: 12px;
}

.hero-next {
    inset-inline-end: 12px;
}

.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 24px;
    background: #fff;
}

.intro {
    background: #fff;
    border-bottom: 1px solid var(--hairline);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.eyebrow {
    color: var(--green);
    font-weight: 700;
    font-size: 15px;
    line-height: 2;
}

.intro h1 {
    margin: 4px 0 12px;
    font-size: 34px;
    font-weight: 700;
    line-height: 2.1;
}

.intro-copy {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 2.3;
    color: var(--text-2);
}

.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-block {
    padding-top: 48px;
    padding-bottom: 48px;
}

.token-card {
    background: var(--green-tint);
    border: 1px solid var(--green-line-2);
    border-radius: 8px;
    overflow: hidden;
}

.token-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: var(--green);
    color: #fff;
    padding: 12px 20px;
}

.token-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 2;
    color: #fff;
}

.token-who {
    margin: 0;
    padding: 8px 20px 0;
    text-align: center;
    font-size: 13px;
    line-height: 2;
    color: var(--text-2);
}

.token-updated {
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
}

.token-body {
    padding: 20px;
}

.alert {
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 2.1;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--text);
}

.token-status {
    text-align: center;
    padding: 18px 0 6px;
}

.token-label {
    font-size: 14px;
    line-height: 2;
    color: var(--muted);
}

.token-number {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--green);
}

.token-number.is-closed {
    color: var(--disabled);
    font-weight: 900;
    letter-spacing: 0;
}

.token-note {
    border-top: 1px dashed var(--border);
    margin-top: 12px;
    padding-top: 12px;
    font-size: 13px;
    line-height: 2.2;
    color: var(--text-2);
}

.prayer-bar {
    background: var(--green);
    color: #fff;
    padding: 0 0 28px;
    margin-top: 40px;
}

.prayer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 24px 0 16px;
}

.prayer-title {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.prayer-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.weather-chip {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 4px 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 2;
}

.weather-chip .latin {
    color: #fff;
}

.prayer-head a {
    color: var(--prayer-link);
}

.prayer-head a:hover {
    color: #fff;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.prayer-tile {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.prayer-tile span {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.prayer-tile strong {
    display: block;
    font-family: var(--latin);
    direction: ltr;
    unicode-bidi: isolate;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.prayer-tile.is-next {
    background: var(--yellow);
}

.prayer-tile.is-next span,
.prayer-tile.is-next strong {
    color: var(--text);
}

.prayer-tile.is-next span {
    color: rgba(0, 0, 0, 0.65);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #111;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: grid;
    place-items: center;
}

.play .icon {
    width: 18px;
    height: 18px;
    margin-inline-start: 2px;
}

.video-meta {
    font-size: 12px;
    color: var(--muted);
}

.education {
    background: #fff;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.education-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
}

.education-intro p {
    margin: 0;
    font-size: 15px;
    color: var(--text-2);
    line-height: 2.3;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.feature {
    display: flex;
    gap: 14px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--green-tint);
    color: var(--green);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.feature-icon .icon {
    width: 20px;
    height: 20px;
}

.feature h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.feature p {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 2.2;
    color: var(--text-2);
}

.stats {
    margin-top: 28px;
    background: var(--green-tint);
    border: 1px solid var(--green-line-2);
    border-radius: 8px;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    text-align: center;
}

.stats .icon {
    width: 28px;
    height: 28px;
    color: var(--green-active);
}

.stats strong {
    display: block;
    font-family: var(--latin);
    direction: ltr;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--green-active);
}

.stats span {
    font-size: 14px;
}

.home-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.home-gallery figure {
    margin: 0;
    min-width: 0;
}

.gallery-frame {
    display: block;
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-gallery figcaption {
    font-size: 14px;
    color: var(--text-2);
    padding: 8px 4px 0;
    line-height: 2.2;
}

/* Prose */
.prose {
    padding: 32px;
}

.prose p,
.prose li {
    font-size: 15px;
    line-height: 2.5;
    color: var(--text);
}

.prose h2,
.prose h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--green);
    line-height: 2;
    margin: 10px 0;
}

.prose h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.prose h6 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 8px 0;
    line-height: 2;
}

.prose h6.ltr {
    font-family: var(--latin);
    direction: ltr;
    font-weight: 600;
}

.prose ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.prose li {
    position: relative;
    padding-inline-start: 18px;
    margin: 6px 0;
}

.prose li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    position: absolute;
    inset-inline-start: 0;
    top: 0.9em;
}

.prose img {
    border-radius: 8px;
    height: auto;
}

.prose-ltr,
.prose-ltr p {
    font-family: var(--latin);
    direction: ltr;
    text-align: left;
    line-height: 1.7;
}

.article-column {
    max-width: 860px;
    margin: 0 auto;
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-related {
    margin-top: 32px;
}

.article-related .grid-articles {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.article-body img.hero-img {
    width: 100%;
    border-radius: 8px;
}

.article-body .cms p {
    text-align: justify;
}

.divider {
    border: 0;
    border-top: 1px dashed var(--border);
    margin: 10px 0;
}

.float-right {
    float: right;
}

.float-left {
    float: left;
}

.ml-3 { margin-left: 1rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.m-auto { display: block; margin-inline: auto; }

/* Lists */
.link-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-row {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    align-items: center;
}

.link-row img {
    width: 120px;
    height: 84px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 auto;
}

.link-row h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.link-row h3 a {
    color: var(--text);
}

.link-row h3 a:hover {
    color: var(--green);
}

.subcat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    margin-top: 28px;
    align-items: start;
}

.subcat-block {
    min-width: 0;
}

.subcat-title {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 22px;
    font-weight: 700;
    line-height: 2;
    text-align: right;
}

.subcat-title a {
    color: inherit;
}

.subcat-title a:hover {
    color: var(--green-active);
}

.subcat-list {
    list-style: none;
    margin: 0;
    padding: 4px 20px;
}

.subcat-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
    text-align: right;
}

.subcat-list li:last-child {
    border-bottom: 0;
}

.subcat-list li > a {
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
    line-height: 2;
}

.subcat-list li > a:hover {
    color: var(--green);
}

.subcat-list .meta-date {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Reader */
.reader {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.reader-page {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--hairline);
    box-shadow: var(--elevation);
    background: #fff;
}

.reader-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    font-family: var(--latin);
    direction: ltr;
}

.page-indicator {
    font-family: var(--latin);
    direction: ltr;
    font-size: 14px;
}

.page-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    direction: ltr;
    font-family: var(--latin);
}

/* Prayers */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.city-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
}

.city-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--hairline);
}

.times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--hairline);
}

.times div {
    background: #fff;
    padding: 8px 6px;
    text-align: center;
}

.times span {
    display: block;
    font-size: 13px;
    color: var(--text-3);
}

.times strong {
    display: inline-block;
    font-family: var(--latin);
    direction: ltr;
    unicode-bidi: isolate;
    font-size: 16px;
}

.search-wrap {
    position: relative;
    max-width: 360px;
    margin-bottom: 20px;
}

.search-wrap input {
    width: 100%;
    height: 40px;
    padding-block: 0;
    padding-inline: 12px 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

.search-wrap .icon {
    position: absolute;
    inset-inline-end: 12px;
    top: 12px;
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.today-tile {
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.today-tile span {
    display: block;
    font-size: 14px;
    color: var(--text-3);
}

.today-tile strong {
    display: inline-block;
    font-family: var(--latin);
    direction: ltr;
    unicode-bidi: isolate;
    font-size: 22px;
    font-weight: 700;
}

.today-tile.is-next {
    background: var(--yellow);
    border-color: var(--yellow);
}

.month-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.table-card {
    overflow-x: auto;
}

.table-card table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.table-card th {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
    background: var(--green-tint-2);
    border-bottom: 1px solid var(--green-line);
    text-align: center;
    white-space: nowrap;
}

.table-card td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--hairline);
    text-align: center;
    font-family: var(--latin);
    direction: ltr;
    font-size: 14px;
    white-space: nowrap;
}

.table-card td:first-child {
    font-weight: 700;
}

.table-card tbody tr:hover {
    background: var(--row);
}

.table-card tr.is-today {
    background: var(--green-tint-2);
}

.table-card tr.is-today td:first-child a {
    color: var(--green);
}

/* Contact and forms */
.map-frame {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: #fff;
    margin-bottom: 24px;
}

.map-frame iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.contact-card {
    padding: 24px 28px;
}

.contact-card h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 8px;
}

.contact-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green-tint-2);
    color: var(--green);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.contact-row h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
}

.contact-row p {
    margin: 0;
    font-size: 14px;
    line-height: 2;
    color: var(--text-2);
}

.contact-en {
    direction: ltr;
    text-align: left;
    font-family: var(--latin);
}

.form-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.form-card {
    flex: 2 1 480px;
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px 20px;
}

.span-all {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.req {
    color: var(--danger);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: var(--text);
}

.field textarea {
    height: auto;
    padding: 10px 12px;
    line-height: 2;
    resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--green-hover);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-wrap input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(46, 142, 57, 0.15);
}

.field .ltr-field {
    direction: ltr;
    text-align: left;
    font-family: var(--latin);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.success-chip {
    background: var(--green-tint-2);
    border: 1px solid var(--green-line-3);
    color: var(--green);
    border-radius: 8px;
    padding: 6px 14px;
}

.lookup-lead {
    direction: ltr;
    text-align: right;
}

.lookup-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 20px;
}

.lookup-fields .field {
    min-width: 0;
}

.lookup-fields .field .ltr-field,
.lookup-fields .field-hint {
    text-align: right;
}

.lookup-actions {
    flex-direction: column;
    align-items: flex-end;
    direction: ltr;
    margin-top: 24px;
}

.lookup-actions .btn {
    direction: ltr;
}

.lookup-actions .btn .icon {
    width: 16px;
    height: 16px;
}

.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--latin);
    direction: ltr;
}

.duty-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.duty-table th,
.duty-table td {
    border-bottom: 1px solid var(--hairline);
    padding: 10px 16px;
    text-align: right;
    font-size: 14px;
}

.duty-table th {
    width: 58%;
    font-weight: 700;
}

.duty-table td[dir="ltr"] {
    direction: ltr;
    text-align: right;
}

.not-found {
    margin-top: 20px;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
}

.recaptcha-slot {
    position: relative;
    min-width: 304px;
    min-height: 78px;
}

.recaptcha-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f9f9f9;
}

.recaptcha-slot.is-ready .recaptcha-loading {
    display: none;
}

.recaptcha-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Gallery lightbox and home overlay */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.photo-grid a {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    border: 1px solid var(--hairline);
    background: var(--page);
    overflow: hidden;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.lightbox,
.home-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox[hidden],
.home-overlay[hidden] {
    display: none;
}

.lightbox img,
.home-overlay img {
    max-width: min(960px, 100%);
    max-height: 80vh;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.lightbox-close,
.home-overlay-close,
.lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    font-family: var(--latin);
}

.lightbox-close,
.home-overlay-close {
    top: 16px;
    inset-inline-end: 16px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 20px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
}

.lightbox-prev { inset-inline-start: 16px; }
.lightbox-next { inset-inline-end: 16px; }

.home-overlay-item[hidden] {
    display: none;
}

/* Footer */
.home-map {
    position: relative;
}

.home-map iframe {
    width: 100%;
    height: 410px;
    border: 0;
    display: block;
}

footer {
    background: var(--green);
    color: rgba(255, 255, 255, 0.9);
}

.footer-main {
    background: var(--green);
    color: rgba(255, 255, 255, 0.9);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 40px;
}

.footer-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-contacts p {
    display: flex;
    align-items: center;
    direction: ltr;
    gap: 10px;
    margin: 0;
    font-size: 15px;
    line-height: 2;
}

.footer-contacts .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #fff;
}

.footer-main a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-main a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 2;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom .social {
    gap: 24px;
}

.footer-bottom .social a {
    color: rgba(255, 255, 255, 0.9);
}

.type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.daily-box {
    position: relative;
    margin-top: 32px;
    padding: 24px 20px 36px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.daily-box-title {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 24px;
    font-weight: 700;
    line-height: 2;
}

.daily-box-links {
    margin: 0;
    font-size: 15px;
    line-height: 2.2;
}

.daily-box-links a {
    color: var(--text);
    white-space: nowrap;
}

.daily-box-links a:hover {
    color: var(--green);
}

.daily-box-sep {
    margin: 0 10px;
    color: var(--muted);
}

.daily-box::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    margin: 0 auto;
    width: 109px;
    height: 1px;
    background: var(--green);
}

.daily-box-ornament {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    margin: 0 auto;
    width: 28px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: var(--green);
    z-index: 1;
}

.daily-box-ornament .icon {
    width: 14px;
    height: 14px;
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pager-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pager-btn:hover {
    color: var(--green);
    border-color: var(--green);
}

.pager-btn.is-active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.pager-btn.is-disabled {
    color: var(--disabled);
}

.pager-summary {
    text-align: center;
    font-family: var(--latin);
    direction: ltr;
    font-size: 13px;
    color: var(--muted);
    margin: 8px 0 0;
}

.quote-figure {
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--hairline);
    box-shadow: var(--elevation);
    background: #fff;
}

.quote-column {
    max-width: 860px;
    margin: 0 auto;
    min-width: 0;
}

.quote-card {
    margin: 0 auto 24px;
    padding: 28px 32px;
    overflow-wrap: anywhere;
}

.quote-card img {
    max-width: 100%;
    height: auto;
}

.quote-card,
.quote-card p {
    font-size: 16px;
    line-height: 2.6;
}

.quote-actions {
    margin: 0 0 8px;
    text-align: center;
}

@media (max-width: 900px) {
    .with-side {
        grid-template-columns: 1fr;
    }

    .lookup-fields {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex: 1 1 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .header-actions .nav-toggle {
        align-self: flex-end;
        width: 44px;
        flex-shrink: 0;
    }

    .grid-daily,
    .home-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subcat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        border-top: 1px solid var(--hairline);
        background: #fff;
        max-height: calc(100vh - 120px);
        overflow: auto;
    }

    .main-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 8px 16px 16px;
    }

    .nav-list > li > a {
        min-height: 44px;
        width: 100%;
    }

    .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        min-width: 0;
        padding-inline-start: 12px;
    }

    .nav-list > li.is-open > .dropdown {
        display: block;
    }

    .nav-list > li:hover > .dropdown {
        display: none;
    }

    .nav-list > li.is-open > .dropdown,
    .nav-list > li.is-open:hover > .dropdown {
        display: block;
    }

    .hero {
        height: 220px;
    }

    .intro h1,
    .page-band h1 {
        font-size: 26px;
    }

    .prose {
        padding: 20px;
    }

    .hamd {
        order: 3;
        flex-basis: 100%;
        top: 0;
    }
}

@media (max-width: 600px) {
    .grid-daily,
    .home-gallery {
        grid-template-columns: 1fr;
    }

    .header-actions .btn {
        padding: 0 12px;
        font-size: 13px;
    }

    .link-row {
        flex-direction: column;
        align-items: stretch;
    }

    .link-row img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }
}
