:root {
    --ink: #132235;
    --muted: #627284;
    --paper: #f6f8f2;
    --paper-strong: #ffffff;
    --line: #dbe7df;
    --blue: #111111;
    --blue-deep: #000000;
    --cyan: #08a8d8;
    --green: #087445;
    --green-deep: #064e34;
    --gold: #d69b21;
    --gold-soft: #fff3cf;
    --green-soft: #e8f5ed;
    --cyan-soft: #e8f8fc;
    --glass: rgba(255, 255, 255, 0.78);
    --shadow: 0 26px 70px rgba(19, 34, 53, 0.12);
    --radius: 8px;
    --speed: 260ms;
    --tile:
        url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23242780' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M48 4 60 24 82 18 72 40 92 48 72 56 82 78 60 72 48 92 36 72 14 78 24 56 4 48 24 40 14 18 36 24Z'/%3E%3Cpath d='M48 18 58 38 78 48 58 58 48 78 38 58 18 48 38 38Z'/%3E%3Cpath d='M0 48h24M72 48h24M48 0v24M48 72v24'/%3E%3C/g%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 248, 242, 0.94)),
        var(--tile) 0 0 / 96px 96px,
        var(--paper);
    color: var(--ink);
    font-family: "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(8, 116, 69, 0.08), transparent 32%),
        linear-gradient(300deg, rgba(8, 168, 216, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(255, 243, 207, 0.35), transparent 42%);
    opacity: 0.34;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(19, 34, 53, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 34, 53, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 72%, transparent);
    opacity: 0.42;
}

.ambient-geometry {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.geo-motif {
    position: absolute;
    width: clamp(170px, 25vw, 340px);
    aspect-ratio: 1;
    border: 1px solid rgba(36, 39, 128, 0.13);
    opacity: 0.18;
    transform: rotate(45deg);
}

.geo-motif::before,
.geo-motif::after {
    content: "";
    position: absolute;
    inset: 16%;
    border: 1px solid currentColor;
    color: rgba(8, 116, 69, 0.24);
    clip-path: polygon(50% 0, 61% 31%, 95% 18%, 69% 42%, 100% 50%, 69% 58%, 95% 82%, 61% 69%, 50% 100%, 39% 69%, 5% 82%, 31% 58%, 0 50%, 31% 42%, 5% 18%, 39% 31%);
}

.geo-motif::after {
    inset: 31%;
    color: rgba(214, 155, 33, 0.32);
}

.geo-motif--one {
    top: 15%;
    right: -90px;
}

.geo-motif--two {
    top: 48%;
    left: -120px;
    animation-delay: -7s;
}

.geo-motif--three {
    right: 18%;
    bottom: -160px;
    animation-delay: -13s;
}

img,
svg {
    display: block;
    max-width: 100%;
}

main,
.footer {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    inset: 16px auto auto 16px;
    z-index: 20;
    padding: 10px 14px;
    background: var(--blue);
    color: white;
    border-radius: var(--radius);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 12;
    backdrop-filter: blur(12px);
    background: rgba(246, 248, 242, 0.84);
    border-bottom: 1px solid rgba(19, 34, 53, 0.08);
    box-shadow: 0 18px 42px rgba(19, 34, 53, 0.06);
}

.topline {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(21, 25, 87, 0.96), rgba(8, 78, 52, 0.96)),
        var(--blue-deep);
    color: white;
    font-size: 0.9rem;
}

.topline::before {
    content: "";
    position: absolute;
    inset: -80px 8% auto auto;
    width: 260px;
    aspect-ratio: 1;
    border: 1px solid rgba(248, 217, 133, 0.22);
    transform: rotate(45deg);
    opacity: 0.5;
}

.topline__grid {
    min-height: 48px;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto auto;
    gap: 16px;
    align-items: center;
}

.topline__blessing {
    margin: 0;
    color: #f8d985;
    font-weight: 700;
}

.topline__dates {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.86);
}

.topline__dates span,
.topline__location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.topline em {
    font-style: normal;
}

.topline svg {
    width: 15px;
    height: 15px;
    color: #f8d985;
    stroke-width: 1.8;
}

.topline__time {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-family: "Outfit", Arial, sans-serif;
}

.topline__time strong {
    color: white;
    font-variant-numeric: tabular-nums;
}

.topline__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.topline-select,
.topline-link,
.topline .logout-form--top button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.topline-select {
    position: relative;
    padding: 0 10px;
}

.topline-select::after {
    content: "";
    width: 7px;
    height: 7px;
    border-inline-end: 1px solid currentColor;
    border-block-end: 1px solid currentColor;
    opacity: 0.75;
    transform: translateY(-2px) rotate(45deg);
}

.topline-select select {
    width: var(--language-select-width, 4.5em);
    min-width: 0;
    border: 0;
    outline: 0;
    appearance: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 800;
}

.topline-select option {
    color: var(--ink);
}

.topline-link,
.topline .logout-form--top button {
    padding: 0 13px;
    font-weight: 800;
    transition: transform var(--speed), background var(--speed), border-color var(--speed);
}

.topline-link:hover,
.topline-link:focus-visible,
.topline .logout-form--top button:hover,
.topline .logout-form--top button:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(248, 217, 133, 0.34);
    transform: translateY(-1px);
}

.navbar__inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 260px;
}

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

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1.13rem;
    color: var(--blue);
    line-height: 1.3;
}

.brand small {
    font-family: "Outfit", Arial, sans-serif;
    color: var(--green);
    letter-spacing: 0;
    font-weight: 700;
    font-size: 0.74rem;
}

.navlinks {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.navlinks a {
    position: relative;
    padding: 2px 0 8px;
    color: #31405b;
    transition: color var(--speed), transform var(--speed);
    font-weight: 800;
    font-size: 0.94rem;
}

.navlinks a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity var(--speed), transform var(--speed);
}

.navlinks a:hover,
.navlinks a:focus-visible,
.navlinks a.is-active {
    color: var(--blue);
    transform: translateY(-1px);
}

.navlinks a:hover::after,
.navlinks a:focus-visible::after,
.navlinks a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    background: var(--blue);
    border-radius: 1px;
}

