:where(.sahit-site) {
    --sahit-blue: #1075be;
    --sahit-blue-dark: #0b527f;
    --sahit-ink: #0b2745;
    --sahit-muted: #496176;
    --sahit-blue-light: #eaf4fb;
    --sahit-gold-light: #fbf3df;
    --sahit-gold: #d4ac5d;
    --sahit-border: #d4e2ed;
    --sahit-cream: #fcfdff;
    --sahit-header-row-height: 79px;
}

.sahit-site:not(.national-day-theme) {
    --bg: var(--sahit-cream);
    --surface: #fff;
    --text: var(--sahit-ink);
    --muted: var(--sahit-muted);
    --line: var(--sahit-border);
    --primary: var(--sahit-blue-dark);
    --primary-deep: #0b2745;
    --accent: #815a20;
    --accent-soft: var(--sahit-blue-light);
    --page-pattern: none;
    --brand-gradient: var(--sahit-blue);
    --hero-gradient: linear-gradient(110deg, #0b2745, #104d79 70%, #1075be);
    --shadow: 0 9px 30px -19px #0b274544;
    --shadow-brand: 0 10px 20px -15px #1075be80;
    --site-footer-bg: #0b2745;
    --site-footer-text: #edf4fa;
    --site-footer-paper: #ffffff;
    --site-footer-muted: #b8cbdb;
    --site-footer-line: #456581;
    --site-footer-accent: var(--sahit-gold);
    --site-footer-accent-soft: var(--sahit-gold);
    --site-footer-card: #123b5b;
    font-family: "IBM Plex Sans Arabic", Tajawal, system-ui, sans-serif;
}

.sahit-site :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.sahit-header {
    --sahit-header-glass: rgb(255 255 255 / 9%);
    --sahit-header-glass-active: rgb(255 255 255 / 14%);
    --sahit-header-glass-line: rgb(255 255 255 / 48%);
    position: sticky;
    inset-block-start: 0;
    z-index: 35;
    border-block-end: 2px solid #d4ac5d80;
    background: var(--sahit-ink);
    color: #fff;
    box-shadow: 0 8px 20px -18px #0b27456b;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .sahit-header {
        background: rgb(11 39 69 / 68%);
        -webkit-backdrop-filter: blur(12px) brightness(.84) saturate(115%);
        backdrop-filter: blur(12px) brightness(.84) saturate(115%);
    }
}

.sahit-header-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1.2vw, 20px);
    min-height: var(--sahit-header-row-height);
    padding-block: 9px;
}

.sahit-header-brand {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
}

.sahit-header-brand img { width: clamp(156px, 14vw, 198px); height: auto; max-height: 61px; object-fit: contain; }

.sahit-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.sahit-header-main > .sahit-header-actions { flex: none; flex-wrap: nowrap; }

.sahit-header-actions a,
.sahit-header-mobile summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 15px;
    border: 1px solid var(--sahit-header-glass-line);
    border-radius: 10px;
    background: var(--sahit-header-glass);
    color: inherit;
    font-size: .875rem;
    font-weight: 700;
    white-space: nowrap;
}

.sahit-header-actions .sahit-header-register { border-color: var(--sahit-gold); }

.sahit-header-actions a:hover,
.sahit-header-mobile summary:hover,
.sahit-header-mobile[open] summary {
    border-color: currentColor;
    background: var(--sahit-header-glass-active);
}

.sahit-header-register span { font-size: 1.05rem; line-height: 1; }

.sahit-header-desktop {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(2px, .65vw, 10px);
    min-width: 0;
}

.sahit-header-desktop a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: clamp(6px, .7vw, 12px);
    border-radius: 8px;
    font-size: clamp(.77rem, 1.05vw, .88rem);
    font-weight: 600;
    white-space: nowrap;
}

.sahit-header-desktop a:hover,
.sahit-header-desktop a[aria-current] {
    background: var(--sahit-header-glass-active);
}

.sahit-header-desktop a[aria-current]::after {
    content: "";
    position: absolute;
    inset: auto 50% 6px auto;
    width: 23px;
    height: 2px;
    transform: translateX(50%);
    border-radius: 2px;
    background: var(--sahit-gold);
}

