body {
    font-family: "Cairo", sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================
   شريط تنقل الرحلة (لوجو ثابت دائمًا + رجوع عند الحاجة)
========================= */

.journey-nav {
    position: fixed;
    top: 20px;
    inset-inline: 24px;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    pointer-events: none;
}

.journey-logo,
.journey-back {
    pointer-events: auto;
}

.journey-back-icon {
    display: inline-block;
}

html[dir="ltr"] .journey-back-icon {
    transform: scaleX(-1);
}

.journey-logo {
    order: -1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px;

    border: 0;
    background: transparent;

    cursor: pointer;

    border-radius: 14px;

    transition:
        transform var(--bridge-transition),
        background var(--bridge-transition);
}

.journey-logo img {
    display: block;

    width: auto;
    height: 46px;

    object-fit: contain;
}

.journey-logo:hover {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.55);
}

.journey-logo:focus-visible {
    outline: 2px solid var(--bridge-blue);
    outline-offset: 4px;
}

.journey-back {
    display: none;
    align-items: center;
    gap: 6px;

    padding: 9px 18px;

    border: 1px solid rgba(23, 32, 51, 0.12);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 600;

    color: var(--bridge-gray);

    cursor: pointer;

    transition:
        color var(--bridge-transition),
        border-color var(--bridge-transition),
        background var(--bridge-transition);
}

.journey-back.is-visible {
    display: inline-flex;
}

.journey-back:hover {
    color: var(--bridge-navy);
    border-color: var(--bridge-blue);
    background: rgba(255, 255, 255, 0.95);
}

/* تفادي تراكب شريط أدمن ووردبريس (بس وقت تسجيل الدخول) */
body.admin-bar .journey-nav {
    top: 52px;
}

@media screen and (max-width: 782px) {

    body.admin-bar .journey-nav {
        top: 66px;
    }

}


/* =========================
   شاشة الترحيب
========================= */

.welcome-screen {
    position: relative;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        clamp(40px, 7vh, 80px) clamp(18px, 4vw, 48px);

    background: var(--bridge-off-white);

    overflow: hidden;

    transition: opacity 0.4s ease;
}

.welcome-screen.is-leaving {
    opacity: 0;
}

.welcome-content {
    position: relative;
    z-index: 2;

    width: min(100%, 850px);

    margin-inline: auto;

    text-align: center;
}

.welcome-label {
    display: inline-block;

    margin-bottom: 22px;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;

    color: var(--bridge-blue);
}

.welcome-content h1 {
    margin: 0 0 24px;

    font-size: clamp(36px, 5.2vw, 76px);
    font-weight: 800;
    line-height: 1.25;

    color: var(--bridge-navy);
}

.welcome-content p {
    max-width: 680px;

    margin: 0 auto 38px;

    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.9;

    color: var(--bridge-gray);
}

.welcome-decoration {
    position: absolute;

    border-radius: 50%;

    filter: blur(2px);

    pointer-events: none;
}

.welcome-decoration-blue {
    width: 500px;
    height: 500px;

    top: -220px;
    right: -170px;

    background: rgba(55, 144, 186, 0.12);
}

.welcome-decoration-teal {
    width: 430px;
    height: 430px;

    bottom: -200px;
    left: -160px;

    background: rgba(41, 117, 115, 0.10);
}


/* =========================================================
   Welcome Actions (ابدأ رحلتك + تخطي)
========================================================= */

.welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.start-journey {
    min-width: 160px;
    padding: 18px 34px;

    border: none;
    border-radius: 999px;

    background: var(--bridge-navy);
    color: #ffffff;

    font-family: "Cairo", sans-serif;
    font-size: 18px;
    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 16px 32px rgba(23, 32, 51, 0.16);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.start-journey:hover {
    transform: translateY(-2px);

    background: var(--bridge-blue);

    box-shadow: 0 20px 36px rgba(23, 32, 51, 0.22);
}

.skip-journey {
    min-width: 110px;
    padding: 10px 24px;

    border: 1.5px solid rgba(55, 144, 186, 0.25);
    border-radius: 999px;

    background: #ffffff;
    color: var(--bridge-blue);

    font-family: "Cairo", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 8px 18px rgba(23, 32, 51, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.skip-journey:hover {
    background: #f3f9fd;
    color: var(--bridge-navy);
    border-color: rgba(55, 144, 186, 0.45);

    transform: translateY(-1px);

    box-shadow: 0 12px 22px rgba(23, 32, 51, 0.12);
}

.skip-journey:focus-visible,
.start-journey:focus-visible {
    outline: 2px solid var(--bridge-blue);
    outline-offset: 4px;
}

@media (max-width: 640px) {

    .welcome-actions {
        margin-top: 24px;
        gap: 12px;
    }

    .start-journey {
        min-width: 150px;
        padding: 16px 28px;
        font-size: 17px;
    }

    .skip-journey {
        min-width: 100px;
        padding: 9px 20px;
        font-size: 14px;
    }
}


/* =========================
   محرك الجسر (Bridge Engine)
========================= */

.bridge-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: var(--bridge-off-white);

    opacity: 0;

    transition: opacity 0.4s ease;
}

.bridge-loader.is-active {
    opacity: 1;
}

.bridge-loader-inner {
    width: min(92%, 700px);
    text-align: center;
}

.bridge-loader-svg {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.bridge-anchor {
    fill: var(--bridge-navy);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bridge-pillar {
    fill: var(--bridge-navy);
}

.road-segment {
    opacity: 0;
}

#bridgeLight {
    filter: drop-shadow(0 0 6px var(--bridge-yellow));
}

.bridge-loader-percent {
    font-family: "Poppins", sans-serif;
    font-size: clamp(32px, 5.5vw, 52px);
    font-weight: 800;

    color: var(--bridge-navy);

    margin-bottom: 8px;
}

.bridge-loader-status {
    font-family: "Cairo", sans-serif;
    font-size: 16px;

    color: var(--bridge-gray);

    transition: opacity 0.3s ease;
}

.bridge-loader-status.is-final {
    font-weight: 700;
    color: var(--bridge-navy);
}


/* =========================
   شاشة اختيار المسار (كل مسار بلون هويته)
========================= */

.path-selection {
    display: none;

    min-height: 100vh;
    min-height: 100dvh;

    align-items: center;
    justify-content: center;

    padding:
        clamp(40px, 7vh, 80px) clamp(18px, 4vw, 48px);

    background: var(--bridge-off-white);

    opacity: 0;

    transition: opacity 0.4s ease;
}

.path-selection.is-active {
    opacity: 1;
}

.path-selection-inner {
    width: 100%;
    max-width: 1000px;

    margin-inline: auto;

    text-align: center;
}

.path-selection-title {
    margin: 0 0 40px;

    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;

    color: var(--bridge-navy);
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.path-card {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 140px;

    padding: 24px 16px;

    border: 0;
    border-top: 4px solid var(--bridge-gray);
    border-radius: var(--bridge-radius);

    background: var(--bridge-white);

    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);

    cursor: pointer;

    transition:
        transform var(--bridge-transition),
        box-shadow var(--bridge-transition);
}

.path-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 14px 30px rgba(23, 32, 51, 0.14);
}

.path-card-title {
    font-family: "Cairo", sans-serif;
    font-size: 18px;
    font-weight: 700;

    color: var(--bridge-dark);
}

/* التربية الخاصة = تركواز */
.path-special {
    border-top-color: var(--bridge-teal);
}

/* التعليم العالمي = أزرق */
.path-international {
    border-top-color: var(--bridge-blue);
}

/* فرص عمل = أصفر */
.path-jobs {
    border-top-color: var(--bridge-yellow);
}

/* استكشاف المدرسة = رمادي محايد */
.path-explore {
    border-top-color: var(--bridge-gray);
}


/* =========================
   رحلة المسار (Path Journey Engine)
   3 مناطق ثابتة: الجسر / المحتوى / الـCTA
========================= */

.path-journey {
    display: none;

    min-height: 100vh;
    min-height: 100dvh;

    align-items: center;
    justify-content: center;

    padding:
        clamp(40px, 7vh, 80px) clamp(18px, 4vw, 48px);

    background: var(--bridge-off-white);

    opacity: 0;

    transition: opacity 0.4s ease;

    --path-color: var(--bridge-blue);
}

.path-journey.is-active {
    opacity: 1;
}

.path-journey-inner {
    width: min(100%, 760px);
    min-height: 560px;

    margin-inline: auto;

    display: grid;
    grid-template-rows:
        90px minmax(330px, 1fr) 80px;

    align-items: center;

    text-align: center;
}


/* المنطقة الأولى: الجسر + العداد */

.path-progress {
    width: min(100%, 520px);
    height: 90px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mini-bridge {
    width: 100%;
    max-width: 480px;

    height: 44px;

    display: block;
}

.mini-bridge-pillar {
    fill: var(--bridge-navy);

    opacity: 0;

    transition: opacity 0.3s ease;
}

#miniBridgeLight {
    filter: drop-shadow(0 0 4px var(--bridge-yellow));
}

.path-progress-label {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;

    color: var(--bridge-gray);
}


/* المنطقة الثانية: محتوى الخطوة */

.journey-step-card {
    width: 100%;
    min-height: 330px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    animation: journeyStepEnter 0.5s cubic-bezier(.2, .8, .2, 1);
}

@keyframes journeyStepEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    width: 100%;

    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;
}

.journey-step-title {
    margin: 0;

    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800;

    color: var(--bridge-navy);
}

.step-body {
    width: 100%;

    min-height: 115px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0 auto 26px;
}

.journey-step-text {
    max-width: 560px;

    margin: 0;

    font-size: 17px;
    line-height: 1.9;

    color: var(--bridge-gray);
}

.journey-step-options {
    width: min(100%, 650px);

    min-height: 150px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    gap: 16px;
}

/* لو عدد الخيارات فردي، الخيار الأخير ياخد العرض الكامل ويتوسط */
.journey-step-options.has-odd-last .journey-step-option:last-child {
    grid-column: 1 / -1;

    max-width: 320px;

    margin-inline: auto;
}

.journey-step-option {
    padding: 22px 16px;

    border: 2px solid rgba(23, 32, 51, 0.1);
    border-radius: var(--bridge-radius);

    background: var(--bridge-white);

    font-family: "Cairo", sans-serif;
    font-size: 17px;
    font-weight: 700;

    color: var(--bridge-dark);

    cursor: pointer;

    transition:
        border-color var(--bridge-transition),
        transform var(--bridge-transition),
        box-shadow var(--bridge-transition);
}

.journey-step-option:hover {
    border-color: var(--path-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.1);
}


/* المنطقة الثالثة: الـCTA */

.step-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-step-continue {
    margin-top: 8px;

    padding: 15px 36px;

    border: 0;
    border-radius: 999px;

    background: var(--path-color);
    color: var(--bridge-white);

    font-weight: 700;
    font-size: 16px;

    cursor: pointer;

    transition:
        transform var(--bridge-transition),
        box-shadow var(--bridge-transition);
}

.journey-step-continue:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(23, 32, 51, 0.16);
}


/* =========================
   نموذج التسجيل داخل الرحلة (Card + حقول مدورة)
========================= */

.registration-form {
    width: 100%;
    max-width: 420px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 16px;

    background: var(--bridge-white);
    padding: 28px 24px;
    border-radius: 24px;

    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
    border: 1px solid rgba(23, 32, 51, 0.06);
}

.registration-field {
    display: flex;
    flex-direction: column;
    gap: 6px;

    text-align: start;
}

.registration-field label {
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 600;

    color: var(--bridge-dark);
}

.registration-input {
    padding: 14px 18px;

    border: 2px solid rgba(23, 32, 51, 0.10);
    border-radius: 16px;

    background: var(--bridge-off-white);

    font-family: "Cairo", sans-serif;
    font-size: 16px;

    color: var(--bridge-dark);

    transition:
        border-color var(--bridge-transition),
        background var(--bridge-transition);
}