.hero {
    overflow: hidden;
    position: relative;
    min-height: clamp(720px, 86dvh, 940px);
    display: flex;
    align-items: center;
    padding: clamp(76px, 8vw, 122px) 0 70px;
    background: #101827;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(9, 15, 30, 0.84), rgba(9, 15, 30, 0.56) 44%, rgba(6, 78, 52, 0.34)),
        linear-gradient(0deg, rgba(11, 19, 33, 0.76), transparent 62%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(248, 217, 133, 0.16) 1px, transparent 1px),
        linear-gradient(0deg, rgba(248, 217, 133, 0.12) 1px, transparent 1px),
        var(--tile) center / 132px 132px;
    background-size: 84px 84px, 84px 84px, 132px 132px;
    opacity: 0.14;
    mask-image: linear-gradient(90deg, #000 0%, #000 54%, transparent 86%);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(340px, 430px);
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 4;
}

.hero__copy {
    max-width: 760px;
    color: white;
    animation: rise 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 800;
    letter-spacing: 0;
}

.hero__eyebrow {
    padding: 7px 11px;
    border: 1px solid rgba(248, 217, 133, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: white;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero__eyebrow svg {
    width: 17px;
    height: 17px;
    color: var(--gold);
    stroke-width: 2;
}

.hero__eyebrow::before,
.section-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.hero h1,
.page-hero h1 {
    margin: 16px 0 18px;
    max-width: 12ch;
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 1.12;
    font-weight: 800;
}

.hero h1 {
    color: white;
    text-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.page-hero h1 {
    color: var(--blue-deep);
}

.hero__lead {
    max-width: 66ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.18rem;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform var(--speed), background var(--speed), border-color var(--speed), box-shadow var(--speed);
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    box-shadow: 0 12px 24px rgba(8, 120, 63, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #096b39;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(8, 120, 63, 0.26);
}

.btn-ghost {
    color: var(--blue);
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(34, 38, 138, 0.18);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--cyan);
    background: var(--cyan-soft);
    transform: translateY(-2px);
}

.hero .btn-ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.hero .btn-ghost:hover,
.hero .btn-ghost:focus-visible {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    gap: 1px;
    margin-top: 44px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.hero__stats div {
    padding: 17px;
    background: rgba(255, 255, 255, 0.11);
    position: relative;
    transition: background var(--speed), transform var(--speed);
}

.hero__stats div:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.hero__stats svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
    margin-bottom: 12px;
    stroke-width: 1.8;
}

.hero__stats strong,
.hero__stats span {
    display: block;
}

.hero__stats strong {
    font-family: "Outfit", Arial, sans-serif;
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hero__stats span {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
}

.hero__visual {
    display: grid;
    gap: 18px;
    align-items: center;
    animation: rise 860ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.hero-slider {
    min-height: 100%;
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #111d2f;
    box-shadow: none;
    isolation: auto;
}

.hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(6, 78, 52, 0.42), transparent 42%),
        linear-gradient(0deg, rgba(15, 25, 50, 0.78), transparent 58%);
    mix-blend-mode: multiply;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(115deg, rgba(248, 217, 133, 0.18), transparent 28%),
        var(--tile) center / 126px 126px;
    opacity: 0.18;
    mask-image: linear-gradient(135deg, #000, transparent 62%);
}

.hero-slider__track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    margin: 0;
    opacity: 0;
    transform: scale(1.045);
    transition:
        opacity 780ms ease,
        transform 1800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04);
    transform-origin: center;
}

.hero-slide.is-active img {
    animation: none;
}

.hero-slide figcaption {
    position: absolute;
    inset: auto auto 28px max(24px, calc((100vw - 1180px) / 2 + 24px));
    z-index: 4;
    display: grid;
    gap: 5px;
    max-width: min(360px, calc(100% - 48px));
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(10, 20, 38, 0.48);
    color: white;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 520ms ease 180ms,
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}

.hero-slide.is-active figcaption {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide figcaption span {
    width: fit-content;
    color: #f8d985;
    font-family: "Outfit", Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
}

.hero-slide figcaption strong {
    color: white;
    font-size: 1.35rem;
    line-height: 1.25;
}

.hero-slide figcaption small {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hero-slider__brand {
    position: absolute;
    top: 26px;
    inset-inline-start: max(24px, calc((100vw - 1180px) / 2 + 24px));
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--blue);
    font-family: "Outfit", Arial, sans-serif;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.hero-slider__brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.hero-slider__controls {
    position: absolute;
    top: 26px;
    inset-inline-end: max(24px, calc((100vw - 1180px) / 2 + 24px));
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(10, 20, 38, 0.42);
    backdrop-filter: blur(8px);
}

.hero-slider__controls button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    transition: transform var(--speed), background var(--speed);
}

.hero-slider__controls button:hover,
.hero-slider__controls button:focus-visible {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.hero-slider__controls svg {
    width: 18px;
    height: 18px;
}

[dir="rtl"] .hero-slider__controls svg {
    transform: scaleX(-1);
}

.hero-slider__dots {
    display: inline-flex;
    gap: 6px;
}

.hero-slider__dots button {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border: 0;
    background: rgba(255, 255, 255, 0.38);
}

.hero-slider__dots button.is-active {
    width: 22px;
    border-radius: 999px;
    background: #f8d985;
}

.hero-slider__progress {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 5;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
}

.hero-slider__progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f8d985, var(--cyan));
    transform-origin: left center;
}

[dir="rtl"] .hero-slider__progress span {
    transform-origin: right center;
}

.seal-panel,
.prayer-widget,
.fatwa-panel,
.publication-panel,
.form-panel,
.contact-card {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius);
    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
}

.seal-panel {
    min-height: 286px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.seal-panel::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(9, 174, 224, 0.2);
    border-radius: var(--radius);
    clip-path: polygon(0 0, 78% 0, 100% 30%, 100% 100%, 22% 100%, 0 70%);
}

.seal-panel::after {
    content: "";
    position: absolute;
    inset: auto -40px -75px auto;
    width: 230px;
    aspect-ratio: 1;
    border: 1px solid rgba(214, 155, 33, 0.2);
    transform: rotate(45deg);
}

.seal-panel__pattern {
    position: absolute;
    inset: 0;
    background: var(--tile) center / 104px 104px;
    opacity: 0.5;
    mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
}

.seal-panel img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 16px 18px rgba(23, 33, 61, 0.14));
    position: relative;
}