.sahit-header-mobile { display: none; flex: none; }

.sahit-header-mobile summary {
    padding-inline: 12px;
    list-style: none;
    cursor: pointer;
}

.sahit-header-mobile summary::-webkit-details-marker { display: none; }

.sahit-header-menu-icon {
    position: relative;
    display: block;
    width: 15px;
    height: 15px;
    flex: none;
}

.sahit-header-menu-icon span {
    position: absolute;
    inset-inline: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .18s ease;
}

.sahit-header-menu-icon span:first-child { top: 4px; }
.sahit-header-menu-icon span:last-child { top: 10px; }
.sahit-header-mobile[open] .sahit-header-menu-icon span:first-child { transform: translateY(3px) rotate(45deg); }
.sahit-header-mobile[open] .sahit-header-menu-icon span:last-child { transform: translateY(-3px) rotate(-45deg); }

.sahit-header-menu-panel {
    position: absolute;
    inset-block-start: calc(100% + 7px);
    inset-inline-end: 0;
    width: min(100%, 410px);
    max-height: 75vh;
    max-height: 75dvh;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--sahit-header-glass-line);
    border-block-start: 3px solid var(--sahit-gold);
    border-radius: 12px;
    background: rgb(11 39 69 / 97%);
    box-shadow: 0 18px 42px -22px #0b274580;
}

.sahit-header-menu-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.sahit-header-menu-panel nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: .88rem;
    font-weight: 600;
}

.sahit-header-menu-panel nav a:hover,
.sahit-header-menu-panel nav a[aria-current] {
    background: var(--sahit-header-glass-active);
}

.sahit-header-menu-panel .sahit-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-block-start: 12px;
    padding-block-start: 12px;
    border-block-start: 1px solid var(--sahit-header-glass-line);
}
.sahit-header-menu-panel .sahit-header-actions a { padding-inline: 6px; }

@media (max-width: 1080px) {
    .sahit-site { --sahit-header-row-height: 72px; }
    .sahit-header-brand img { width: clamp(148px, 43vw, 187px); max-height: 54px; }
    .sahit-header-desktop,
    .sahit-header-main > .sahit-header-actions { display: none; }
    .sahit-header-mobile { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .sahit-header-menu-icon span { transition: none; }
}
.sahit-site .btn { border-radius: 10px; }
.sahit-site .btn-ghost { border-width: 1px; }
.sahit-site:not(.national-day-theme) .btn-accent { background: var(--sahit-gold); color: var(--sahit-ink); }

.sahit-home-cover {
    background-color: var(--sahit-ink);
    background-image: linear-gradient(to left, #082841d9, #082b48a3 56%, #071f3740),
        var(--sahit-hero-background, none);
    background-position: center 36%;
    background-size: cover;
}

.sahit-hero {
    --sahit-hero-space: clamp(20px, 2.5vw, 38px);
    padding-block: var(--sahit-hero-space);
    color: #f4f9fd;
}

.sahit-home .sahit-header + main > .sahit-home-cover {
    margin-block-start: calc(0px - var(--sahit-header-row-height) - 2px);
}

.sahit-home .sahit-header + main > .sahit-home-cover > .sahit-hero {
    padding-block-start: calc(var(--sahit-hero-space) + var(--sahit-header-row-height) + 2px);
}

.sahit-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "stats";
    row-gap: 16px;
    align-items: center;
}

.sahit-hero-grid.has-video {
    grid-template-columns: minmax(0, 1fr) minmax(176px, 250px);
    grid-template-areas: "copy video" "stats video";
    column-gap: clamp(24px, 6vw, 96px);
}

.sahit-hero-copy {
    grid-area: copy;
    min-width: 0;
    align-self: end;
    max-width: 680px;
}

.sahit-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--sahit-blue-dark);
    font-size: .875rem;
    font-weight: 600;
}

.sahit-kicker::before {
    content: "";
    display: block;
    inline-size: 24px;
    block-size: 2px;
    flex: none;
    background: var(--sahit-gold);
}