.registration-input:focus {
    outline: none;
    border-color: var(--path-color);
    background: var(--bridge-white);
}

/* حقل الوقت (input type="time") */
.registration-input[type="time"] {
    cursor: pointer;
    min-height: 54px;
}

.registration-input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.65;
}

.registration-error {
    margin: 4px 0 0;

    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 600;

    color: var(--bridge-red);

    text-align: start;
}


/* =========================
   فورم التوظيف (رسالة اختيارية + رفع سيرة ذاتية)
========================= */

.registration-textarea {
    width: 100%;
    min-height: 96px;
    box-sizing: border-box;

    padding: 14px 18px;

    border: 2px solid rgba(23, 32, 51, 0.10);
    border-radius: 16px;

    background: var(--bridge-off-white);

    font-family: "Cairo", sans-serif;
    font-size: 16px;

    color: var(--bridge-dark);

    resize: vertical;

    transition:
        border-color var(--bridge-transition),
        background var(--bridge-transition);
}

.registration-textarea:focus {
    outline: none;
    border-color: var(--path-color);
    background: var(--bridge-white);
}

.registration-file-input {
    display: none;
}

.registration-file-label {
    width: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px 18px;

    border: 2px dashed rgba(23, 32, 51, 0.2);
    border-radius: 16px;

    background: var(--bridge-off-white);

    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 600;

    color: var(--bridge-gray);

    text-align: center;
    cursor: pointer;

    transition:
        border-color var(--bridge-transition),
        color var(--bridge-transition),
        background var(--bridge-transition);
}

.registration-file-label:hover {
    border-color: var(--path-color);
    color: var(--path-color);
}

.registration-file-label.has-file {
    border-style: solid;
    border-color: var(--path-color);

    color: var(--bridge-dark);
    background: var(--bridge-white);
}


/* =========================
   Responsive
   موبايل صغير / موبايل كبير / تابلت / لابتوب / شاشات كبيرة
========================= */

/* Small mobile (حتى 480px) */
@media (max-width: 480px) {

    .journey-nav {
        top: 14px;
        inset-inline: 14px;
    }

    .journey-back-label {
        display: none;
    }

    .journey-back {
        padding: 9px 12px;
        font-size: 16px;
    }

    .journey-logo img {
        height: 34px;
    }

    .welcome-screen {
        padding: 32px 18px;
    }

    .welcome-label {
        margin-bottom: 18px;

        font-size: 11px;
        letter-spacing: 1.4px;
    }

    .welcome-content h1 {
        margin-bottom: 18px;

        font-size: clamp(34px, 10vw, 42px);
        line-height: 1.3;
    }

    .welcome-content p {
        max-width: 330px;

        margin-bottom: 28px;

        font-size: 15px;
        line-height: 1.85;
    }

    .welcome-decoration-blue {
        width: 280px;
        height: 280px;

        top: -135px;
        right: -110px;
    }

    .welcome-decoration-teal {
        width: 250px;
        height: 250px;

        bottom: -125px;
        left: -100px;
    }

    .path-selection-title {
        margin-bottom: 28px;
    }

    .path-grid {
        grid-template-columns: 1fr;
    }

    .registration-form {
        padding: 22px 18px;
        border-radius: 20px;
    }
}


/* Large mobiles (481-767px) */
@media (min-width: 481px) and (max-width: 767px) {

    .welcome-content h1 {
        font-size: 46px;
    }

    .welcome-content p {
        max-width: 520px;
        font-size: 17px;
    }

    .path-grid {
        grid-template-columns: 1fr;
    }
}


/* Journey layout مرن على الموبايل/التابلت الصغير */
@media (max-width: 767px) {

    .path-journey-inner {
        min-height: auto;

        grid-template-rows:
            auto auto auto;

        row-gap: 24px;
    }

    .journey-step-card,
    .step-header,
    .step-body {
        min-height: auto;
    }

    .journey-step-options {
        grid-template-columns: 1fr;
    }

    .journey-step-options.has-odd-last .journey-step-option:last-child {
        max-width: 100%;
    }

    .mini-bridge {
        height: 36px;
    }

}


/* Tablets - iPad Mini وما شابه (768-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {

    .journey-logo img {
        height: 40px;
    }

    .welcome-screen {
        padding: 60px 42px;
    }

    .welcome-content {
        max-width: 700px;
    }

    .welcome-content h1 {
        font-size: clamp(48px, 7vw, 60px);
    }

    .welcome-content p {
        max-width: 610px;

        font-size: 18px;
    }

    .welcome-decoration-blue {
        width: 390px;
        height: 390px;

        top: -175px;
        right: -130px;
    }

    .welcome-decoration-teal {
        width: 340px;
        height: 340px;

        bottom: -165px;
        left: -120px;
    }

    .path-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Laptop / Desktop (1024px+) - عنوان وفقرة سطر واحد */
@media (min-width: 1024px) {

    .welcome-content {
        max-width: min(100%, 1150px);
    }

    .welcome-content h1 {
        font-size: clamp(34px, 3.6vw, 56px);

        white-space: nowrap;
    }

    .welcome-content p {
        max-width: 920px;

        font-size: 18px;
    }
}


/* =========================================================
   Large Desktop (1440px+)
========================================================= */

@media (min-width: 1440px) {

    .welcome-decoration-blue {
        width: 600px;
        height: 600px;

        top: -260px;
        right: -200px;
    }

    .welcome-decoration-teal {
        width: 520px;
        height: 520px;

        bottom: -240px;
        left: -190px;
    }

    .path-selection-inner {
        max-width: 1100px;
    }

    /* الكروت (Feature Grid) بقى ليها مساحة إضافية على الشاشات الكبيرة */
    .feature-card-title {
        font-size: 20px;
    }

    .feature-card-text {
        font-size: 16px;
    }
}


/* =========================================================
   Mini Bridge Final Polish
   يشتغل على كل الأجهزة
========================================================= */

#miniBridgeFill {
    transition:
        filter 0.35s ease;
}

#miniBridgeFill.is-complete {
    filter:
        drop-shadow(0 3px 7px rgba(253, 190, 17, 0.24));
}

.mini-bridge-pillar {
    transform-box: fill-box;
    transform-origin: top center;

    transition:
        opacity 0.25s ease,
        transform 0.3s ease;
}

.mini-bridge-pillar[style*="opacity: 1"] {
    transform: scaleY(1);
}

#miniBridgeLight {
    pointer-events: none;
}

/* =========================
   Header & Footer العام للموقع
   (خارج نطاق الرحلة التفاعلية - is_front_page() فقط)
========================= */

