:root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    --bg: #f2f7f4;
    --surface: #ffffff;
    --ink: #0f231b;
    --muted: #4a6257;
    --line: #d3e1d9;
    --green: #0b4d3a;
    --green-2: #0e6a4f;
    --green-deep: #062f23;
    --gold: #b78a2c;
    --gold-soft: #ebd9a6;
    --on-green: #eaf4ee;
    --shadow: 0 1px 2px rgba(6, 47, 35, 0.06), 0 8px 24px rgba(6, 47, 35, 0.07);
    --serif: "Noto Serif Bengali", "Hind Siliguri", serif;
    --sans: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
    --arabic: "Amiri", "Noto Naskh Arabic", serif;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #08130f;
        --surface: #0f1f19;
        --ink: #e5f0ea;
        --muted: #9bb4a8;
        --line: #1f362c;
        --green: #0e6a4f;
        --green-2: #13805f;
        --green-deep: #041a13;
        --gold: #d3a845;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    }
}
:root[data-theme="dark"] {
    --bg: #08130f;
    --surface: #0f1f19;
    --ink: #e5f0ea;
    --muted: #9bb4a8;
    --line: #1f362c;
    --green: #0e6a4f;
    --green-2: #13805f;
    --green-deep: #041a13;
    --gold: #d3a845;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}
*,
*::before,
*::after {
    box-sizing: inherit;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
img,
svg {
    max-width: 100%;
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}
h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    line-height: 1.35;
    margin: 0;
    font-weight: 700;
}
p {
    margin: 0;
}
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}
.wrap {
    width: min(1180px, 100% - 40px);
    margin-inline: auto;
}
.i {
    width: 1.2em;
    height: 1.2em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
.pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7em 1.4em;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
    font-family: var(--sans);
    line-height: 1.4;
}
.btn-gold {
    background: var(--gold);
    color: #1b1300;
}
.btn-gold:hover {
    background: #cfa340;
}
.btn-line {
    border-color: rgba(234, 244, 238, 0.55);
    color: var(--on-green);
}
.btn-line:hover {
    background: rgba(234, 244, 238, 0.12);
}
.btn-green {
    background: var(--green);
    color: #fff;
}
.btn-green:hover {
    background: var(--green-2);
}

/* top bar */
.topbar {
    background: var(--green-deep);
    color: var(--on-green);
    font-size: 14.5px;
}
.topbar .wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 8px;
    flex-wrap: wrap;
}
.topbar span,
.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.topbar .grp {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.arabic-bismillah {
    font-family: var(--arabic);
    font-size: 20px;
    color: var(--gold-soft);
    line-height: 1.2;
}

/* header */
header.site {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(6, 47, 35, 0.05);
}
header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand svg {
    width: 54px;
    height: 54px;
    flex: none;
}
.brand b {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--green);
    display: block;
    line-height: 1.25;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand b {
        color: var(--gold-soft);
    }
}
:root[data-theme="dark"] .brand b {
    color: var(--gold-soft);
}
.brand small {
    color: var(--muted);
    font-size: 13.5px;
    display: block;
    line-height: 1.3;
}
nav.mega {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
    flex-wrap: nowrap;
}
.mega-home,
.nav-primary a {
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}
.mega-home:hover,
.nav-primary a:hover {
    background: var(--bg);
}
.nav-primary {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mega-wrap {
    position: relative;
}
.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    color: var(--ink);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}
.menu-btn .i {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}
.menu-btn:hover,
.mega-wrap.open .menu-btn,
.mega-wrap:hover .menu-btn {
    background: var(--bg);
    color: var(--green);
}
.menu-label {
    display: none;
}
.mega-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(6, 47, 35, 0.12);
    padding: 8px;
    z-index: 70;
}
.mega-panel ul {
    display: grid;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mega-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
}
.mega-panel a:hover {
    background: var(--bg);
    color: var(--green);
}
.mega-mobile-only {
    display: none;
}
.mega-wrap.open .mega-panel,
.mega-wrap:hover .mega-panel,
.mega-wrap:focus-within .mega-panel {
    display: block;
}
.cta-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 0;
    isolation: isolate;
}
.cta-bar:hover {
    color: #fff;
}
.cta-flow::before {
    content: "";
    position: absolute;
    inset: -60%;
    background: conic-gradient(
        from 0deg,
        transparent 0 78%,
        #fff 86%,
        var(--gold-soft) 92%,
        var(--gold) 96%,
        transparent 100%
    );
    animation: current-flow 1.8s linear infinite;
    z-index: -2;
}
.cta-flow::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: var(--green);
    border-radius: 6px;
    z-index: -1;
    transition: background 0.2s;
}
.cta-flow:hover::after {
    background: var(--green-2);
}
@keyframes current-flow {
    to {
        transform: rotate(360deg);
    }
}
.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}
.account-menu {
    position: relative;
}
.account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--green);
    cursor: pointer;
}
.account-btn .i {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}
.account-btn:hover,
.account-menu.open .account-btn {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.account-drop {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    min-width: 230px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(6, 47, 35, 0.12);
    padding: 10px;
    z-index: 60;
}
.account-drop p {
    margin: 0 6px 8px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}
.account-drop a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--ink);
}
.account-drop a:hover {
    background: var(--bg);
    color: var(--green);
}
@media (max-width: 980px) {
    .nav-primary {
        display: none;
    }
    .mega-mobile-only {
        display: list-item;
    }
    .more-label {
        display: none;
    }
    .menu-label {
        display: inline;
    }
    .menu-btn {
        background: var(--bg);
        border: 1px solid var(--line);
    }
    .cta-bar {
        font-size: 14px;
        padding: 8px 10px;
    }
}

