/* =========================================================
   UI UX Pro Max Override — شركة الريادة التعليمية
   ضع هذا الملف بعد qimam-frontend.css أو الصقه في نهاية الملف الحالي.
   RTL + Bootstrap 5 + Tajawal
   اللون الثاني: فضي فاخر فقط بدون أي درجات ذهبية
   ========================================================= */

:root {
    --qimam-navy: #10213f;
    --qimam-deep: #071326;
    --qimam-royal: #183b73;
    --qimam-gold: #aab5c4;
    /* فضي فاخر فقط - اسم المتغير محفوظ للتوافق */
    --qimam-gold-strong: #7f8b9a;
    --qimam-gold-light: #eef2f6;
    --qimam-cream: #f8fafc;
    --qimam-soft: #f6f8fb;
    --qimam-card: #ffffff;
    --qimam-muted: #667085;
    --qimam-border: #e4e9f2;
    --qimam-success: #12805c;
    --qimam-ring: rgba(170, 181, 196, .34);

    --qimam-radius-xs: 10px;
    --qimam-radius-sm: 14px;
    --qimam-radius-md: 20px;
    --qimam-radius-lg: 28px;
    --qimam-radius-xl: 34px;

    --qimam-shadow-xs: 0 8px 20px rgba(16, 33, 63, .07);
    --qimam-shadow-sm: 0 16px 38px rgba(16, 33, 63, .10);
    --qimam-shadow-md: 0 26px 70px rgba(16, 33, 63, .14);
    --qimam-shadow-metal: 0 18px 36px rgba(127, 139, 154, .24);

    --qimam-container-pad: clamp(16px, 3vw, 32px);
    --qimam-section-y: clamp(64px, 8vw, 112px);
}

* {
    font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 94px;
}

body {
    min-width: 320px;
    color: var(--qimam-deep);
    background:
        radial-gradient(circle at 10% -10%, rgba(170, 181, 196, .14), transparent 32rem),
        radial-gradient(circle at 95% 10%, rgba(24, 59, 115, .08), transparent 34rem),
        #fff;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

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

::selection {
    color: #fff;
    background: var(--qimam-gold-strong);
}

.container {
    padding-inline: var(--qimam-container-pad);
}

a,
button,
.btn,
.nav-link,
.school-circle-image {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.navbar-toggler:focus-visible,
.school-circle-image:focus-visible {
    outline: 4px solid var(--qimam-ring);
    outline-offset: 4px;
    box-shadow: none;
}

/* =========================
   Header / Navigation
   ========================= */

.site-header,
.school-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(228, 233, 242, .85);
    box-shadow: 0 10px 34px rgba(16, 33, 63, .06);
}

.navbar {
    min-height: 82px;
}

.site-logo,
.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    padding: 5px;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #f7f9fc);
    border: 1px solid rgba(228, 233, 242, .95);
    box-shadow: var(--qimam-shadow-xs);
}

.navbar-brand strong,
.school-navbar-brand strong {
    color: var(--qimam-navy);
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 900;
    letter-spacing: -.2px;
}