.site-header {
    background: var(--bridge-white);
    border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.site-header-inner {
    position: relative;

    max-width: 1200px;
    margin-inline: auto;
    padding: 16px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo img {
    display: block;

    height: 60px;
    width: auto;

    object-fit: contain;
}

.site-nav-list {
    display: flex;
    align-items: center;
    gap: 28px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav-list a {
    font-family: "Cairo", sans-serif;
    font-size: 15px;
    font-weight: 600;

    color: var(--bridge-dark);
    text-decoration: none;

    transition: color var(--bridge-transition);
}

.site-nav-list a:hover {
    color: var(--bridge-blue);
}

.site-nav-toggle {
    display: none;

    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 40px;
    height: 40px;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.site-nav-toggle-bar {
    display: block;

    height: 2px;
    width: 100%;

    background: var(--bridge-navy);
    border-radius: 2px;

    transition:
        transform var(--bridge-transition),
        opacity var(--bridge-transition);
}

.site-nav-toggle.is-open .site-nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle.is-open .site-nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-nav-toggle.is-open .site-nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
    background: var(--bridge-off-white);
    border-top: 1px solid rgba(23, 32, 51, 0.08);
}

.site-footer-inner {
    max-width: 1200px;
    margin-inline: auto;
    padding: 32px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    text-align: center;
}

.site-footer-logo img {
    display: block;

    height: 52px;
    width: auto;

    object-fit: contain;
}

.site-footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-nav-list a {
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 600;

    color: var(--bridge-gray);
    text-decoration: none;

    transition: color var(--bridge-transition);
}

.site-footer-nav-list a:hover {
    color: var(--bridge-blue);
}

.site-footer-copy {
    margin: 0;

    font-family: "Cairo", sans-serif;
    font-size: 13px;

    color: var(--bridge-gray);
}


/* موبايل/تابلت صغير: تحويل القائمة لـHamburger */
@media (max-width: 767px) {

    .site-nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;

        position: absolute;
        top: 100%;
        inset-inline: 0;
        z-index: 100;

        background: var(--bridge-white);
        border-bottom: 1px solid rgba(23, 32, 51, 0.08);

        padding: 16px 24px;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}


/* =========================
   Page Hero System (لكل الصفحات الداخلية: page.php)
========================= */

.page-hero {
    position: relative;

    min-height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: var(--bridge-navy);
    background-size: cover;
    background-position: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(180deg,
            rgba(27, 43, 87, 0.55),
            rgba(27, 43, 87, 0.78));
}

.page-hero-inner {
    position: relative;
    z-index: 1;

    text-align: center;
    padding: 40px 24px;
}

.page-hero-title {
    margin: 0;

    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;

    color: var(--bridge-white);
}

.page-content-inner h2 {
    margin-top: 40px;

    color: var(--bridge-navy);
}

.page-content-inner h2:first-child {
    margin-top: 0;
}


/* موبايل صغير: Hero أقصر */
@media (max-width: 480px) {

    .page-hero {
        min-height: 220px;
    }
}


/* =========================================================
   FAQ Accordion
   Reusable Component
========================================================= */

.faq-section {
    padding: 82px 24px 92px;

    background:
        var(--bridge-white);
}

.faq-section-inner {
    width: min(100%, 860px);

    margin-inline: auto;
}

.faq-section-title {
    max-width: 720px;

    margin:
        0 auto 38px;

    text-align: center;

    font-family:
        "Cairo",
        sans-serif;

    font-size:
        clamp(27px, 4vw, 38px);

    font-weight: 800;
    line-height: 1.4;

    color:
        var(--bridge-navy);
}


.faq-accordion {
    display: flex;
    flex-direction: column;

    gap: 13px;
}


.faq-item {
    overflow: hidden;

    border:
        1px solid rgba(23, 32, 51, 0.08);

    border-radius: 18px;

    background:
        var(--bridge-white);

    box-shadow:
        0 6px 20px rgba(23, 32, 51, 0.035);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


.faq-item:hover {
    border-color:
        rgba(55, 144, 186, 0.22);
}


.faq-item.is-open {
    border-color:
        var(--bridge-blue);

    border-inline-start-width:
        4px;

    box-shadow:
        0 12px 32px rgba(23, 32, 51, 0.09);
}


.faq-question {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        21px 24px;

    border: 0;

    background:
        transparent;

    cursor: pointer;

    text-align: start;

    font-family:
        "Cairo",
        sans-serif;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;

    color:
        var(--bridge-dark);

    transition:
        color 0.25s ease,
        background 0.25s ease;
}


.faq-question:hover {
    color:
        var(--bridge-blue);
}


.faq-item.is-open .faq-question {
    color:
        var(--bridge-navy);

    background:
        rgba(55, 144, 186, 0.06);
}


.faq-question:focus-visible {
    outline:
        2px solid var(--bridge-blue);

    outline-offset:
        -4px;

    border-radius:
        16px;
}


/* زر + / - */

.faq-icon {
    position: relative;

    flex: 0 0 auto;

    width: 26px;
    height: 26px;

    border-radius: 50%;

    background:
        rgba(55, 144, 186, 0.09);

    transition:
        background 0.25s ease;
}


.faq-item.is-open .faq-icon {
    background:
        rgba(55, 144, 186, 0.14);
}


.faq-icon::before,
.faq-icon::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    border-radius: 999px;

    background:
        var(--bridge-blue);

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.faq-icon::before {
    width: 12px;
    height: 2px;

    transform:
        translate(-50%, -50%);
}


.faq-icon::after {
    width: 2px;
    height: 12px;

    transform:
        translate(-50%, -50%);
}


.faq-item.is-open .faq-icon::after {
    transform:
        translate(-50%, -50%) rotate(90deg);

    opacity: 0;
}


/* Answer */

.faq-answer {
    max-height: 0;

    overflow: hidden;

    transition:
        max-height 0.35s ease;
}


.faq-answer p {
    margin: 0;

    padding:
        4px 24px 24px;

    font-family:
        "Cairo",
        sans-serif;

    font-size: 15px;
    line-height: 2;

    color:
        var(--bridge-gray);
}


/* =========================================================
   Feature Grid
   Reusable Component
========================================================= */

.feature-grid-section {
    padding:
        68px 24px 78px;

    background:
        var(--bridge-white);
}


/*
 * لما يكون عندنا Feature Grid
 * وبعده Feature Grid تاني،
 * نغيّر الخلفية تلقائيًا.
 */
.feature-grid-section+.feature-grid-section {
    background:
        var(--bridge-off-white);
}


.feature-grid-inner {
    width:
        min(100%, 1120px);

    margin-inline:
        auto;
}


.feature-grid-title {
    max-width:
        720px;

    margin:
        0 auto 42px;

    text-align:
        center;

    font-family:
        "Cairo",
        sans-serif;

    font-size:
        clamp(27px, 4vw, 38px);

    font-weight:
        800;

    line-height:
        1.4;

    color:
        var(--bridge-navy);
}


.feature-grid {
    display:
        grid;

    grid-template-columns:
        repeat(auto-fit,
            minmax(250px, 1fr));

    gap:
        22px;
}


/* Card */

.feature-card {
    --feature-accent:
        var(--bridge-blue);

    position:
        relative;

    overflow:
        hidden;

    min-height:
        210px;

    padding:
        32px 28px;

    border:
        1px solid rgba(23, 32, 51, 0.07);

    border-radius:
        24px;

    background:
        var(--bridge-white);

    box-shadow:
        0 10px 30px rgba(23, 32, 51, 0.055);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}


/* Accent line */

.feature-card::before {
    content: "";

    position:
        absolute;

    top:
        0;

    inset-inline:
        0;

    height:
        4px;

    background:
        var(--feature-accent);
}


/* ألوان الهوية */

.feature-card:nth-child(1) {
    --feature-accent:
        var(--bridge-blue);
}


.feature-card:nth-child(2) {
    --feature-accent:
        var(--bridge-yellow);
}


.feature-card:nth-child(3) {
    --feature-accent:
        var(--bridge-teal);
}


.feature-card:nth-child(4) {
    --feature-accent:
        var(--bridge-red);
}


.feature-card:hover {
    transform:
        translateY(-6px);

    border-color:
        rgba(55, 144, 186, 0.22);

    box-shadow:
        0 20px 45px rgba(23, 32, 51, 0.10);
}


.feature-card-title {
    margin:
        0 0 14px;

    font-family:
        "Cairo",
        sans-serif;

    font-size:
        19px;

    font-weight:
        800;

    line-height:
        1.55;

    color:
        var(--bridge-navy);
}


.feature-card-text {
    margin:
        0;

    font-family:
        "Cairo",
        sans-serif;

    font-size:
        15px;

    line-height:
        1.95;

    color:
        var(--bridge-gray);
}


/* =========================================================
   Highlight / Info Banner
========================================================= */

.info-banner {
    padding:
        0 24px 80px;

    background:
        var(--bridge-off-white);
}


.info-banner-inner {
    position:
        relative;

    overflow:
        hidden;

    width:
        min(100%, 1040px);

    margin-inline:
        auto;

    padding:
        56px 54px;

    border:
        1px solid rgba(55, 144, 186, 0.10);

    border-radius:
        30px;

    background:
        linear-gradient(135deg,
            rgba(55, 144, 186, 0.11),
            rgba(41, 117, 115, 0.055));

    text-align:
        center;
}


/* Decorative circles */

.info-banner-inner::before,
.info-banner-inner::after {
    content: "";

    position:
        absolute;

    border-radius:
        50%;

    pointer-events:
        none;
}


.info-banner-inner::before {
    width:
        180px;

    height:
        180px;

    top:
        -100px;

    inset-inline-start:
        -70px;

    background:
        rgba(253, 190, 17, 0.10);
}


.info-banner-inner::after {
    width:
        220px;

    height:
        220px;

    bottom:
        -140px;

    inset-inline-end:
        -100px;

    background:
        rgba(55, 144, 186, 0.10);
}


.info-banner-title {
    position:
        relative;

    z-index:
        1;

    max-width:
        720px;

    margin:
        0 auto 14px;

    font-family:
        "Cairo",
        sans-serif;

    font-size:
        clamp(25px, 3.5vw, 36px);

    font-weight:
        800;

    line-height:
        1.45;

    color:
        var(--bridge-navy);
}


.info-banner-text {
    position:
        relative;

    z-index:
        1;

    max-width:
        720px;

    margin:
        0 auto;

    font-family:
        "Cairo",
        sans-serif;

    font-size:
        16px;

    line-height:
        2;

    color:
        var(--bridge-gray);
}


/* =========================================================
   CTA Section
========================================================= */

.cta-section {
    position:
        relative;

    overflow:
        hidden;

    padding:
        84px 24px;

    background:
        linear-gradient(135deg,
            var(--bridge-navy),
            #243d77);

    text-align:
        center;
}


/* Decorative circles */

.cta-section::before,
.cta-section::after {
    content: "";

    position:
        absolute;

    border-radius:
        50%;

    pointer-events:
        none;
}


.cta-section::before {
    width:
        320px;

    height:
        320px;

    top:
        -215px;

    inset-inline-start:
        -120px;

    background:
        rgba(55, 144, 186, 0.18);
}


.cta-section::after {
    width:
        280px;

    height:
        280px;

    bottom:
        -205px;

    inset-inline-end:
        -85px;

    background:
        rgba(253, 190, 17, 0.13);
}


.cta-inner {
    position:
        relative;

    z-index:
        1;

    width:
        min(100%, 760px);

    margin-inline:
        auto;
}


.cta-title {
    margin:
        0 0 14px;

    font-family:
        "Cairo",
        sans-serif;

    font-size:
        clamp(28px, 4vw, 42px);

    font-weight:
        800;

    line-height:
        1.4;

    color:
        var(--bridge-white);
}


.cta-text {
    max-width:
        620px;

    margin:
        0 auto 30px;

    font-family:
        "Cairo",
        sans-serif;

    font-size:
        16px;

    line-height:
        1.9;

    color:
        rgba(255, 255, 255, 0.76);
}


.cta-button {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        52px;

    padding:
        0 34px;

    border-radius:
        999px;

    background:
        var(--bridge-yellow);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.15);

    font-family:
        "Cairo",
        sans-serif;

    font-size:
        16px;

    font-weight:
        800;

    color:
        var(--bridge-navy);

    text-decoration:
        none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.cta-button:hover {
    transform:
        translateY(-4px);

    background:
        var(--bridge-white);

    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.20);
}


.cta-button:focus-visible {
    outline:
        3px solid var(--bridge-white);

    outline-offset:
        4px;
}


/* =========================================================
   General Education Intro / Page Content
========================================================= */

.page-content {
    padding:
        44px 24px 28px;

    background:
        var(--bridge-white);
}


.page-content-inner {
    width:
        min(100%, 940px);

    margin-inline:
        auto;

    font-family:
        "Cairo",
        sans-serif;

    font-size:
        19px;

    line-height:
        1.95;

    text-align:
        center;

    color:
        var(--bridge-dark);
}


.page-content-inner>*:first-child {
    margin-top:
        0;
}


.page-content-inner>*:last-child {
    margin-bottom:
        0;
}


/* لو الكلاس القديم موجود في أي مكان */
.general-education-intro {
    padding:
        64px 24px 28px;

    background:
        var(--bridge-white);
}


.content-section-inner {
    width:
        min(100%, 880px);

    margin-inline:
        auto;
}


.general-education-intro-text {
    max-width:
        800px;

    margin:
        0 auto;

    font-family:
        "Cairo",
        sans-serif;

    font-size:
        18px;

    line-height:
        2;

    text-align:
        center;

    color:
        var(--bridge-gray);
}


/* =========================================================
   Responsive - Internal Components
========================================================= */

@media (max-width: 767px) {

    .page-content,
    .general-education-intro {
        padding:
            46px 18px 24px;
    }


    .page-content-inner,
    .general-education-intro-text {
        font-size:
            16px;

        line-height:
            1.9;
    }


    /* Feature */

    .feature-grid-section {
        padding:
            56px 18px 64px;
    }


    .feature-grid-title {
        margin-bottom:
            28px;
    }


    .feature-grid {
        grid-template-columns:
            1fr;

        gap:
            16px;
    }


    .feature-card {
        min-height:
            auto;

        padding:
            26px 22px;

        border-radius:
            20px;
    }


    .feature-card-title {
        font-size:
            18px;
    }


    /* Banner */

    .info-banner {
        padding:
            0 18px 62px;
    }


    .info-banner-inner {
        padding:
            40px 22px;

        border-radius:
            24px;
    }


    .info-banner-inner::before {
        width:
            120px;

        height:
            120px;

        top:
            -70px;
    }


    .info-banner-inner::after {
        width:
            150px;

        height:
            150px;

        bottom:
            -100px;
    }


    /* FAQ */

    .faq-section {
        padding:
            62px 18px 72px;
    }


    .faq-section-title {
        margin-bottom:
            28px;
    }


    .faq-accordion {
        gap:
            10px;
    }


    .faq-question {
        padding:
            18px;

        gap:
            14px;

        font-size:
            15px;
    }


    .faq-icon {
        width:
            24px;

        height:
            24px;
    }


    .faq-answer p {
        padding:
            2px 18px 20px;

        font-size:
            14.5px;

        line-height:
            1.9;
    }


    /* CTA */

    .cta-section {
        padding:
            66px 20px;
    }


    .cta-text {
        font-size:
            15px;
    }


    .cta-button {
        width:
            min(100%, 280px);
    }
}

/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .feature-card,
    .faq-item,
    .faq-question,
    .faq-icon,
    .faq-icon::before,
    .faq-icon::after,
    .faq-answer,
    .cta-button {
        transition: none !important;
    }

}

/* =========================================================
   CTA Buttons
========================================================= */

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.cta-buttons .cta-button {
    margin: 0;
}

.cta-button-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: none !important;
}

.cta-button-secondary:hover {
    background: #ffffff !important;
    color: var(--bridge-navy) !important;
    border-color: #ffffff;
}

@media (max-width: 640px) {

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .cta-button {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

}

/* =========================================================
   International Education - Stages
========================================================= */

.international-stages-section {
    padding: 72px 24px 82px;
    background: #f8fafc;
}

.international-stages-inner {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.international-stages-heading {
    width: min(780px, 100%);
    margin: 0 auto 42px;
    text-align: center;
}

.international-stages-label {
    display: inline-block;
    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 700;

    color: var(--bridge-blue);
}

.international-stages-heading h2 {
    margin: 0;

    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.35;
    font-weight: 800;

    color: var(--bridge-navy);
}

.international-stages-heading p {
    max-width: 720px;
    margin: 18px auto 0;

    font-size: 17px;
    line-height: 2;

    color: var(--bridge-gray);
}


/* =========================
   Grid
========================= */

.international-stages-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}


/* =========================
   Card Base
========================= */

.international-stage-card {
    position: relative;
    overflow: hidden;

    min-height: 310px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 24px;

    box-shadow: 0 16px 40px rgba(23, 32, 51, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/* =========================
   KG1 - Blue
========================= */

.international-stage-card:nth-child(1) {
    background:
        linear-gradient(145deg,
            rgba(55, 144, 186, 0.18),
            #ffffff 72%);

    border-color:
        rgba(55, 144, 186, 0.24);
}

.international-stage-card:nth-child(1)::before {
    background: var(--bridge-blue);
}


/* =========================
   KG2 - Yellow
========================= */

.international-stage-card:nth-child(2) {
    background:
        linear-gradient(145deg,
            rgba(253, 190, 17, 0.20),
            #ffffff 72%);

    border-color:
        rgba(253, 190, 17, 0.30);
}

.international-stage-card:nth-child(2)::before {
    background: var(--bridge-yellow);
}


/* =========================
   KG3 - Teal
========================= */

.international-stage-card:nth-child(3) {
    background:
        linear-gradient(145deg,
            rgba(41, 117, 115, 0.18),
            #ffffff 72%);

    border-color:
        rgba(41, 117, 115, 0.24);
}

.international-stage-card:nth-child(3)::before {
    background: var(--bridge-teal);
}


/* =========================
   Grade 1 - Red
========================= */

.international-stage-card:nth-child(4) {
    background:
        linear-gradient(145deg,
            rgba(221, 55, 46, 0.15),
            #ffffff 72%);

    border-color:
        rgba(221, 55, 46, 0.22);
}

.international-stage-card:nth-child(4)::before {
    background: var(--bridge-red);
}


/* الشريط العلوي */

.international-stage-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 5px;
}


/* Hover */

.international-stage-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 24px 50px rgba(23, 32, 51, 0.12);
}


/* =========================
   Stage Type
========================= */

.international-stage-type {
    display: inline-flex;
    align-items: center;

    min-height: 32px;
    padding: 5px 12px;
    margin-bottom: 22px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.90);

    font-size: 13px;
    font-weight: 700;

    color: var(--bridge-navy);
}


/* =========================
   Card Content
========================= */

.international-stage-card h3 {
    margin: 0;

    direction: ltr;

    font-family: "Poppins", sans-serif;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;

    color: var(--bridge-navy);
}

.international-stage-card p {
    margin: 18px 0 26px;

    font-size: 15px;
    line-height: 1.9;

    color: var(--bridge-gray);
}


/* =========================
   Unified Register Button
========================= */

.international-stage-button {
    width: 100%;
    min-height: 50px;

    margin-top: auto;
    padding: 11px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: var(--bridge-navy);

    color: #ffffff;
    text-decoration: none;

    font-size: 15px;
    font-weight: 800;

    box-shadow:
        0 10px 22px rgba(27, 43, 87, 0.14);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.international-stage-button:hover {
    background: var(--bridge-blue);
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 14px 28px rgba(55, 144, 186, 0.24);
}


/* =========================
   Tablet
========================= */

@media (max-width: 1050px) {

    .international-stages-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================
   Mobile
========================= */

@media (max-width: 640px) {

    .international-stages-section {
        padding: 54px 18px 62px;
    }

    .international-stages-heading {
        margin-bottom: 30px;
    }

    .international-stages-heading h2 {
        font-size: 30px;
    }

    .international-stages-heading p {
        font-size: 15px;
    }

    .international-stages-grid {
        grid-template-columns: 1fr;
    }

    .international-stage-card {
        min-height: 270px;
        padding: 26px 22px;
    }
}

/* =========================================================
   Careers Page
========================================================= */

.careers-intro {
    padding: 68px 24px 58px;
    background: var(--bridge-white);
}

.careers-intro-inner {
    width: min(820px, 100%);
    margin: 0 auto;
    text-align: center;
}

.careers-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;
    padding: 7px 16px;

    border-radius: 999px;

    background: rgba(253, 190, 17, 0.16);
    border: 1px solid rgba(253, 190, 17, 0.30);

    font-size: 14px;
    font-weight: 800;

    color: var(--bridge-navy);
}

.careers-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;
    padding: 7px 16px;

    border-radius: 999px;

    background: rgba(55, 144, 186, 0.12);
    border: 1px solid rgba(55, 144, 186, 0.22);

    font-size: 14px;
    font-weight: 800;

    color: var(--bridge-navy);
}

.careers-intro h2 {
    margin: 0;

    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.4;
    font-weight: 800;

    color: var(--bridge-navy);
}

.careers-intro p {
    max-width: 760px;

    margin: 18px auto 0;

    font-size: 17px;
    line-height: 2;

    color: var(--bridge-gray);
}


/* =========================================================
   Fields
========================================================= */

.careers-fields-section {
    padding: 72px 24px 84px;
    background: var(--bridge-off-white);
}

.careers-fields-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.careers-section-heading {
    width: min(760px, 100%);
    margin: 0 auto 44px;
    text-align: center;
}

.careers-section-heading>span {
    display: inline-block;

    margin-bottom: 10px;

    font-size: 14px;
    font-weight: 700;

    color: var(--bridge-blue);
}

.careers-section-heading h2 {
    margin: 0;

    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.4;
    font-weight: 800;

    color: var(--bridge-navy);
}

.careers-section-heading p {
    margin: 16px auto 0;

    font-size: 16px;
    line-height: 1.9;

    color: var(--bridge-gray);
}


.careers-fields-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* Card */

.career-field-card {
    position: relative;
    overflow: hidden;

    min-height: 360px;

    display: flex;
    flex-direction: column;

    padding: 32px;

    border-radius: 26px;
    border: 1px solid rgba(23, 32, 51, 0.08);

    background: #ffffff;

    box-shadow:
        0 16px 42px rgba(23, 32, 51, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* ألوان المجالات */

.career-field-card:nth-child(1) {
    background:
        linear-gradient(145deg,
            rgba(55, 144, 186, 0.17),
            #ffffff 68%);

    border-color:
        rgba(55, 144, 186, 0.22);
}

.career-field-card:nth-child(2) {
    background:
        linear-gradient(145deg,
            rgba(41, 117, 115, 0.17),
            #ffffff 68%);

    border-color:
        rgba(41, 117, 115, 0.22);
}

.career-field-card:nth-child(3) {
    background:
        linear-gradient(145deg,
            rgba(253, 190, 17, 0.20),
            #ffffff 68%);

    border-color:
        rgba(253, 190, 17, 0.28);
}


.career-field-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 24px 52px rgba(23, 32, 51, 0.12);
}


.career-field-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 28px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.72);

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700;

    color: var(--bridge-navy);
}


.career-field-card h3 {
    margin: 0;

    font-size: 23px;
    line-height: 1.55;
    font-weight: 800;

    color: var(--bridge-navy);
}

.career-field-card p {
    margin: 17px 0 28px;

    font-size: 15px;
    line-height: 1.95;

    color: var(--bridge-gray);
}


/* Button */

.career-field-button {
    width: 100%;
    min-height: 50px;

    margin-top: auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    border-radius: 999px;

    background: var(--bridge-navy);

    color: #ffffff;
    text-decoration: none;

    font-size: 15px;
    font-weight: 800;

    box-shadow:
        0 10px 22px rgba(27, 43, 87, 0.14);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.career-field-button:hover {
    background: var(--bridge-blue);

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 14px 28px rgba(55, 144, 186, 0.24);
}


/* Tablet */

@media (max-width: 950px) {

    .careers-fields-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 0 auto;
    }

    .career-field-card {
        min-height: 300px;
    }
}


/* Mobile */

@media (max-width: 640px) {

    .careers-intro {
        padding: 54px 18px 46px;
    }

    .careers-intro p {
        font-size: 15px;
    }

    .careers-fields-section {
        padding: 56px 18px 66px;
    }

    .career-field-card {
        padding: 26px 22px;
        min-height: 290px;
    }
}

/* =========================================================
   Explore School Page
========================================================= */


/* =========================================================
   Intro
========================================================= */

.explore-intro {
    padding: 72px 24px 64px;
    background: #ffffff;
}

.explore-intro-inner {
    width: min(860px, 100%);
    margin: 0 auto;
    text-align: center;
}

.explore-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;
    padding: 7px 16px;

    border-radius: 999px;

    background: rgba(27, 43, 87, 0.08);
    border: 1px solid rgba(27, 43, 87, 0.13);

    color: var(--bridge-navy);

    font-size: 14px;
    font-weight: 800;
}

.explore-intro h2 {
    margin: 0;

    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.4;
    font-weight: 800;

    color: var(--bridge-navy);
}

.explore-intro p {
    max-width: 760px;
    margin: 18px auto 0;

    font-size: 17px;
    line-height: 2;

    color: var(--bridge-gray);
}


/* =========================================================
   Shared Section Heading
========================================================= */

.explore-section-heading {
    width: min(800px, 100%);
    margin: 0 auto 44px;

    text-align: center;
}

.explore-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;
    padding: 7px 16px;

    border-radius: 999px;

    background: rgba(55, 144, 186, 0.12);
    border: 1px solid rgba(55, 144, 186, 0.22);

    color: var(--bridge-navy);

    font-size: 14px;
    font-weight: 800;
}

.explore-section-badge-teal {
    background: rgba(41, 117, 115, 0.12);
    border-color: rgba(41, 117, 115, 0.22);
}

.explore-section-badge-yellow {
    background: rgba(253, 190, 17, 0.16);
    border-color: rgba(253, 190, 17, 0.30);
}

.explore-section-heading h2 {
    margin: 0;

    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.4;
    font-weight: 800;

    color: var(--bridge-navy);
}

.explore-section-heading p {
    max-width: 720px;
    margin: 16px auto 0;

    font-size: 16px;
    line-height: 1.9;

    color: var(--bridge-gray);
}


/* =========================================================
   Main Explore Areas
========================================================= */

.explore-areas-section {
    padding: 78px 24px 88px;
    background: var(--bridge-off-white);
}

.explore-areas-inner {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.explore-areas-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;
}


/* Area Card */

.explore-area-card {
    position: relative;
    overflow: hidden;

    min-height: 360px;

    display: flex;
    flex-direction: column;

    padding: 30px;

    border-radius: 26px;
    border: 1px solid rgba(23, 32, 51, 0.08);

    background: #ffffff;

    box-shadow:
        0 16px 42px rgba(23, 32, 51, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/* Color Identity */

.explore-area-card:nth-child(1) {
    background:
        linear-gradient(145deg,
            rgba(55, 144, 186, 0.17),
            #ffffff 70%);

    border-color:
        rgba(55, 144, 186, 0.22);
}

.explore-area-card:nth-child(2) {
    background:
        linear-gradient(145deg,
            rgba(41, 117, 115, 0.17),
            #ffffff 70%);

    border-color:
        rgba(41, 117, 115, 0.22);
}

.explore-area-card:nth-child(3) {
    background:
        linear-gradient(145deg,
            rgba(253, 190, 17, 0.19),
            #ffffff 70%);

    border-color:
        rgba(253, 190, 17, 0.28);
}

.explore-area-card:nth-child(4) {
    background:
        linear-gradient(145deg,
            rgba(221, 55, 46, 0.12),
            #ffffff 70%);

    border-color:
        rgba(221, 55, 46, 0.19);
}

.explore-area-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 5px;
}

.explore-area-card:nth-child(1)::before {
    background: var(--bridge-blue);
}

.explore-area-card:nth-child(2)::before {
    background: var(--bridge-teal);
}

.explore-area-card:nth-child(3)::before {
    background: var(--bridge-yellow);
}

.explore-area-card:nth-child(4)::before {
    background: var(--bridge-red);
}


.explore-area-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 24px 52px rgba(23, 32, 51, 0.12);
}


/* Card Number */

.explore-area-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 26px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.92);

    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;

    color: var(--bridge-navy);
}


.explore-area-card h3 {
    margin: 0;

    font-size: 23px;
    line-height: 1.5;
    font-weight: 800;

    color: var(--bridge-navy);
}

.explore-area-card p {
    margin: 17px 0 28px;

    font-size: 15px;
    line-height: 1.95;

    color: var(--bridge-gray);
}


/* Explore Button */

.explore-area-button {
    width: 100%;
    min-height: 50px;

    margin-top: auto;
    padding: 11px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: var(--bridge-navy);

    color: #ffffff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 10px 22px rgba(27, 43, 87, 0.14);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.explore-area-button:hover {
    background: var(--bridge-blue);
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 14px 28px rgba(55, 144, 186, 0.23);
}


/* =========================================================
   Facilities
========================================================= */

.explore-facilities-section {
    padding: 82px 24px 92px;
    background: #ffffff;
}

.explore-facilities-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.explore-facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.explore-facility-card {
    position: relative;

    min-height: 220px;

    padding: 30px 26px;

    background: #ffffff;

    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 22px;

    box-shadow:
        0 14px 34px rgba(23, 32, 51, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.explore-facility-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 24px;
    left: 24px;

    height: 4px;

    border-radius: 0 0 8px 8px;

    background: var(--bridge-blue);
}

.explore-facility-card:nth-child(2)::before {
    background: var(--bridge-yellow);
}

.explore-facility-card:nth-child(3)::before {
    background: var(--bridge-teal);
}

.explore-facility-card:nth-child(4)::before {
    background: var(--bridge-red);
}

.explore-facility-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 42px rgba(23, 32, 51, 0.10);
}

.explore-facility-card h3 {
    margin: 12px 0 14px;

    font-size: 19px;
    line-height: 1.5;
    font-weight: 800;

    color: var(--bridge-navy);
}

.explore-facility-card p {
    margin: 0;

    font-size: 15px;
    line-height: 1.9;

    color: var(--bridge-gray);
}


/* =========================================================
   Gallery Preview
========================================================= */

.explore-gallery-section {
    padding: 82px 24px 92px;

    background:
        linear-gradient(180deg,
            #f8fafc 0%,
            #f4f8fb 100%);
}

.explore-gallery-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.explore-gallery-placeholder {
    position: relative;

    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    overflow: hidden;

    border-radius: 30px;

    background:
        linear-gradient(135deg,
            rgba(55, 144, 186, 0.12),
            rgba(41, 117, 115, 0.08),
            rgba(253, 190, 17, 0.10));

    border:
        1px solid rgba(55, 144, 186, 0.12);
}

.explore-gallery-placeholder::before,
.explore-gallery-placeholder::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.explore-gallery-placeholder::before {
    width: 180px;
    height: 180px;

    top: -70px;
    right: -55px;

    background:
        rgba(253, 190, 17, 0.12);
}

.explore-gallery-placeholder::after {
    width: 150px;
    height: 150px;

    bottom: -65px;
    left: -45px;

    background:
        rgba(55, 144, 186, 0.12);
}

.explore-gallery-placeholder p {
    position: relative;
    z-index: 1;

    max-width: 640px;

    margin: 0;

    text-align: center;

    font-size: 18px;
    line-height: 2;

    color: var(--bridge-navy);
}


/* =========================================================
   News
========================================================= */

.explore-news-section {
    padding: 82px 24px 90px;

    background: #ffffff;
}

.explore-news-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
}


/* =========================================================
   360 Tour
========================================================= */

.explore-tour-section {
    padding: 30px 24px 94px;

    background: #ffffff;
}

.explore-tour-inner {
    position: relative;
    overflow: hidden;

    width: min(1040px, 100%);
    margin: 0 auto;

    padding: 58px 40px;

    text-align: center;

    border-radius: 30px;

    background:
        linear-gradient(135deg,
            var(--bridge-navy),
            #263d76);

    box-shadow:
        0 22px 54px rgba(27, 43, 87, 0.16);
}

.explore-tour-inner::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    top: -90px;
    right: -60px;

    border-radius: 50%;

    background:
        rgba(55, 144, 186, 0.18);
}

.explore-tour-inner::after {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    bottom: -85px;
    left: -45px;

    border-radius: 50%;

    background:
        rgba(253, 190, 17, 0.12);
}

.explore-tour-badge {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 16px;
    margin-bottom: 18px;

    border-radius: 999px;

    background: rgba(253, 190, 17, 0.16);
    border: 1px solid rgba(253, 190, 17, 0.35);

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}

.explore-tour-inner h2 {
    position: relative;
    z-index: 1;

    margin: 0;

    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.4;
    font-weight: 800;

    color: #ffffff;
}

.explore-tour-inner p {
    position: relative;
    z-index: 1;

    max-width: 680px;

    margin: 16px auto 0;

    font-size: 16px;
    line-height: 2;

    color: rgba(255, 255, 255, 0.78);
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1050px) {

    .explore-areas-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .explore-facilities-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 640px) {

    .explore-intro {
        padding: 54px 18px 48px;
    }

    .explore-intro h2 {
        font-size: 31px;
    }

    .explore-intro p {
        font-size: 15px;
    }


    .explore-areas-section {
        padding: 58px 18px 66px;
    }

    .explore-areas-grid {
        grid-template-columns: 1fr;
    }

    .explore-area-card {
        min-height: 300px;
        padding: 26px 22px;
    }


    .explore-facilities-section {
        padding: 62px 18px 68px;
    }

    .explore-facilities-grid {
        grid-template-columns: 1fr;
    }

    .explore-facility-card {
        min-height: auto;
        padding: 26px 22px;
    }


    .explore-gallery-section {
        padding: 62px 18px 68px;
    }

    .explore-gallery-placeholder {
        min-height: 240px;
        padding: 30px 22px;
    }

    .explore-gallery-placeholder p {
        font-size: 16px;
    }


    .explore-news-section {
        padding: 62px 18px 66px;
    }


    .explore-tour-section {
        padding: 18px 18px 70px;
    }

    .explore-tour-inner {
        padding: 46px 24px;
        border-radius: 24px;
    }

    .explore-tour-inner h2 {
        font-size: 30px;
    }
}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .explore-area-card,
    .explore-area-button,
    .explore-facility-card {
        transition: none !important;
    }
}

/* =========================================================
   Journey Explore Shortcut (رابط استكشف المدرسة في الشريط العلوي)
========================================================= */

.journey-explore-shortcut {
    pointer-events: auto;

    display: inline-flex;
    align-items: center;

    padding: 9px 18px;

    border-radius: 999px;

    background: rgba(27, 43, 87, 0.08);
    border: 1px solid rgba(27, 43, 87, 0.15);

    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 700;

    color: var(--bridge-navy);
    text-decoration: none;

    transition:
        background var(--bridge-transition),
        border-color var(--bridge-transition);
}

/* =========================================================
   Explore School — Real Facility Images
========================================================= */

.explore-facility-card {
    display: flex;
    flex-direction: column;

    min-height: 0;
    padding: 0;
    overflow: hidden;

    text-align: right;
}

.explore-facility-card::before {
    z-index: 2;
}

.explore-facility-media {
    position: relative;

    width: 100%;
    height: 210px;

    overflow: hidden;

    background: #edf2f6;
}

.explore-facility-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
}

.explore-facility-card:hover .explore-facility-media img {
    transform: scale(1.045);
}

.explore-facility-body {
    flex: 1;
    padding: 24px 23px 28px;
}

.explore-facility-body h3 {
    margin: 0 0 12px;

    font-size: 19px;
    line-height: 1.5;
}

.explore-facility-body p {
    margin: 0;

    font-size: 15px;
    line-height: 1.9;
}


/* =========================================================
   Explore School — Gallery Preview
========================================================= */

.explore-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.explore-gallery-item {
    position: relative;

    height: 245px;
    margin: 0;

    overflow: hidden;

    border-radius: 22px;

    background: #eaf0f5;

    box-shadow:
        0 14px 34px rgba(23, 32, 51, 0.08);

    isolation: isolate;
}

.explore-gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
}

.explore-gallery-item:hover img {
    transform: scale(1.055);
}

.explore-gallery-item::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        linear-gradient(to top,
            rgba(16, 28, 54, 0.78) 0%,
            rgba(16, 28, 54, 0.08) 52%,
            transparent 75%);

    pointer-events: none;
}

.explore-gallery-caption {
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    z-index: 1;

    margin: 0;

    color: #ffffff;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;

    text-align: right;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}


/* =========================================================
   Full Gallery Button
========================================================= */

.explore-gallery-actions {
    display: flex;
    justify-content: center;

    margin-top: 38px;
}

.explore-gallery-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;
    min-height: 52px;

    padding: 12px 25px;

    border-radius: 999px;

    background: var(--bridge-navy);

    color: #ffffff;
    text-decoration: none;

    font-size: 15px;
    font-weight: 800;

    box-shadow:
        0 12px 28px rgba(27, 43, 87, 0.16);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.explore-gallery-button:hover {
    background: var(--bridge-blue);
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 16px 32px rgba(55, 144, 186, 0.22);
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1050px) {

    .explore-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .explore-facility-media {
        height: 225px;
    }
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 640px) {

    .explore-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .explore-gallery-item {
        height: 260px;
    }

    .explore-facility-media {
        height: 220px;
    }

    .explore-facility-body {
        padding: 23px 22px 27px;
    }

    .explore-gallery-actions {
        margin-top: 30px;
    }

    .explore-gallery-button {
        width: 100%;
        max-width: 340px;
    }
}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .explore-facility-media img,
    .explore-gallery-item img,
    .explore-gallery-button {
        transition: none !important;
    }

    .explore-facility-card:hover .explore-facility-media img,
    .explore-gallery-item:hover img,
    .explore-gallery-button:hover {
        transform: none;
    }
}

/* =========================================================
   SCHOOL GALLERY — INTRO
========================================================= */

.school-gallery-intro {
    padding: 74px 24px 44px;
    background: #ffffff;
    text-align: center;
}

.school-gallery-intro-inner {
    max-width: 850px;
    margin: 0 auto;
}

.school-gallery-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 17px;
    margin-bottom: 18px;

    border-radius: 999px;

    background: #e9f5fa;
    border: 1px solid #c9e4f0;

    color: #1b2b57;

    font-size: 13px;
    font-weight: 800;
}

.school-gallery-intro h2 {
    margin: 0 0 14px;

    color: #1b2b57;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.5;
}

.school-gallery-intro p {
    max-width: 680px;
    margin: 0 auto;

    color: #667085;
    font-size: 16px;
    line-height: 2;
}


/* =========================================================
   SCHOOL GALLERY — SECTIONS
========================================================= */

.gallery-section {
    padding: 60px 24px 84px;
    background: #ffffff;
}

.gallery-section:nth-of-type(even) {
    background: #f8fafc;
}

.gallery-section-inner {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

.gallery-section-title {
    position: relative;

    margin: 0 0 36px;

    color: #1b2b57;
    text-align: center;

    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 800;
    line-height: 1.5;
}


/* =========================================================
   SCHOOL GALLERY — GRID
========================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;
    width: 100%;
}

.gallery-thumb {
    position: relative;

    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;

    padding: 0;
    margin: 0;

    overflow: hidden;

    border: 1px solid #e7ebf1;
    border-radius: 20px;

    background: #edf2f6;

    box-shadow:
        0 10px 26px rgba(23, 32, 51, 0.07);

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.gallery-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
}

.gallery-thumb:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 38px rgba(23, 32, 51, 0.13);
}

.gallery-thumb:hover img {
    transform: scale(1.05);
}

.gallery-thumb:focus-visible {
    outline: 3px solid #3790ba;
    outline-offset: 4px;
}


/* =========================================================
   SCHOOL GALLERY — LIGHTBOX
========================================================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 64px 24px 24px;

    background: rgba(10, 18, 36, 0.94);
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox img {
    display: block;

    max-width: min(1100px, 95vw);
    max-height: 85vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 12px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.gallery-lightbox-close:focus-visible {
    outline: 3px solid #fdbe11;
    outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .school-gallery-intro {
        padding: 54px 20px 28px;
    }

    .gallery-section {
        padding: 44px 18px 60px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-thumb {
        border-radius: 14px;
        aspect-ratio: 1 / 1;
    }

    .gallery-lightbox {
        padding: 65px 12px 20px;
    }

    .gallery-lightbox-close {
        right: 14px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .gallery-thumb,
    .gallery-thumb img {
        transition: none;
    }

    .gallery-thumb:hover,
    .gallery-thumb:hover img {
        transform: none;
    }

}

/* Explore Gallery — Clickable Images */

.explore-gallery-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.explore-gallery-trigger img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-gallery-trigger:focus-visible {
    outline: 3px solid var(--bridge-blue);
    outline-offset: -4px;
}

.explore-gallery-caption {
    pointer-events: none;
}

/* =========================================================
   Bridge — News Cards, Archive & Explore Preview
========================================================= */

.explore-news-section {
    padding: 76px 24px 88px;
    background: #ffffff;
    direction: rtl;
}

.explore-news-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.explore-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 38px;
}

.explore-news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4eaf2;
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(27, 43, 76, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.explore-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(27, 43, 76, 0.12);
}

.explore-news-section .explore-news-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #edf4f8;
    flex-shrink: 0;
}

.explore-news-section .explore-news-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.explore-news-card:hover .explore-news-media img {
    transform: scale(1.04);
}

.explore-news-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #1e3157;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 2px;
}