/* ticker */
.ticker {
    background: var(--gold);
    color: #1b1300;
    overflow: hidden;
    font-weight: 500;
    font-size: 16px;
}
.ticker .wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ticker .tag {
    background: var(--green-deep);
    color: var(--gold-soft);
    padding: 8px 16px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: -20px;
    padding-left: 20px;
}
.ticker .track {
    overflow: hidden;
    flex: 1;
}
.ticker .move {
    display: inline-flex;
    gap: 56px;
    white-space: nowrap;
    padding-block: 8px;
    animation: slide 42s linear infinite;
}
.ticker .move a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
.ticker .move a:hover {
    color: var(--green-deep);
}
.ticker:hover .move {
    animation-play-state: paused;
}
.home-pop{position:fixed;inset:0;z-index:85;display:flex;align-items:flex-start;justify-content:center;padding-top:clamp(132px,18vh,200px);visibility:hidden;pointer-events:none}
.home-pop.on{visibility:visible;pointer-events:auto}
.home-pop .veil{position:absolute;inset:0;background:rgba(6,30,22,.55);opacity:0;transition:opacity .7s ease}
.home-pop.on .veil{opacity:1}
.home-pop .sheet{position:relative;width:min(920px,94vw);background:var(--surface);border-radius:18px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.35);transform:translate3d(0,-120%,0);transition:transform .9s cubic-bezier(.16,1,.3,1);will-change:transform}
.home-pop.on .sheet{transform:translate3d(0,0,0)}
.home-pop img{display:block;width:100%;max-height:72vh;object-fit:cover}
.home-pop .x{position:absolute;top:12px;right:12px;width:40px;height:40px;border:0;border-radius:50%;background:rgba(6,30,22,.55);color:#EBD9A6;font-size:26px;cursor:pointer;line-height:1;z-index:2}
.home-pop .go{position:absolute;right:16px;bottom:16px;z-index:2;overflow:visible;isolation:isolate}
.home-pop .go::before{
  content:"";position:absolute;inset:-5px;border-radius:inherit;padding:3px;pointer-events:none;
  background:conic-gradient(#fff8e0,#EBD9A6,#B78A2C,transparent 28%,transparent 72%,#fff);
  animation:popCurrent 1.5s linear infinite;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
}
@keyframes popCurrent{to{transform:rotate(360deg)}}
@keyframes slide {
    to {
        transform: translateX(-50%);
    }
}

/* hero */
.hero {
    background: var(--green);
    color: var(--on-green);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        900px 500px at 85% 40%,
        rgba(183, 138, 44, 0.28),
        transparent 60%
    );
    pointer-events: none;
}
.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
    padding-block: 72px 80px;
    position: relative;
    z-index: 1;
}
.hero .verse {
    font-family: var(--arabic);
    font-size: 28px;
    color: var(--gold-soft);
    line-height: 1.6;
    margin-bottom: 6px;
}
.hero .verse-bn {
    font-size: 15px;
    color: rgba(234, 244, 238, 0.75);
    margin-bottom: 26px;
}
.hero h1 {
    font-size: clamp(34px, 5.2vw, 58px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}
.hero p.lead {
    font-size: 19px;
    max-width: 34em;
    color: rgba(234, 244, 238, 0.88);
    margin-bottom: 32px;
}
.hero .actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero .facts {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    flex-wrap: wrap;
    font-size: 15px;
    color: rgba(234, 244, 238, 0.8);
}
.hero .facts div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero .facts .i {
    color: var(--gold-soft);
}
.arch {
    width: min(420px, 100%);
    margin-inline: auto;
    position: relative;
}
.arch .frame {
    border-radius: 210px 210px 14px 14px;
    padding: 12px;
    border: 2px solid var(--gold);
    background: rgba(6, 47, 35, 0.35);
}
.arch svg {
    display: block;
    width: 100%;
    height: 77px;
    border-radius: 200px 200px 6px 6px;
}
.arch .cap {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 14.5px;
    box-shadow: var(--shadow);
    white-space: nowrap;
    display: flex;
    gap: 8px;
    align-items: center;
}
.arch .cap .i {
    color: var(--gold);
}
@media (max-width: 900px) {
    .hero .wrap {
        grid-template-columns: 1fr;
        padding-block: 48px 64px;
        gap: 48px;
    }
    .arch {
        width: min(340px, 100%);
    }
}

/* quick links */
.quick {
    margin-top: -34px;
    position: relative;
    z-index: 5;
}
.quick .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    overflow: hidden;
}
.quick a {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 22px 24px;
    border-right: 1px solid var(--line);
    transition: background 0.2s;
}
.quick a:last-child {
    border-right: 0;
}
.quick a:hover {
    background: var(--bg);
}
.quick .ic {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    flex: none;
}
.quick .ic .i {
    width: 22px;
    height: 22px;
}
.quick b {
    display: block;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.3;
}
.quick small {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    display: block;
}
@media (max-width: 900px) {
    .quick .grid {
        grid-template-columns: 1fr 1fr;
    }
    .quick a:nth-child(2) {
        border-right: 0;
    }
    .quick a:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}