.seal-panel span,
.seal-panel strong,
.seal-panel small {
    display: block;
    position: relative;
}

.seal-panel span {
    font-family: "Outfit", Arial, sans-serif;
    color: var(--cyan);
    font-size: 0.85rem;
    font-weight: 800;
}

.seal-panel strong {
    color: var(--blue);
    font-size: 2.25rem;
    line-height: 1.25;
    margin-top: 8px;
}

.seal-panel small {
    margin-top: 8px;
    color: var(--green);
    font-weight: 800;
}

.prayer-widget {
    position: relative;
    overflow: hidden;
    padding: 22px;
}

.prayer-widget::before {
    content: "";
    position: absolute;
    inset: -90px auto auto -70px;
    width: 220px;
    aspect-ratio: 1;
    border: 1px solid rgba(214, 155, 33, 0.18);
    transform: rotate(45deg);
    pointer-events: none;
}

.prayer-widget > * {
    position: relative;
    z-index: 1;
}

.hero .prayer-widget {
    color: white;
    background: rgba(12, 22, 38, 0.72);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(22px);
}

.widget-head,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.widget-head h2,
.section-heading h2,
.split-section h2,
.goals h2,
.form-panel h2,
.contact-card h2,
.dua-list h2 {
    margin: 8px 0 0;
    color: var(--blue);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.3;
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(34, 38, 138, 0.16);
    border-radius: var(--radius);
    background: var(--cyan-soft);
    color: var(--blue);
    transition: transform var(--speed), background var(--speed);
}

.icon-btn:hover,
.icon-btn:focus-visible {
    background: white;
    transform: translateY(-1px);
}

.hero .icon-btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.11);
}

.hero .icon-btn:hover,
.hero .icon-btn:focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

.icon-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.widget-note {
    margin: 14px 0 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero .widget-head h2,
.hero .section-kicker,
.hero .widget-note,
.hero .prayer-status {
    color: white;
}

.hero .widget-note,
.hero .prayer-status {
    color: rgba(255, 255, 255, 0.72);
}

.prayer-next {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px;
    border: 1px solid rgba(8, 116, 69, 0.14);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(8, 116, 69, 0.1), rgba(214, 155, 33, 0.1)),
        rgba(255, 255, 255, 0.72);
}

.prayer-next div {
    min-height: 74px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 11px 13px;
    border-radius: calc(var(--radius) - 2px);
    background: rgba(255, 255, 255, 0.72);
}

.prayer-next span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.prayer-next strong {
    color: var(--green);
    font-family: "Outfit", Arial, sans-serif;
    font-size: 1.35rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.hero .prayer-next {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
}

.hero .prayer-next div {
    background: rgba(255, 255, 255, 0.1);
}

.hero .prayer-next span {
    color: rgba(255, 255, 255, 0.68);
}

.hero .prayer-next strong {
    color: #f8d985;
}

.prayer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    color: var(--green);
    font-size: 0.92rem;
}

.prayer-status span:first-child {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    animation: breathe 1.5s ease-in-out infinite;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.prayer-grid div {
    min-height: 82px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 250, 0.86)),
        var(--tile) center / 160px 160px;
    position: relative;
    overflow: hidden;
    transition: transform var(--speed), border-color var(--speed), background var(--speed), box-shadow var(--speed);
}

.prayer-grid div::after {
    content: "";
    position: absolute;
    inset: auto -18px -42px auto;
    width: 96px;
    aspect-ratio: 1;
    border: 1px solid rgba(8, 116, 69, 0.12);
    transform: rotate(45deg);
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), border-color var(--speed);
}

.prayer-grid div:hover,
.prayer-grid div.is-next {
    transform: translateY(-2px);
    border-color: rgba(214, 155, 33, 0.46);
    box-shadow: 0 14px 28px rgba(19, 34, 53, 0.1);
}

.prayer-grid div:hover::after,
.prayer-grid div.is-next::after {
    border-color: rgba(214, 155, 33, 0.4);
    transform: translate3d(-8px, -8px, 0) rotate(45deg);
}

.prayer-grid div.is-next {
    background:
        linear-gradient(135deg, rgba(255, 243, 207, 0.92), rgba(232, 245, 237, 0.92)),
        var(--tile) center / 160px 160px;
}

.prayer-grid svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
    margin-bottom: 7px;
    stroke-width: 1.9;
}

.prayer-grid span,
.prayer-grid strong {
    display: block;
}

.prayer-grid span {
    color: var(--muted);
    font-size: 0.9rem;
}

.prayer-grid strong {
    margin-top: 8px;
    color: var(--blue);
    font-family: "Outfit", Arial, sans-serif;
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
}

.hero .prayer-grid div {
    border-color: rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.08)),
        transparent;
}

.hero .prayer-grid div:hover,
.hero .prayer-grid div.is-next {
    background:
        linear-gradient(135deg, rgba(214, 155, 33, 0.2), rgba(8, 116, 69, 0.22)),
        rgba(255, 255, 255, 0.11);
    border-color: rgba(248, 217, 133, 0.42);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.hero .prayer-grid span {
    color: rgba(255, 255, 255, 0.68);
}

.hero .prayer-grid strong {
    color: white;
}

.intro-band {
    position: relative;
    overflow: hidden;
    padding: 42px 0;
    background:
        linear-gradient(135deg, rgba(21, 25, 87, 0.96), rgba(6, 78, 52, 0.94)),
        var(--blue);
    color: white;
}

.intro-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--tile) center / 118px 118px;
    opacity: 0.18;
}

.intro-band__grid {
    display: grid;
    grid-template-columns: 0.8fr 1fr 330px;
    gap: 36px;
    align-items: center;
}

.intro-band .section-kicker,
.intro-band h2 {
    color: white;
}

.intro-band h2 {
    margin: 10px 0 0;
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    line-height: 1.25;
}

.intro-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.intro-photo {
    position: relative;
    min-height: 210px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.18);
}