.explore-news-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px 24px 26px;
    text-align: right;
}

.explore-news-date {
    display: block;
    margin-bottom: 11px;
    color: #57728a;
    font-size: 13px;
    font-weight: 600;
}

.explore-news-title {
    margin: 0 0 12px;
    color: #1e3157;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.6;
}

.explore-news-title a {
    color: inherit;
    text-decoration: none;
}

.explore-news-title a:hover {
    color: #168c9b;
}

.explore-news-excerpt {
    margin: 0 0 22px;
    color: #617083;
    font-size: 15px;
    line-height: 1.9;
}

.explore-news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #168c9b;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.explore-news-read-more:hover {
    color: #1e3157;
}

.explore-news-actions {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.explore-news-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 27px;
    border-radius: 999px;
    background: #1e3157;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.explore-news-all-button:hover {
    background: #168c9b;
    color: #ffffff;
    transform: translateY(-2px);
}

.explore-news-empty {
    margin-top: 36px;
    padding: 32px 20px;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    background: #f8fafc;
    color: #617083;
    text-align: center;
}

.school-news-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}

.school-news-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #dce5ed;
    border-radius: 10px;
    background: #ffffff;
    color: #1e3157;
    font-weight: 700;
    text-decoration: none;
}

.school-news-pagination a:hover,
.school-news-pagination a[aria-current="page"] {
    background: #1e3157;
    border-color: #1e3157;
    color: #ffffff;
}