.navbar-brand small {
    color: var(--qimam-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .25px;
}

.nav-link,
.school-navbar-links a {
    position: relative;
    color: rgba(16, 33, 63, .78);
    font-weight: 800;
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.nav-link {
    padding: 10px 15px !important;
}

.nav-link::after,
.school-navbar-links a::after {
    content: "";
    position: absolute;
    inset-inline: 16px;
    bottom: 4px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--qimam-gold), var(--qimam-gold-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .22s ease;
}

.nav-link:hover,
.nav-link.active,
.school-navbar-links a:hover {
    color: var(--qimam-navy);
    background: rgba(170, 181, 196, .10);
}

.nav-link:hover::after,
.nav-link.active::after,
.school-navbar-links a:hover::after {
    transform: scaleX(1);
}

.navbar-toggler {
    min-width: 46px;
    min-height: 46px;
    color: var(--qimam-navy);
    background: var(--qimam-soft);
    border-radius: 16px;
}

/* =========================
   Buttons
   ========================= */

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 16px;
    font-weight: 900;
    letter-spacing: -.1px;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background-color .22s ease,
        border-color .22s ease;
}

.btn-lg {
    min-height: 54px;
    padding-inline: 24px;
}

.btn-qimam {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    background:
        linear-gradient(135deg, var(--qimam-gold) 0%, var(--qimam-gold-strong) 42%, #5f6b7a 100%);
    box-shadow: var(--qimam-shadow-metal);
}

.btn-qimam:hover,
.btn-qimam:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 24px 46px rgba(155, 106, 24, .34);
}

.btn-outline-qimam {
    color: var(--qimam-navy);
    border: 1px solid rgba(16, 33, 63, .14);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 10px 24px rgba(16, 33, 63, .06);
}

.btn-outline-qimam:hover,
.btn-outline-qimam:focus {
    color: var(--qimam-navy);
    border-color: rgba(170, 181, 196, .52);
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-light {
    color: var(--qimam-navy);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
}

.btn i {
    line-height: 1;
    transform: translateY(1px);
}

/* =========================
   Hero
   ========================= */

.hero-section {
    isolation: isolate;
    position: relative;
    min-height: clamp(720px, 88dvh, 920px);
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96) 0%, rgba(255, 250, 240, .94) 52%, rgba(240, 245, 252, .94) 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(16, 33, 63, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 33, 63, .055) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at 60% 35%, #000 0, transparent 72%);
    opacity: .7;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 170px;
    z-index: -2;
    background: linear-gradient(0deg, #fff, transparent);
}

.min-vh-75 {
    min-height: min(78dvh, 820px);
    padding-block: clamp(56px, 8vw, 110px);
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -4;
    opacity: .5;
    background:
        radial-gradient(circle at 20% 20%, rgba(170, 181, 196, .18), transparent 26rem),
        radial-gradient(circle at 84% 30%, rgba(24, 59, 115, .12), transparent 34rem);
}

.hero-orb {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(10px);
    opacity: .8;
    pointer-events: none;
}

.hero-orb-one {
    width: clamp(260px, 38vw, 520px);
    height: clamp(260px, 38vw, 520px);
    top: -170px;
    left: -130px;
    background: radial-gradient(circle, rgba(170, 181, 196, .30), rgba(170, 181, 196, 0) 67%);
}

.hero-orb-two {
    width: clamp(300px, 42vw, 560px);
    height: clamp(300px, 42vw, 560px);
    right: -190px;
    bottom: -210px;
    background: radial-gradient(circle, rgba(24, 59, 115, .20), rgba(24, 59, 115, 0) 68%);
}

.hero-orb-three {
    width: 170px;
    height: 170px;
    top: 22%;
    right: 44%;
    background: radial-gradient(circle, rgba(18, 128, 92, .13), transparent 72%);
}

.hero-badge,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--qimam-gold-strong);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .2px;
}

.hero-badge,
.section-eyebrow:not(.text-white-50) {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(170, 181, 196, .14);
    border: 1px solid rgba(170, 181, 196, .24);
}

.hero-title {
    max-width: 780px;
    margin: 20px 0 18px;
    color: var(--qimam-navy);
    font-size: clamp(40px, 5.4vw, 76px);
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: -1.2px;
}

.hero-title span {
    display: block;
}

.text-gold,
.hero-title .text-gold,
.about-title span,
.section-heading h2 span,
.education-showcase-content h2 span,
.cta-box h2 span {
    color: transparent;
    background: linear-gradient(135deg, var(--qimam-gold), var(--qimam-gold-strong));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-description {
    max-width: 630px;
    color: #475467;
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 500;
    line-height: 2;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
}

.hero-stat {
    padding: 17px 18px;
    border: 1px solid rgba(228, 233, 242, .95);
    border-radius: 22px;
    background: rgba(255, 255, 255, .74);
    box-shadow: var(--qimam-shadow-xs);
    backdrop-filter: blur(16px);
}

.hero-stat strong {
    display: block;
    color: var(--qimam-navy);
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 900;
    line-height: 1.15;
}

.hero-stat span {
    color: var(--qimam-muted);
    font-size: 13px;
    font-weight: 800;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
    perspective: 1100px;
}

.hero-visual-glow {
    position: absolute;
    width: min(430px, 92vw);
    height: min(430px, 92vw);
    border-radius: 38% 62% 52% 48% / 46% 41% 59% 54%;
    background:
        radial-gradient(circle at 48% 36%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .28) 32%, transparent 64%),
        linear-gradient(135deg, rgba(170, 181, 196, .26), rgba(24, 59, 115, .16));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 42px 120px rgba(16, 33, 63, .16);
}