.intro-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(8, 116, 69, 0.18), transparent 45%),
        var(--tile) center / 120px 120px;
    opacity: 0.34;
}

.intro-photo img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.03);
    transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-photo:hover img {
    transform: scale(1.04);
}

.section-pad {
    padding: 78px 0;
}

.section-pad--light {
    background:
        linear-gradient(90deg, rgba(232, 248, 252, 0.78), rgba(233, 245, 239, 0.76)),
        var(--tile) center / 138px 138px,
        var(--paper-strong);
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2 {
    max-width: 16ch;
}

.section-heading a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-weight: 800;
    border-bottom: 2px solid var(--gold);
}

.section-heading a svg {
    width: 16px;
    height: 16px;
}

.department-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr;
    gap: 12px;
}

.department-card {
    min-height: 224px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 252, 0.96)),
        var(--tile) center / 170px 170px;
    transition: transform var(--speed), border-color var(--speed), box-shadow var(--speed);
    animation: rise 520ms ease both;
    animation-delay: calc(var(--i) * 55ms);
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(19, 34, 53, 0.06);
}

.department-card__media {
    height: 146px;
    margin: -22px -22px 18px;
    overflow: hidden;
    background: var(--green-soft);
}

.department-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.03);
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.department-card > svg {
    width: 34px;
    height: 34px;
    padding: 7px;
    color: var(--blue);
    background: rgba(17, 17, 17, 0.05);
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: var(--radius);
    stroke-width: 1.8;
}

.department-card:nth-child(3n + 1) {
    transform: translateY(18px);
}

.department-card:hover {
    transform: translateY(8px);
    border-color: rgba(9, 174, 224, 0.5);
    box-shadow: 0 18px 34px rgba(23, 33, 61, 0.1);
}

.department-card:hover .department-card__media img {
    transform: scale(1.06);
}

.department-card span,
.department-detail span,
.publication-stack span,
.publication-library span,
.donate-grid span {
    display: inline-flex;
    color: var(--green);
    font-size: 0.86rem;
    font-weight: 800;
}

.department-card h3,
.department-detail h2,
.service-list h3,
.question-list strong,
.publication-stack h3,
.publication-library h2,
.donate-grid h2,
.dua-list h3 {
    color: var(--blue);
    line-height: 1.35;
}

.department-card h3 {
    margin: 14px 0 10px;
    font-size: 1.35rem;
}

.department-card p,
.service-list p,
.publication-stack p,
.publication-library p,
.donate-grid p,
.dua-list span,
.contact-card p {
    margin: 0;
    color: #5d6978;
}

.split-section {
    display: grid;
    grid-template-columns: 0.76fr 1fr;
    gap: 56px;
    align-items: start;
}

.split-section__copy {
    position: sticky;
    top: 140px;
}

.split-section__copy p {
    margin: 18px 0 26px;
    color: var(--muted);
}

.service-showcase {
    position: relative;
    margin: 0 0 22px;
    overflow: hidden;
    border: 1px solid rgba(34, 38, 138, 0.12);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: 0 18px 36px rgba(19, 34, 53, 0.09);
}

.service-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(10, 20, 38, 0.54), transparent 48%),
        var(--tile) center / 130px 130px;
    opacity: 0.62;
}

.service-showcase img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.03);
    transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-showcase:hover img {
    transform: scale(1.035);
}

.service-showcase figcaption {
    position: absolute;
    inset: auto 14px 14px;
    z-index: 1;
    color: white;
    font-weight: 800;
}

.service-list {
    display: grid;
    gap: 10px;
}

.service-list article {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: start;
    padding: 20px;
    border: 1px solid rgba(34, 38, 138, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    transition: transform var(--speed), border-color var(--speed), box-shadow var(--speed);
}

.service-list article:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 116, 69, 0.22);
    box-shadow: 0 16px 30px rgba(19, 34, 53, 0.08);
}

.service-list article > svg {
    width: 46px;
    height: 46px;
    padding: 11px;
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid rgba(8, 116, 69, 0.14);
    border-radius: var(--radius);
    stroke-width: 1.8;
}

.service-list h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.feature-columns,
.ifta-grid,
.contact-grid,
.names-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
    align-items: start;
}

.fatwa-panel,
.publication-panel,
.form-panel,
.contact-card {
    padding: 24px;
}

.section-heading--compact {
    margin-bottom: 18px;
}

.section-heading--compact h2 {
    font-size: 1.65rem;
}

.panel-media {
    position: relative;
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid rgba(34, 38, 138, 0.1);
    border-radius: var(--radius);
    background: var(--green-soft);
}

.panel-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(36, 39, 128, 0.2), transparent 48%),
        var(--tile) center / 124px 124px;
    opacity: 0.36;
}

.panel-media img {
    width: 100%;
    height: 178px;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.03);
    transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-media--small img {
    height: 142px;
}

.fatwa-panel:hover .panel-media img,
.publication-panel:hover .panel-media img {
    transform: scale(1.04);
}

.question-list,
.publication-stack {
    display: grid;
    gap: 9px;
}

.question-list a,
.publication-stack article,
.publication-library article,
.name-list article,
.dua-list article,
.donate-grid article {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
}

.question-list a {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 12px;
    align-items: center;
    transition: border-color var(--speed), transform var(--speed);
}

.question-list a:hover,
.question-list a:focus-visible {
    border-color: var(--cyan);
    transform: translateY(-1px);
}

.question-list span {
    color: var(--green);
    font-weight: 800;
    font-size: 0.86rem;
}

.question-list small {
    color: var(--muted);
    font-family: "Outfit", Arial, sans-serif;
}

.publication-stack article {
    position: relative;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 250, 0.82)),
        var(--tile) center / 170px 170px;
}

.publication-stack article > svg {
    width: 26px;
    height: 26px;
    color: var(--gold);
    margin-bottom: 8px;
    stroke-width: 1.8;
}

.publication-stack h3,
.publication-library h2 {
    margin: 6px 0;
}

.goals {
    padding: 70px 0;
    background:
        linear-gradient(135deg, rgba(21, 25, 87, 0.94), rgba(6, 78, 52, 0.93)),
        var(--tile) center / 126px 126px,
        var(--blue);
    color: white;
}