@media (max-width: 520px) {
    .quick .grid {
        grid-template-columns: 1fr;
    }
    .quick a {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .quick a:last-child {
        border-bottom: 0;
    }
}

/* sections */
section {
    padding-block: 84px;
}
.sec-head {
    max-width: 640px;
    margin-bottom: 44px;
}
.sec-head.center {
    text-align: center;
    margin-inline: auto;
}
.sec-head h2 {
    font-size: clamp(28px, 3.6vw, 38px);
    margin-bottom: 12px;
}
.sec-head p {
    color: var(--muted);
}
.rule {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--gold);
}
.sec-head.center .rule {
    justify-content: center;
}
.rule::before,
.rule::after {
    content: "";
    height: 1px;
    width: 42px;
    background: currentColor;
    opacity: 0.6;
}
.rule svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* photo placeholder */
.photo {
    position: relative;
    background: linear-gradient(135deg, var(--green-2), var(--green-deep));
    display: grid;
    place-items: center;
    color: rgba(234, 244, 238, 0.85);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.photo.pattern {
    background-color: var(--green);
}
.photo span {
    position: relative;
    font-size: 14px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: rgba(6, 47, 35, 0.55);
    padding: 6px 14px;
    border-radius: 999px;
}

/* about */
.about .wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}
.about .photo {
    aspect-ratio: 4/5;
    border-radius: 200px 200px 16px 16px;
    border: 2px solid var(--gold);
    outline: 8px solid var(--bg);
    box-shadow: 0 0 0 10px var(--surface);
}
.about h2 {
    font-size: clamp(28px, 3.6vw, 38px);
    margin-bottom: 18px;
}
.about p + p {
    margin-top: 14px;
}
.about .p {
    color: var(--muted);
}
.about .list {
    list-style: none;
    padding: 0;
    margin: 26px 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}
.about .list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
}
.about .list .i {
    color: var(--gold);
    margin-top: 5px;
}
@media (max-width: 900px) {
    .about .wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about .photo {
        max-width: 340px;
        margin-inline: auto;
        width: 100%;
    }
    .about .list {
        grid-template-columns: 1fr;
    }
}

/* message */
.msg {
    background: var(--surface);
    border-block: 1px solid var(--line);
    padding-block: 72px;
}
.msg .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.msg article {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    border-radius: 18px;
    background: var(--bg);
    border: 1px solid var(--line);
}
.msg .photo {
    width: 112px;
    height: 132px;
    border-radius: 56px 56px 10px 10px;
    flex: none;
    border: 2px solid var(--gold);
}
.msg .photo .i {
    width: 44px;
    height: 44px;
}
.msg h3 {
    font-size: 20px;
    margin-bottom: 2px;
}
.msg .role {
    color: var(--gold);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
}
.msg p.q {
    color: var(--muted);
    font-size: 16px;
}
.msg a.more {
    display: inline-block;
    margin-top: 12px;
    color: var(--green);
    font-weight: 600;
    border-bottom: 2px solid var(--gold);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .msg a.more {
        color: var(--gold-soft);
    }
}
:root[data-theme="dark"] .msg a.more {
    color: var(--gold-soft);
}
@media (max-width: 900px) {
    .msg .wrap {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .msg article {
        flex-direction: column;
        padding: 24px;
    }
}

/* departments */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
}
.dept {
    position: relative;
    border-radius: 20px;
    padding: 34px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 250px;
}
.dept .ar {
    font-family: var(--arabic);
    font-size: 34px;
    color: var(--gold);
    line-height: 1.3;
}
.dept h3 {
    font-size: 24px;
}
.dept p {
    color: var(--muted);
    max-width: 30em;
}
.dept .meta {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14.5px;
    color: var(--muted);
}
.dept .meta span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.dept .meta .i {
    color: var(--gold);
}
.dept.feature {
    grid-column: span 12;
    background: var(--green);
    color: var(--on-green);
    border-color: var(--green);
    min-height: 260px;
}
.dept.feature p,
.dept.feature .meta {
    color: rgba(234, 244, 238, 0.82);
}
.dept.feature .ar {
    color: var(--gold-soft);
    font-size: 44px;
}
.dept.feature .meta .i {
    color: var(--gold-soft);
}
.dept.feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.dept.feature > * {
    position: relative;
    z-index: 1;
}
.dept.third {
    grid-column: span 4;
}
@media (max-width: 900px) {
    .dept,
    .dept.third {
        grid-column: span 12;
    }
}