.hero-logo-card {
    position: relative;
    z-index: 2;
    width: clamp(210px, 24vw, 300px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: clamp(32px, 4vw, 52px);
    border-radius: 42px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .74)),
        radial-gradient(circle at top right, rgba(247, 232, 196, .8), transparent 55%);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: var(--qimam-shadow-md);
}

.hero-logo-card::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 32px;
    border: 1px dashed rgba(170, 181, 196, .36);
    pointer-events: none;
}

.hero-logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(16, 33, 63, .16));
}

.hero-floating-card {
    position: absolute;
    z-index: 3;
    min-width: 210px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(255, 255, 255, .88);
    box-shadow: 0 18px 48px rgba(16, 33, 63, .13);
    backdrop-filter: blur(18px);
}

.hero-floating-card i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    color: #fff;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--qimam-navy), var(--qimam-royal));
    box-shadow: 0 10px 22px rgba(24, 59, 115, .22);
}

.hero-floating-card strong {
    display: block;
    color: var(--qimam-navy);
    font-size: 15px;
    font-weight: 900;
}

.hero-floating-card small {
    color: var(--qimam-muted);
    font-size: 12px;
    font-weight: 700;
}

.card-one {
    top: 72px;
    right: 0;
}

.card-two {
    left: -10px;
    top: 48%;
}

.card-three {
    right: 28px;
    bottom: 70px;
}

/* =========================
   Trust Bar
   ========================= */

.trust-section {
    position: relative;
    z-index: 3;
    margin-top: -34px;
}

.trust-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 18px 22px;
    color: rgba(16, 33, 63, .82);
    font-size: 14px;
    font-weight: 900;
    border: 1px solid rgba(228, 233, 242, .95);
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--qimam-shadow-sm);
    backdrop-filter: blur(18px);
}

.trust-content i {
    color: var(--qimam-gold);
}

/* =========================
   Section Heading
   ========================= */

.schools-section,
.about-section,
.education-showcase-section {
    padding-block: var(--qimam-section-y);
}

.section-heading {
    max-width: 760px;
    margin-inline: auto;
}

.section-heading h2,
.about-title,
.education-showcase-content h2,
.cta-box h2 {
    color: var(--qimam-navy);
    font-size: clamp(32px, 3.7vw, 54px);
    font-weight: 900;
    line-height: 1.24;
    letter-spacing: -.7px;
    margin: 16px 0;
}

.section-heading h2 span,
.about-title span,
.education-showcase-content h2 span,
.cta-box h2 span {
    display: inline-block;
}

.section-heading p,
.about-description,
.education-showcase-content p {
    color: #5f6b7a;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 2;
    font-weight: 500;
}

/* =========================
   Schools Cards
   ========================= */

.schools-circles-section {
    position: relative;
    background:
        linear-gradient(180deg, #fff 0%, #f7f9fc 48%, #fff 100%);
}

.schools-circles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
    gap: clamp(22px, 3vw, 34px);
}

.school-circle-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: 18px 18px 22px;
    text-align: center;
    border-radius: 32px;
    background: rgba(255, 255, 255, .84);
    border: 1px solid rgba(228, 233, 242, .95);
    box-shadow: var(--qimam-shadow-xs);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.school-circle-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 50% 6%, rgba(247, 232, 196, .72), transparent 42%),
        radial-gradient(circle at 6% 100%, rgba(24, 59, 115, .08), transparent 34%);
    opacity: .72;
    pointer-events: none;
}

.school-circle-item:hover {
    transform: translateY(-8px);
    border-color: rgba(170, 181, 196, .40);
    box-shadow: var(--qimam-shadow-md);
}

.school-circle-image {
    position: relative;
    z-index: 1;
    width: clamp(150px, 16vw, 196px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 8px auto 18px;
    border-radius: 50%;
    background: #fff;
    border: 8px solid #fff;
    box-shadow:
        0 24px 52px rgba(16, 33, 63, .12),
        0 0 0 1px rgba(228, 233, 242, .95);
}

.school-circle-image img,
.school-circle-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    background: linear-gradient(145deg, #fff, #f7f9fc);
    transition: transform .32s ease;
}

.school-circle-image:hover img {
    transform: scale(1.06);
}

.school-circle-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 40%, rgba(7, 19, 38, .22));
    opacity: 0;
    transition: opacity .24s ease;
}