@media (max-width: 900px) {
    .explore-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .explore-news-section {
        padding: 58px 18px 70px;
    }

    .explore-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .explore-news-title {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .explore-news-card,
    .explore-news-media img,
    .explore-news-all-button {
        transition: none;
    }
}

/* =========================================================
   Single News (Post) Page
========================================================= */

.single-news {
    padding: 64px 24px 90px;
    background: #ffffff;
    direction: rtl;
}

.single-news-inner {
    width: min(100%, 780px);
    margin: 0 auto;
}

.single-news-featured-image {
    margin-bottom: 32px;
    overflow: hidden;
    border-radius: 20px;
}

.single-news-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

.single-news-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.single-news-date {
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--bridge-gray);
}

.single-news-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(55, 144, 186, 0.12);
    border: 1px solid rgba(55, 144, 186, 0.22);
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--bridge-navy);
}

.single-news-body {
    font-family: "Cairo", sans-serif;
    font-size: 17.5px;
    line-height: 2;
    color: var(--bridge-dark);
    text-align: start;
}

.single-news-body>*:first-child {
    margin-top: 0;
}

.single-news-body>*:last-child {
    margin-bottom: 0;
}

.single-news-body p {
    margin: 0 0 22px;
}

.single-news-body h2,
.single-news-body h3 {
    margin: 40px 0 16px;
    color: var(--bridge-navy);
    font-weight: 800;
    line-height: 1.5;
}