.goals__grid {
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    gap: 36px;
}

.goals h2,
.goals .section-kicker {
    color: white;
}

.goals__photo {
    position: relative;
    margin: 24px 0 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.22);
}

.goals__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(21, 25, 87, 0.36), transparent 56%);
}

.goals__photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.03);
    transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.goals__photo:hover img {
    transform: scale(1.035);
}

.goals ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: goal;
}

.goals li {
    counter-increment: goal;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.goals li::before {
    content: counter(goal);
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.14);
    color: #f8d985;
    font-family: "Outfit", Arial, sans-serif;
    font-weight: 800;
}

.page-hero {
    padding: 62px 0;
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.92), rgba(232, 248, 252, 0.62)),
        var(--tile) center / 132px 132px,
        var(--paper);
}

.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 34px;
    align-items: center;
}

.page-hero h1 {
    max-width: 16ch;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.page-hero p {
    max-width: 72ch;
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.page-hero__media {
    position: relative;
    min-height: 280px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: var(--radius);
    box-shadow: 0 24px 54px rgba(19, 34, 53, 0.13);
}

.page-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(8, 116, 69, 0.24), transparent 42%),
        var(--tile) center / 130px 130px;
    opacity: 0.42;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-hero__media:hover img {
    transform: scale(1.035);
}

.prose-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.prose-block,
.department-detail article {
    padding: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.prose-block > span {
    color: var(--gold);
    font-family: "Outfit", Arial, sans-serif;
    font-weight: 800;
}

.prose-block h2 {
    margin: 8px 0 10px;
    color: var(--blue);
}

.prose-block p {
    margin: 0;
    color: var(--muted);
}

.department-detail {
    display: grid;
    gap: 12px;
}

.department-detail article {
    display: grid;
    grid-template-columns: 190px 0.35fr 1fr;
    gap: 24px;
    align-items: center;
}

.department-detail__media {
    height: 138px;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--cyan-soft);
}

.department-detail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.department-detail h2 {
    margin: 4px 0 0;
    font-size: 1.45rem;
}

.department-detail p {
    margin: 0;
    color: var(--muted);
}

.search-box input,
.form-panel input,
.form-panel textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    color: var(--ink);
    outline: none;
    transition: border-color var(--speed), box-shadow var(--speed);
}

.search-box input {
    min-height: 42px;
    padding: 8px 12px;
}

.search-box input:focus,
.form-panel input:focus,
.form-panel textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(9, 174, 224, 0.14);
}

.form-panel {
    display: grid;
    gap: 14px;
}

.form-panel p {
    margin: 0;
    color: var(--muted);
}

.form-panel label {
    display: grid;
    gap: 7px;
}

.form-panel label > span {
    color: var(--blue);
    font-weight: 800;
}

.form-panel input,
.form-panel textarea {
    padding: 11px 13px;
}

.form-panel small {
    color: #b42318;
}

.publication-library,
.donate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.publication-library article,
.donate-grid article {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.publication-library__media,
.donate-grid__media {
    height: 132px;
    margin: -16px -16px 16px;
    overflow: hidden;
    background: var(--green-soft);
}

.publication-library__media img,
.donate-grid__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.publication-library article:hover .publication-library__media img,
.donate-grid article:hover .donate-grid__media img {
    transform: scale(1.05);
}

.publication-library a {
    margin-top: auto;
    color: var(--green);
    font-weight: 800;
}

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

.name-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.name-list article strong,
.name-list article span {
    display: block;
}

.name-list article strong {
    color: var(--blue);
    font-size: 1.25rem;
}

.name-list article span {
    color: var(--muted);
}

.dua-list {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.dua-list article {
    margin-top: 10px;
}

.dua-list h3 {
    margin: 0 0 8px;
}

.dua-list p[lang="ar"] {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-card {
    min-height: 480px;
}

.contact-card__photo {
    position: relative;
    margin: 18px 0 0;
    overflow: hidden;
    border: 1px solid rgba(34, 38, 138, 0.12);
    border-radius: var(--radius);
}

.contact-card__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(21, 25, 87, 0.28), transparent 52%);
}

.contact-card__photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.map-placeholder {
    margin-top: 22px;
    min-height: 240px;
    border: 1px solid rgba(34, 38, 138, 0.12);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, transparent 49%, rgba(34, 38, 138, 0.08) 50%, transparent 51%) 0 0 / 42px 42px,
        linear-gradient(0deg, transparent 49%, rgba(8, 120, 63, 0.08) 50%, transparent 51%) 0 0 / 42px 42px,
        var(--cyan-soft);
    display: grid;
    place-content: center;
    text-align: center;
}

.map-placeholder span,
.map-placeholder strong {
    display: block;
}

.map-placeholder span {
    color: var(--green);
    font-weight: 800;
}

.map-placeholder strong {
    color: var(--blue);
    font-family: "Outfit", Arial, sans-serif;
    font-size: 2rem;
}

.flash-message {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(8, 120, 63, 0.2);
    border-radius: var(--radius);
    background: var(--green-soft);
    color: var(--green);
    font-weight: 800;
}

.footer {
    background:
        linear-gradient(135deg, rgba(21, 25, 87, 0.97), rgba(6, 78, 52, 0.96)),
        var(--tile) center / 120px 120px,
        #17213d;
    color: rgba(255, 255, 255, 0.78);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.8fr 1fr;
    gap: 30px;
    padding: 48px 0;
}

.footer h2,
.footer h3 {
    color: white;
    margin: 0 0 12px;
}

.footer p {
    margin: 0 0 10px;
}

.footer__brand img {
    width: 138px;
    margin-bottom: 16px;
}

.footer__links {
    display: grid;
    gap: 7px;
}

.footer__links a {
    width: fit-content;
    color: rgba(255, 255, 255, 0.78);
}

.footer__links a:hover,
.footer__links a:focus-visible {
    color: #f8d985;
}

.language-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.language-row a {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.78);
    transition: color var(--speed), border-color var(--speed), transform var(--speed);
}

.language-row a:hover,
.language-row a:focus-visible,
.language-row a.is-active {
    color: #f8d985;
    border-color: rgba(248, 217, 133, 0.36);
    transform: translateY(-1px);
}