.school-circle-open {
    position: absolute;
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--qimam-gold), var(--qimam-gold-strong));
    box-shadow: 0 12px 28px rgba(155, 106, 24, .3);
    transform: translateY(12px);
    opacity: 0;
    transition: opacity .24s ease, transform .24s ease;
}

.school-circle-image:hover .school-circle-overlay,
.school-circle-image:focus-visible .school-circle-overlay {
    opacity: 1;
}

.school-circle-image:hover .school-circle-open,
.school-circle-image:focus-visible .school-circle-open {
    opacity: 1;
    transform: translateY(0);
}

.school-circle-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(127, 139, 154, .95);
    font-size: 54px;
    background: linear-gradient(145deg, #fff, #f1f4f7);
}

.school-circle-info {
    position: relative;
    z-index: 1;
    width: 100%;
}

.school-circle-info h3 {
    min-height: 2.7em;
    color: var(--qimam-navy);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 10px;
}

.school-circle-city {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #667085;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 800;
}

.school-circle-city i {
    color: var(--qimam-gold);
}

.school-circle-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.school-circle-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 7px 10px;
    color: rgba(16, 33, 63, .82);
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(246, 248, 251, .92);
    border: 1px solid rgba(228, 233, 242, .95);
}

.school-circle-tags i {
    color: var(--qimam-gold-strong);
}

.empty-schools {
    grid-column: 1 / -1;
    padding: 52px 28px;
    text-align: center;
    border: 1px dashed rgba(170, 181, 196, .42);
    border-radius: 30px;
    background: #f8fafc;
}

.empty-schools i {
    color: var(--qimam-gold);
    font-size: 44px;
}

/* =========================
   About / Features
   ========================= */

.about-section {
    background:
        radial-gradient(circle at 0 10%, rgba(170, 181, 196, .10), transparent 28rem),
        #fff;
}

.feature-item {
    position: relative;
    min-height: 100%;
    padding: 26px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .86)),
        radial-gradient(circle at top left, rgba(247, 232, 196, .72), transparent 48%);
    border: 1px solid rgba(228, 233, 242, .95);
    box-shadow: var(--qimam-shadow-xs);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-item:hover {
    transform: translateY(-6px);
    border-color: rgba(170, 181, 196, .36);
    box-shadow: var(--qimam-shadow-sm);
}

.feature-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--qimam-navy), var(--qimam-royal));
    box-shadow: 0 14px 28px rgba(24, 59, 115, .22);
}

.feature-icon i {
    font-size: 23px;
}

.feature-item h4 {
    color: var(--qimam-navy);
    font-size: 19px;
    font-weight: 900;
    margin-bottom: 10px;
}

.feature-item p {
    color: #667085;
    line-height: 1.9;
    margin: 0;
    font-weight: 500;
}

/* =========================
   Education Showcase
   ========================= */

.education-showcase-section {
    background:
        linear-gradient(180deg, #fff, #f7f9fc 52%, #fff);
}

.education-showcase-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 38px;
    background: #fff;
    border: 1px solid rgba(228, 233, 242, .95);
    box-shadow: var(--qimam-shadow-md);
}

.education-showcase-image {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-radius: 30px;
    background: var(--qimam-soft);
}

.education-showcase-image img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    transform: scale(1.01);
}

.education-showcase-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 46%, rgba(7, 19, 38, .62)),
        radial-gradient(circle at 76% 14%, rgba(247, 232, 196, .28), transparent 34%);
}

.education-image-badge {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100% - 40px);
    padding: 12px 15px;
    color: var(--qimam-navy);
    font-size: 14px;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .78);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
    backdrop-filter: blur(14px);
}

.education-image-badge i {
    color: var(--qimam-gold-strong);
}

.education-showcase-content {
    padding-inline: clamp(6px, 2vw, 22px);
}

.education-points {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.education-points>div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(16, 33, 63, .82);
    font-weight: 800;
    line-height: 1.8;
}

.education-points span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    margin-top: 2px;
    color: #fff;
    border-radius: 50%;
    background: var(--qimam-success);
}