.single-news-body h2 {
    font-size: 26px;
}

.single-news-body h3 {
    font-size: 21px;
}

.single-news-body ul,
.single-news-body ol {
    margin: 0 0 22px;
    padding-inline-start: 26px;
}

.single-news-body li {
    margin-bottom: 8px;
}

.single-news-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 18px;
}

.single-news-body blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-inline-start: 4px solid var(--bridge-blue);
    border-radius: 12px;
    background: var(--bridge-off-white);
    font-style: normal;
    color: var(--bridge-gray);
}

.single-news-body a {
    color: var(--bridge-blue);
    text-decoration: underline;
}

.single-news-back {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.single-news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid rgba(23, 32, 51, 0.14);
    border-radius: 999px;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--bridge-navy);
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.single-news-back-link:hover {
    border-color: var(--bridge-blue);
    color: var(--bridge-blue);
    background: rgba(55, 144, 186, 0.06);
}

@media (max-width: 640px) {
    .single-news {
        padding: 48px 18px 64px;
    }

    .single-news-featured-image img {
        max-height: 280px;
    }

    .single-news-body {
        font-size: 16px;
        line-height: 1.9;
    }

    .single-news-body h2 {
        font-size: 22px;
    }

    .single-news-body h3 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .single-news-back-link {
        transition: none;
    }
}

/* =========================================================
   Homepage — Browse Site & Content Preview
========================================================= */

/* منع ظهور محتوى الرئيسية قبل الوصول لشاشة الاختيارات */
.homepage-content[hidden] {
    display: none !important;
}

.homepage-content {
    position: relative;
    background: var(--bridge-white);
}

/* زر تصفّح الموقع تحت الكروت */
.path-selection-browse {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.browse-site-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 11px 24px;

    border: 1px solid rgba(23, 32, 51, 0.16);
    border-radius: 999px;

    background: #ffffff;
    color: var(--bridge-navy);

    font-family: "Cairo", sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;

    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.browse-site-link:hover {
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
    transform: translateY(-2px);
}

.browse-site-link:focus-visible {
    outline: 3px solid var(--bridge-blue);
    outline-offset: 4px;
}

/* المحتوى التجريبي أسفل الـJourney */
.home-placeholder-section {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    padding: 80px 24px;

    background: #ffffff;
    text-align: center;
}

.home-placeholder-inner {
    width: min(100%, 760px);
    margin: 0 auto;
}

.home-placeholder-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
    padding: 7px 18px;

    border: 1px solid rgba(55, 144, 186, 0.22);
    border-radius: 999px;

    background: rgba(55, 144, 186, 0.12);
    color: var(--bridge-navy);

    font-size: 14px;
    font-weight: 800;
}

.home-placeholder-section h2 {
    margin: 0 0 18px;

    color: var(--bridge-navy);

    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.5;
}

.home-placeholder-section p {
    margin: 0;

    color: var(--bridge-gray);

    font-size: 17px;
    line-height: 2;
}

/* اللوجو يفضل ثابت أثناء تصفّح الصفحة الرئيسية */
.journey-nav.is-below-journey {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.journey-nav.is-below-journey .journey-logo {
    pointer-events: auto;
}

/* إخفاء زر الرجوع فقط تحت الـJourney */
.journey-nav.is-below-journey .journey-back {
    visibility: hidden;
    pointer-events: none;
}

/* =========================================================
   Homepage — Navigation, Hero & About
========================================================= */

/* =========================================================
   Navigation
========================================================= */

.homepage-content[hidden] {
    display: none !important;
}

.homepage-content {
    position: relative;
    background: var(--bridge-white);
}

.homepage-nav {
    position: relative;
    z-index: 10;

    background: var(--bridge-white);
    border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.homepage-nav-inner {
    position: relative;

    width: min(100%, 1200px);
    min-height: 78px;

    margin: 0 auto;
    padding: 16px 24px 16px 24px;
    padding-inline-start: 100px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-nav-menu {
    min-width: 0;
}

.homepage-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 26px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.homepage-nav-list a {
    font-family: "Cairo", sans-serif;
    font-size: 15px;
    font-weight: 700;

    color: var(--bridge-dark);
    text-decoration: none;

    transition: color 0.2s ease;
}

.homepage-nav-list a:hover,
.homepage-nav-list a:focus-visible {
    color: var(--bridge-blue);
}


/* =========================================================
   Hero — صورة المدرسة
========================================================= */

.homepage-hero {
    position: relative;

    min-height: 560px;
    min-height: min(75vh, 680px);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    background: var(--bridge-navy);
}

.homepage-hero-image {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.homepage-hero-overlay {
    position: absolute;
    inset: 0;
    display: block;

    background: linear-gradient(180deg,
            rgba(14, 58, 112, 0.12) 0%,
            rgba(18, 65, 125, 0.35) 48%,
            rgba(12, 39, 83, 0.58) 100%);
}

.homepage-hero-content {
    position: relative;
    z-index: 1;

    width: min(100%, 780px);
    margin: 0 auto;
    padding: 76px 24px;

    box-sizing: border-box;
    text-align: center;
}

.homepage-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;
    padding: 7px 18px;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);

    background: rgba(255, 255, 255, 0.14);

    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 800;

    color: #ffffff;
}

.homepage-hero-content h2 {
    margin: 0 0 18px;

    font-size: clamp(32px, 4.6vw, 52px);
    font-weight: 800;
    line-height: 1.4;

    color: #ffffff;
}

.homepage-hero-content p {
    max-width: 620px;
    margin: 0 auto 32px;

    font-size: 17px;
    line-height: 1.95;

    color: rgba(255, 255, 255, 0.9);
}

.homepage-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.homepage-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 12px 30px;

    box-sizing: border-box;

    border: 0;
    border-radius: 999px;

    font-family: "Cairo", sans-serif;
    font-size: 15px;
    font-weight: 800;

    text-decoration: none;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.homepage-hero-button:hover {
    transform: translateY(-2px);
}

.homepage-hero-button:focus-visible {
    outline: 3px solid var(--bridge-yellow);
    outline-offset: 4px;
}

.homepage-hero-button-primary {
    background: var(--bridge-yellow);
    color: var(--bridge-navy);

    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.homepage-hero-button-primary:hover {
    background: #ffffff;
    color: var(--bridge-navy);
}

.homepage-hero-button-secondary {
    background: transparent;
    color: #ffffff;

    border: 2px solid rgba(255, 255, 255, 0.8);
}

.homepage-hero-button-secondary:hover {
    background: #ffffff;
    color: var(--bridge-navy);
}


/* =========================================================
   About — من نحن
========================================================= */

.homepage-about {
    padding: 84px 24px;

    background: #ffffff;
    text-align: center;
}

.homepage-about-inner {
    width: min(100%, 760px);
    margin: 0 auto;
}

.homepage-about-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
    padding: 7px 18px;

    border: 1px solid rgba(55, 144, 186, 0.22);
    border-radius: 999px;

    background: rgba(55, 144, 186, 0.12);

    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 800;

    color: var(--bridge-navy);
}

.homepage-about h2 {
    margin: 0 0 18px;

    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    line-height: 1.5;

    color: var(--bridge-navy);
}

.homepage-about p {
    margin: 0;

    font-size: 17px;
    line-height: 2;

    color: var(--bridge-gray);
}


/* =========================================================
   Tablet & Mobile Navigation
========================================================= */

@media (max-width: 767px) {

    .homepage-nav-inner {
        min-height: 72px;

        padding: 12px 20px;
        padding-inline-start: 90px;

        justify-content: flex-end;
    }

    .homepage-nav .site-nav-toggle {
        display: flex;
        flex: 0 0 auto;
    }

    .homepage-nav .site-nav {
        display: none;

        position: absolute;
        top: 100%;
        inset-inline: 0;
        z-index: 20;

        padding: 16px 20px;

        background: #ffffff;
        border-bottom: 1px solid rgba(23, 32, 51, 0.08);

        box-shadow: 0 12px 24px rgba(23, 32, 51, 0.08);
    }

    .homepage-nav .site-nav.is-open {
        display: block;
    }

    .homepage-nav .site-nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

}


/* =========================================================
   Mobile — Hero & About
========================================================= */

@media (max-width: 640px) {

    .homepage-hero {
        min-height: 480px;
    }

    .homepage-hero-content {
        padding: 60px 20px;
    }

    .homepage-hero-content h2 {
        font-size: clamp(30px, 8vw, 38px);
    }

    .homepage-hero-content p {
        font-size: 15px;
    }

    .homepage-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .homepage-hero-button {
        width: min(100%, 320px);
    }

    .homepage-about {
        padding: 60px 20px;
    }

    .homepage-about p {
        font-size: 15px;
    }

}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .homepage-hero-button,
    .homepage-nav-list a {
        transition: none;
    }

    .homepage-hero-button:hover {
        transform: none;
    }

}

.homepage-hero .homepage-hero-content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
}