.footer-theme {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.footer .footer-theme-toggle {
    width: 40px;
    min-height: 36px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #f8d985;
    transition: transform var(--speed), border-color var(--speed), background var(--speed);
}

.footer .footer-theme-toggle:hover,
.footer .footer-theme-toggle:focus-visible {
    border-color: rgba(248, 217, 133, 0.36);
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.footer__meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer__meta svg {
    width: 17px;
    height: 17px;
    color: #f8d985;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.58);
    font-family: "Outfit", Arial, sans-serif;
    text-align: center;
}

.language-switcher {
    display: inline-flex;
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(19, 34, 53, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.62);
}

.language-switcher a {
    padding: 5px 8px;
    font-size: 0.82rem;
}

.theme-toggle,
.logout-form button {
    min-height: 38px;
    border: 1px solid rgba(19, 34, 53, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    color: var(--blue);
}

.theme-toggle {
    width: 42px;
    display: inline-grid;
    place-items: center;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle svg:last-child {
    display: none;
}

.logout-form {
    margin: 0;
}

.logout-form button {
    padding: 0 11px;
    font-weight: 700;
}

.auth-panel {
    width: min(560px, calc(100% - 32px));
    margin-inline: auto;
}

.auth-link {
    color: var(--green);
    font-weight: 800;
    text-align: center;
}

.check-row {
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px !important;
    color: var(--muted);
}

.check-row input {
    width: auto;
}

.ifta-thread-list {
    display: grid;
    gap: 14px;
}

.ifta-thread {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.ifta-thread__head span {
    color: var(--green);
    font-weight: 800;
}

.ifta-thread__head h2 {
    margin: 8px 0;
    color: var(--blue-deep);
    line-height: 1.35;
}

.ifta-thread__head p,
.reply-item p {
    margin: 0;
    color: var(--muted);
}

.reply-thread {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.reply-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
}

.reply-item.is-official {
    border-color: rgba(8, 116, 69, 0.28);
    background: var(--green-soft);
}

.reply-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--blue);
}

.moderation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--muted);
    font-family: "Outfit", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
}

.status-pill.is-live {
    border-color: rgba(8, 116, 69, 0.28);
    background: rgba(8, 116, 69, 0.1);
    color: var(--green);
}

.status-pill.is-pending {
    border-color: rgba(209, 144, 0, 0.28);
    background: rgba(248, 217, 133, 0.2);
    color: #9b6a00;
}

.reply-form {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.reply-form label {
    display: grid;
    gap: 6px;
    color: var(--blue);
    font-weight: 800;
}

.reply-form textarea,
.admin-card input,
.admin-card select,
.admin-card textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    padding: 10px 12px;
    outline: none;
}

.admin-body {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #f5f7f3;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px;
    background: linear-gradient(180deg, var(--blue-deep), var(--green-deep));
    color: white;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Outfit", Arial, sans-serif;
    font-weight: 800;
}

.admin-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    padding: 5px;
    border-radius: 50%;
    background: white;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.86);
}

.admin-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-main {
    padding: 28px;
}

.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-heading span {
    color: var(--green);
    font-weight: 800;
}

.admin-heading h1 {
    margin: 4px 0 0;
    color: var(--blue-deep);
    font-family: "Outfit", Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-stats article,
.admin-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(19, 34, 53, 0.08);
}

.admin-stats span,
.admin-list span,
.admin-page-grid span {
    color: var(--muted);
}

.admin-stats strong {
    display: block;
    color: var(--blue);
    font-family: "Outfit", Arial, sans-serif;
    font-size: 2.4rem;
}

.admin-list,
.admin-page-grid,
.admin-question-list {
    display: grid;
    gap: 12px;
}

.admin-list a,
.admin-page-grid a {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 160px auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
}

.admin-reply-create {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(8, 116, 69, 0.18);
    border-radius: var(--radius);
    background: rgba(8, 116, 69, 0.07);
}

.admin-reply-create label {
    display: grid;
    gap: 6px;
    color: var(--blue);
    font-weight: 800;
}

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

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    color: var(--muted);
}

.admin-user-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 140px 110px 1fr 88px;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
}

.admin-edit-form {
    display: grid;
    gap: 14px;
}

.admin-edit-form label {
    display: grid;
    gap: 6px;
    color: var(--blue);
    font-weight: 800;
}

.admin-question-card {
    display: grid;
    gap: 14px;
}

.admin-question-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
}

.admin-question-head h2 {
    margin: 4px 0 6px;
    color: var(--blue);
}

[data-theme="dark"] {
    --ink: #e6edf5;
    --muted: #b2bfcc;
    --paper: #101925;
    --paper-strong: #182536;
    --blue: #ffffff;
    --blue-deep: #ffffff;
    --line: rgba(148, 163, 184, 0.18);
    --glass: rgba(19, 31, 46, 0.9);
    --green-soft: rgba(8, 116, 69, 0.18);
    --cyan-soft: rgba(8, 168, 216, 0.12);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] body {
    background:
        linear-gradient(180deg, rgba(16, 25, 37, 0.98), rgba(16, 25, 37, 1)),
        var(--tile) 0 0 / 96px 96px,
        var(--paper);
}

[data-theme="dark"] body::before,
[data-theme="dark"] body::after,
[data-theme="dark"] .ambient-geometry,
[data-theme="dark"] .topline::before {
    opacity: 0.08;
}

[data-theme="dark"] .navlinks {
    background: transparent;
}

[data-theme="dark"] .navlinks a {
    color: rgba(231, 237, 244, 0.84);
}

[data-theme="dark"] .navlinks a:hover,
[data-theme="dark"] .navlinks a:focus-visible,
[data-theme="dark"] .navlinks a.is-active {
    color: white;
}

[data-theme="dark"] .topline-select option {
    color: #132235;
}

[data-theme="dark"] .topline,
[data-theme="dark"] .footer {
    background:
        linear-gradient(135deg, rgba(15, 23, 38, 0.98), rgba(8, 78, 52, 0.84)),
        var(--tile) center / 120px 120px,
        #101925;
}