.sahit-hero .sahit-kicker { color: #f3d58e; }

.sahit-hero h1 {
    margin-block: 12px 0;
    color: #fff;
    font-size: clamp(2.45rem, 5.1vw, 4.45rem);
    font-weight: 700;
    line-height: 1.19;
    text-wrap: balance;
}

.sahit-hero-lead {
    max-width: 35rem;
    margin: 14px 0 0;
    color: #e9f4ff;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.9;
}

.sahit-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block-start: 18px;
}

.sahit-hero-actions .btn { min-height: 49px; }
.sahit-hero-actions .btn-primary { background: var(--sahit-blue); color: #fff; }
.sahit-hero-actions .btn-ghost {
    border-color: #ffffff7a;
    background: #ffffff16;
    color: #fff;
}

.sahit-hero-actions .btn-ghost:hover { background: #ffffff2d; border-color: #fff; }

.sahit-intro-video {
    grid-area: video;
    display: block;
    width: min(100%, 250px);
    aspect-ratio: 9 / 16;
    place-self: center;
    border-radius: 12px;
    background: #081c30;
    object-fit: contain;
    direction: ltr;
}

.sahit-featured {
    padding-block: clamp(8px, 1.15vw, 16px);
    background: linear-gradient(0deg, #071e34b0, #071e3445);
}

.sahit-featured .hero-featured {
    width: 100%;
    padding: clamp(8px, 1.1vw, 14px);
    border-radius: 15px;
    animation: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.sahit-featured .featured-head { margin-block-end: 8px; }
.sahit-featured .featured-head span { padding: 4px 9px; }

.sahit-featured .featured-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.sahit-featured .program-mini {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 12px;
}

.sahit-featured .program-mini small { margin-block-end: 3px; }
.sahit-featured .program-mini strong { font-size: .92rem; line-height: 1.4; }
.sahit-featured .program-mini p { margin-block-start: 3px; }

.sahit-featured .program-price {
    max-width: 112px;
    white-space: normal;
}

.sahit-featured .program-price > strong { font-size: 1rem; }
.sahit-featured .program-fee-display__label {
    white-space: normal;
    font-size: .72rem;
}

@media (max-width: 1050px) {
    .sahit-featured .featured-list {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: clamp(245px, 86%, 340px);
        overflow-x: auto;
        padding: 2px 2px 6px;
        scroll-snap-type: x mandatory;
        scrollbar-color: var(--sahit-gold) transparent;
    }

    .sahit-featured .program-mini { scroll-snap-align: start; }
}

@media (max-width: 360px) {
    .sahit-featured .featured-list { grid-auto-columns: 100%; }
    .sahit-featured .program-mini strong { font-size: .86rem; }
}

.sahit-home .section {
    padding-block: clamp(42px, 6vw, 83px);
}

.sahit-programs .section-head { margin-block-end: 26px; }
.sahit-programs .section-head .btn { align-self: end; }
.sahit-programs .section-title,
.sahit-section-heading .section-title {
    color: var(--sahit-ink);
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    text-wrap: balance;
}

.sahit-program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 25px);
}

.sahit-program-card {
    display: grid;
    min-width: 0;
    border: 1px solid var(--sahit-border);
    border-radius: 14px;
    background: #fff;
    color: var(--sahit-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sahit-program-card > a {
    display: grid;
    grid-template-rows: auto 1fr;
    border-radius: inherit;
}

.sahit-program-card:hover {
    border-color: #75a4c5;
    box-shadow: 0 10px 25px -18px #1075be66;
}

.sahit-program-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1.95;
    overflow: hidden;
    border-radius: 13px 13px 0 0;
    background: radial-gradient(at 15% 15%, var(--sahit-gold-light), var(--sahit-blue-light) 65%);
    color: var(--sahit-blue-dark);
}

.sahit-program-image img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.sahit-program-image svg { inline-size: 54px; block-size: 54px; }
.sahit-program-content { display: flex; flex-direction: column; padding: clamp(15px, 2vw, 23px); }

.sahit-program-type {
    margin: 0 0 8px;
    color: #815a20;
    font-size: .82rem;
    font-weight: 600;
}

.sahit-program-content h3 {
    margin-block-end: 18px;
    font-size: clamp(1.06rem, 1.8vw, 1.27rem);
    line-height: 1.5;
}

.sahit-program-description {
    margin: -7px 0 18px;
    color: var(--sahit-muted);
    font-size: .93rem;
    line-height: 1.75;
}

.sahit-program-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 25px;
    margin-block-start: auto;
    color: var(--sahit-ink);
}

.sahit-program-facts small { display: block; color: var(--sahit-muted); }
.sahit-program-facts strong { font-size: .93rem; }

.sahit-program-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 17px 0 0;
    padding-block-start: 11px;
    border-block-start: 1px solid var(--sahit-border);
    color: var(--sahit-blue-dark);
    font-size: .9rem;
    font-weight: 700;
}

.sahit-program-action span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sahit-blue-light);
    font-size: 1.05rem;
}