/* stats */
.stats {
    background: var(--green-deep);
    color: var(--on-green);
    padding-block: 64px;
    position: relative;
}
.stats .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}
.stats .n {
    font-family: var(--serif);
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    color: var(--gold-soft);
    line-height: 1.2;
}
.stats .l {
    font-size: 16px;
    color: rgba(234, 244, 238, 0.8);
}
.stats .grid > div {
    padding: 8px;
    border-left: 1px solid rgba(234, 244, 238, 0.14);
}
.stats .grid > div:first-child {
    border-left: 0;
}
@media (max-width: 760px) {
    .stats .grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats .grid > div:nth-child(3) {
        border-left: 0;
    }
}

/* notices & events */
.nb .wrap {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.panel h3 {
    padding: 18px 26px;
    background: var(--green);
    color: #fff;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.panel h3 a {
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--gold-soft);
}
.notice {
    display: flex;
    gap: 18px;
    padding: 18px 26px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
    transition: background 0.2s;
}
.notice:last-child {
    border-bottom: 0;
}
.notice:hover {
    background: var(--bg);
}
.date {
    flex: none;
    width: 62px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
}
.date b {
    display: block;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.5;
    color: var(--green);
}
.date small {
    display: block;
    background: var(--gold);
    color: #1b1300;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.7;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .date b {
        color: var(--gold-soft);
    }
}
:root[data-theme="dark"] .date b {
    color: var(--gold-soft);
}
.notice h4 {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}
.notice p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}
.badge {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    padding: 1px 10px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: #3b2b00;
    margin-right: 8px;
    vertical-align: 1px;
}
.event {
    padding: 20px 26px;
    border-bottom: 1px solid var(--line);
}
.event:last-child {
    border-bottom: 0;
}
.event .when {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 600;
    font-size: 14.5px;
}
.event h4 {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    margin-top: 2px;
    line-height: 1.5;
}
.event p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}
@media (max-width: 900px) {
    .nb .wrap {
        grid-template-columns: 1fr;
    }
}