.homepage-hero .homepage-hero-content h2 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.homepage-hero .homepage-hero-content p {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   Homepage Hero — Desktop refinement only
========================================================= */

@media (min-width: 641px) {

    .homepage-hero .homepage-hero-content {
        width: min(860px, calc(100% - 48px));
        max-width: 860px;

        margin: 0 auto;
        padding: 48px 24px;

        text-align: center;
        transform: translateY(55px);

        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .homepage-hero .homepage-hero-badge {
        margin-bottom: 14px;
    }

    .homepage-hero .homepage-hero-content h2 {
        margin: 0 0 16px;

        font-size: clamp(34px, 3.2vw, 50px);
        line-height: 1.45;
        color: #ffffff;
    }

    .homepage-hero .homepage-hero-content p {
        max-width: 620px;
        margin: 0 auto 28px;

        font-size: 17px;
        line-height: 1.9;
        color: #ffffff;
    }

    .homepage-hero .homepage-hero-actions {
        gap: 14px;
    }

}

/* =========================================================
   Homepage Hero — Tablet & Mobile
   نفس تصميم الكمبيوتر مع ضبط الأحجام والمسافات
========================================================= */

/* الآيباد والأجهزة المتوسطة */
@media (min-width: 641px) and (max-width: 1024px) {

    .homepage-hero {
        min-height: 680px;
    }

    .homepage-hero .homepage-hero-content {
        width: min(760px, calc(100% - 48px));
        padding: 40px 20px;
        transform: translateY(32px);
    }

    .homepage-hero .homepage-hero-content h2 {
        font-size: clamp(32px, 4.5vw, 46px);
        line-height: 1.4;
    }

    .homepage-hero .homepage-hero-content p {
        max-width: 580px;
        font-size: 16px;
    }

}


/* الموبايل */
@media (max-width: 640px) {

    .homepage-hero {
        position: relative;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;

        min-height: 690px;
        height: auto;

        overflow: hidden;
        background: var(--bridge-navy);
    }

    /* الصورة تفضل خلفية كاملة */
    .homepage-hero-image {
        position: absolute;
        inset: 0;

        display: block;
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center top;
    }

    /* تدرّج أزرق خفيف فوق الشعار وأغمق خلف الكلام */
    .homepage-hero-overlay {
        position: absolute;
        inset: 0;

        display: block;

        background: linear-gradient(180deg,
                rgba(14, 58, 112, 0.08) 0%,
                rgba(18, 65, 125, 0.18) 24%,
                rgba(12, 39, 83, 0.54) 55%,
                rgba(12, 39, 83, 0.76) 100%);
    }

    /* ننزل مجموعة الكلام تحت شعار المدرسة */
    .homepage-hero .homepage-hero-content {
        position: relative;
        z-index: 1;

        width: calc(100% - 36px);
        max-width: 440px;

        margin: 0 auto;
        padding: 205px 0 42px;

        box-sizing: border-box;
        text-align: center;

        transform: none;

        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;

        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .homepage-hero .homepage-hero-badge {
        margin-bottom: 14px;
    }

    .homepage-hero .homepage-hero-content h2 {
        margin: 0 0 14px;

        font-size: clamp(28px, 7.6vw, 36px);
        line-height: 1.4;
        color: #ffffff;
    }

    .homepage-hero .homepage-hero-content p {
        max-width: 370px;
        margin: 0 auto 26px;

        font-size: 14px;
        line-height: 1.85;
        color: #ffffff;
    }

    /* الأزرار جنب بعض طالما مساحة الشاشة تسمح */
    .homepage-hero .homepage-hero-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;

        width: 100%;
        gap: 10px;
    }

    .homepage-hero .homepage-hero-button {
        width: auto;
        max-width: none;
        min-height: 46px;

        padding: 10px 15px;
        font-size: 13px;
    }

}


/* الشاشات الصغيرة جدًا: الأزرار تحت بعض */
@media (max-width: 360px) {

    .homepage-hero .homepage-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .homepage-hero .homepage-hero-button {
        width: min(100%, 300px);
    }

}

/* =========================================================
   Homepage — Educational Tracks
========================================================= */

.homepage-tracks {
    padding: 84px 24px 92px;
    background: #f6f9fc;
    text-align: center;
}

.homepage-tracks-inner {
    width: min(100%, 1080px);
    margin: 0 auto;
}

.homepage-tracks-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
    padding: 7px 18px;

    border: 1px solid rgba(55, 144, 186, 0.22);
    border-radius: 999px;
    background: rgba(55, 144, 186, 0.12);

    font-size: 14px;
    font-weight: 800;
    color: var(--bridge-navy);
}

.homepage-tracks-inner>h2 {
    margin: 0 0 16px;

    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    line-height: 1.5;
    color: var(--bridge-navy);
}

.homepage-tracks-intro {
    max-width: 650px;
    margin: 0 auto 44px;

    font-size: 16px;
    line-height: 1.95;
    color: var(--bridge-gray);
}

.homepage-tracks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    text-align: start;
}

.homepage-track-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    padding: 36px 32px;

    border: 1px solid rgba(23, 32, 51, 0.08);
    border-top: 5px solid transparent;
    border-radius: 22px;

    background: #ffffff;
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.06);

    box-sizing: border-box;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.homepage-track-card-blue {
    border-top-color: var(--bridge-blue);
}

.homepage-track-card-teal {
    border-top-color: var(--bridge-teal);
}

.homepage-track-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(23, 32, 51, 0.10);
}

.homepage-track-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;
    padding: 7px 16px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;
}

.homepage-track-badge-blue {
    background: rgba(55, 144, 186, 0.14);
    color: var(--bridge-blue);
}

.homepage-track-badge-teal {
    background: rgba(41, 117, 115, 0.14);
    color: var(--bridge-teal);
}

.homepage-track-card h3 {
    margin: 0 0 14px;

    font-size: 23px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--bridge-navy);
}

.homepage-track-card p {
    margin: 0 0 28px;

    font-size: 15.5px;
    line-height: 1.95;
    color: var(--bridge-gray);
}

.homepage-track-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: auto;
    padding: 12px 22px;

    border-radius: 999px;
    background: var(--bridge-navy);

    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.homepage-track-button:hover {
    transform: translateY(-2px);
    background: var(--bridge-blue);
    color: #ffffff;
}

.homepage-track-button:focus-visible {
    outline: 3px solid var(--bridge-yellow);
    outline-offset: 4px;
}

/* الآيباد والموبايل */

@media (max-width: 900px) {

    .homepage-tracks-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

}

@media (max-width: 640px) {

    .homepage-tracks {
        padding: 62px 20px 72px;
    }

    .homepage-tracks-intro {
        margin-bottom: 30px;
        font-size: 15px;
    }

    .homepage-track-card {
        padding: 28px 24px;
    }

    .homepage-track-card h3 {
        font-size: 21px;
    }

    .homepage-track-card p {
        font-size: 15px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .homepage-track-card,
    .homepage-track-button {
        transition: none;
    }

    .homepage-track-card:hover,
    .homepage-track-button:hover {
        transform: none;
    }

}

/* =========================================================
   Homepage — لماذا جسر التعلم؟
========================================================= */

.homepage-why {
    padding: 84px 24px;
    background: #ffffff;
    text-align: center;
}

.homepage-why-inner {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.homepage-why-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
    padding: 7px 18px;

    border-radius: 999px;

    background: rgba(253, 190, 17, 0.16);
    border: 1px solid rgba(253, 190, 17, 0.32);

    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 800;

    color: var(--bridge-navy);
}

.homepage-why-inner>h2 {
    margin: 0 0 50px;

    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    line-height: 1.5;

    color: var(--bridge-navy);
}

.homepage-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.homepage-why-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 34px 24px;

    text-align: center;
}

.homepage-why-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    margin-bottom: 20px;

    border-radius: 18px;

    background: rgba(55, 144, 186, 0.10);

    color: var(--bridge-blue);
}

.homepage-why-icon svg {
    width: 28px;
    height: 28px;
}

.homepage-why-card h3 {
    margin: 0 0 12px;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;

    color: var(--bridge-navy);
}

.homepage-why-card p {
    margin: 0;

    font-size: 14.5px;
    line-height: 1.9;

    color: var(--bridge-gray);
}

/* Tablet */

@media (max-width: 980px) {

    .homepage-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* Mobile */

@media (max-width: 560px) {

    .homepage-why {
        padding: 60px 20px;
    }

    .homepage-why-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}

/* =========================================================
   Homepage — استكشف مرافقنا
========================================================= */

.homepage-facilities {
    padding: 84px 24px;
    background: #f6f9fc;
    text-align: center;
}

.homepage-facilities-inner {
    width: min(100%, 1080px);
    margin: 0 auto;
}

.homepage-facilities-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
    padding: 7px 18px;

    border-radius: 999px;

    background: rgba(41, 117, 115, 0.14);
    border: 1px solid rgba(41, 117, 115, 0.26);

    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 800;

    color: var(--bridge-teal);
}

.homepage-facilities-inner>h2 {
    margin: 0 0 16px;

    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    line-height: 1.5;

    color: var(--bridge-navy);
}

.homepage-facilities-inner>p {
    max-width: 600px;
    margin: 0 auto 44px;

    font-size: 16px;
    line-height: 1.9;

    color: var(--bridge-gray);
}

.homepage-facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;

    margin-bottom: 40px;
}

.homepage-facility-item {
    margin: 0;
}

.homepage-facility-link {
    display: block;
    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: 18px;

    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.08);
}

.homepage-facility-link img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    transition: transform 0.35s ease;
}

.homepage-facility-link:hover img {
    transform: scale(1.05);
}

.homepage-facility-caption {
    margin-top: 12px;

    font-family: "Cairo", sans-serif;
    font-size: 14.5px;
    font-weight: 700;

    color: var(--bridge-navy);
}

.homepage-facilities-actions {
    display: flex;
    justify-content: center;
}

.homepage-facilities-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 13px 30px;

    border-radius: 999px;

    background: var(--bridge-navy);

    color: #ffffff;
    text-decoration: none;

    font-family: "Cairo", sans-serif;
    font-size: 15px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        gap 0.2s ease;
}

.homepage-facilities-button:hover {
    background: var(--bridge-blue);
    gap: 12px;
}