/* =========================
   CTA / Footer
   ========================= */

.cta-section {
    padding-block: clamp(54px, 7vw, 92px);
}

.cta-box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 5vw, 54px);
    border-radius: 36px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(247, 232, 196, .22), transparent 28rem),
        linear-gradient(135deg, var(--qimam-navy), #08152a 58%, #173766);
    box-shadow: 0 32px 80px rgba(16, 33, 63, .22);
}

.cta-box::after {
    content: "";
    position: absolute;
    inset: -2px auto auto -60px;
    width: 250px;
    height: 250px;
    border-radius: 999px;
    background: rgba(170, 181, 196, .20);
    filter: blur(4px);
}

.cta-box>* {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    color: #fff;
    max-width: 720px;
}

.cta-box p {
    color: rgba(255, 255, 255, .72);
    font-size: 18px;
    line-height: 1.9;
    margin: 0;
}

.site-footer {
    padding-block: 34px;
    color: rgba(255, 255, 255, .82);
    background:
        linear-gradient(135deg, #071326, #10213f);
}

.site-footer h5 {
    color: #fff;
    font-weight: 900;
}

.site-footer p,
.footer-copy {
    color: rgba(255, 255, 255, .66);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
}

.footer-contact i {
    color: var(--qimam-gold-light);
}

/* =========================
   School Inner Navbar
   ========================= */

.school-navbar-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.school-navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--qimam-navy);
    text-decoration: none;
    min-width: 0;
}

.school-navbar-brand img,
.school-navbar-brand span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(228, 233, 242, .95);
    box-shadow: var(--qimam-shadow-xs);
}

.school-navbar-brand span {
    color: var(--qimam-gold);
}

.school-navbar-brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.school-navbar-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.school-navbar-links a {
    text-decoration: none;
    padding: 10px 14px;
}

.school-navbar-register {
    flex: 0 0 auto;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1199.98px) {
    .hero-visual {
        min-height: 470px;
    }

    .card-one {
        right: -8px;
    }

    .card-two {
        left: -8px;
    }

    .education-showcase-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 78px;
    }

    .navbar-collapse {
        margin-top: 14px;
        padding: 16px;
        border-radius: 24px;
        background: #fff;
        border: 1px solid rgba(228, 233, 242, .95);
        box-shadow: var(--qimam-shadow-sm);
    }

    .navbar-nav {
        gap: 4px !important;
    }

    .nav-link {
        padding: 12px 14px !important;
    }

    .hero-section {
        min-height: auto;
    }

    .min-vh-75 {
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 76px;
    }

    .hero-title {
        margin-top: 10px;
        letter-spacing: -.6px;
    }

    .hero-visual {
        min-height: 430px;
        margin-top: 10px;
    }

    .hero-stats {
        max-width: 100%;
    }

    .trust-section {
        margin-top: -26px;
    }

    .trust-content {
        border-radius: 26px;
    }

    .school-navbar-inner {
        flex-wrap: wrap;
        padding-block: 14px;
    }

    .school-navbar-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }
}