/* teachers */
.teachers {
    background: var(--surface);
    border-block: 1px solid var(--line);
}
.t-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.inner-main .t-grid .t {
    opacity: 1;
    transform: none;
}
.pager {
    margin: 36px 0 8px;
    display: flex;
    justify-content: center;
}
.pager ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
}
.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(6, 47, 35, 0.06);
}
.pager a:hover {
    border-color: var(--gold);
    color: var(--green);
    background: #fff;
}
.pager .is-on span {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 8px 18px rgba(11, 77, 58, 0.28);
}
.pager .is-off span {
    opacity: 0.4;
    box-shadow: none;
}
.t {
    text-align: center;
}
.t .photo {
    aspect-ratio: 1/1.1;
    border-radius: 120px 120px 12px 12px;
    margin-bottom: 16px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.t:hover .photo {
    border-color: var(--gold);
}
.t .photo .i {
    width: 54px;
    height: 54px;
    stroke-width: 1.4;
}
.t h4 {
    font-size: 18px;
}
.t p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}
@media (max-width: 900px) {
    .t-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* gallery */
.g-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 170px;
    gap: 14px;
}
.g-grid .photo {
    border-radius: 14px;
    border: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    font: inherit;
    color: #fff;
}
.g-grid .photo span {
    color: #fff;
}
.g-grid .photo span .i {
    color: #fff;
    fill: currentColor;
}
.g-grid .photo:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(6, 47, 35, 0.22);
}
.gal-lb {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(6, 30, 22, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 72px 72px;
}
.gal-lb[hidden] {
    display: none;
}
.gal-lb figure {
    margin: 0;
    max-width: min(92vw, 1080px);
    text-align: center;
}
.gal-lb img {
    max-width: 100%;
    max-height: 76vh;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    object-fit: contain;
    background: #062f23;
    transition: opacity 0.35s ease;
}
.gal-lb figcaption {
    color: #ebd9a6;
    margin-top: 14px;
    font-size: 15px;
}
.gal-x {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(235, 217, 166, 0.15);
    color: #ebd9a6;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
.gal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #b78a2c;
    color: #1b1300;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
.gal-prev {
    left: 16px;
}
.gal-next {
    right: 16px;
}
@media (max-width: 700px) {
    .gal-lb {
        padding: 56px 12px 64px;
    }
    .gal-nav {
        width: 40px;
        height: 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .gal-lb img {
        transition: none;
    }
    .g-grid .photo:hover {
        transform: none;
    }
}
.g-grid .a {
    grid-column: span 2;
    grid-row: span 2;
}
.g-grid .b {
    grid-row: span 2;
}
.g-grid .c {
    grid-column: span 2;
}
@media (max-width: 760px) {
    .g-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 140px;
    }
    .g-grid .a {
        grid-column: span 2;
    }
    .g-grid .c {
        grid-column: span 2;
    }
}

/* donate */
.donate {
    background: var(--green);
    color: var(--on-green);
    position: relative;
    overflow: hidden;
}
.donate .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.donate h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    margin-bottom: 16px;
}
.donate .hadith {
    font-family: var(--arabic);
    font-size: 26px;
    color: var(--gold-soft);
    margin-bottom: 6px;
    line-height: 1.7;
}
.donate p {
    color: rgba(234, 244, 238, 0.86);
}
.funds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 26px;
}
.funds button {
    background: rgba(234, 244, 238, 0.08);
    border: 1px solid rgba(234, 244, 238, 0.25);
    color: var(--on-green);
    padding: 14px 16px;
    border-radius: 12px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition:
        background 0.2s,
        border-color 0.2s;
    display: flex;
    gap: 10px;
    align-items: center;
}
.funds button:hover {
    background: rgba(234, 244, 238, 0.16);
}
.funds button[aria-pressed="true"] {
    background: var(--gold);
    color: #1b1300;
    border-color: var(--gold);
}
.pay {
    background: var(--surface);
    color: var(--ink);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.pay h3 {
    font-size: 22px;
    margin-bottom: 4px;
}
.pay .sub {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 20px;
}
.pay .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 16px;
}
.pay .row b {
    font-family: var(--serif);
}
.pay .row span {
    color: var(--muted);
    font-size: 14.5px;
    display: block;
    line-height: 1.4;
}
.pay .amounts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0 20px;
}
.pay .amounts button {
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    padding: 8px 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.pay .amounts button[aria-pressed="true"] {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.pay .btn {
    width: 100%;
    justify-content: center;
}
.pay .note {
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}
@media (max-width: 900px) {
    .donate .wrap {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.donate-hero {
    background: var(--green-deep) center/cover no-repeat;
    color: var(--on-green);
    border-radius: 22px;
    padding: 56px 40px;
    margin-bottom: 36px;
    text-align: center;
}
.donate-hero .hadith {
    font-family: var(--arabic);
    font-size: clamp(20px, 3vw, 28px);
    color: var(--gold-soft);
    margin-bottom: 12px;
    line-height: 1.7;
}
.donate-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 12px;
}
.donate-hero p {
    max-width: 640px;
    margin: 0 auto 22px;
    color: rgba(234, 244, 238, 0.9);
    font-size: 18px;
}
.cause-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}
.cause-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.cause-photo {
    height: 180px;
    background: var(--green);
}
.cause-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cause-body {
    padding: 20px 22px 24px;
}
.cause-body h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.cause-body p {
    color: var(--muted);
}
.cause-body .who {
    margin-top: 10px;
    color: var(--green);
    font-size: 15px;
}
.account-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.account-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--shadow);
}
.account-card small {
    display: block;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 13px;
}
.account-card .num {
    display: block;
    font-family: var(--serif);
    font-size: 22px;
    margin: 8px 0 4px;
    word-break: break-all;
}
.account-card span {
    color: var(--muted);
    font-size: 13px;
}
.why {
    padding: 48px 0 56px;
    position: relative;
    overflow: hidden;
}
.why::before {
    content: "";
    position: absolute;
    inset: -20% 20% auto;
    height: 280px;
    background: radial-gradient(
        ellipse,
        rgba(183, 138, 44, 0.18),
        transparent 70%
    );
    pointer-events: none;
}
.why .sec-head {
    max-width: 820px;
    margin: 0 auto 32px;
}
.why .sec-head h2 {
    font-size: clamp(24px, 3.4vw, 36px);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.why-card {
    position: relative;
    background: linear-gradient(165deg, #147a61 0%, #0b4d3a 52%, #072f24 100%);
    color: var(--on-green);
    padding: 26px 22px 22px;
    border-radius: 14px;
    min-height: 190px;
    border: 1px solid rgba(235, 217, 166, 0.22);
    box-shadow: 0 12px 28px rgba(6, 47, 35, 0.16);
    overflow: hidden;
    transform: translateY(28px);
    opacity: 0;
    transition:
        transform 0.55s ease,
        opacity 0.55s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}
.why-card::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(235, 217, 166, 0.2),
        transparent 70%
    );
    pointer-events: none;
}
.why-card.in {
    transform: none;
    opacity: 1;
    transition-delay: var(--d, 0ms);
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(6, 47, 35, 0.28);
    border-color: rgba(235, 217, 166, 0.45);
}
.why-num {
    display: block;
    font-family: var(--serif);
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    opacity: 0.85;
}
.why-card h3 {
    color: var(--gold-soft);
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.45;
}
.why-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.8;
    color: rgba(234, 244, 238, 0.92);
}
@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    .why-card {
        opacity: 1;
        transform: none;
    }
}
.hero .wrap {
    animation: fadeUp 0.85s ease both;
}
.hero .arch {
    animation: fadeUp 0.95s ease 0.15s both;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.reveal-up {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.reveal-up.in {
    opacity: 1;
    transform: none;
}
main:not(.inner-main) .dept-grid .dept,
main:not(.inner-main) .news-card,
main:not(.inner-main) .t-grid .t,
main:not(.inner-main) .g-grid .photo,
main:not(.inner-main) .nb .panel,
main:not(.inner-main) .about .photo,
main:not(.inner-main) .stats .grid > div,
main:not(.inner-main) .donate .wrap,
main:not(.inner-main) .sec-head {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}
main:not(.inner-main) .dept-grid .dept.in,
main:not(.inner-main) .news-card.in,
main:not(.inner-main) .t-grid .t.in,
main:not(.inner-main) .g-grid .photo.in,
main:not(.inner-main) .nb .panel.in,
main:not(.inner-main) .about .photo.in,
main:not(.inner-main) .stats .grid > div.in,
main:not(.inner-main) .donate .wrap.in,
main:not(.inner-main) .sec-head.in {
    opacity: 1;
    transform: none;
}
main:not(.inner-main) .dept-grid .dept:nth-child(2),
main:not(.inner-main) .news-card:nth-child(2),
main:not(.inner-main) .t-grid .t:nth-child(2),
main:not(.inner-main) .g-grid .photo:nth-child(2) {
    transition-delay: 0.08s;
}
main:not(.inner-main) .dept-grid .dept:nth-child(3),
main:not(.inner-main) .news-card:nth-child(3),
main:not(.inner-main) .t-grid .t:nth-child(3),
main:not(.inner-main) .g-grid .photo:nth-child(3) {
    transition-delay: 0.16s;
}
main:not(.inner-main) .dept-grid .dept:nth-child(4),
main:not(.inner-main) .g-grid .photo:nth-child(4),
main:not(.inner-main) .t-grid .t:nth-child(4) {
    transition-delay: 0.24s;
}
@media (prefers-reduced-motion: reduce) {
    .hero .wrap,
    .hero .arch,
    .reveal-up,
    main:not(.inner-main) .dept-grid .dept,
    main:not(.inner-main) .news-card,
    main:not(.inner-main) .t-grid .t,
    main:not(.inner-main) .g-grid .photo,
    main:not(.inner-main) .nb .panel,
    main:not(.inner-main) .about .photo,
    main:not(.inner-main) .stats .grid > div,
    main:not(.inner-main) .donate .wrap,
    main:not(.inner-main) .sec-head {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}
.news-home {
    padding: 12px 0 48px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    color: inherit;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(6, 47, 35, 0.14);
}
.news-photo {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    position: relative;
}
.news-photo .play {
    position: absolute;
    inset: auto 14px 14px auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c4302b;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
}
.news-body {
    padding: 16px 18px 20px;
}
.news-body small {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.04em;
}
.news-body h3 {
    font-size: 18px;
    margin: 6px 0 8px;
    line-height: 1.4;
}
.news-body p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}
.news-article h1 {
    font-size: clamp(26px, 4vw, 40px);
    margin: 8px 0 20px;
}
.news-hero {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
    max-height: 420px;
    object-fit: cover;
}
.news-embed {
    position: relative;
    padding-top: 56.25%;
    margin: 0 0 22px;
    border-radius: 16px;
    overflow: hidden;
}
.news-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 22px;
}
.share-bar > span {
    font-size: 13px;
    color: var(--muted);
    margin-inline-end: 4px;
}
.share {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    border: 0;
    cursor: pointer;
}
.share.fb {
    background: #1877f2;
}
.share.tw {
    background: #0f1419;
}
.share.wa {
    background: #25d366;
}
.share.tg {
    background: #229ed9;
}
.share.copy {
    background: var(--green);
}
.share:hover {
    color: #fff;
    filter: brightness(1.08);
}
.share.copy.ok {
    background: var(--gold);
    color: var(--green-deep);
}
.news-html img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.news-html iframe {
    max-width: 100%;
}
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
.socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-soft);
    border: 1px solid rgba(183, 138, 44, 0.4);
}
.socials a:hover {
    background: var(--gold);
    color: var(--green-deep);
}
.float-wa,
.scroll-top {
    position: fixed;
    z-index: 40;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 22px;
}
.float-wa {
    bottom: 88px;
    background: #25d366;
}
.float-wa:hover {
    color: #fff;
    filter: brightness(1.08);
}
.scroll-top {
    bottom: 24px;
    background: var(--green);
}
.scroll-top[hidden] {
    display: none;
}
@media (max-width: 700px) {
    .float-wa,
    .scroll-top {
        right: 14px;
        width: 46px;
        height: 46px;
    }
}
.contact-map {
    margin-top: 32px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    min-height: 320px;
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}
.give-forms {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
.give-forms.two-cols {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
    .cause-grid,
    .account-cards,
    .give-forms.two-cols {
        grid-template-columns: 1fr;
    }
    .donate-hero {
        padding: 36px 20px;
    }
}

/* testimonials */
.tm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.tm {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}
.tm::before {
    content: "\201D";
    font-family: var(--serif);
    font-size: 72px;
    line-height: 1;
    color: var(--gold);
    opacity: 0.5;
    position: absolute;
    top: 14px;
    right: 24px;
}
.tm p {
    color: var(--muted);
    margin-bottom: 20px;
}
.tm .who {
    display: flex;
    gap: 12px;
    align-items: center;
}
.tm .av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-weight: 700;
}
.tm b {
    display: block;
    line-height: 1.3;
}
.tm small {
    color: var(--muted);
}
@media (max-width: 900px) {
    .tm-grid {
        grid-template-columns: 1fr;
    }
}