[data-theme="dark"] .site-header {
    background: rgba(16, 25, 37, 0.88);
    border-bottom-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .nav-toggle,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .logout-form button,
[data-theme="dark"] .language-switcher,
[data-theme="dark"] .search-box input,
[data-theme="dark"] .form-panel input,
[data-theme="dark"] .form-panel textarea,
[data-theme="dark"] .reply-form textarea,
[data-theme="dark"] .admin-card input,
[data-theme="dark"] .admin-card select,
[data-theme="dark"] .admin-card textarea {
    background: rgba(13, 22, 33, 0.96);
    border-color: rgba(148, 163, 184, 0.18);
    color: var(--ink);
}

[data-theme="dark"] .nav-toggle span:not(.sr-only) {
    background: #dbe7f3;
}

[data-theme="dark"] .prayer-next,
[data-theme="dark"] .prayer-next div {
    background: rgba(24, 37, 54, 0.9);
    border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .navbar {
    background-color: rgba(16, 25, 37, 0.9);
}

[data-theme="dark"] .prose-block,
[data-theme="dark"] .department-detail article,
[data-theme="dark"] .fatwa-panel,
[data-theme="dark"] .publication-panel,
[data-theme="dark"] .form-panel,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .ifta-thread,
[data-theme="dark"] .department-card,
[data-theme="dark"] .service-list article,
[data-theme="dark"] .question-list a,
[data-theme="dark"] .publication-stack article,
[data-theme="dark"] .publication-library article,
[data-theme="dark"] .name-list article,
[data-theme="dark"] .dua-list,
[data-theme="dark"] .reply-item,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .admin-stats article {
    background-color: rgba(24, 37, 54, 0.92);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] .publication-stack article,
[data-theme="dark"] .question-list a,
[data-theme="dark"] .publication-library article,
[data-theme="dark"] .name-list article,
[data-theme="dark"] .reply-item,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .admin-stats article {
    background-color: rgba(28, 42, 60, 0.94);
}

[data-theme="dark"] .fatwa-panel,
[data-theme="dark"] .publication-panel,
[data-theme="dark"] .form-panel,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .ifta-thread {
    background-color: rgba(20, 32, 47, 0.94);
}

[data-theme="dark"] .department-card,
[data-theme="dark"] .service-list article {
    background:
        linear-gradient(180deg, rgba(24, 37, 54, 0.98), rgba(18, 29, 43, 0.98)),
        var(--tile) center / 170px 170px;
}

[data-theme="dark"] .department-card > svg,
[data-theme="dark"] .service-list article > svg {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

[data-theme="dark"] .page-hero,
[data-theme="dark"] .section-pad--light {
    background:
        linear-gradient(180deg, rgba(12, 20, 31, 0.96), rgba(16, 25, 37, 0.92)),
        var(--tile) center / 132px 132px,
        var(--paper);
}

[data-theme="dark"] .map-placeholder,
[data-theme="dark"] .language-switcher {
    background: rgba(18, 29, 43, 0.78);
    border-color: rgba(148, 163, 184, 0.14);
}

[data-theme="dark"] .search-box input::placeholder,
[data-theme="dark"] .form-panel input::placeholder,
[data-theme="dark"] .form-panel textarea::placeholder,
[data-theme="dark"] .reply-form textarea::placeholder,
[data-theme="dark"] .admin-card input::placeholder,
[data-theme="dark"] .admin-card textarea::placeholder {
    color: rgba(178, 191, 204, 0.68);
}

[data-theme="dark"] .brand,
[data-theme="dark"] .page-hero p,
[data-theme="dark"] .prose-block p,
[data-theme="dark"] .department-detail p,
[data-theme="dark"] .reply-item p,
[data-theme="dark"] .question-list small,
[data-theme="dark"] .name-list article span,
[data-theme="dark"] .admin-stats span,
[data-theme="dark"] .admin-list span,
[data-theme="dark"] .admin-page-grid span,
[data-theme="dark"] .footer p,
[data-theme="dark"] .footer__links a,
[data-theme="dark"] .footer-theme,
[data-theme="dark"] .footer__bottom {
    color: var(--muted);
}

[data-theme="dark"] .department-card span,
[data-theme="dark"] .question-list span,
[data-theme="dark"] .publication-library a,
[data-theme="dark"] .ifta-thread__head span,
[data-theme="dark"] .section-kicker,
[data-theme="dark"] .auth-link {
    color: #6bd3af;
}

[data-theme="dark"] .department-card p,
[data-theme="dark"] .service-list p,
[data-theme="dark"] .publication-stack p,
[data-theme="dark"] .publication-library p,
[data-theme="dark"] .donate-grid p,
[data-theme="dark"] .dua-list span,
[data-theme="dark"] .contact-card p {
    color: rgba(230, 237, 245, 0.74);
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 14px 28px rgba(8, 116, 69, 0.24);
}

[data-theme="dark"] .hero__stats strong,
[data-theme="dark"] .hero__stats span,
[data-theme="dark"] .hero-slide figcaption small,
[data-theme="dark"] .hero-slide figcaption strong,
[data-theme="dark"] .hero-slider__brand {
    color: #f3f7fb;
}

[data-theme="dark"] .hero-slider__brand,
[data-theme="dark"] .hero-slide figcaption,
[data-theme="dark"] .hero-slider__controls,
[data-theme="dark"] .hero__stats,
[data-theme="dark"] .hero__stats div {
    background: rgba(10, 17, 27, 0.72);
    border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .hero__stats span {
    color: rgba(230, 237, 245, 0.78);
}

[data-theme="dark"] .topline__dates,
[data-theme="dark"] .topline__time,
[data-theme="dark"] .topline__location {
    color: rgba(230, 237, 245, 0.82);
}

[data-theme="dark"] .footer__links a:hover,
[data-theme="dark"] .footer__links a:focus-visible,
[data-theme="dark"] .language-row a:hover,
[data-theme="dark"] .language-row a:focus-visible,
[data-theme="dark"] .language-row a.is-active {
    color: #f8d985;
}

[data-theme="dark"] .status-pill {
    background: rgba(18, 29, 43, 0.92);
}

[data-theme="dark"] .status-pill.is-live {
    background: rgba(8, 116, 69, 0.16);
}

[data-theme="dark"] .status-pill.is-pending {
    background: rgba(214, 155, 33, 0.16);
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .navbar,
[data-theme="dark"] .prose-block,
[data-theme="dark"] .department-detail article,
[data-theme="dark"] .fatwa-panel,
[data-theme="dark"] .publication-panel,
[data-theme="dark"] .form-panel,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .ifta-thread,
[data-theme="dark"] .department-card,
[data-theme="dark"] .service-list article,
[data-theme="dark"] .question-list a,
[data-theme="dark"] .publication-stack article,
[data-theme="dark"] .publication-library article,
[data-theme="dark"] .name-list article,
[data-theme="dark"] .dua-list,
[data-theme="dark"] .reply-item,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .admin-stats article {
    border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .publication-stack article,
[data-theme="dark"] .publication-library article,
[data-theme="dark"] .name-list article,
[data-theme="dark"] .question-list a,
[data-theme="dark"] .donate-grid article {
    background:
        linear-gradient(180deg, rgba(24, 37, 54, 0.98), rgba(18, 29, 43, 0.98)),
        var(--tile) center / 170px 170px;
}

[data-theme="dark"] .publication-library__media,
[data-theme="dark"] .donate-grid__media,
[data-theme="dark"] .panel-media,
[data-theme="dark"] .department-card__media {
    background: rgba(12, 20, 31, 0.9);
}

[data-theme="dark"] .publication-stack article > svg,
[data-theme="dark"] .publication-library article > svg {
    color: #f0b53a;
}

[data-theme="dark"] .hero__stats,
[data-theme="dark"] .hero__stats div,
[data-theme="dark"] .hero-slide figcaption,
[data-theme="dark"] .hero-slider__controls,
[data-theme="dark"] .hero-slider__brand,
[data-theme="dark"] .btn-ghost {
    background: rgba(10, 17, 27, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
    color: #f4f8fb;
}

[data-theme="dark"] .btn-ghost:hover,
[data-theme="dark"] .btn-ghost:focus-visible,
[data-theme="dark"] .hero .btn-ghost:hover,
[data-theme="dark"] .hero .btn-ghost:focus-visible {
    background: rgba(27, 42, 61, 0.92);
}

[data-theme="dark"] .page-hero p,
[data-theme="dark"] .prose-block p,
[data-theme="dark"] .department-detail p,
[data-theme="dark"] .reply-item p,
[data-theme="dark"] .question-list small,
[data-theme="dark"] .name-list article span,
[data-theme="dark"] .admin-stats span,
[data-theme="dark"] .admin-list span,
[data-theme="dark"] .admin-page-grid span {
    color: var(--muted);
}

[data-theme="dark"] .page-hero h1,
[data-theme="dark"] .brand strong,
[data-theme="dark"] .brand small,
[data-theme="dark"] .prose-block h2,
[data-theme="dark"] .admin-heading h1,
[data-theme="dark"] .reply-item strong,
[data-theme="dark"] .name-list article strong {
    color: #f3f7fb;
}

[data-theme="dark"] .navlinks.is-open {
    background: rgba(16, 25, 37, 0.98);
    border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .status-pill {
    background: rgba(22, 34, 50, 0.88);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .department-card h3,
[data-theme="dark"] .service-list h3,
[data-theme="dark"] .question-list strong,
[data-theme="dark"] .prayer-grid strong,
[data-theme="dark"] .seal-panel strong {
    color: #eef5ff;
}

[data-theme="dark"] .theme-toggle svg:first-child {
    display: none;
}

[data-theme="dark"] .theme-toggle svg:last-child {
    display: block;
}

@keyframes breathe {
    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.55;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes hero-progress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes rise {
    from {
        transform: translateY(22px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@media (max-width: 980px) {
    .ambient-geometry,
    body::after {
        display: none;
    }

    .topline__grid,
    .hero__grid,
    .intro-band__grid,
    .split-section,
    .feature-columns,
    .ifta-grid,
    .contact-grid,
    .names-grid,
    .goals__grid,
    .page-hero__grid,
    .department-detail article {
        grid-template-columns: 1fr;
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-stats,
    .admin-form-grid,
    .admin-user-row,
    .admin-question-head {
        grid-template-columns: 1fr;
    }

    .topline__grid {
        justify-items: center;
        padding: 8px 0;
    }

    .topline__actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .navlinks {
        position: absolute;
        inset: 100% 16px auto 16px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, -10px, 0) scale(0.98);
        transform-origin: top center;
        transition: opacity var(--speed), transform var(--speed), visibility var(--speed);
    }

    .navlinks.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scale(1);
    }

    .navlinks a {
        text-align: center;
    }

    .hero__grid {
        gap: 28px;
    }

    .hero {
        min-height: auto;
        padding: 72px 0 50px;
    }

    .hero > .hero-slider {
        min-height: 100%;
    }

    .page-hero__media,
    .page-hero__media img {
        min-height: 240px;
    }

    .department-detail__media {
        width: 100%;
    }

    .hero h1,
    .page-hero h1 {
        max-width: 100%;
    }

    .hero__stats,
    .department-grid,
    .prose-grid,
    .publication-library,
    .donate-grid,
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .department-card:nth-child(3n + 1),
    .department-card:hover {
        transform: none;
    }

    .split-section__copy {
        position: static;
    }

    .page-hero__media img {
        margin: 0;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .navbar__inner {
        min-height: 76px;
    }

    .brand {
        min-width: auto;
    }

    .brand img {
        width: 66px;
        height: 66px;
    }

    .brand strong {
        font-size: 0.95rem;
    }

    .brand small {
        font-size: 0.66rem;
    }

    .navlinks.is-open,
    .hero__stats,
    .department-grid,
    .prose-grid,
    .publication-library,
    .donate-grid,
    .footer__grid,
    .name-list,
    .prayer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 56px 0 40px;
    }

    .hero > .hero-slider {
        min-height: 100%;
    }

    .hero-slide figcaption {
        display: none;
    }

    .hero-slide figcaption small {
        -webkit-line-clamp: 3;
    }

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

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

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

    .seal-panel {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .question-list a {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .widget-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer__bottom {
        text-align: start;
    }
}