.sahit-stats {
    grid-area: stats;
    min-width: 0;
    align-self: start;
    padding-block-start: 10px;
    max-width: 635px;
    border-block-start: 1px solid #ffffff54;
}

.sahit-stats h2 {
    margin-block-end: 8px;
    color: #fff;
    font-size: .95rem;
}

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

.sahit-stats-grid > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: start;
    gap: 4px;
    min-width: 0;
    padding-inline-start: 8px;
    border-inline-start: 2px solid var(--sahit-gold);
}

.sahit-stats-grid dt { color: #e9f4ff; font-size: .77rem; line-height: 1.5; }
.sahit-stats-grid dd {
    align-self: start;
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.15;
}

.sahit-home .quick-register {
    padding: 0;
    border-radius: 18px;
    background: var(--sahit-ink);
}

.sahit-home .quick-register-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
}

.sahit-registration-copy {
    display: grid;
    align-content: center;
    padding: clamp(25px, 4vw, 57px);
    background: linear-gradient(135deg, #0b2745, #0d527f);
}

.sahit-home .quick-register h2 { color: #fff; line-height: 1.4; text-wrap: balance; }
.sahit-home .quick-register p { max-width: 32ch; margin-block-end: 0; }

.sahit-home .quick-form {
    gap: 10px;
    padding: clamp(22px, 4vw, 46px);
    border: 0;
    border-radius: 0;
    background: var(--sahit-blue-light);
    backdrop-filter: none;
}

.sahit-home .quick-form :is(input, select) {
    min-inline-size: 0;
    min-block-size: 46px;
    border: 1px solid #cadfeb;
    border-radius: 8px;
    background: #fff;
    color: var(--sahit-ink);
}

.sahit-home .quick-form button { background: var(--sahit-blue-dark); color: #fff; }
.sahit-home .quick-form :focus-visible { outline-color: var(--sahit-blue-dark); }

.sahit-visually-hidden {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.sahit-section-heading { margin-block-end: 23px; }
.sahit-home .sahit-testimonials { padding-block-start: 0; }
.sahit-home .testimonial-card {
    border-inline-start: 3px solid var(--sahit-gold);
    border-radius: 4px 14px 14px 4px;
}
.sahit-home .testimonial-card p { color: var(--sahit-muted); }
.sahit-home .testimonial-card .quote-mark { color: #f0e2bd; }
.sahit-home .stars { color: #96691f; }

.sahit-home .sahit-faq {
    border-block-start: 1px solid var(--sahit-border);
    background: var(--sahit-gold-light);
}

.sahit-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: clamp(20px, 5vw, 72px);
}

.sahit-home .faq-item {
    border-radius: 10px;
    border-color: var(--sahit-border);
    box-shadow: none;
}

.sahit-home .faq-item[open] { border-color: var(--sahit-gold); }

.sahit-site:not(.national-day-theme) .listing-page-hero {
    background-image: linear-gradient(to left, #0b2745f5 5%, #104d79d9 45%, #104d796b 100%), var(--listing-banner);
}

.sahit-site:not(.national-day-theme) .program-hero {
    background-image: linear-gradient(to left, #0b2745f5 5%, #104d79de 45%, #104d7972 100%), var(--program-banner);
}

.sahit-site:not(.national-day-theme) .hero:not(.program-hero, .disclosure-hero) {
    border-block-end: 4px solid var(--sahit-gold);
}

.sahit-site:not(.national-day-theme) .hero .eyebrow {
    padding-inline: 0;
    border-radius: 0;
    border-block-end: 2px solid var(--sahit-gold);
    background: transparent;
    color: #f4dfaa;
}

.sahit-site:not(.national-day-theme) .hero h1 {
    font-weight: 700;
    text-wrap: balance;
}

.sahit-site:not(.national-day-theme) .program-filter {
    border-radius: 12px;
    padding: clamp(16px, 3vw, 28px);
    box-shadow: 0 12px 30px -20px #0b527f65;
}

.sahit-site:not(.national-day-theme) .search-field input {
    background: #f3f8fc;
}

.sahit-site:not(.national-day-theme) .filter-chip:not(.active) {
    background: var(--sahit-blue-light);
    color: var(--sahit-blue-dark);
}

.sahit-site:not(.national-day-theme) .filter-chip:not(.active):hover { background: #dcecf7; }

.sahit-site:not(.national-day-theme) .site-footer {
    padding-block-start: clamp(38px, 5vw, 68px);
}

.sahit-site:not(.national-day-theme) .site-footer-weave { background: var(--sahit-gold); height: 5px; }
.sahit-home .site-footer-weave { margin-block-start: 0; }

.sahit-footer-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 30px;
    max-width: 1440px;
    margin: 0 auto 30px;
    padding-block-end: 23px;
    border-block-end: 1px solid var(--site-footer-line);
}

.sahit-site .sahit-footer-identity .site-footer-brand { margin: 0; }
.sahit-site .sahit-footer-identity .site-footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 18px;
    margin: 0;
}
.sahit-site .sahit-footer-identity .site-footer-socials { margin: 0; }

.sahit-site .site-footer-grid {
    grid-template-columns: minmax(0, .7fr) minmax(0, .7fr) minmax(0, 1.6fr);
    gap: clamp(20px, 3vw, 43px);
}

.sahit-site .site-footer-accred { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sahit-site .site-footer-accred > a { border-radius: 8px; }

.sahit-login-page .student-login {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    gap: clamp(16px, 5vw, 66px);
}

.sahit-login-page .student-welcome {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: end;
    min-height: 440px;
    padding: clamp(20px, 4vw, 46px);
    overflow: hidden;
    border-radius: 88px 12px 12px 12px;
    background: var(--sahit-blue-dark);
    color: #fff;
}

.sahit-login-page .student-welcome img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 36%;
}

.sahit-login-page .student-welcome::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(0deg, #0b2745ef, transparent 70%);
}

.sahit-login-page .student-welcome h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.sahit-login-page .student-login-card { border-radius: 13px; }
.sahit-login-page .student-login-card input { border-radius: 8px; }

@media (max-width: 680px) {
    .sahit-login-page .student-login { gap: 16px; }
    .sahit-login-page .student-welcome { min-height: min(48vw, 240px); border-start-start-radius: 12px; }
}

@media (max-width: 860px) {
    .sahit-home-cover {
        background-image: linear-gradient(180deg, #08243dec, #082b48b3 52%, #071f3759),
            var(--sahit-hero-background, none);
        background-position: center 42%;
    }
    .sahit-hero-grid,
    .sahit-hero-grid.has-video {
        grid-template-columns: minmax(0, 1fr);
    }
    .sahit-hero-grid.has-video { grid-template-areas: "copy" "stats" "video"; }
    .sahit-program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sahit-site .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sahit-site .site-footer-accred { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .sahit-program-grid { grid-template-columns: minmax(0, 1fr); }
    .sahit-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sahit-home .quick-register-inner,
    .sahit-faq-grid { grid-template-columns: minmax(0, 1fr); }
    .sahit-faq-grid .sahit-section-heading { margin-block-end: 0; }
    .sahit-site .site-footer-accred { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .sahit-site { scroll-behavior: auto; }
    .sahit-site .btn,
    .sahit-site .sahit-program-card { transition: none; }
}