/* contact */
.contact {
    padding-top: 0;
}
.contact .box {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.contact .info {
    padding: 44px;
    background: var(--green-deep);
    color: var(--on-green);
}
.contact .info h2 {
    font-size: 28px;
    margin-bottom: 26px;
}
.contact .info li {
    list-style: none;
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.contact .info ul {
    padding: 0;
    margin: 0;
}
.contact .info .i {
    color: var(--gold-soft);
    margin-top: 5px;
}
.contact .info small {
    display: block;
    color: rgba(234, 244, 238, 0.65);
    line-height: 1.4;
}
.contact .map {
    aspect-ratio: 16/9;
    border-radius: 14px;
    margin-top: 10px;
}
.contact form {
    padding: 44px;
    display: grid;
    gap: 16px;
    align-content: start;
}
.contact form h3 {
    font-size: 24px;
}
.contact label {
    font-weight: 500;
    font-size: 15.5px;
    display: grid;
    gap: 6px;
}
.contact input,
.contact textarea {
    font: inherit;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    width: 100%;
}
.contact textarea {
    min-height: 120px;
    resize: vertical;
}
.contact .ok {
    display: none;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--gold-soft);
    color: #3b2b00;
    font-weight: 500;
}
.contact .ok.show {
    display: block;
}
.contact .two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 900px) {
    .contact .box {
        grid-template-columns: 1fr;
    }
    .contact .info,
    .contact form {
        padding: 30px;
    }
    .contact .two {
        grid-template-columns: 1fr;
    }
}