@media (max-width: 767.98px) {
    :root {
        --qimam-container-pad: 16px;
    }

    body {
        background: #fff;
    }

    .site-logo,
    .footer-logo {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .navbar {
        min-height: 72px;
    }

    .navbar-brand strong {
        font-size: 14px;
    }

    .navbar-brand small {
        font-size: 9px;
    }

    .hero-title {
        font-size: clamp(34px, 12vw, 48px);
        line-height: 1.18;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.9;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: start;
    }

    .hero-visual {
        min-height: 390px;
    }

    .hero-logo-card {
        width: 218px;
        border-radius: 34px;
    }

    .hero-floating-card {
        min-width: auto;
        width: min(232px, 86vw);
        padding: 12px;
    }

    .card-one {
        top: 24px;
        right: 4px;
    }

    .card-two {
        left: 2px;
        top: 48%;
    }

    .card-three {
        right: 12px;
        bottom: 18px;
    }

    .trust-content {
        justify-content: flex-start;
        border-radius: 24px;
        padding: 16px;
    }

    .trust-content i.bi-dot {
        display: none;
    }

    .schools-circles-grid {
        grid-template-columns: 1fr;
    }

    .school-circle-item {
        border-radius: 28px;
    }

    .section-heading h2,
    .about-title,
    .education-showcase-content h2,
    .cta-box h2 {
        font-size: clamp(30px, 10vw, 40px);
    }

    .feature-item {
        padding: 22px;
        border-radius: 24px;
    }

    .education-showcase-card {
        padding: 14px;
        border-radius: 28px;
    }

    .education-showcase-image,
    .education-showcase-image img {
        min-height: 300px;
    }

    .education-showcase-image {
        border-radius: 22px;
    }

    .education-showcase-content {
        padding: 12px 4px 6px;
    }

    .cta-box {
        display: grid;
        border-radius: 28px;
    }

    .cta-box .btn {
        width: 100%;
    }

    .site-footer {
        text-align: center;
    }

    .site-footer .d-flex {
        justify-content: center;
        flex-direction: column;
    }

    .footer-contact {
        align-items: center;
    }

    .school-navbar-brand {
        flex: 1 1 auto;
    }

    .school-navbar-register {
        min-height: 42px;
        padding-inline: 14px;
    }
}

@media (max-width: 430px) {
    .hero-floating-card {
        width: 205px;
    }

    .hero-floating-card i {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .hero-floating-card strong {
        font-size: 13px;
    }

    .hero-floating-card small {
        font-size: 11px;
    }

    .school-circle-image {
        width: 168px;
    }
}

/* =========================
   Motion Safety
   ========================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   NO-GOLD HARD OVERRIDE
   يمنع ظهور أي لون ذهبي/بني من الملفات السابقة.
   أبقينا أسماء gold القديمة فقط لأن HTML الحالي يستخدم text-gold
   وبعض المتغيرات القديمة، لكن قيمتها أصبحت فضية بالكامل.
   ========================================================= */

:root {
    --qimam-silver: #aab5c4;
    --qimam-silver-strong: #7f8b9a;
    --qimam-silver-dark: #5f6b7a;
    --qimam-silver-light: #eef2f6;

    --qimam-gold: var(--qimam-silver) !important;
    --qimam-gold-strong: var(--qimam-silver-strong) !important;
    --qimam-gold-light: var(--qimam-silver-light) !important;
    --qimam-shadow-gold: 0 18px 42px rgba(95, 107, 122, .24) !important;
}

.text-gold,
.hero-badge,
.section-eyebrow,
.nav-link:hover,
.nav-link.active,
.trust-content i,
.hero-floating-card i,
.about-card i,
.school-card-feature i,
.footer-links a:hover {
    color: var(--qimam-silver-strong) !important;
}

.btn-qimam,
.school-navbar-register,
.registration-submit,
.contact-submit {
    color: #fff !important;
    border-color: rgba(170, 181, 196, .78) !important;
    background:
        linear-gradient(135deg, #aab5c4 0%, #7f8b9a 48%, #5f6b7a 100%) !important;
    box-shadow: 0 18px 42px rgba(95, 107, 122, .24) !important;
}

.btn-qimam:hover,
.btn-qimam:focus,
.school-navbar-register:hover,
.registration-submit:hover,
.contact-submit:hover {
    color: #fff !important;
    background:
        linear-gradient(135deg, #7f8b9a 0%, #aab5c4 54%, #eef2f6 140%) !important;
    border-color: rgba(170, 181, 196, .95) !important;
}

.btn-outline-qimam {
    color: var(--qimam-navy) !important;
    border-color: rgba(170, 181, 196, .70) !important;
    background: rgba(255, 255, 255, .86) !important;
}

.btn-outline-qimam:hover,
.btn-outline-qimam:focus {
    color: var(--qimam-navy) !important;
    background: linear-gradient(135deg, #ffffff 0%, #eef2f6 100%) !important;
    border-color: var(--qimam-silver) !important;
}

.hero-logo-card,
.school-card,
.about-card,
.feature-card,
.contact-card,
.register-card {
    border-color: rgba(170, 181, 196, .34) !important;
}

.hero-logo-card::before,
.hero-visual-glow,
.school-card::before,
.about-card::before,
.feature-card::before {
    background:
        radial-gradient(circle, rgba(170, 181, 196, .32), transparent 64%) !important;
}

::selection {
    color: #ffffff;
    background: #7f8b9a;
}