@media (max-width: 900px) {

    .homepage-facilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {

    .homepage-facilities {
        padding: 60px 20px;
    }

    .homepage-facilities-grid {
        gap: 16px;
    }
}

/* =========================================================
   Welcome Screen — Soft Facilities Background
========================================================= */

.welcome-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background-image:
        linear-gradient(rgba(248, 250, 252, 0.86),
            rgba(248, 250, 252, 0.86)),
        url("/wp-content/themes/bridge-theme/assets/images/gallery-images/facilities/facilities-12.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    pointer-events: none;
}


/* =========================================================
   Welcome Screen — Temporary Time Greeting
========================================================= */

.welcome-time-message {
    position: absolute;
    top: clamp(100px, 15vh, 140px);
    left: 50%;
    z-index: 3;

    width: max-content;
    max-width: calc(100% - 40px);
    box-sizing: border-box;

    padding: 10px 20px;

    border: 1px solid rgba(55, 144, 186, 0.20);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;

    color: var(--bridge-navy);
    text-align: center;

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -16px);

    pointer-events: none;
}

.welcome-time-message.is-visible {
    visibility: visible;
    animation: welcomeGreetingInOut 4.5s ease-in-out forwards;
}

@keyframes welcomeGreetingInOut {
    0% {
        opacity: 0;
        visibility: visible;
        transform: translate(-50%, -16px);
    }

    15% {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    75% {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -8px);
    }
}


/* =========================================================
   Welcome Greeting — Mobile
========================================================= */

@media (max-width: 640px) {
    .welcome-screen::before {
        background-image:
            rgba(248, 250, 252, 0.90),
            rgba(248, 250, 252, 0.90) url("/wp-content/themes/bridge-theme/assets/images/gallery-images/facilities/facilities-12.png");
    }

    .welcome-time-message {
        top: 104px;
        max-width: calc(100% - 32px);
        padding: 9px 14px;
        font-size: 12px;
        line-height: 1.7;
    }
}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .welcome-time-message.is-visible {
        animation: none;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%);
    }
}

/* =========================================================
   Homepage — Latest News
========================================================= */

.homepage-news {
    padding: 80px 24px 90px;
    background: #ffffff;
    direction: rtl;
}

.homepage-news-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.homepage-news-heading {
    text-align: center;
}

.homepage-news-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 18px;
    margin-bottom: 18px;

    border-radius: 999px;
    background: rgba(55, 144, 186, 0.10);
    color: var(--bridge-navy);

    font-size: 14px;
    font-weight: 700;
}

.homepage-news-heading h2 {
    margin: 0 0 14px;

    color: var(--bridge-navy);
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.4;
}

.homepage-news-heading>p {
    max-width: 650px;
    margin: 0 auto;

    color: var(--bridge-gray);
    font-size: 17px;
    line-height: 1.9;
}


/* =========================================================
   News Cards
========================================================= */

.homepage-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.homepage-news-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    border: 1px solid #e4eaf2;
    border-radius: 20px;

    background: #ffffff;
    box-shadow: 0 10px 32px rgba(27, 43, 76, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.homepage-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(27, 43, 76, 0.12);
}

.homepage-news .homepage-news-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;
    flex-shrink: 0;

    background: #edf4f8;
}

.homepage-news .homepage-news-media img {
    display: block;

    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
    transition: transform 0.35s ease;
}

.homepage-news-card:hover .homepage-news-media img {
    transform: scale(1.04);
}

.homepage-news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: var(--bridge-navy);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 2px;
}

.homepage-news-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;

    padding: 23px 24px 26px;
    text-align: right;
}

.homepage-news-date {
    display: block;
    margin-bottom: 11px;

    color: var(--bridge-gray);
    font-size: 13px;
    font-weight: 600;
}

.homepage-news-title {
    margin: 0 0 12px;

    color: var(--bridge-navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.6;
}

.homepage-news-title a {
    color: inherit;
    text-decoration: none;
}

.homepage-news-title a:hover {
    color: var(--bridge-teal);
}

.homepage-news-excerpt {
    margin: 0 0 22px;

    color: var(--bridge-gray);
    font-size: 15px;
    line-height: 1.9;
}

.homepage-news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;

    color: var(--bridge-teal);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.homepage-news-read-more:hover {
    color: var(--bridge-navy);
}


/* =========================================================
   All News Button
========================================================= */

.homepage-news-actions {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.homepage-news-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 48px;
    padding: 12px 27px;

    border-radius: 999px;

    background: var(--bridge-navy);
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.homepage-news-all-button:hover {
    background: var(--bridge-teal);
    color: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   Empty State
========================================================= */

.homepage-news-empty {
    margin-top: 36px;
    padding: 32px 20px;

    border: 1px solid #e4eaf2;
    border-radius: 18px;

    background: #f8fafc;
    color: var(--bridge-gray);

    font-size: 16px;
    line-height: 1.9;
    text-align: center;
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 640px) {
    .homepage-news {
        padding: 58px 18px 70px;
    }

    .homepage-news-heading h2 {
        font-size: 30px;
    }

    .homepage-news-heading>p {
        font-size: 15px;
    }

    .homepage-news-grid {
        grid-template-columns: minmax(0, 380px);
        gap: 20px;
    }

    .homepage-news-title {
        font-size: 19px;
    }
}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .homepage-news-card,
    .homepage-news .homepage-news-media img,
    .homepage-news-all-button {
        transition: none;
    }
}

/* =========================================================
   News Archive — Center Cards
========================================================= */

.school-news-archive .explore-news-grid {
    grid-template-columns: repeat(auto-fit,
            minmax(min(100%, 280px), 380px));
    justify-content: center;
}

/* =========================================================
   Homepage — Final CTA
========================================================= */

.homepage-cta {
    padding: 80px 24px;
    background: var(--bridge-navy);
    text-align: center;
    direction: rtl;
}

.homepage-cta-inner {
    max-width: 720px;
    margin: 0 auto;
}

.homepage-cta h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.4;
}

.homepage-cta p {
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.9;
}

.homepage-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.homepage-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 30px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.homepage-cta-button-primary {
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
}

.homepage-cta-button-secondary {
    border-color: rgba(255, 255, 255, 0.6);
    background: transparent;
    color: #ffffff;
}

.homepage-cta-button:hover {
    transform: translateY(-2px);
}

.homepage-cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.homepage-cta-button:focus-visible {
    outline: 3px solid var(--bridge-yellow);
    outline-offset: 4px;
}

@media (max-width: 640px) {
    .homepage-cta {
        padding: 58px 18px;
    }

    .homepage-cta p {
        font-size: 15px;
    }

    .homepage-cta-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-cta-button {
        transition: none;
    }
}

/* =========================================================
   Bridge Footer — Homepage
========================================================= */

.bridge-footer {
    width: 100%;
    background: #f3f7fa;
    border-top: 1px solid #e3ebf2;
    color: var(--bridge-navy);
}

.bridge-footer-inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 64px 0 54px;

    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.bridge-footer-brand,
.bridge-footer-links,
.bridge-footer-contact {
    min-width: 0;
}


/* =========================================================
   Brand
========================================================= */

.bridge-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
}

.bridge-footer-logo img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}

.bridge-footer-description {
    margin: 22px 0;
    color: #617083;
    font-size: 15px;
    line-height: 1.9;
}


/* =========================================================
   Headings & Quick Links
========================================================= */

.bridge-footer h2 {
    margin: 0 0 24px;
    color: var(--bridge-navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
}

.bridge-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.bridge-footer-links h2 {
    margin-bottom: 9px;
}

.bridge-footer-links a,
.bridge-footer-contact-item a {
    color: #617083;
    font-size: 15px;
    line-height: 1.7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bridge-footer-links a:hover,
.bridge-footer-contact-item a:hover {
    color: var(--bridge-blue);
}


/* =========================================================
   Social Media
========================================================= */

.bridge-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.bridge-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 38px;
    padding: 7px 11px;

    border: 1px solid #dce7f0;
    border-radius: 999px;
    background: #ffffff;

    color: var(--bridge-navy);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.bridge-footer-social a:hover {
    transform: translateY(-2px);
    border-color: var(--bridge-blue);
}

.bridge-footer-social svg {
    display: block;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}


/* =========================================================
   Contact
========================================================= */

.bridge-footer-contact-item {
    margin-bottom: 20px;
}

.bridge-footer-contact-label {
    display: block;
    margin-bottom: 7px;

    color: var(--bridge-blue);
    font-size: 13px;
    font-weight: 700;
}

.bridge-footer-contact-item p {
    margin: 0;
    color: #617083;
    font-size: 15px;
    line-height: 1.8;
}

.bridge-footer-contact-item a[dir="ltr"] {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
}

.bridge-footer-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    margin-top: 6px;
    padding: 11px 23px;

    border-radius: 999px;
    background: var(--bridge-navy);
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;

    transition: background 0.2s ease;
}

.bridge-footer-contact-button:hover {
    background: var(--bridge-blue);
    color: #ffffff;
}


/* =========================================================
   Copyright
========================================================= */

.bridge-footer-bottom {
    border-top: 1px solid #dfe8f0;
    padding: 20px 24px;
    text-align: center;
}

.bridge-footer-bottom p {
    margin: 0;
    color: #617083;
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 900px) {

    .bridge-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }

    .bridge-footer-brand {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 640px) {

    .bridge-footer-inner {
        width: calc(100% - 36px);
        padding: 44px 0 36px;

        grid-template-columns: 1fr;
        gap: 34px;
    }

    .bridge-footer-brand {
        grid-column: auto;
    }

    .bridge-footer-logo img {
        width: 165px;
    }

    .bridge-footer-links {
        gap: 12px;
    }

    .bridge-footer-bottom {
        padding: 19px 18px;
    }

}


/* =========================================================
   Accessibility
========================================================= */

.bridge-footer a:focus-visible {
    outline: 3px solid var(--bridge-blue);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .bridge-footer a,
    .bridge-footer-social a {
        transition: none;
    }

}

/* =========================================================
   Site Header — Sticky
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* =========================================================
   Anchor Offset — Sticky Header
========================================================= */

#gallery-facilities-photos,
#school-facilities,
#school-gallery,
#school-news {
    scroll-margin-top: 120px;
}
/* =========================================================
   Homepage Banner — Hero
========================================================= */

.homepage-banner {
    background: var(--bridge-navy);
}

.homepage-banner-media {
    display: block;
    width: 100%;
}

.homepage-banner-media img {
    display: block;
    width: 100%;
    height: auto;
}

.homepage-banner-content {
    width: min(820px, calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0 56px;
    text-align: center;
}

.homepage-banner-content h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.45;
}

.homepage-banner-content p {
    max-width: 620px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.9;
}

.homepage-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.homepage-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 30px;
    border: 2px solid transparent;
    border-radius: 999px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.homepage-banner-button-primary {
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
}

.homepage-banner-button-primary:hover {
    background: #ffffff;
    color: var(--bridge-navy);
}

.homepage-banner-button-secondary {
    border-color: rgba(255, 255, 255, 0.7);
    background: transparent;
    color: #ffffff;
}

.homepage-banner-button-secondary:hover {
    background: #ffffff;
    color: var(--bridge-navy);
}

.homepage-banner-button:hover {
    transform: translateY(-2px);
}

.homepage-banner-button:focus-visible {
    outline: 3px solid var(--bridge-yellow);
    outline-offset: 4px;
}

@media (max-width: 640px) {

    .homepage-banner-content {
        width: calc(100% - 36px);
        padding: 32px 0 44px;
    }

    .homepage-banner-content p {
        margin-bottom: 24px;
        font-size: 15px;
    }

    .homepage-banner-actions {
        gap: 10px;
    }

    .homepage-banner-button {
        min-height: 46px;
        padding: 10px 20px;
        font-size: 14px;
    }

}

@media (max-width: 360px) {

    .homepage-banner-actions {
        flex-direction: column;
    }

    .homepage-banner-button {
        width: min(100%, 300px);
    }

}

@media (prefers-reduced-motion: reduce) {

    .homepage-banner-button {
        transition: none;
    }

    .homepage-banner-button:hover {
        transform: none;
    }

}