.inner-main {
    padding: 48px 0 80px;
}
.page-body {
    margin-top: 12px;
    max-width: 72ch;
}
.page-body p {
    margin-bottom: 12px;
}
.page-ok {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--gold-soft);
    color: #3b2b00;
    font-weight: 500;
}
.admit-notice {
    margin: 0 0 22px;
    padding: 16px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #134e3a, #0b4d3a);
    color: #eaf4ee;
    border-left: 6px solid var(--gold);
    font-weight: 500;
    line-height: 1.6;
}
.page-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 36px;
    box-shadow: var(--shadow);
    max-width: 720px;
    display: grid;
    gap: 16px;
}
.page-form label {
    font-weight: 500;
    font-size: 15.5px;
    display: grid;
    gap: 6px;
}
.page-form input,
.page-form textarea,
.page-form select {
    font: inherit;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    width: 100%;
}
.page-form small {
    color: var(--muted);
    font-size: 13px;
}
.page-form textarea {
    min-height: 120px;
    resize: vertical;
}
.page-form .two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.page-form .notice {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
}
@media (max-width: 700px) {
    .page-form .two {
        grid-template-columns: 1fr;
    }
}

/* footer */
footer {
    background: var(--green-deep);
    color: rgba(234, 244, 238, 0.8);
    padding-top: 60px;
    font-size: 15.5px;
}
footer .cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 44px;
}
footer h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 14px;
}
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
footer a:hover {
    color: var(--gold-soft);
}
footer .brand b {
    color: #fff;
}
footer .brand small {
    color: rgba(234, 244, 238, 0.6);
}
footer .times li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(234, 244, 238, 0.18);
    padding-bottom: 6px;
}
footer .copy {
    border-top: 1px solid rgba(234, 244, 238, 0.14);
    padding-block: 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14.5px;
}
@media (max-width: 900px) {
    footer .cols {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 520px) {
    footer .cols {
        grid-template-columns: 1fr;
    }
}

.result-hero {
    background: var(--green);
    color: var(--on-green);
    border-radius: 24px;
    padding: 36px 40px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.portal-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.portal-kpis article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
}
.portal-kpis small {
    color: var(--muted);
}
.portal-kpis b {
    display: block;
    font-size: 28px;
    font-family: var(--serif);
    color: var(--green);
}
.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 800px) {
    .portal-kpis,
    .portal-grid {
        grid-template-columns: 1fr;
    }
}
.result-hero-x {
    background: var(--green);
    color: var(--on-green);
    border-radius: 24px;
    padding: 36px 40px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.result-hero .eyebrow {
    color: var(--gold-soft);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}
.result-hero h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 8px;
}
.result-search {
    max-width: 760px;
}
.marksheet {
    margin-top: 28px;
    background: var(--surface);
    border: 1px solid var(--gold-soft);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
    position: relative;
}
.marksheet::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(183, 138, 44, 0.35);
    border-radius: 16px;
    pointer-events: none;
}
.ms-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--gold);
    position: relative;
    z-index: 1;
}
.ms-crest {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(
        from 45deg,
        var(--green),
        var(--gold),
        var(--green)
    );
    flex: none;
    box-shadow: 0 0 0 4px var(--gold-soft);
}
.ms-bism {
    font-family: var(--arabic);
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 4px;
}
.ms-head h3 {
    font-size: 22px;
    color: var(--green);
}
.ms-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 22px 0;
    position: relative;
    z-index: 1;
}
.ms-meta span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
.ms-gpa {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.ms-gpa > div {
    flex: 1;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: #fff;
    border-radius: 16px;
    padding: 16px 20px;
}
.ms-gpa small {
    opacity: 0.8;
}
.ms-gpa b {
    display: block;
    font-size: 32px;
    line-height: 1.2;
    font-family: var(--serif);
}
.ms-gpa em {
    font-style: normal;
    color: var(--gold-soft);
    font-weight: 700;
}
.ms-table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
    z-index: 1;
}
.ms-table th,
.ms-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.ms-table th {
    background: var(--bg);
    font-size: 14px;
}
.ms-table tr.fail td {
    color: #9b1c1c;
}
.grade {
    display: inline-block;
    min-width: 2.4em;
    text-align: center;
    border-radius: 999px;
    padding: 2px 10px;
    font-weight: 700;
    background: var(--gold-soft);
    color: #3b2b00;
}
.ms-fail {
    margin-top: 14px;
    color: #9b1c1c;
    font-weight: 600;
}
.grade-legend {
    margin-top: 32px;
    max-width: 520px;
}
.grade-legend ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 6px;
    color: var(--muted);
}
.grade-legend span {
    display: inline-block;
    width: 4.5em;
    color: var(--ink);
    font-weight: 600;
}
@media (max-width: 700px) {
    .ms-meta {
        grid-template-columns: 1fr 1fr;
    }
    .ms-head {
        flex-wrap: wrap;
    }
}
.m-dock,.dock-sheet,.dock-veil{display:none}
@media (max-width: 760px) {
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  header.site .mega, header.site .header-tools{display:none !important}
  header.site .wrap{padding-block:8px}
  .hero .wrap{padding-block:28px 36px;gap:24px}
  .hero h1{font-size:28px}
  .hero p.lead{font-size:16px;margin-bottom:18px}
  .hero .verse{font-size:20px}
  .arch{width:min(240px,70%)}
  .ticker{font-size:14px}
  .ticker .tag{padding:6px 10px;font-size:12px}
  .float-wa,.scroll-top{bottom:calc(86px + env(safe-area-inset-bottom,0px))}
  .m-dock{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(6,47,35,.12);padding:6px 4px calc(8px + env(safe-area-inset-bottom,0px));align-items:flex-end;justify-content:space-around}
  .m-dock-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;color:var(--muted);font:inherit;font-size:11px;font-weight:600;text-decoration:none;padding:4px 0 0;cursor:pointer}
  .m-dock-item .ic{width:26px;height:26px;display:grid;place-items:center}
  .m-dock-item .ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
  .m-dock-item.on{color:var(--green)}
  .m-dock-item.home{transform:translateY(-14px)}
  .m-dock-item .home-ic{width:52px;height:52px;border-radius:50%;background:var(--green);color:#fff;box-shadow:0 8px 18px rgba(11,77,58,.35);border:3px solid var(--gold)}
  .m-dock-item .home-ic svg{width:26px;height:26px;stroke:#fff}
  .m-dock-item.home span:last-child{color:var(--green)}
  .dock-veil{display:block;position:fixed;inset:0;background:rgba(6,30,22,.4);z-index:68}
  .dock-veil[hidden]{display:none}
  .dock-sheet{display:block;position:fixed;left:0;right:0;bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:69;background:var(--surface);border-radius:18px 18px 0 0;max-height:60vh;overflow:auto;transform:translateY(12px);opacity:0;transition:transform .25s ease,opacity .25s ease;box-shadow:0 -12px 32px rgba(6,47,35,.18)}
  .dock-sheet.on{transform:none;opacity:1}
  .dock-sheet[hidden]{display:none}
  .dock-sheet-h{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;font-weight:700;border-bottom:1px solid var(--line)}
  .dock-sheet-h button{border:0;background:none;font-size:24px;line-height:1;cursor:pointer;color:var(--muted)}
  .dock-sheet ul{list-style:none;margin:0;padding:8px 0 16px}
  .dock-sheet a{display:block;padding:12px 18px;color:var(--ink);text-decoration:none;font-weight:600}
  .dock-sheet a:active{background:var(--bg)}
}
@media print {
    .topbar,
    header.site,
    footer,
    .result-hero,
    .result-search,
    .grade-legend,
    .no-print,
    .menu-btn,
    .m-dock,
    .dock-sheet,
    .dock-veil {
        display: none !important;
    }
    .inner-main {
        padding: 0;
        width: 100%;
    }
    .marksheet {
        box-shadow: none;
        border: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .ticker .move,
    .cta-flow::before {
        animation: none;
    }
    * {
        transition: none !important;
    }
}
.mill-public {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.mill-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.mill-card ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}
.mill-card li {
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}
.mill-card .muted,
.muted {
    color: var(--muted);
}
.news-article .lead {
    font-size: 1.05rem;
    color: var(--muted);
}
a.event {
    display: block;
}
