@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;700&display=swap');

:root {
    --green-900: #074d31;
    --green-800: #006c35;
    --green-700: #1b8354;
    --green-600: #1b8354;
    --green-300: #d8ebe0;
    --green-200: #e9f4ee;
    --paper: #ffffff;
    --white: #ffffff;
    --text: #000000;
    --muted: #70827b;
    --stroke: #dfe7e3;
    --shadow-soft: 0 8px 25px rgba(6, 58, 37, 0.08);
    --header-height: 82px;
    --radius-xl: 16px;
    --radius-lg: 12px;
}

/* Frutiger LT Arabic font faces (used for footer links) */
@font-face {
    font-family: 'Frutiger LT Arabic';
    src: url('../frutiger-lt-arabic/FrutigerLTArabic45Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger LT Arabic';
    src: url('../frutiger-lt-arabic/FrutigerLTArabic55Roman.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger LT Arabic';
    src: url('../frutiger-lt-arabic/FrutigerLTArabic65Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: "Cairo", system-ui, sans-serif;
}

html[lang="en"] body {
    font-family: "Cairo", system-ui, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.top-header {
    background: #fff;
    border-bottom: 1px solid #edf2ef;
    z-index: 1040;
}

.header-shell {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.05;
}

    .brand-copy small {
        font-size: 0.67rem;
        color: #7f8f88;
        letter-spacing: 0.01em;
    }

    .brand-copy strong {
        font-size: 0.92rem;
        color: #4a5f56;
        font-weight: 700;
    }

.brand-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8cb63f, #3f8d54);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 1.45rem;
}

    .top-nav a {
        font-size: 0.9rem;
        color: #3f534a;
        font-weight: 600;
    }

        .top-nav a.active {
            background: var(--green-800);
            color: #fff;
            padding: 0.38rem 0.85rem;
            border-radius: 6px;
        }

    .top-nav a {
        transition: color 0.2s;
    }

        .top-nav a:hover:not(.active) {
            color: var(--green-700);
        }

.top-tools {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.login-link {
    font-size: 0.9rem;
    color: #4a5f56;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-button {
    border: 0;
    background: transparent;
    color: #4a5f56;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
}

.nav-toggler i {
    font-size: 1.5rem;
    color: var(--green-800);
}

.mobile-menu .offcanvas-body a {
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    background: #fff;
}

.hero-block {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 16%), radial-gradient(circle at 26% 38%, rgba(255, 255, 255, 0.14), transparent 22%), radial-gradient(circle at 42% 55%, rgba(255, 255, 255, 0.12), transparent 25%), linear-gradient(110deg, #022316 0%, #074b31 48%, #075a36 100%);
}

    .hero-block::before,
    .hero-block::after {
        content: "";
        position: absolute;
        inset: auto auto 0 -12%;
        width: 80%;
        height: 125%;
        border-radius: 50%;
        transform: rotate(-17deg);
        background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.03) 45%, rgba(255,255,255,0));
        opacity: 0.48;
        pointer-events: none;
    }

    .hero-block::after {
        inset: auto auto -26% -5%;
        width: 70%;
        transform: rotate(-11deg);
        opacity: 0.28;
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 35%, rgba(255,255,255,0.06), transparent 25%), linear-gradient(90deg, rgba(0,0,0,0.32), rgba(0,0,0,0.05) 55%, rgba(0,0,0,0));
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 410px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy-wrap {
    max-width: 640px;
    margin-inline-start: auto;
    color: #fff;
}

    .hero-copy-wrap h1 {
        font-size: clamp(2rem, 4.5vw, 3.45rem);
        line-height: 1.18;
        margin-bottom: 0.9rem;
        font-weight: 800;
    }

    .hero-copy-wrap p {
        color: rgba(255,255,255,0.82);
        line-height: 1.95;
        margin-bottom: 1.2rem;
        max-width: 560px;
    }

.hero-cta {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.78);
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0.58rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
}

    .hero-dots span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.5);
    }

    .hero-dots .active {
        background: #fff;
    }

.section-space {
    padding: clamp(3.6rem, 6vw, 5.6rem) 0;
}

.section-light {
    background: #f4f6f5;
}

.headline {
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: 2rem;
}

    .headline h2 {
        margin-bottom: 0.6rem;
        font-size: clamp(1.85rem, 2.8vw, 2.85rem);
        font-weight: 800;
        color: #172722;
    }

    .headline p {
        margin: 0;
        color: var(--muted);
        line-height: 1.85;
    }

.section-pill {
    display: inline-flex;
    background: #e3f1e9;
    color: #4b8c67;
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.metrics-area {
    padding-top: 4.2rem;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.metric-item {
    background: transparent;
    text-align: center;
    padding: 0.9rem 0.4rem;
}

    .metric-item i {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #e8f3ec;
        color: #4e8c66;
        margin-bottom: 0.65rem;
    }

    .metric-item strong {
        display: block;
        font-size: clamp(2rem, 3.5vw, 3rem);
        color: #1f6c47;
        font-weight: 800;
    }

    .metric-item span {
        color: #647771;
        font-weight: 600;
    }

.program-card {
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
    overflow: hidden;
    height: 100%;
}

.program-head {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    padding: 0.45rem 0.7rem;
}

    .program-head span {
        font-size: 0.68rem;
        padding: 0.18rem 0.44rem;
        border-radius: 999px;
        background: rgba(255,255,255,0.24);
    }

.accent-a {
    background: linear-gradient(90deg, #2e854f, #418f58);
}

.accent-b {
    background: linear-gradient(90deg, #98ad23, #7f9d3f);
}

.accent-c {
    background: linear-gradient(90deg, #4e8b4f, #2d7645);
}

.accent-d {
    background: linear-gradient(90deg, #4f8f57, #77b06d);
}

.accent-e {
    background: linear-gradient(90deg, #9b9c29, #bcbc32);
}

.accent-f {
    background: linear-gradient(90deg, #8d9640, #a6b54d);
}

.program-card h3 {
    margin: 0.95rem 0.95rem 0.45rem;
    font-size: 1.08rem;
    font-weight: 800;
}

.program-card p {
    margin: 0 0.95rem 0.85rem;
    color: #6d8078;
    line-height: 1.8;
    font-size: 0.92rem;
}

.program-foot {
    margin-top: auto;
    border-top: 1px solid var(--stroke);
    padding: 0.78rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .program-foot a {
        color: var(--green-700);
        font-weight: 700;
        font-size: 0.9rem;
    }

    .program-foot small {
        color: #6f837b;
        font-size: 0.78rem;
    }

.btn-main,
.btn-main-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    border-radius: 5px;
    font-size: 0.83rem;
    font-weight: 700;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s, box-shadow 0.25s;
    cursor: pointer;
}

.btn-main {
    background: var(--green-700);
    border: 1px solid var(--green-700);
    color: #fff;
}

    .btn-main:hover {
        background: var(--green-800);
        border-color: var(--green-800);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(7,77,49,0.22);
    }

    .btn-main:active {
        transform: translateY(0);
        box-shadow: none;
    }

    .btn.btn-main:hover,
    .btn.btn-main:focus-visible,
    .btn-main:hover,
    .btn-main:focus-visible {
        color: #fff;
    }

.btn-main-outline {
    background: transparent;
    border: 1px solid #88a79a;
    color: #2d704e;
}

    .btn-main-outline:hover {
        background: var(--green-200);
        border-color: var(--green-700);
        color: var(--green-800);
    }

    .btn.btn-main-outline:hover,
    .btn.btn-main-outline:focus-visible,
    .btn-main-outline:hover,
    .btn-main-outline:focus-visible {
        color: var(--green-800);
    }

/* ── Scroll Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

    .reveal.visible {
        opacity: 1;
        transform: none;
    }

/* ── Links / interactive hover ── */
.program-foot a,
.news-foot a {
    transition: color 0.2s;
}

    .program-foot a:hover,
    .news-foot a:hover {
        color: var(--green-900);
    }

.program-card {
    transition: box-shadow 0.3s, transform 0.3s;
}

    .program-card:hover {
        box-shadow: 0 10px 28px rgba(6,58,37,0.1);
        transform: translateY(-3px);
    }

.news-card {
    transition: box-shadow 0.3s, transform 0.3s;
}

    .news-card:hover {
        box-shadow: 0 10px 28px rgba(6,58,37,0.1);
        transform: translateY(-3px);
    }

.announce-card {
    transition: box-shadow 0.3s, transform 0.3s;
}

    .announce-card:hover {
        box-shadow: 0 8px 22px rgba(6,58,37,0.08);
        transform: translateY(-2px);
    }

.region-mini {
    transition: box-shadow 0.25s, transform 0.25s;
}

    .region-mini:hover {
        box-shadow: 0 6px 18px rgba(6,58,37,0.08);
        transform: translateY(-2px);
    }

.hero-cta {
    transition: background 0.25s, border-color 0.25s, transform 0.15s;
}

    .hero-cta:hover {
        background: rgba(255,255,255,0.18);
        transform: translateY(-1px);
    }

.lang-button {
    transition: color 0.2s;
}

    .lang-button:hover {
        color: var(--green-700);
    }

.login-link {
    transition: color 0.2s;
}

    .login-link:hover {
        color: var(--green-700);
    }

.footer-social a {
    transition: background 0.25s, border-color 0.25s;
}

    .footer-social a:hover {
        background: rgba(255,255,255,0.12);
        border-color: rgba(255,255,255,0.45);
    }

/* ── Breadcrumb bar (inner pages) ── */
.breadcrumb-bar {
    background: #f7f9f8;
    border-bottom: 1px solid #edf2ef;
    padding: 0.72rem 0;
}

    .breadcrumb-bar nav {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.82rem;
        color: var(--muted);
    }

    .breadcrumb-bar a {
        color: var(--green-700);
        font-weight: 600;
    }

    .breadcrumb-bar .sep {
        margin: 0 0.15rem;
    }

/* ── Share sidebar (detail pages) ── */
.share-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0;
}

    .share-sidebar a,
    .share-sidebar button {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--stroke);
        background: #fff;
        color: var(--muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
        cursor: pointer;
    }

        .share-sidebar a:hover,
        .share-sidebar button:hover {
            background: var(--green-200);
            color: var(--green-700);
            border-color: var(--green-300);
        }

/* ── Pagination ── */
.page-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2rem;
}

    .page-pagination a,
    .page-pagination span {
        min-width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        border: 1px solid var(--stroke);
        background: #fff;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text);
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

        .page-pagination a:hover {
            background: var(--green-200);
            border-color: var(--green-300);
        }

    .page-pagination .active {
        background: var(--green-700);
        color: #fff;
        border-color: var(--green-700);
    }

    .page-pagination .dots {
        border: none;
        background: none;
    }

/* ── Auth card (login, reset, change password) ── */
.auth-wrapper {
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f7f9f8;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-soft);
    padding: 2.2rem 2rem;
    text-align: center;
}



.auth-validation-summary.validation-summary-valid,
.auth-validation-summary:empty,
.auth-validation-summary:not(.validation-summary-errors) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.auth-validation-summary {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    line-height: 1.6;
    text-align: right;
    direction: rtl;
}



    .auth-validation-summary ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

.auth-card .auth-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8cb63f, #3f8d54);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.auth-card h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.auth-card .auth-sub {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

.auth-card .form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    text-align: start;
}

.auth-card .form-control {
    border: 1px solid var(--stroke);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
}

    .auth-card .form-control:focus {
        border-color: var(--green-600);
        box-shadow: 0 0 0 3px rgba(11,106,67,0.12);
    }

.auth-card .password-input-group {
    position: relative;
}

    .auth-card .password-input-group .form-control {
        padding-left: 2.9rem;
    }

        .auth-card .password-input-group .form-control.is-invalid,
        .auth-card .password-input-group .form-control.is-valid,
        .auth-card .was-validated .password-input-group .form-control:invalid,
        .auth-card .was-validated .password-input-group .form-control:valid {
            padding-left: 2.9rem;
            background-image: none;
        }

        .auth-card .password-input-group .form-control[type="password"]::-ms-reveal,
        .auth-card .password-input-group .form-control[type="password"]::-ms-clear {
            display: none;
        }

.auth-card .password-toggle {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    color: #6f7d78;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

    .auth-card .password-toggle:hover {
        color: var(--green-700);
    }

    .auth-card .password-toggle:focus-visible {
        outline: 2px solid rgba(11,106,67,0.22);
        outline-offset: 2px;
        border-radius: 999px;
    }

.auth-card .password-input-group.has-invalid + .invalid-feedback {
    display: block;
}

.auth-card .password-input-group.has-valid + .invalid-feedback {
    display: none;
}

.auth-card .invalid-feedback {
    width: 100%;
    text-align: right;
    direction: rtl;
    margin-top: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.6;
}

.auth-card .auth-state[hidden] {
    display: none !important;
}

.auth-card .auth-state-success {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-card .auth-success-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

    .auth-card .auth-success-link:hover {
        color: var(--green-800);
    }

.auth-card .auth-success-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green-700);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 1rem;
}

.auth-card .auth-success-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.auth-card .auth-success-text {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.9;
    margin: 0;
    max-width: 17rem;
}

.auth-card .btn-auth {
    width: 100%;
    padding: 0.65rem;
    border-radius: 8px;
    background: var(--green-700);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    margin-top: 0.5rem;
    transition: background 0.25s, transform 0.15s;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-auth.is-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.btn-auth.is-loading::after {
    content: "";
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-btn-spin 0.6s linear infinite;
}

@keyframes auth-btn-spin {
    to { transform: rotate(360deg); }
}



.auth-card .btn-auth:hover {
    background: var(--green-800);
    transform: translateY(-1px);
}

.auth-card .auth-link {
    display: block;
    margin-top: 1rem;
    color: var(--green-700);
    font-size: 0.84rem;
    font-weight: 600;
}

/* ── Detail page hero banner ── */
.detail-hero {
    background: linear-gradient(120deg, #074d31, #0b6a43);
    color: #fff;
    padding: clamp(2.2rem, 5vw, 3.8rem) 0;
    position: relative;
    overflow: hidden;
}

    .detail-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 40%, rgba(255,255,255,0.14), transparent 25%), radial-gradient(circle at 50% 65%, rgba(255,255,255,0.08), transparent 30%);
        pointer-events: none;
    }

    .detail-hero h1 {
        font-size: clamp(1.6rem, 3.5vw, 2.6rem);
        font-weight: 800;
        position: relative;
    }

    .detail-hero p {
        color: rgba(255,255,255,0.82);
        line-height: 1.85;
        max-width: 700px;
        position: relative;
    }

    .detail-hero .hero-stats {
        display: flex;
        gap: 1.5rem;
        margin-top: 1.2rem;
        position: relative;
    }

        .detail-hero .hero-stats .stat-item {
            text-align: center;
        }

            .detail-hero .hero-stats .stat-item strong {
                display: block;
                font-size: 1.6rem;
                font-weight: 800;
            }

            .detail-hero .hero-stats .stat-item span {
                font-size: 0.8rem;
                opacity: 0.82;
            }

/* ── Tabs for detail pages ── */
.detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--stroke);
    margin-bottom: 1.5rem;
}

    .detail-tabs button {
        border: none;
        background: none;
        padding: 0.7rem 1.2rem;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--muted);
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        transition: color 0.2s, border-color 0.2s;
        cursor: pointer;
    }

        .detail-tabs button.active,
        .detail-tabs button:hover {
            color: var(--green-700);
            border-bottom-color: var(--green-700);
        }

.tab-panel {
    display: none;
}

    .tab-panel.active {
        display: block;
    }

/* ── Map placeholder ── */
.map-placeholder {
    min-height: 320px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #e9f4ee, #d8ebe0 40%, #bdd8c9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    border: 1px solid var(--stroke);
}

/* ── About page ── */
.about-hero {
    background: linear-gradient(120deg, #022316, #074d31 50%, #0b6a43);
    color: #fff;
    padding: clamp(3rem, 6vw, 5rem) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

    .about-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 15% 30%, rgba(255,255,255,0.12), transparent 20%), radial-gradient(circle at 50% 60%, rgba(255,255,255,0.06), transparent 28%), radial-gradient(circle at 80% 25%, rgba(255,255,255,0.08), transparent 18%);
        pointer-events: none;
    }

    .about-hero h1 {
        font-size: clamp(2rem, 4vw, 3.2rem);
        font-weight: 800;
        position: relative;
        margin-bottom: 0.6rem;
    }

    .about-hero p {
        color: rgba(255,255,255,0.82);
        position: relative;
        max-width: 680px;
        margin: 0 auto;
        line-height: 1.85;
    }

.mission-card {
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    background: #fff;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: box-shadow 0.3s, transform 0.3s;
}

    .mission-card:hover {
        box-shadow: 0 10px 28px rgba(6,58,37,0.1);
        transform: translateY(-3px);
    }

    .mission-card .m-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: var(--green-200);
        color: var(--green-700);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        margin-bottom: 0.85rem;
    }

    .mission-card h3 {
        font-size: 1.05rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
    }

    .mission-card p {
        color: var(--muted);
        line-height: 1.82;
        font-size: 0.88rem;
    }

/* ── Objective list ── */
.objective-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: obj;
}

    .objective-list li {
        counter-increment: obj;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--stroke);
        display: flex;
        gap: 0.9rem;
        align-items: flex-start;
        font-size: 0.92rem;
        line-height: 1.8;
        color: #3a4e47;
    }

        .objective-list li::before {
            content: counter(obj);
            min-width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--green-200);
            color: var(--green-700);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 0.85rem;
            flex-shrink: 0;
        }

/* ── Image placeholder for detail pages ── */
.img-placeholder {
    min-height: 260px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
}

    .img-placeholder.tone-detail {
        background: linear-gradient(135deg, #e2ede7, #c4d8ce, #a2bfb2);
    }

/* ── Ad/announcement list card ── */
.ad-list-card {
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow 0.3s, transform 0.3s;
}

    .ad-list-card:hover {
        box-shadow: 0 8px 22px rgba(6,58,37,0.08);
        transform: translateY(-2px);
    }

    .ad-list-card .ad-body {
        flex: 1;
    }

        .ad-list-card .ad-body h3 {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 0.3rem;
        }

        .ad-list-card .ad-body p {
            font-size: 0.86rem;
            color: var(--muted);
            line-height: 1.75;
            margin-bottom: 0.4rem;
        }

    .ad-list-card .ad-meta {
        font-size: 0.76rem;
        color: #73877f;
    }

/* ── Footer policy links (RTL, Frutiger font, inline small links) ── */
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    direction: rtl;
}

.footer-policy-links {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    flex-wrap: nowrap;
    font-family: 'Frutiger LT Arabic', "Cairo", system-ui, sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    text-align: right;
}

    .footer-policy-links a {
        color: rgba(255,255,255,0.82);
        text-decoration: underline;
        text-decoration-style: solid;
        text-underline-offset: 0;
        text-decoration-thickness: auto;
        transition: color 0.2s;
        display: inline;
    }

        .footer-policy-links a:hover {
            color: #fff;
        }

.policy-sep {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    margin-inline: 6px;
}

/* ── Entity card (region details) ── */
.entity-card {
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 1.2rem 1rem;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

    .entity-card:hover {
        box-shadow: 0 8px 22px rgba(6,58,37,0.08);
        transform: translateY(-2px);
    }

    .entity-card .entity-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background: var(--green-200);
        color: var(--green-700);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .entity-card h4 {
        font-size: 0.95rem;
        font-weight: 800;
        margin-bottom: 0.65rem;
    }

    .entity-card .entity-stats {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

        .entity-card .entity-stats p {
            margin: 0;
            font-size: 0.82rem;
            color: var(--muted);
            display: flex;
            align-items: baseline;
            gap: 0.3rem;
            justify-content: center;
        }

            .entity-card .entity-stats p strong {
                color: var(--green-700);
                font-weight: 800;
                font-size: 0.95rem;
            }

/* ── Breadcrumb (unified) ── */
.breadcrumb-bar nav,
.page-breadcrumb ol {
    font-size: 0.82rem;
}

.breadcrumb-bar {
    padding: 0.72rem 0;
}

.page-breadcrumb {
    padding: 0.72rem 0;
}

/* ── Saudi map ── */
.saudi-map-wrap {
    min-height: 380px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #f0f7f3, #e4f0e9, #d4e6dc);
    border: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

    .saudi-map-wrap svg {
        max-width: 600px;
        width: 100%;
        height: auto;
    }

    .saudi-map-wrap .map-label {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255,255,255,0.9);
        padding: 0.3rem 0.8rem;
        border-radius: 6px;
        font-size: 0.78rem;
        color: var(--muted);
        border: 1px solid var(--stroke);
    }

.regions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.9rem;
}

.region-side-card,
.region-banner-card,
.region-mini {
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    background: #fff;
}

.region-side-card {
    padding: 0.9rem;
}

    .region-side-card h3 {
        font-size: 0.98rem;
        font-weight: 800;
        margin-bottom: 0.8rem;
    }

    .region-side-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .region-side-card li,
    .region-mini p {
        margin: 0 0 0.25rem;
        color: #6f837b;
        display: flex;
        gap: 0.36rem;
        align-items: baseline;
    }

        .region-side-card li span,
        .region-mini p span {
            color: var(--green-700);
            font-weight: 800;
        }

.pin {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--green-800);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.62rem;
}

    .pin.small {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        font-size: 0.78rem;
    }

.region-banner-card {
    grid-column: span 3;
    min-height: 152px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #1f6a45, #0c5437);
}

.banner-fabric {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 35%, rgba(255,255,255,0.24), transparent 22%), radial-gradient(circle at 35% 56%, rgba(255,255,255,0.18), transparent 24%), linear-gradient(120deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}

.banner-text {
    position: relative;
    z-index: 1;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .banner-text p {
        margin: 0 0 0.4rem;
        opacity: 0.85;
    }

    .banner-text strong {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
    }

.region-mini {
    padding: 0.72rem;
    min-height: 132px;
}

    .region-mini h4 {
        margin: 0 0 0.55rem;
        font-size: 0.95rem;
        font-weight: 800;
    }

.news-card {
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
    height: 100%;
}

.news-thumb {
    min-height: 190px;
    border-bottom: 1px solid var(--stroke);
}

.tone-1 {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 48%), linear-gradient(120deg, #d5e8df, #9db8aa, #6f8f80);
}

.tone-2 {
    background: linear-gradient(135deg, rgba(255,255,255,0.16), transparent 44%), linear-gradient(120deg, #e3ead8, #b8c680, #5d7651);
}

.tone-3 {
    background: linear-gradient(135deg, rgba(255,255,255,0.16), transparent 44%), linear-gradient(120deg, #d4e5de, #8faea0, #5d8271);
}

.news-body {
    padding: 0.95rem;
}

    .news-body h3 {
        font-size: 1.03rem;
        font-weight: 800;
        line-height: 1.6;
        margin-bottom: 0.5rem;
    }

    .news-body p {
        color: #6d8078;
        font-size: 0.9rem;
        line-height: 1.82;
    }

.news-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.65rem;
}

    .news-foot small {
        color: #758981;
        font-size: 0.75rem;
    }

    .news-foot a {
        color: var(--green-700);
        font-size: 0.86rem;
        font-weight: 700;
    }

.announce-card {
    border: 1px solid var(--stroke);
    border-radius: 9px;
    background: #fff;
    padding: 0.82rem;
    min-height: 126px;
}

    .announce-card .state {
        display: inline-flex;
        border-radius: 999px;
        padding: 0.15rem 0.46rem;
        font-size: 0.66rem;
        margin-bottom: 0.45rem;
        border: 1px solid transparent;
    }

.state.ended {
    color: #9aa6a1;
    background: #f4f6f5;
    border-color: #dbe3df;
}

.state.new {
    color: #2b8d56;
    background: #e8f4ed;
    border-color: #cde5d7;
}

.state.soon {
    color: #8f8f2b;
    background: #f4f4df;
    border-color: #e6e3ba;
}

.state.open {
    color: #347a58;
    background: #e8f4ed;
    border-color: #cde5d7;
}

.announce-card h3 {
    font-size: 0.92rem;
    line-height: 1.6;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.announce-card small {
    color: #73877f;
    font-size: 0.74rem;
}

.mailing-box {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    color: #fff;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    text-align: center;
}

.mail-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.85rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.mailing-box p {
    max-width: 620px;
    margin: 0 auto 0.95rem;
    color: rgba(255,255,255,0.86);
    line-height: 1.85;
}

.mail-form {
    max-width: 560px;
    margin: 0 auto 0.5rem;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

    .mail-form input {
        flex: 1;
        min-height: 40px;
        border: 1px solid rgba(255,255,255,0.38);
        background: rgba(255,255,255,0.08);
        color: #fff;
        border-radius: 4px;
        padding: 0 0.7rem;
    }

        .mail-form input::placeholder {
            color: rgba(255,255,255,0.82);
        }

    .mail-form .invalid-feedback {
        width: 100%;
        text-align: right;
        direction: rtl;
        color: #ffe0e0;
        margin-top: -0.1rem;
    }

.mailing-box small {
    color: rgba(255,255,255,0.74);
}

.partners-area {
    padding-top: 3.2rem;
}

.partners-strip {
    display: grid;
    grid-template-columns: auto repeat(6, minmax(0, 1fr)) auto;
    gap: 0.7rem;
    align-items: center;
}

.strip-nav {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid var(--stroke);
    background: #fff;
    color: #82948d;
}

.partner-placeholder {
    min-height: 62px;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #88a197;
    font-size: 0.86rem;
}

.main-footer {
    margin-top: 1.8rem;
    background: linear-gradient(180deg, #0a5b39, #074d31);
    color: #fff;
    padding: 3rem 0 1rem;
}

    .main-footer h3 {
        font-size: 1rem;
        font-weight: 800;
        margin-bottom: 0.85rem;
    }

    .main-footer p,
    .main-footer li,
    .main-footer a {
        color: rgba(255,255,255,0.82);
        line-height: 1.85;
        font-size: 0.9rem;
    }

    .main-footer ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        gap: 0.44rem;
    }

.footer-social {
    display: flex;
    gap: 0.46rem;
}

    .footer-social a {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.24);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.footer-logos {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

    .footer-logos span {
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 6px;
        padding: 0.2rem 0.52rem;
        font-size: 0.72rem;
    }

.footer-bottom {
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
}

    .footer-bottom small {
        color: rgba(255,255,255,0.76);
        font-size: 0.8rem;
    }







/* ── Reference fidelity overrides (home header/programs/announcements) ── */
.top-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.top-nav a.active {
    background: #e8f4ed;
    color: var(--green-800);
    border: 1px solid #cfe3d8;
}

.hero-block {
    background: linear-gradient(120deg, rgba(3, 32, 20, 0.86), rgba(7, 75, 49, 0.78)), url("../images/hero-bg.png") center/cover no-repeat;
}

.hero-overlay {
    background: radial-gradient(circle at 70% 35%, rgba(255,255,255,0.06), transparent 25%), linear-gradient(90deg, rgba(0,0,0,0.26), rgba(0,0,0,0.04) 55%, rgba(0,0,0,0)), url("/assets/images/hero-overlay.png") center/cover no-repeat;
}

.program-card {
    border: 1px solid #e6ece9;
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.015);
}

.program-head {
    min-height: 30px;
    padding: 0.36rem 0.68rem;
}

.program-card h3 {
    margin: 0.82rem 0.9rem 0.38rem;
}

.program-card p {
    margin: 0 0.9rem 0.75rem;
}

.details-link {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: var(--green-700);
    font-weight: 700;
    font-size: 0.9rem;
}

    .details-link i {
        display: inline-flex;
        transition: transform 0.26s ease;
    }

    .details-link:hover i {
        transform: translateX(-5px);
    }

html[lang="en"] .details-link:hover i {
    transform: translateX(5px);
}

.announcements-section {
    background: #fff;
}

.announcement-icon-wrap {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    background: #edf6f1;
    color: var(--green-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.announcement-card {
    border: 1px solid #e8ece9;
    border-radius: 10px;
    background: #fff;
    padding: 0.86rem 0.86rem 0.78rem;
    min-height: 130px;
    transition: box-shadow 0.3s, transform 0.3s;
}

    .announcement-card:hover {
        box-shadow: 0 10px 28px rgba(6,58,37,0.08);
        transform: translateY(-2px);
    }

    .announcement-card h3 {
        font-size: 0.9rem;
        line-height: 1.7;
        font-weight: 700;
        margin-bottom: 0.66rem;
    }

.announcement-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: #7a8c85;
    font-size: 0.74rem;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.66rem;
    padding: 0.16rem 0.48rem;
    border: 1px solid transparent;
}

.badge-new {
    color: #2d8453;
    background: #e8f4ed;
    border-color: #cde5d7;
}

.badge-urgent {
    color: #8f8f2b;
    background: #f4f4df;
    border-color: #e6e3ba;
}

.news-thumb.tone-1,
.news-thumb.tone-2,
.news-thumb.tone-3 {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.news-thumb.tone-1 {
    background-image: url("../images/news-1.png");
}

.news-thumb.tone-2 {
    background-image: url("../images/news-2.png");
}

.news-thumb.tone-3 {
    background-image: url("../images/news-3.png");
}

    .news-thumb.tone-1::after,
    .news-thumb.tone-2::after,
    .news-thumb.tone-3::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(7,55,36,0.22), rgba(7,55,36,0.06));
    }

.auth-card .form-label {
    text-align: start;
}

html[lang="ar"] .auth-card .form-label {
    text-align: end;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEW SITE HEADER (matching Figma reference exactly)
   ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    z-index: 1050;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 1rem;
}

/* Brand */
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo svg {
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.brand-ar {
    font-size: 0.85rem;
    color: #4a5f56;
    font-weight: 500;
}

.brand-ar-sub {
    font-size: 1rem;
    color: var(--green-800);
    font-weight: 700;
}

.brand-text-en {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.68rem;
    color: #7a8c85;
    line-height: 1.3;
    border-right: 1px solid #e0e8e4;
    padding-right: 0.75rem;
    margin-right: 0.75rem;
}

html[lang="en"] .brand-text-en {
    border-right: none;
    border-left: 1px solid #e0e8e4;
    padding-right: 0;
    padding-left: 0.75rem;
    margin-right: 0;
    margin-left: 0.75rem;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .header-nav .nav-item {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 1.1rem;
        font-size: 0.92rem;
        font-weight: 600;
        color: #3f534a;
        border-radius: 8px;
        transition: all 0.25s ease;
    }

        .header-nav .nav-item:hover {
            color: var(--green-700);
            background: rgba(11, 106, 67, 0.06);
        }

        .header-nav .nav-item.active {
            background: var(--green-800);
            color: #fff;
        }

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1.5px solid #d8e4de;
    border-radius: 8px;
    background: transparent;
    color: #4a5f56;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .lang-toggle:hover {
        border-color: var(--green-700);
        color: var(--green-700);
    }

    .lang-toggle i {
        font-size: 1rem;
    }

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    color: #4a5f56;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

    .login-btn:hover {
        color: var(--green-700);
    }

    .login-btn i {
        font-size: 1.1rem;
    }

.mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--green-800);
    font-size: 1.6rem;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO CAROUSEL (matching Figma reference)
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

    .hero-carousel .carousel-inner {
        border-radius: 0;
    }

.hero-slide {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(3, 32, 20, 0.88) 0%, rgba(7, 75, 49, 0.75) 50%, rgba(7, 90, 54, 0.6) 100%), url("../images/hero-bg.png") center/cover no-repeat;
    z-index: 0;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 3rem 0;
    color: #fff;
}

html[dir="rtl"] .hero-slide-content {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

html[dir="ltr"] .hero-slide-content {
    margin-left: auto;
    text-align: left;
}

.hero-slide-content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero-slide-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 560px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: var(--green-800);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

    .hero-btn:hover {
        background: var(--green-200);
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    }

    .hero-btn:hover,
    .hero-btn:focus-visible {
        color: var(--green-800);
    }

    .hero-btn i {
        font-size: 1.1rem;
        transition: transform 0.3s ease;
    }

    .hero-btn:hover i {
        transform: translateX(-4px);
    }

html[dir="ltr"] .hero-btn:hover i {
    transform: translateX(4px);
}

/* Carousel Indicators */
.hero-carousel .carousel-indicators {
    bottom: 2rem;
    margin-bottom: 0;
}

    .hero-carousel .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        border: none;
        margin: 0 6px;
        opacity: 1;
        transition: all 0.3s ease;
    }

        .hero-carousel .carousel-indicators button.active {
            background: #fff;
            transform: scale(1.2);
        }

/* ═══════════════════════════════════════════════════════════════════════════
   PROGRAMS CARDS (matching Figma Desktop 2 exactly)
   ═══════════════════════════════════════════════════════════════════════════ */
.programs-section {
    background: #f7f8f7;
}

.program-card-v2 {
    background: #fff;
    border: 1px solid #e2e8e5;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    transition: all 0.3s ease;
    position: relative;
}

    .program-card-v2:hover {
        box-shadow: 0 8px 28px rgba(6, 58, 37, 0.1);
        transform: translateY(-3px);
    }

    .program-card-v2 .status-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        display: inline-flex;
        padding: 0.25rem 0.6rem;
        font-size: 0.72rem;
        font-weight: 600;
        border-radius: 4px;
        border: 1px solid #c8d9cf;
        color: var(--green-700);
        background: #fff;
    }

html[dir="ltr"] .program-card-v2 .status-badge {
    right: auto;
    left: 1rem;
}

.program-card-v2 .program-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #fff;
}

.program-icon.green-dark {
    background: var(--green-800);
}

.program-icon.green-light {
    background: #8cb435;
}

.program-icon.lime {
    background: #b4c435;
}

.program-card-v2 h3 {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.program-card-v2 .program-desc {
    font-size: 0.88rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.7;
    flex-grow: 1;
}

.program-card-v2 .program-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f4f2;
}

.program-card-v2 .beneficiaries {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--muted);
}

    .program-card-v2 .beneficiaries i {
        font-size: 1rem;
    }

.program-card-v2 .details-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--green-700);
}

    .program-card-v2 .details-link i {
        transition: transform 0.25s ease;
    }

.program-card-v2:hover .details-link i {
    transform: translateX(-5px);
}

html[dir="ltr"] .program-card-v2:hover .details-link i {
    transform: translateX(5px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   REGIONS WITH GOOGLE MAP
   ═══════════════════════════════════════════════════════════════════════════ */
.regions-with-map {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(6, 58, 37, 0.1);
}

    .map-container iframe {
        display: block;
        width: 100%;
        min-height: 400px;
    }

.map-overlay-banner {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(6, 58, 37, 0.25);
}

html[dir="ltr"] .map-overlay-banner {
    left: auto;
    right: 1.5rem;
}

.map-overlay-banner p {
    font-size: 0.85rem;
    margin: 0 0 0.25rem;
    opacity: 0.9;
}

.map-overlay-banner strong {
    font-size: 1.5rem;
    font-weight: 800;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.region-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #e6ece9;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

    .region-card-item:hover {
        border-color: var(--green-600);
        box-shadow: 0 8px 24px rgba(6, 58, 37, 0.1);
        transform: translateY(-3px);
    }

    .region-card-item .region-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--green-200);
        color: var(--green-700);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .region-card-item:hover .region-icon {
        background: var(--green-700);
        color: #fff;
    }

    .region-card-item h4 {
        font-size: 0.95rem;
        font-weight: 700;
        margin: 0 0 0.75rem;
        color: var(--text);
    }

    .region-card-item .region-stats {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        width: 100%;
    }

        .region-card-item .region-stats > div {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.78rem;
            padding: 0.25rem 0;
            border-bottom: 1px dashed #eef2f0;
        }

            .region-card-item .region-stats > div:last-child {
                border-bottom: none;
            }

    .region-card-item .stat-num {
        font-weight: 700;
        color: var(--green-700);
    }

    .region-card-item .stat-label {
        color: var(--muted);
    }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════ */









/* REFINEMENT PASS: header, cards, regions */
.site-header {
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 35, 24, 0.04);
    border-bottom: 1px solid rgba(13, 61, 39, 0.06);
}

.header-row {
    min-height: 82px;
    gap: 1.5rem;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    padding-block: 0.25rem;
}

.brand-logo-image {
    display: block;
    height: 48px;
    width: auto;
}

.header-nav {
    gap: 2.2rem;
}

    .header-nav .nav-item {
        padding: 0;
        font-size: 1rem;
        font-weight: 500;
        color: #1d2330;
        border-radius: 0;
        background: transparent;
        position: relative;
    }

        .header-nav .nav-item:hover,
        .header-nav .nav-item.active {
            color: #0b6a43;
            background: transparent;
        }

            .header-nav .nav-item.active::after {
                content: "";
                position: absolute;
                right: 0;
                left: 0;
                bottom: -0.55rem;
                height: 2px;
                background: #0b6a43;
                border-radius: 999px;
            }

.header-actions {
    gap: 1.1rem;
}

.lang-toggle,
.login-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d2330;
    font-size: 1rem;
    font-weight: 500;
}

    .lang-toggle:hover,
    .login-btn:hover {
        color: #0b6a43;
    }

.program-card-v2 {
    border: 1px solid #d4dde2;
    border-top-width: 7px;
    border-radius: 24px;
    padding: 1.55rem 1.6rem 1.35rem;
    min-height: 342px;
    overflow: hidden;
}

    .program-card-v2:hover {
        box-shadow: 0 14px 32px rgba(6, 58, 37, 0.08);
        transform: translateY(-5px);
    }

.programs-section .col-md-6:nth-child(3n + 1) .program-card-v2 {
    border-top-color: #8fc560;
}

.programs-section .col-md-6:nth-child(3n + 2) .program-card-v2 {
    border-top-color: #c2cc17;
}

.programs-section .col-md-6:nth-child(3n) .program-card-v2 {
    border-top-color: #4d8839;
}

.program-card-v2 .status-badge {
    top: 1.15rem;
    right: 1.3rem;
    padding: 0.34rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid #a7efc9;
    color: #0b6a43;
    background: #effbf4;
}

.program-card-v2 .program-icon {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    margin: 1.2rem 0 1.4rem auto;
    font-size: 2rem;
}

.program-card-v2 h3 {
    font-size: 1.7rem;
    text-align: right;
    margin-bottom: 0.9rem;
}

.program-card-v2 .program-desc {
    font-size: 1rem;
    text-align: right;
    line-height: 1.85;
}

.program-card-v2 .program-footer {
    margin-top: 1.4rem;
    padding-top: 1.3rem;
    border-top: 1px solid #edf0f2;
}

.program-card-v2 .beneficiaries {
    font-size: 0.95rem;
}

.program-card-v2 .details-link {
    gap: 0.55rem;
    font-size: 1.15rem;
}

.home-regions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.home-region-card,
.region-card-item {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 222px;
    background: radial-gradient(circle at left bottom, rgba(195, 245, 224, 0.42), transparent 34%), #fff;
    border: 1px solid #d4dde2;
    border-radius: 20px;
    padding: 1.35rem 1.35rem 1.15rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .home-region-card:hover,
    .region-card-item:hover {
        transform: translateY(-4px);
        border-color: #aac8b3;
        box-shadow: 0 12px 28px rgba(8, 55, 35, 0.08);
    }

.home-region-card--featured {
    grid-column: span 1;
}

.regions-banner-panel {
    grid-column: span 3;
    min-height: 222px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #0d6a41;
    text-decoration: none;
}

.regions-banner-panel__art {
    position: absolute;
    inset: 0;
    background: url('/assets/images/hero-overlay.png') center/cover no-repeat;
}

.regions-banner-panel__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.75rem 2.25rem;
    color: #fff;
}

    .regions-banner-panel__content strong {
        font-size: clamp(2rem, 3vw, 3.2rem);
        font-weight: 700;
    }

.home-region-card {
    grid-column: span 1;
}

.home-region-card__icon,
.region-card-item .region-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #078040;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 0 1rem auto;
}

.home-region-card h4,
.region-card-item h4 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
    color: #152133;
}

.home-region-card__stats,
.region-card-item .region-stats {
    margin-top: auto;
    display: grid;
    gap: 0.45rem;
}

    .home-region-card__stats > div,
    .region-card-item .region-stats > div {
        display: grid;
        grid-template-columns: 64px 1fr;
        align-items: center;
        gap: 0.8rem;
        font-size: 0.95rem;
    }

.home-region-card .stat-num,
.region-card-item .stat-num {
    font-size: 1.15rem;
    font-weight: 700;
    color: #11804f;
}

.home-region-card .stat-label,
.region-card-item .stat-label {
    color: #6f7b89;
}

.regions-page-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.9fr) minmax(0, 3fr);
    gap: 1.5rem;
    align-items: start;
}

.regions-map-panel {
    position: sticky;
    top: 130px;
    display: grid;
    gap: 1rem;
}

.map-container {
    border-radius: 20px;
}

.map-container--compact iframe {
    min-height: 150px;
    max-height: 180px;
}

.map-overlay-banner--compact {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    padding: 0.95rem 1.1rem;
}

    .map-overlay-banner--compact strong {
        font-size: 1.1rem;
    }

.regions-map-copy {
    background: #fff;
    border: 1px solid #e3ebe7;
    border-radius: 20px;
    padding: 1.35rem;
    box-shadow: 0 6px 20px rgba(6, 58, 37, 0.04);
}

    .regions-map-copy h2 {
        font-size: 1.45rem;
        margin: 0.85rem 0 0.65rem;
    }

    .regions-map-copy p {
        margin: 0;
        color: var(--muted);
        line-height: 1.8;
    }

.regions-grid--catalog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}









/* REGION PAGE REFINEMENTS */
html[dir="rtl"] .breadcrumb-bar nav {
    justify-content: flex-start;
}

html[dir="rtl"] .home-region-card,
html[dir="rtl"] .region-card-item,
html[dir="rtl"] .program-card-v2,
html[dir="rtl"] .entity-card,
html[dir="rtl"] .region-list-card,
html[dir="rtl"] .region-entity-card {
    direction: rtl;
    text-align: right;
}

    html[dir="rtl"] .home-region-card__icon,
    html[dir="rtl"] .region-card-item .region-icon,
    html[dir="rtl"] .region-list-card .region-icon,
    html[dir="rtl"] .region-entity-card .entity-icon,
    html[dir="rtl"] .program-card-v2 .program-icon {
        margin-inline-start: auto;
        margin-inline-end: 0;
    }

    html[dir="rtl"] .program-card-v2 .status-badge {
        right: auto;
        left: 1rem;
    }

    html[dir="rtl"] .program-card-v2 .program-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    html[dir="rtl"] .program-card-v2 .beneficiaries {
        justify-self: start;
    }

    html[dir="rtl"] .program-card-v2 .details-link {
        justify-self: end;
    }

html[dir="ltr"] .program-card-v2 .status-badge {
    left: auto;
    right: 1rem;
}

.region-page-head {
    padding: 0.65rem 0 1.8rem;
    text-align: right;
}

    .region-page-head h1 {
        margin: 0 0 0.55rem;
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        color: #16202b;
    }

    .region-page-head p {
        margin: 0;
        color: #7b8794;
        font-size: 0.98rem;
    }

.region-page-head--detail {
    padding-bottom: 1.6rem;
}

.regions-page-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.region-list-card,
.region-entity-card {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff, #fbfdfc);
    border: 1px solid #d7e0dc;
    border-radius: 14px;
    padding: 0.85rem 0.95rem 0.8rem;
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .region-list-card:hover,
    .region-entity-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(6, 58, 37, 0.08);
        border-color: #adcaba;
    }

    .region-list-card .region-icon,
    .region-entity-card .entity-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: #0b7a46;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .region-list-card h4,
    .region-entity-card h4 {
        margin: 0 0 0.45rem;
        font-size: 1rem;
        font-weight: 700;
        color: #1c2530;
    }

.region-stats-compact,
.entity-stats-compact {
    display: grid;
    gap: 0.22rem;
    margin-top: auto;
}

    .region-stats-compact > div,
    .entity-stats-compact > div {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.72rem;
    }

    .region-stats-compact .stat-label,
    .entity-stats-compact .stat-label {
        color: #6c7b89;
        justify-self: start;
    }

    .region-stats-compact .stat-num,
    .entity-stats-compact .stat-num {
        color: #0b7a46;
        font-weight: 800;
        justify-self: end;
    }

.regions-page-banner {
    grid-column: span 3;
    min-height: 116px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #0d6a41;
    text-decoration: none;
}

    .regions-page-banner .regions-banner-panel__art {
        position: absolute;
        inset: 0;
        background: url('/assets/images/hero-overlay.png') center/cover no-repeat;
    }

    .regions-page-banner .regions-banner-panel__content {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 1rem 1.8rem;
        color: #fff;
    }

    .regions-page-banner strong {
        font-size: clamp(2rem, 3vw, 3rem);
        font-weight: 700;
    }

.region-entities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.region-programs-section .program-card-v2 {
    min-height: 170px;
    padding: 1rem 1.05rem 0.95rem;
    border-radius: 14px;
    border-top-width: 5px;
}

    .region-programs-section .program-card-v2 .status-badge {
        top: 0.75rem;
        left: 0.8rem;
        right: auto;
        font-size: 0.62rem;
        padding: 0.15rem 0.45rem;
        border-radius: 4px;
        background: #fff;
    }

    .region-programs-section .program-card-v2 .program-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1rem;
        margin: 0 0 0.9rem auto;
    }

    .region-programs-section .program-card-v2 h3 {
        font-size: 1.25rem;
        line-height: 1.55;
        margin-bottom: 0.55rem;
    }

    .region-programs-section .program-card-v2 .program-desc {
        font-size: 0.8rem;
        line-height: 1.8;
    }

    .region-programs-section .program-card-v2 .beneficiaries {
        font-size: 0.72rem;
    }

    .region-programs-section .program-card-v2 .details-link {
        font-size: 0.82rem;
    }







/* PROGRAMS PAGE + ACTIVE NAV */
.header-nav .nav-item {
    min-height: 52px;
    padding: 0.88rem 1.25rem;
    border-radius: 6px;
}

    .header-nav .nav-item.active {
        background: #0b7a46;
        color: #fff;
        box-shadow: inset 0 -5px 0 #63c78b;
    }

        .header-nav .nav-item.active::after {
            display: none;
        }

    .header-nav .nav-item:hover {
        background: rgba(11, 122, 70, 0.08);
    }

.programs-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.programs-page-head__copy {
    text-align: right;
}

    .programs-page-head__copy h1 {
        margin: 0 0 0.55rem;
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        color: #16202b;
    }

    .programs-page-head__copy p {
        margin: 0;
        color: #7b8794;
    }

.program-status-panel {
    display: grid;
    gap: 0.7rem;
    justify-items: start;
}

.program-status-panel__label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1d2330;
}

.program-status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .program-status-filters button {
        min-width: 58px;
        height: 38px;
        padding: 0 0.9rem;
        border: 1px solid #d8e1dd;
        border-radius: 4px;
        background: #fff;
        color: #1f2d28;
        font-size: 0.82rem;
        font-weight: 700;
    }

        .program-status-filters button.is-active {
            background: #0b7a46;
            border-color: #0b7a46;
            color: #fff;
        }

.programs-section .program-card-v2 {
    min-height: 248px;
    padding: 1.05rem 1.1rem 1rem;
    border-radius: 14px;
    border-top-width: 5px;
}

    .programs-section .program-card-v2 .status-badge {
        top: 0.75rem;
        left: 0.75rem;
        right: auto;
        padding: 0.14rem 0.46rem;
        font-size: 0.62rem;
        border-radius: 4px;
        background: #fff;
    }

    .programs-section .program-card-v2 .status-badge--open {
        color: #15985a;
        border-color: #b7e9cc;
        background: #f0fbf5;
    }

    .programs-section .program-card-v2 .status-badge--closed {
        color: #da7c3a;
        border-color: #f4d1b7;
        background: #fff5ee;
    }

    .programs-section .program-card-v2 .status-badge--soon {
        color: #4b84d9;
        border-color: #c7daf7;
        background: #f2f7ff;
    }

    .programs-section .program-card-v2 .program-icon {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        left: auto !important;
        margin: 0 !important;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: 1.15rem;
    }

    .programs-section .program-card-v2 h3 {
        font-size: 1.55rem;
        line-height: 1.55;
        margin-bottom: 0.55rem;
    }

    .programs-section .program-card-v2 .program-desc {
        font-size: 0.83rem;
        line-height: 1.9;
        margin-bottom: 0;
    }

    .programs-section .program-card-v2 .program-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .programs-section .program-card-v2 .beneficiaries {
        order: 1;
        font-size: 0.72rem;
    }

    .programs-section .program-card-v2 .details-link {
        order: 2;
        margin-inline-start: auto;
        font-size: 0.85rem;
    }

.programs-pagination {
    margin-top: 2.6rem;
}





/* ═══════════════════════════════════════════════════════════════════════════
   FINAL REFINEMENT: Header, Cards, Regions Banner
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. UNIFORM HEADER SIZE (all pages) */
header.site-header .header-row {
    min-height: 82px !important;
    padding: 0.5rem 0;
}

header.site-header .brand-logo-image {
    height: 48px !important;
    width: auto;
}





/* 2. PROGRAM CARD ICON ON RIGHT (RTL) */
.program-card-v2 {
    display: flex;
    flex-direction: column;
    position: relative;
}

    .program-card-v2 .program-icon {
        position: absolute !important;
        top: 1rem;
        right: 1rem;
        left: auto !important;
        margin: 0 !important;
    }

html[dir="ltr"] .program-card-v2 .program-icon {
    right: auto;
    left: 1rem;
}

.program-card-v2 .status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto !important;
}

html[dir="ltr"] .program-card-v2 .status-badge {
    left: auto;
    right: 1rem;
}

.program-card-v2 h3 {
    margin-top: 3.5rem;
    text-align: right;
}

html[dir="ltr"] .program-card-v2 h3 {
    text-align: left;
}

/* 3. REGIONS BANNER - NOT INTERACTIVE */
.regions-banner-panel {
    pointer-events: none;
    cursor: default;
}

    .regions-banner-panel:hover {
        transform: none;
        box-shadow: none;
    }

.home-regions-section .regions-banner-panel {
    pointer-events: none;
    cursor: default;
}

.regions-page-banner {
    pointer-events: none;
    cursor: default;
}

    .regions-page-banner:hover {
        transform: none;
        box-shadow: none;
    }

/* 4. ENTITY CARD ICON ON RIGHT */
.region-entity-card {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

    .region-entity-card .entity-icon {
        margin-left: auto;
        margin-right: 0;
    }

html[dir="ltr"] .region-entity-card {
    align-items: flex-start;
    text-align: left;
}

    html[dir="ltr"] .region-entity-card .entity-icon {
        margin-left: 0;
        margin-right: auto;
    }

/* Entity stats layout */
.entity-stats-compact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

    .entity-stats-compact > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .entity-stats-compact .stat-label {
        font-size: 0.78rem;
        color: #7b8794;
    }

    .entity-stats-compact .stat-num {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--green-700);
    }

/* 5. STATUS FILTER BUTTONS - HOVER STATE */
.program-status-filters button {
    transition: all 0.2s ease;
    cursor: pointer;
}

    .program-status-filters button:hover:not(.is-active) {
        background: #f4f8f6;
        border-color: #0b7a46;
    }

/* 6. PAGINATION STYLING */
.page-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

    .page-pagination a,
    .page-pagination span {
        min-width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 1px solid #dfe7e3;
        background: #fff;
        font-size: 0.9rem;
        font-weight: 600;
        color: #1d2330;
        transition: all 0.2s ease;
        cursor: pointer;
    }

        .page-pagination a:hover {
            background: #e9f4ee;
            border-color: var(--green-700);
            color: var(--green-700);
        }

    .page-pagination .active {
        background: var(--green-700);
        color: #fff;
        border-color: var(--green-700);
    }

/* 7. HOMEPAGE PROGRAMS SECTION CARD ICON FIX */
.programs-section .program-card-v2 .program-icon {
    position: absolute !important;
    top: 1rem;
    right: 1rem;
    left: auto !important;
    margin: 0 !important;
}

/* 8. MOBILE RESPONSIVE FIXES */




/* ═══════════════════════════════════════════════════════════════════════════
   FIX PASS 2: RTL/LTR Icons, Arrows, Banner, Ads Page
   ═══════════════════════════════════════════════════════════════════════════ */

/* -- Program card icon: ALWAYS right in RTL, left in LTR -- */
.program-card-v2 .program-icon,
.programs-section .program-card-v2 .program-icon {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    left: auto !important;
    margin: 0 !important;
}

html[dir="ltr"] .program-card-v2 .program-icon,
html[dir="ltr"] .programs-section .program-card-v2 .program-icon {
    right: auto !important;
    left: 1rem !important;
}

/* Status badge: always opposite side from icon */
.program-card-v2 .status-badge,
.programs-section .program-card-v2 .status-badge {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    right: auto !important;
}

html[dir="ltr"] .program-card-v2 .status-badge,
html[dir="ltr"] .programs-section .program-card-v2 .status-badge {
    left: auto !important;
    right: 1rem !important;
}

/* Title margin to clear the absolute-positioned icon */
.program-card-v2 h3,
.programs-section .program-card-v2 h3 {
    margin-top: 3.5rem !important;
    text-align: right !important;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

html[dir="ltr"] .program-card-v2 h3,
html[dir="ltr"] .programs-section .program-card-v2 h3 {
    text-align: left !important;
}

/* -- Banner text: selectable + correct alignment -- */
.regions-banner-panel,
.regions-page-banner {
    cursor: default !important;
    pointer-events: auto !important;
    user-select: text;
}

    /* Keep clicks from navigating (remove href effect since changed to div) */
    .regions-banner-panel a,
    .regions-page-banner a {
        pointer-events: none;
    }

    /* Banner text align: right in RTL, left in LTR */
    .regions-banner-panel__content,
    .regions-page-banner .regions-banner-panel__content {
        justify-content: flex-end;
    }

html[dir="ltr"] .regions-banner-panel__content,
html[dir="ltr"] .regions-page-banner .regions-banner-panel__content {
    justify-content: flex-start;
}

/* -- Fix directional arrows for LTR (English) -- */
html[dir="ltr"] i.bi-arrow-left {
    display: inline-block;
    transform: scaleX(-1);
}

/* -- ADS PAGE LAYOUT -- */
.ads-layout {
    display: grid;
    /* RTL: detail panel (right, 1fr) then list panel (left, 380px)
     In RTL auto-placement goes right-to-left, so: track1=left=380px, track2=right=1fr */
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
    align-items: start;
}

html[dir="ltr"] .ads-layout {
    /* LTR: detail panel (left, 1fr) then list panel (right, 380px) */
    grid-template-columns: 1fr 380px;
}

.ads-detail-panel {
    background: #fff;
    border: 1px solid #dfe7e3;
    border-radius: 16px;
    padding: 2rem;
    min-height: 480px;
}

    .ads-detail-panel .ads-detail-meta {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .ads-detail-panel .ads-detail-title {
        font-size: 1.45rem;
        font-weight: 800;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .ads-detail-panel .ads-detail-body {
        color: #3a4e47;
        line-height: 1.9;
        font-size: 0.92rem;
    }

        .ads-detail-panel .ads-detail-body h4 {
            font-size: 1rem;
            font-weight: 700;
            margin-top: 1.25rem;
            margin-bottom: 0.5rem;
            color: #0b6a43;
        }

        .ads-detail-panel .ads-detail-body ul {
            padding-inline-start: 1.5rem;
            margin-bottom: 1rem;
        }

            .ads-detail-panel .ads-detail-body ul li {
                margin-bottom: 0.35rem;
            }

.ads-list-panel {
    background: #fff;
    border: 1px solid #dfe7e3;
    border-radius: 16px;
    overflow: hidden;
}

.ads-list-panel__header {
    padding: 1rem 1.25rem;
    background: #f7f9f8;
    border-bottom: 1px solid #dfe7e3;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1d2330;
}

.ads-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #edf2ef;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    border-inline-start: 3px solid transparent;
    text-decoration: none;
    color: inherit;
}

    .ads-list-item:hover {
        background: #f7f9f8;
    }

    .ads-list-item.is-active {
        background: #f0fbf5;
        border-inline-start-color: #0b7a46;
    }

.ads-list-item__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #7b8794;
}

.ads-list-item__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1d2330;
    line-height: 1.35;
}

.ads-list-item__preview {
    font-size: 0.78rem;
    color: #7b8794;
    line-height: 1.55;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ads-list-item__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0.75rem;
    color: #b0bfb9;
    font-size: 0.8rem;
}

html[dir="ltr"] .ads-list-item__arrow {
    left: auto;
    right: 0.75rem;
    transform: translateY(-50%) scaleX(-1);
}

.ad-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.48rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    border: 1px solid currentColor;
}

.ad-badge-new {
    color: #0b7a46;
    background: #f0fbf5;
    border-color: #b7e9cc;
}

.ad-badge-urgent {
    color: #c0392b;
    background: #fff5f5;
    border-color: #f5c6c6;
}

.ad-badge-notice {
    color: #4b84d9;
    background: #f2f7ff;
    border-color: #c7daf7;
}

/* -- Improved pagination -- */
.naseej-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 2.5rem 0 0.5rem;
    flex-wrap: wrap;
}

.naseej-pagination__btn {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #dfe7e3;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d2330;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

    .naseej-pagination__btn:hover:not(:disabled):not(.is-active) {
        background: #e9f4ee;
        border-color: #0b7a46;
        color: #0b7a46;
    }

    .naseej-pagination__btn.is-active {
        background: #0b7a46;
        border-color: #0b7a46;
        color: #fff;
    }

    .naseej-pagination__btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .naseej-pagination__btn.nav-arrow {
        font-size: 0.7rem;
        color: #7b8794;
    }

.ads-list-panel .naseej-pagination {
    padding: 0.75rem;
    border-top: 1px solid #edf2ef;
}





/* ═══════════════════════════════════════════════════════════════════
   FINAL FIX PASS 3: program icon alignment, RTL order, arrow flip
   ═══════════════════════════════════════════════════════════════════ */

/* Program card: icon always top-right (RTL) / top-left (LTR) */
.program-card-v2 {
    position: relative !important;
}

    /* Override all contexts with high specificity */
    .program-card-v2 .program-icon,
    .programs-section .program-card-v2 .program-icon,
    .home-programs .program-card-v2 .program-icon,
    .featured-programs .program-card-v2 .program-icon {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        left: auto !important;
        margin: 0 !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
        font-size: 1.15rem !important;
    }

html[dir="ltr"] .program-card-v2 .program-icon,
html[dir="ltr"] .programs-section .program-card-v2 .program-icon,
html[dir="ltr"] .home-programs .program-card-v2 .program-icon,
html[dir="ltr"] .featured-programs .program-card-v2 .program-icon {
    right: auto !important;
    left: 1rem !important;
}

/* Status badge: top-left (RTL) / top-right (LTR) */
.program-card-v2 .status-badge,
.programs-section .program-card-v2 .status-badge,
.home-programs .program-card-v2 .status-badge,
.featured-programs .program-card-v2 .status-badge {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    right: auto !important;
}

html[dir="ltr"] .program-card-v2 .status-badge,
html[dir="ltr"] .programs-section .program-card-v2 .status-badge,
html[dir="ltr"] .home-programs .program-card-v2 .status-badge,
html[dir="ltr"] .featured-programs .program-card-v2 .status-badge {
    left: auto !important;
    right: 1rem !important;
}

/* Title: clear space for absolute positioned icon + badge */
.program-card-v2 h3,
.program-card-v2 .prog-title,
.programs-section .program-card-v2 h3,
.programs-section .program-card-v2 .prog-title {
    margin-top: 3.5rem !important;
    text-align: right;
}

html[dir="ltr"] .program-card-v2 h3,
html[dir="ltr"] .program-card-v2 .prog-title {
    text-align: left;
}

/* Banner: allow text selection, no navigation */
.regions-banner-panel,
.regions-page-banner,
.ksa-banner-section {
    cursor: default;
    user-select: text;
}

/* Arrow icon flip for LTR English direction */
html[dir="ltr"] .bi-arrow-left {
    display: inline-block !important;
    transform: scaleX(-1) !important;
}

/* Ensure cards and rows are RTL ordered */
html[dir="rtl"] .row {
    flex-direction: row;
}

/* Card text alignment */
html[dir="rtl"] .program-card-v2 p,
html[dir="rtl"] .program-card-v2 .prog-desc {
    text-align: right;
}

html[dir="ltr"] .program-card-v2 p,
html[dir="ltr"] .program-card-v2 .prog-desc {
    text-align: left;
}

/* Region entity card icon: right side in RTL */
.region-entity-card .entity-icon {
    order: 1;
}

.region-entity-card .entity-body {
    order: 2;
}

html[dir="ltr"] .region-entity-card .entity-icon {
    order: 2;
}

html[dir="ltr"] .region-entity-card .entity-body {
    order: 1;
}

/* Login page visual skin from Figma login pack (scoped only to login.html) */
@font-face {
    font-family: "Frutiger LT Arabic";
    src: url("../frutiger-lt-arabic/FrutigerLTArabic45Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Frutiger LT Arabic";
    src: url("../frutiger-lt-arabic/FrutigerLTArabic55Roman.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Frutiger LT Arabic";
    src: url("../frutiger-lt-arabic/FrutigerLTArabic65Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body.login-page {
    --login-text: #161616;
    --login-muted: #686058;
    --login-border: #d1d5dc;
    --login-primary: #1b8354;
    --login-footer-bg: #074d31;
    font-family: "Frutiger LT Arabic", "Cairo", system-ui, sans-serif;
    color: var(--login-text);
    background: #fff;
}

    body.login-page .site-header,
    body.login-page .site-header *,
    body.login-page .auth-card,
    body.login-page .auth-card *,
    body.login-page .main-footer,
    body.login-page .main-footer * {
        font-family: "Frutiger LT Arabic", "Cairo", system-ui, sans-serif;
    }

    body.login-page .site-header {
        background: #fff;
        box-shadow: 0 1px 0 #d2d6db;
    }

    body.login-page .header-nav .nav-item,
    body.login-page .login-btn {
        color: var(--login-text);
        font-size: 16px;
        font-weight: 400;
    }

        body.login-page .header-nav .nav-item:hover,
        body.login-page .login-btn:hover {
            color: var(--login-primary);
        }

    body.login-page .auth-wrapper {
        min-height: calc(100vh - 82px);
        align-items: flex-start;
        padding: 4.5rem 1rem;
        background: #fff;
    }

    body.login-page .auth-card {
        max-width: 416px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: none;
        padding: 2rem;
        text-align: right;
    }

        body.login-page .auth-card .auth-logo,
        body.login-page .auth-card .auth-sub {
            display: none;
        }

        body.login-page .auth-card h2 {
            font-size: 32px;
            line-height: 48px;
            font-weight: 700;
            margin-bottom: 1.4rem;
            text-align: center;
        }

        body.login-page .auth-card .form-label {
            font-size: 16px;
            font-weight: 400;
            color: var(--login-text);
            margin-bottom: 0.4rem;
        }

        body.login-page .auth-card .form-control {
            height: 50px;
            border: 1px solid var(--login-border);
            border-radius: 8px;
            padding: 0.75rem 1rem;
            font-size: 16px;
            color: var(--login-text);
        }

            body.login-page .auth-card .form-control::placeholder {
                color: rgba(10, 10, 10, 0.5);
            }

            body.login-page .auth-card .form-control:focus {
                border-color: var(--login-primary);
                box-shadow: 0 0 0 3px rgba(27, 131, 84, 0.14);
            }

        /* Use the default .auth-card .btn-auth styling for consistent large buttons */
        body.login-page .auth-card .btn-auth {
            margin-top: 0.25rem;
        }

        body.login-page .auth-card .auth-link {
            margin-top: 1rem;
            color: #487629;
            font-size: 14px;
            font-weight: 400;
            text-align: right;
        }

    body.login-page .main-footer {
        margin-top: 0;
        background: var(--login-footer-bg);
        padding: 2.8rem 0 1.1rem;
    }

        body.login-page .main-footer h3 {
            font-size: 1rem;
            font-weight: 700;
        }

        body.login-page .main-footer p,
        body.login-page .main-footer li,
        body.login-page .main-footer a {
            font-size: 0.92rem;
            color: rgba(255, 255, 255, 0.86);
        }

    body.login-page .footer-social a {
        border-radius: 4px;
        border-color: rgba(255, 255, 255, 0.32);
    }

    body.login-page .footer-logos {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    body.login-page .footer-logo-img {
        display: block;
        height: 38px;
        width: auto;
        max-width: 100%;
    }

    body.login-page .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    body.login-page .footer-policy-links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }

        body.login-page .footer-policy-links .policy-sep {
            opacity: 0.45;
        }





/* Global visual identity tokens (all pages) */
@font-face {
    font-family: "Frutiger LT Arabic";
    src: url("../frutiger-lt-arabic/frutigerltarabic75black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-primary: "Frutiger LT Arabic", "Cairo", system-ui, sans-serif;
    --font-secondary: #1b8354;
    --font-default-ar: #000000;
    --font-45-light: 300;
    --font-55-roman: 400;
    --font-65-bold: 700;
    --font-75-black: 900;
    --font-size-footer-links: 16px;
    --font-size-headings-large: 36px;
    --font-size-headings-medium: 36px;
    --font-size-headings-small: 24px;
    --font-size-body-lead: 20px;
    --color-footer-bg: #074d31;
    --color-primary: #006c35;
    --color-accent: #1b8354;
    --color-button: #1b8354;
    --color-updates-box: rgba(0, 108, 53, 0.1);
    --color-naseej-icon: #067647;
    --color-naseej-number: #14573a;
}

body,
html[lang="en"] body {
    font-family: var(--font-primary);
    color: var(--font-default-ar);
}

h1,
.hero-copy-wrap h1,
.hero-slide-content h1,
.about-hero h1,
.detail-hero h1,
.region-page-head h1,
.programs-page-head__copy h1 {
    font-size: var(--font-size-headings-large) !important;
    font-weight: var(--font-65-bold) !important;
    line-height: 40px;
}

h2,
.headline h2,
.auth-card h2,
.regions-map-copy h2 {
    font-size: var(--font-size-headings-medium) !important;
    font-weight: var(--font-65-bold) !important;
    line-height: 40px;
    letter-spacing: 0;
}

h3,
.main-footer h3,
.program-card h3,
.program-card-v2 h3,
.mission-card h3,
.news-body h3,
.announce-card h3,
.announcement-card h3,
.region-side-card h3 {
    font-size: var(--font-size-headings-small) !important;
    font-weight: var(--font-65-bold) !important;
}

.main-footer {
    background: var(--color-footer-bg) !important;
}

    .main-footer p,
    .main-footer li,
    .main-footer a,
    .footer-policy-links a {
        font-size: var(--font-size-footer-links) !important;
        font-weight: var(--font-55-roman) !important;
    }

.headline h2 {
    font-family: var(--font-primary);
    text-align: center;
}

.headline p,
.region-page-head p {
    font-family: var(--font-primary);
    font-size: var(--font-size-body-lead) !important;
    font-weight: var(--font-55-roman) !important;
    line-height: 28px;
    letter-spacing: 0;
}

.headline p {
    text-align: center;
}

.region-page-head h1 {
    font-family: var(--font-primary);
}

.btn-auth,
.program-status-filters button.is-active,
.header-nav .nav-item.active {
    background: var(--color-button) !important;
}

.auth-card .auth-logo {
    background: var(--color-naseej-icon) !important;
}

.metric-item strong,
.home-region-card .stat-num,
.region-card-item .stat-num,
.entity-stats-compact .stat-num {
    color: var(--color-naseej-number) !important;
}

.main-footer .footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-footer .footer-right {
    text-align: right;
}

.main-footer .footer-logos-left img,
.main-footer .footer-logo-img {
    height: 38px;
    width: auto;
}

html[dir="rtl"] body.login-page .footer-policy-links {
    justify-content: center;
}

html[dir="ltr"] body.login-page .footer-policy-links {
    justify-content: flex-start;
}



/* Final pass: footer, RTL alignment, auth controls, regions banner */
.main-footer .footer-bottom,
body.login-page .footer-bottom {
    border-top: 0 !important;
}

html[dir="rtl"] .news-body,
html[dir="rtl"] .announce-card,
html[dir="rtl"] .announcement-card,
html[dir="rtl"] .ad-list-card,
html[dir="rtl"] .ads-detail-body,
html[dir="rtl"] .ads-list-item,
html[dir="rtl"] .news-detail-body,
html[dir="rtl"] .related-news,
html[dir="rtl"] .objective-list li,
html[dir="rtl"] .auth-card .form-label,
html[dir="rtl"] .auth-card .form-control,
html[dir="rtl"] .mail-form input {
    text-align: right;
}

.metric-item i,
.mission-card .m-icon {
    background: #F3FCF6 !important;
    color: #067647 !important;
}

body.login-page .auth-options-row {
    margin: 0.45rem 0 0.9rem;
}

    body.login-page .auth-options-row .form-check {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    body.login-page .auth-options-row .form-check-input {
        margin: 0;
        float: none;
        border-color: #b8c1c9;
    }

    body.login-page .auth-options-row .form-check-label,
    body.login-page .auth-inline-link {
        font-size: 14px;
        font-weight: 400;
        line-height: 1.3;
    }

    body.login-page .auth-options-row .form-check-label {
        color: #4a5561;
    }

body.login-page .auth-inline-link {
    color: #487629;
    text-decoration: none;
}

    body.login-page .auth-inline-link:hover {
        text-decoration: underline;
    }

body.auth-flat-page .auth-wrapper {
    min-height: calc(100vh - 82px);
    align-items: flex-start;
    padding: 4.5rem 1rem;
    background: #fff;
}

body.auth-flat-page .auth-card {
    max-width: 416px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
    padding: 2rem;
    text-align: right;
}

    body.auth-flat-page .auth-card .auth-logo {
        display: none;
    }

    body.auth-flat-page .auth-card h2 {
        font-size: 32px;
        line-height: 48px;
        margin-bottom: 1rem;
    }

    body.auth-flat-page .auth-card .auth-sub {
        font-size: 15px;
        margin-bottom: 1.25rem;
    }

    body.auth-flat-page .auth-card .form-control {
        height: 50px;
        border-radius: 8px;
        font-size: 16px;
    }

.regions-page-banner {
    background: #0d6a41;
    isolation: isolate;
    order: -1;
}

.regions-page-grid {
    direction: rtl;
}

    .regions-page-grid > * {
        direction: rtl;
    }

.regions-page-banner .regions-banner-panel__art {
    display: block;
    inset: 0 auto 0 0;
    width: 58%;
    background: url('/assets/images/hero-overlay.png') left center/cover no-repeat;
    z-index: 0;
}

.regions-page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 106, 65, 0.04) 0%, rgba(13, 106, 65, 0.08) 42%, rgba(13, 106, 65, 0.9) 61%, rgba(13, 106, 65, 0.97) 100%);
    pointer-events: none;
    z-index: 1;
}

.regions-page-banner .regions-banner-panel__content {
    z-index: 2;
    justify-content: flex-end !important;
    text-align: right;
}

html[dir="ltr"] .regions-page-banner .regions-banner-panel__content {
    justify-content: flex-start !important;
    text-align: left;
}

.regions-page-banner .regions-banner-panel__content strong {
    max-width: 46%;
    line-height: 1.25;
}

.regions-banner-panel__content,
.regions-page-banner .regions-banner-panel__content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.75rem 2.5rem;
}

.regions-banner-panel__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    max-width: 340px;
    text-align: right;
}

.regions-banner-panel__eyebrow {
    display: inline-flex;
    padding: 0.34rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
    line-height: 1.2;
}

.regions-banner-panel__number {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 0.95 !important;
    color: #fff;
    max-width: none !important;
}

.regions-banner-panel__title {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.regions-banner-panel__desc {
    margin: 0;
    color: rgba(255,255,255,0.86);
    font-size: 1rem;
    line-height: 1.7;
}

html[dir="rtl"] .news-foot small,
html[dir="rtl"] .announcement-meta span,
html[dir="rtl"] .news-date,
html[dir="rtl"] .related-news span,
html[dir="rtl"] .partner-placeholder {
    direction: rtl;
    unicode-bidi: isolate;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="search"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] textarea {
    direction: rtl;
    text-align: right !important;
}

    html[dir="rtl"] input[type="email"]::placeholder,
    html[dir="rtl"] input[type="text"]::placeholder,
    html[dir="rtl"] input[type="search"]::placeholder,
    html[dir="rtl"] input[type="password"]::placeholder,
    html[dir="rtl"] textarea::placeholder {
        direction: rtl;
        text-align: right;
    }

.home-regions-section .regions-banner-panel {
    background: #0d6a41;
    isolation: isolate;
}

    .home-regions-section .regions-banner-panel::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(13, 106, 65, 0.04) 0%, rgba(13, 106, 65, 0.08) 42%, rgba(13, 106, 65, 0.9) 61%, rgba(13, 106, 65, 0.97) 100%);
        pointer-events: none;
        z-index: 1;
    }

.home-regions-section .regions-banner-panel__art {
    inset: 0 auto 0 0;
    width: 58%;
    background: url('/assets/images/hero-overlay.png') left center/cover no-repeat;
    z-index: 0;
}

.home-regions-section .regions-banner-panel__content {
    z-index: 2;
    justify-content: flex-end;
    text-align: right;
    padding: 1.75rem 2.5rem;
}

    .home-regions-section .regions-banner-panel__content strong {
        max-width: 46%;
        line-height: 1.25;
    }

/* Keep home regions grid RTL and move the banner to the leading side in Arabic layouts */
.home-regions-grid {
    direction: rtl;
}

    .home-regions-grid > * {
        direction: rtl;
    }

.home-regions-section .regions-banner-panel {
    order: -1;
}

.main-footer ul a {
    transition: color 0.22s ease;
}

    .main-footer ul a:hover {
        color: #fff;
    }

.login-btn,
.hero-btn,
.btn-main,
.btn-main-outline,
.auth-card .btn-auth,
.auth-card .btn-auth.btn-auth--large {
    border-radius: 10px;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease;
}

    .hero-btn,
    .btn-main,
    .auth-card .btn-auth,
    .auth-card .btn-auth.btn-auth--large {
        box-shadow: 0 6px 16px rgba(6, 58, 37, 0.1);
    }

        .login-btn:hover,
        .hero-btn:hover,
        .btn-main:hover,
        .btn-main-outline:hover,
        .auth-card .btn-auth:hover,
        .auth-card .btn-auth.btn-auth--large:hover {
            transform: translateY(-2px);
        }

        .auth-card .btn-auth:hover,
        .auth-card .btn-auth:focus-visible,
        .auth-card .btn-auth.btn-auth--large:hover,
        .auth-card .btn-auth.btn-auth--large:focus-visible {
            color: #fff;
        }

    .btn-main-outline:hover {
        box-shadow: 0 10px 24px rgba(6, 58, 37, 0.08);
    }



body.login-page .auth-card .form-label,
body.auth-flat-page .auth-card .form-label {
    display: block;
    width: 100%;
    text-align: right !important;
}

body.login-page .auth-card input[type="email"],
body.auth-flat-page .auth-card input[type="email"] {
    direction: rtl !important;
    text-align: right !important;
}

    body.login-page .auth-card input[type="email"]::placeholder,
    body.auth-flat-page .auth-card input[type="email"]::placeholder {
        direction: rtl;
        text-align: right;
    }



/* Restore prominent animated auth button for pages that prefer it */
.auth-card .btn-auth.btn-auth--large,
body.login-page .auth-card .btn-auth.btn-auth--large {
    width: 100%;
    padding: 0.65rem;
    border-radius: 8px;
    background: var(--green-700);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    margin-top: 0.5rem;
    transition: background 0.25s, transform 0.15s, box-shadow 0.18s;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(27,131,84,0.10);
}

    .auth-card .btn-auth.btn-auth--large:hover,
    body.login-page .auth-card .btn-auth.btn-auth--large:hover {
        background: var(--green-800);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(6,58,37,0.12);
    }

/* ═══ RTL-CORRECT FINAL OVERRIDES ═══ */

/* -- Ads page -- */
.ads-page-head {
    margin-bottom: 1.4rem;
    text-align: right;
}

    .ads-page-head h1 {
        margin: 0 0 0.35rem;
        color: #18232d;
    }

    .ads-page-head p {
        margin: 0;
        color: #72837d;
    }

/* RTL grid: first column = RIGHT visually → list panel; second column = LEFT → detail panel */
.ads-layout {
    grid-template-columns: 340px minmax(0, 1fr) !important;
    grid-template-areas: "list detail" !important;
    direction: rtl !important;
    gap: 1.25rem;
}

.ads-detail-panel {
    grid-area: detail;
    text-align: right;
    border-radius: 18px;
    min-height: 560px;
    box-shadow: 0 10px 22px rgba(6, 58, 37, 0.04);
    direction: rtl;
}

.ads-list-panel {
    grid-area: list;
    text-align: right;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(6, 58, 37, 0.04);
    direction: rtl;
}

.ads-detail-panel .ads-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-direction: row-reverse;
}

.ads-detail-panel .ads-detail-title {
    font-size: 1.65rem !important;
    line-height: 1.5;
    color: #1b2430;
    text-align: right;
}

.ads-detail-panel .ads-detail-body {
    font-size: 0.96rem;
    line-height: 1.95;
    color: #546761;
    text-align: right;
}

    .ads-detail-panel .ads-detail-body h4 {
        color: #0b6a43;
        font-size: 1.05rem;
        font-weight: 700;
        margin-top: 1.35rem;
        margin-bottom: 0.5rem;
    }

    .ads-detail-panel .ads-detail-body ul {
        list-style: none;
        padding: 0;
        margin: 0 0 1rem;
    }

    .ads-detail-panel .ads-detail-body li {
        position: relative;
        padding-right: 1.1rem;
        margin-bottom: 0.35rem;
    }

        .ads-detail-panel .ads-detail-body li::before {
            content: "";
            position: absolute;
            right: 0;
            top: 0.72rem;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--green-700);
        }

.ads-list-panel__header {
    display: flex;
    justify-content: flex-start;
    text-align: right;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
    background: #f7f9f8;
    border-bottom: 1px solid #dfe7e3;
    color: #1d2330;
}

.ads-list-item {
    text-align: right;
    padding: 0.9rem 1.15rem 0.9rem 2.3rem;
    border: none;
    border-bottom: 1px solid #edf2ef;
    width: 100%;
    background: #fff;
}

.ads-list-item__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row-reverse;
    font-size: 0.75rem;
    color: #7b8794;
    margin-bottom: 0.2rem;
}

.ads-list-item__title {
    text-align: right;
    font-size: 0.9rem;
    font-weight: 700;
}

.ads-list-item__preview {
    text-align: right;
    font-size: 0.78rem;
}

.ads-list-item__arrow {
    left: 0.95rem;
    right: auto;
}

.program-detail-hero {
    background: linear-gradient(90deg, #0a6a41 0%, #0b6b43 50%, #0a5b39 100%);
    padding: 0;
    overflow: hidden;
}

/* RTL: first col = RIGHT = content, second col = LEFT = art */
.program-detail-hero__inner {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    grid-template-areas: "content art";
    align-items: stretch;
    min-height: 268px;
}

.program-detail-hero__art {
    grid-area: art;
    min-height: 268px;
}

    .program-detail-hero__art img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.program-detail-hero__content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 2rem 2rem 0;
    color: #fff;
    text-align: right;
}

.program-detail-hero__meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.program-detail-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0.24rem 0.7rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.program-detail-pill--muted {
    background: rgba(255,255,255,0.1);
}

.program-detail-hero__content h1 {
    color: #fff;
    margin: 0 0 0.65rem;
}

.program-detail-hero__content p {
    margin: 0 0 1.4rem;
    color: rgba(255,255,255,0.88);
    max-width: 420px;
}

.program-detail-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 0.7rem 1.3rem;
    border-radius: 8px;
    background: #fff;
    color: #0a6a41;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

    .program-detail-hero__cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(6, 58, 37, 0.18);
        color: #0a6a41;
    }

.program-detail-page {
    padding-top: 1.6rem;
}

/* RTL: first col = RIGHT = main, second col = LEFT = sidebar */
.program-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-areas: "main sidebar";
    gap: 1.1rem;
    align-items: start;
}

.program-detail-sidebar {
    grid-area: sidebar;
    display: grid;
    gap: 1rem;
}

.program-detail-main {
    grid-area: main;
    display: grid;
    gap: 1rem;
}

.program-detail-card,
.program-info-card {
    border: 1px solid #dfe8e3;
    border-radius: 18px;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 10px 22px rgba(6, 58, 37, 0.04);
}

    .program-detail-card h2,
    .program-info-card h3 {
        margin: 0 0 1rem;
        color: #17222d;
        text-align: right;
    }

    .program-detail-card p {
        margin: 0;
        color: #566863;
        line-height: 1.95;
        text-align: right;
    }

.program-goals-list {
    display: grid;
    gap: 0.7rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .program-goals-list li {
        position: relative;
        padding-right: 1.65rem;
        color: #233039;
        line-height: 1.8;
        text-align: right;
    }

        .program-goals-list li::before {
            content: "\F633";
            font-family: bootstrap-icons;
            position: absolute;
            right: 0;
            top: 0.05rem;
            color: #60d3a0;
            font-size: 1rem;
        }

.program-audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.program-audience-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 54px;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #f8fbf9;
    color: #223039;
}

    .program-audience-item i {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--green-700);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

.program-info-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

    .program-info-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        color: #5d7069;
        font-size: 0.95rem;
    }

    .program-info-list strong {
        color: #18232d;
        font-weight: 700;
    }

.news-detail-image img {
    object-position: center;
}





/* Final UI pass: regions banner, partners, news listing, news details */
html[dir="rtl"] .regions-banner-panel__content,
html[dir="rtl"] .regions-page-banner .regions-banner-panel__content {
    justify-content: flex-start !important;
}

html[dir="ltr"] .regions-banner-panel__content,
html[dir="ltr"] .regions-page-banner .regions-banner-panel__content {
    justify-content: flex-end !important;
}

.regions-banner-panel__copy {
    max-width: 440px;
    width: 100%;
}

.regions-banner-panel__headline {
    display: block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 36px;
    line-height: 63px !important;
    letter-spacing: 0;
    text-align: right;
    color: #fff;
    max-width: none !important;
}

.partners-carousel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
}

.partners-viewport {
    overflow: hidden;
    position: relative;
    direction: ltr;
}

.partners-track {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: max-content;
    will-change: transform;
}

.partner-card {
    flex: 0 0 192px;
    height: 92px;
    border: 1px solid #dde7e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(6, 58, 37, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1rem;
}

    .partner-card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.strip-nav {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #dbe5df;
    background: #fff;
    color: var(--green-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}

    .strip-nav:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 18px rgba(6, 58, 37, 0.08);
        border-color: #b9d2c5;
        color: var(--green-800);
    }

.news-page-hero {
    padding: 1.35rem 0 0.8rem;
}

.news-page-hero__copy {
    max-width: 420px;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.news-page-hero h1 {
    margin: 0 0 0.45rem;
    color: #18232d;
}

.news-page-hero p {
    margin: 0;
    color: #70827b;
}

.news-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.news-grid-item {
    display: flex;
}

.news-card--listing {
    border: 1px solid #dde7e1;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(6, 58, 37, 0.04);
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .news-card--listing .news-thumb {
        min-height: 138px;
        margin: 0.55rem;
        border-radius: 14px;
        border: 0;
    }

    .news-card--listing .news-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding: 0.2rem 0.95rem 0.95rem;
    }

        .news-card--listing .news-body h3 {
            color: #18232d;
            font-size: 1.08rem !important;
            line-height: 1.65;
            margin-bottom: 0.5rem;
            min-height: 3.5em;
        }

        .news-card--listing .news-body p {
            color: #5f7169;
            font-size: 0.92rem;
            line-height: 1.9;
            margin-bottom: 0.85rem;
        }

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #7b8b85;
    font-size: 0.78rem;
    margin-top: auto;
}

    .news-card__meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.28rem;
    }

.news-card__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.9rem;
}

.news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    background: var(--green-700);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(6, 58, 37, 0.1);
    transition: background-color 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease, color 0.25s ease;
}

    .news-readmore i {
        transition: transform 0.26s ease;
    }

    .news-readmore:hover,
    .news-readmore:focus-visible {
        background: var(--green-800);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(6, 58, 37, 0.14);
    }

        .news-readmore:hover i,
        .news-readmore:focus-visible i {
            transform: translateX(-5px);
        }

.news-listing-pagination {
    margin-top: 2rem;
    justify-content: center;
}

.news-detail-page {
    padding-top: 0.8rem;
}

/* RTL: first col = RIGHT = article, second col = LEFT = sidebar */
.news-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-areas: "article sidebar";
    gap: 1.25rem;
    align-items: start;
}

.news-detail-sidebar {
    grid-area: sidebar;
    display: grid;
    gap: 1rem;
}

.news-detail-main {
    grid-area: article;
}

.news-share-card,
.news-related-card {
    border: 1px solid #dfe8e3;
    border-radius: 18px;
    background: #fff;
    padding: 0.9rem;
}

    .news-share-card h3,
    .news-related-card h3 {
        margin: 0 0 0.8rem;
        color: #17212c;
        font-size: 1rem !important;
    }

.news-share-list {
    display: grid;
    gap: 0.65rem;
}

.news-share-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.82rem 0.9rem;
    border: 1px solid #e6ece8;
    border-radius: 12px;
    background: #fff;
    color: #1f2a31;
    transition: border-color 0.22s ease, transform 0.18s ease, box-shadow 0.25s ease;
}

    .news-share-link:hover {
        transform: translateY(-2px);
        border-color: #c7dad0;
        box-shadow: 0 8px 20px rgba(6, 58, 37, 0.06);
        color: #1f2a31;
    }

    .news-share-link i {
        order: -1;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 1px solid #dbe5df;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--green-700);
    }

.news-related-list {
    display: grid;
    gap: 0.9rem;
}

.news-related-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #edf1ef;
}

    .news-related-item img {
        order: 2;
    }

    .news-related-item > div {
        order: 1;
    }

    .news-related-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .news-related-item img {
        width: 78px;
        height: 58px;
        object-fit: cover;
        border-radius: 10px;
    }

    .news-related-item h4 {
        margin: 0 0 0.28rem;
        color: #17212c;
        font-size: 0.9rem !important;
        line-height: 1.5;
    }

    .news-related-item time {
        color: #80908a;
        font-size: 0.76rem;
    }

.news-detail-article {
    border-right: 1px solid #ecefed;
    padding-right: 1.25rem;
    border-left: 0;
    padding-left: 0;
}

.news-detail-media {
    border: 1px solid #e5ece7;
    border-radius: 18px;
    background: #fff;
    padding: 0.5rem;
}

.news-detail-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.1rem;
    color: #7a8984;
    font-size: 0.82rem;
    margin: 0.9rem 0 0;
}

    .news-detail-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.28rem;
    }

.news-detail-article h1 {
    margin: 1.25rem 0 0.9rem;
    color: #18232d;
    font-size: 2.35rem !important;
    line-height: 1.35;
    text-align: right;
}

.news-detail-body {
    color: #4b5f59;
    font-size: 1rem;
    line-height: 2;
}

    .news-detail-body h2 {
        margin: 1.35rem 0 0.7rem;
        color: #17222d;
        font-size: 1.5rem !important;
        line-height: 1.45;
    }

    .news-detail-body p,
    .news-detail-body li {
        margin-bottom: 0.7rem;
    }

    .news-detail-body ul {
        padding: 0;
        margin: 0 0 0.9rem;
        list-style: none;
    }

    .news-detail-body li::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-left: 0.5rem;
        border-radius: 50%;
        background: var(--green-700);
    }





/* ═══ MOBILE MENU ENHANCEMENTS ═══ */
.mobile-menu.offcanvas {
    max-width: 300px;
    border-left: none;
    border-right: none;
}

.mobile-menu .offcanvas-header {
    border-bottom: 1px solid #edf2ef;
    padding: 1rem 1.25rem;
}

.mobile-menu .offcanvas-title {
    font-weight: 700;
    color: #18232d;
}

.mobile-menu .offcanvas-body {
    padding: 1rem;
}

    .mobile-menu .offcanvas-body a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #edf2ef;
        border-radius: 12px;
        padding: 0.8rem 1rem;
        background: #fff;
        color: #2d3b35;
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        transition: all 0.25s ease;
        position: relative;
        overflow: hidden;
    }

        .mobile-menu .offcanvas-body a::after {
            content: "\F285";
            font-family: bootstrap-icons;
            font-size: 0.75rem;
            color: #b0bfb9;
            transition: transform 0.25s ease, color 0.25s ease;
        }

        .mobile-menu .offcanvas-body a:hover {
            background: #f0fbf5;
            border-color: #c7ead5;
            color: var(--green-700);
            transform: translateX(-3px);
        }

            .mobile-menu .offcanvas-body a:hover::after {
                color: var(--green-700);
                transform: translateX(-4px);
            }

        .mobile-menu .offcanvas-body a.is-active {
            background: var(--green-700);
            border-color: var(--green-700);
            color: #fff;
            box-shadow: 0 4px 14px rgba(11, 122, 70, 0.18);
        }

            .mobile-menu .offcanvas-body a.is-active::after {
                color: rgba(255,255,255,0.7);
            }

/* ═══ ABOUT PAGE DETAIL LAYOUT ═══ */
.about-detail-page {
    padding-top: 0.8rem;
}

.about-shell .news-detail-article h1 {
    font-size: 2rem !important;
    margin: 1.25rem 0 0.9rem;
}

/* Final card type, mobile footer, and ads polish */
:root {
    --font-card: "IBM Plex Sans Arabic", "Frutiger LT Arabic", "Cairo", system-ui, sans-serif;
}

.program-card h3,
.program-card-v2 h3,
.program-card-v2 .prog-title,
.news-body h3,
.news-card--listing .news-body h3,
.announcement-card h3,
.announce-card h3,
.home-region-card h4,
.region-card-item h4,
.ads-list-item__title,
.ads-detail-panel .ads-detail-title {
    font-family: var(--font-card) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 28px !important;
    letter-spacing: 0;
    text-align: right;
}

.program-card p,
.program-card-v2 .program-desc,
.program-card-v2 .prog-desc,
.news-body p,
.news-card--listing .news-body p,
.home-region-card .stat-label,
.region-card-item .stat-label,
.ads-list-item__preview,
.ads-detail-panel .ads-detail-body,
.region-page-head p {
    font-family: var(--font-card) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 26px !important;
    letter-spacing: 0;
    text-align: right;
}

.home-region-card,
.region-card-item {
    min-height: 220px;
}

.announcement-card,
.announce-card {
    min-height: 158px;
}

.news-card--listing .news-body,
.news-body,
.program-card-v2,
.program-card,
.announcement-card,
.announce-card,
.home-region-card,
.region-card-item,
.ads-list-item,
.ads-detail-panel {
    direction: rtl;
}

    .program-card-v2 .details-link {
        display: inline-flex;
        align-items: center;
        gap: 0.38rem;
        padding: 0.5rem 0.9rem;
        border-radius: 8px;
        background: var(--green-700);
        color: #fff;
        font-family: var(--font-card) !important;
        font-size: 0.84rem;
        font-weight: 700;
        box-shadow: 0 6px 16px rgba(6, 58, 37, 0.1);
        transition: background-color 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease, color 0.25s ease;
    }

        .program-card-v2 .details-link:hover,
        .program-card-v2 .details-link:focus-visible {
            background: var(--green-800);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 12px 24px rgba(6, 58, 37, 0.14);
        }

        .program-card-v2 .details-link i,
        .ads-list-item__arrow,
        .naseej-pagination__btn.nav-arrow i {
            transition: transform 0.26s ease, color 0.25s ease;
        }

        .program-card-v2 .details-link:hover i,
        .program-card-v2 .details-link:focus-visible i,
        .ads-list-item:hover .ads-list-item__arrow,
        .ads-list-item.is-active .ads-list-item__arrow,
        .naseej-pagination__btn.nav-arrow:hover:not(:disabled) i {
            transform: translateX(-5px);
        }

.ads-layout {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr) !important;
}

.ads-list-panel__header {
    min-height: 54px;
    align-items: center;
}

.ads-list-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 116px;
}

.ads-list-item__meta,
.ads-detail-panel .ads-detail-meta {
    width: 100%;
}

.ad-badge-urgent::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d92d20;
    display: inline-block;
    margin-inline-end: 0.35rem;
    vertical-align: middle;
}

.mobile-menu.offcanvas {
    max-width: 272px;
}

.mobile-menu .offcanvas-header {
    padding: 0.85rem 1rem;
}

.mobile-menu .offcanvas-title {
    font-size: 0.95rem;
}

.mobile-menu .offcanvas-body {
    padding: 0.85rem;
}

    .mobile-menu .offcanvas-body a {
        padding: 0.72rem 0.85rem;
        font-size: 0.9rem;
    }



/* Final interaction and layout fixes */
.auth-card .auth-link,
.auth-card .auth-success-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-inline: auto;
}

.programs-section {
    background: #fff !important;
}

.news-listing-pagination,
.programs-pagination,
.ads-listing-pagination {
    margin-top: 2rem;
    justify-content: center;
}

.ads-listing-pagination {
    padding-top: 0;
}

.home-region-card,
.region-list-card {
    text-align: right;
}

.home-region-card__stats > div {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.region-stats-compact > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.home-region-card .stat-label,
.region-stats-compact .stat-label {
    text-align: right;
}

.home-region-card .stat-num,
.region-stats-compact .stat-num {
    min-width: 64px;
    text-align: left;
}

.regions-banner-panel,
.regions-page-banner {
    isolation: isolate;
}

    .regions-banner-panel__art,
    .regions-page-banner .regions-banner-panel__art,
    .home-regions-section .regions-banner-panel__art {
        inset: 0 !important;
        width: 100% !important;
        background: linear-gradient(90deg, rgba(7, 88, 54, 0.32) 0%, rgba(7, 88, 54, 0.18) 35%, rgba(7, 88, 54, 0.52) 100%), url('../images/hero-overlay.png') center/cover no-repeat !important;
    }

    .regions-page-banner::after {
        background: linear-gradient(90deg, rgba(13, 106, 65, 0.12) 0%, rgba(13, 106, 65, 0.08) 40%, rgba(13, 106, 65, 0.18) 100%) !important;
    }

    html[dir="rtl"] .regions-banner-panel__content,
    html[dir="rtl"] .regions-page-banner .regions-banner-panel__content,
    .home-regions-section .regions-banner-panel__content,
    .regions-page-banner .regions-banner-panel__content {
        justify-content: flex-end !important;
        align-items: center;
        padding: 1.2rem 1.8rem !important;
        text-align: right;
    }

.regions-banner-panel__copy {
    max-width: none;
}

.regions-banner-panel__headline,
.regions-page-banner .regions-banner-panel__content strong,
.home-regions-section .regions-banner-panel__content strong {
    font-size: 32px !important;
    line-height: 1.45 !important;
    max-width: none !important;
    position: relative;
    z-index: 2;
}



/* Final regional RTL and ads refinements */
html[dir="rtl"] .regions-banner-panel__content,
html[dir="rtl"] .regions-page-banner .regions-banner-panel__content {
    justify-content: flex-start !important;
    padding-inline: 1.85rem !important;
}

html[dir="rtl"] .regions-banner-panel__copy,
html[dir="rtl"] .regions-page-banner .regions-banner-panel__copy {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

html[dir="rtl"] .regions-banner-panel__headline,
html[dir="rtl"] .regions-page-banner .regions-banner-panel__content strong {
    margin-inline-end: auto;
    text-align: right;
}

.region-list-card,
.region-entity-card {
    min-height: 188px;
    padding: 1.2rem 1.2rem 1.1rem;
    border-radius: 20px;
    border-color: #d4e3db;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
    box-shadow: 0 16px 28px rgba(8, 70, 43, 0.08);
    text-align: right;
}

    .region-list-card:hover,
    .region-entity-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 34px rgba(8, 70, 43, 0.12);
        border-color: #a8cfbb;
    }

    .region-list-card .region-icon,
    .region-entity-card .entity-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        margin: 0 0 1rem auto;
        font-size: 1.2rem;
        background: linear-gradient(180deg, #0b8a50 0%, #0b6a43 100%);
    }

    .region-list-card h4,
    .region-entity-card h4 {
        margin-bottom: 0.8rem;
        font-size: 1.2rem;
        line-height: 1.45;
        color: #142432;
    }

.home-region-card__stats > div,
.region-stats-compact > div,
.entity-stats-compact > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

    .home-region-card__stats > div .stat-label {
        order: 1;
    }

    .home-region-card__stats > div .stat-num {
        order: 2;
    }

    .home-region-card__stats > div .stat-label,
    .region-stats-compact > div .stat-label,
    .entity-stats-compact > div .stat-label {
        flex: 1 1 auto;
        text-align: right;
        color: #667987;
    }

    .home-region-card__stats > div .stat-num,
    .region-stats-compact > div .stat-num,
    .entity-stats-compact > div .stat-num {
        flex: 0 0 auto;
        min-width: 64px;
        text-align: left;
        color: #0b7a46;
        font-weight: 800;
    }

.region-stats-compact,
.entity-stats-compact {
    gap: 0.4rem;
}

.ads-layout {
    align-items: stretch !important;
}

.ads-detail-panel,
.ads-list-panel {
    height: 100%;
}

.ads-list-panel {
    display: flex;
    flex-direction: column;
}

.ads-list-items {
    flex: 1 1 auto;
    overflow-y: auto;
}

html[dir="rtl"] .ads-list-item__meta,
html[dir="rtl"] .ads-detail-panel .ads-detail-meta {
    justify-content: flex-start !important;
    flex-wrap: wrap;
    text-align: right;
}

.ads-detail-panel .ads-detail-title {
    font-size: 1.18rem !important;
    color: #0b7a46;
}

.ads-detail-panel .ads-detail-body {
    font-size: 0.86rem !important;
    line-height: 1.95;
}

.ads-list-item__title {
    font-size: 0.84rem !important;
    line-height: 1.6;
}

.ads-list-item.is-active .ads-list-item__title {
    color: #0b7a46;
}

.ads-list-item__preview {
    font-size: 0.74rem !important;
    line-height: 1.7;
}





/* Final visual cleanup for region cards, program links, program hero, partners, and ads meta */
html[dir="rtl"] .home-region-card__icon,
html[dir="rtl"] .region-list-card .region-icon,
html[dir="rtl"] .region-entity-card .entity-icon {
    margin-left: auto !important;
    margin-right: 0 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
}

.program-card-v2 .details-link {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--green-700) !important;
}

    .program-card-v2 .details-link:hover,
    .program-card-v2 .details-link:focus-visible {
        background: transparent !important;
        box-shadow: none !important;
        color: var(--green-800) !important;
    }

    .program-card-v2 .details-link span {
        text-decoration: none;
    }

.program-detail-hero .container {
    max-width: 100%;
    padding-inline: 0;
}

.program-detail-hero__inner {
    grid-template-columns: 430px minmax(0, 1fr) !important;
    min-height: 430px;
}

.program-detail-hero__art {
    min-height: 430px;
}

    .program-detail-hero__art img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

.program-detail-hero__content {
    padding: 2.5rem 4vw 2.5rem 2rem;
    align-items: flex-start;
    text-align: right;
}

html[dir="rtl"] .ads-list-item__meta,
html[dir="rtl"] .ads-detail-panel .ads-detail-meta {
    direction: rtl;
    flex-direction: row !important;
    justify-content: flex-start !important;
}

html[dir="rtl"] .ads-list-item__meta {
    align-self: stretch;
}



html[dir="rtl"] .region-entity-card {
    align-items: stretch !important;
}

    html[dir="rtl"] .region-list-card .region-icon,
    html[dir="rtl"] .region-entity-card .entity-icon {
        order: -1 !important;
        align-self: flex-end;
    }

/* Unified header navigation (single nav for desktop and mobile) */
.nav-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header .header-row {
    position: relative;
}

.site-header .header-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

    .site-header .header-nav .nav-mobile-only {
        display: none;
    }

.site-header .mobile-menu-btn {
    display: none;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.main-footer .footer-policy-links {
    max-width: 100%;
}

/* Consolidated Media Queries */

@media (max-width: 1199.98px) {
    .top-nav {
        display: none !important;
    }

    .hero-copy-wrap {
        margin-inline-start: 0;
    }

    .regions-layout {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .region-banner-card {
        grid-column: span 2;
    }

    .partners-strip {
        grid-template-columns: auto repeat(4, minmax(0, 1fr)) auto;
    }
}

@media (max-width: 991.98px) {
    .header-shell {
        min-height: 70px;
    }

    .hero-block,
    .hero-content {
        min-height: 360px;
    }

    .metrics-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .regions-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .region-banner-card {
        grid-column: span 2;
    }

    .mail-form {
        flex-direction: column;
    }

    .partners-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .strip-nav {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-copy-wrap h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .section-space {
        padding: 2.9rem 0;
    }

    .regions-layout,
    .metrics-row {
        grid-template-columns: 1fr;
    }

    .region-banner-card {
        grid-column: auto;
        min-height: 125px;
    }

    .partners-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-copy small {
        display: none;
    }

    .share-sidebar {
        flex-direction: row;
        position: static;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .detail-hero .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .map-placeholder {
        min-height: 200px;
    }

    .ad-list-card {
        flex-direction: column;
    }
}

@media (max-width: 1199.98px) {
    .brand-text-en {
        display: none;
    }

    .header-nav .nav-item {
        padding: 0.45rem 0.85rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 991.98px) {
    .header-row {
        min-height: 70px;
    }

    .hero-slide {
        min-height: 400px;
    }

    .hero-slide-content {
        max-width: 100%;
        padding: 2.5rem 0;
    }

        .hero-slide-content h1 {
            font-size: clamp(1.75rem, 5vw, 2.5rem);
        }

    .regions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .header-row {
        min-height: 64px;
    }

    .brand-text {
        display: none;
    }

    .hero-slide {
        min-height: 360px;
    }

    .hero-slide-content h1 {
        font-size: 1.6rem;
    }

    .hero-slide-content p {
        font-size: 0.95rem;
    }

    .hero-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.88rem;
    }

    .map-container iframe {
        min-height: 300px;
    }

    .map-overlay-banner {
        bottom: 1rem;
        left: 1rem;
        padding: 0.75rem 1rem;
    }

        .map-overlay-banner strong {
            font-size: 1.25rem;
        }

    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .regions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .region-card-item {
        padding: 1rem 0.75rem;
    }
}

@media (max-width: 1199.98px) {
    .header-row {
        min-height: 80px;
    }

    .brand-logo-image {
        height: 42px;
    }

    .header-nav {
        gap: 1.35rem;
    }

        .header-nav .nav-item {
            font-size: 0.92rem;
        }

    .regions-grid--catalog {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .header-row {
        min-height: 68px;
    }

    .brand-logo-image {
        height: 38px;
    }

    .program-card-v2 {
        min-height: 310px;
    }

        .program-card-v2 h3 {
            font-size: 1.4rem;
        }

    .home-regions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-region-card--featured, .regions-banner-panel, .home-region-card {
        grid-column: span 1;
    }

    .regions-page-layout {
        grid-template-columns: 1fr;
    }

    .regions-map-panel {
        position: static;
    }

    .regions-grid--catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .brand-logo-image {
        height: 34px;
    }

    .program-card-v2 {
        min-height: 280px;
        padding: 1.25rem;
        border-radius: 18px;
    }

        .program-card-v2 .program-icon {
            width: 62px;
            height: 62px;
            font-size: 1.7rem;
        }

        .program-card-v2 h3 {
            font-size: 1.25rem;
        }

        .program-card-v2 .program-desc {
            font-size: 0.92rem;
        }

    .regions-banner-panel {
        min-height: 180px;
    }

    .regions-banner-panel__content {
        padding: 1.25rem;
    }

        .regions-banner-panel__content strong {
            font-size: 1.8rem;
        }

    .home-region-card, .region-card-item {
        min-height: 200px;
        padding: 1rem;
    }

        .home-region-card h4, .region-card-item h4 {
            font-size: 1.25rem;
        }

    .home-regions-grid, .regions-grid--catalog {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-image {
        height: 28px;
    }

    .header-actions {
        gap: 0.7rem;
    }

    .lang-toggle, .login-btn {
        font-size: 0.92rem;
    }
}

@media (max-width: 1199.98px) {
    .regions-page-grid,
    .region-entities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .regions-page-banner {
        grid-column: span 2;
    }
}

@media (max-width: 991.98px) {
    .regions-page-grid,
    .region-entities-grid,
    .region-programs-section .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .regions-page-grid,
    .region-entities-grid {
        grid-template-columns: 1fr;
    }

    .regions-page-banner {
        grid-column: span 1;
    }

    .region-page-head h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 991.98px) {
    .programs-page-head {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .header-nav .nav-item {
        min-height: auto;
        padding: 0.75rem 1rem;
    }

    .programs-section .program-card-v2 {
        min-height: 220px;
    }

        .programs-section .program-card-v2 h3 {
            font-size: 1.3rem;
        }
}

@media (max-width: 991.98px) {
    header.site-header .header-row {
        min-height: 70px !important;
    }

    header.site-header .brand-logo-image {
        height: 40px !important;
    }
}

@media (max-width: 767.98px) {
    header.site-header .header-row {
        min-height: 64px !important;
    }

    header.site-header .brand-logo-image {
        height: 34px !important;
    }
}

@media (max-width: 767.98px) {
    .program-card-v2 .program-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .program-card-v2 h3 {
        margin-top: 3rem;
        font-size: 1.2rem;
    }

    .region-entity-card {
        padding: 1rem;
    }

    .entity-stats-compact .stat-label {
        font-size: 0.72rem;
    }

    .entity-stats-compact .stat-num {
        font-size: 0.85rem;
    }

    .page-pagination a,
    .page-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .home-regions-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 575.98px) {
    .program-status-filters {
        flex-wrap: wrap;
    }

        .program-status-filters button {
            flex: 1 1 auto;
            min-width: 70px;
        }
}

@media (max-width: 991.98px) {
    .ads-layout {
        grid-template-columns: 1fr !important;
        grid-template-areas: "list" "detail" !important;
    }

    .ads-list-panel {
        order: unset;
    }

    html[dir="ltr"] .ads-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767.98px) {
    .ads-detail-panel {
        padding: 1.25rem;
    }

        .ads-detail-panel .ads-detail-title {
            font-size: 1.2rem;
        }

    .naseej-pagination__btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }
}

@media (max-width: 991.98px) {
    body.login-page .auth-wrapper {
        padding-top: 3rem;
    }

    body.login-page .auth-card h2 {
        font-size: 2rem;
        line-height: 1.35;
    }
}

@media (max-width: 767.98px) {
    body.login-page .auth-wrapper {
        padding-top: 2.2rem;
    }

    body.login-page .auth-card {
        padding: 1.45rem 1rem;
    }

        body.login-page .auth-card h2 {
            font-size: 1.72rem;
        }

        body.login-page .auth-card .form-control {
            height: 46px;
            font-size: 15px;
        }

    body.login-page .footer-logo-img {
        height: 33px;
    }
}

@media (max-width: 767.98px) {
    h1,
    .hero-copy-wrap h1,
    .hero-slide-content h1,
    .about-hero h1,
    .detail-hero h1,
    .region-page-head h1,
    .programs-page-head__copy h1 {
        font-size: 28px !important;
    }

    .main-footer .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .main-footer .footer-right {
        text-align: center;
    }

    .main-footer .footer-logos-left {
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .regions-page-banner,
    .home-regions-section .regions-banner-panel {
        order: 0;
    }
}

@media (max-width: 767.98px) {
    .regions-page-banner {
        min-height: 200px;
    }

        .regions-page-banner::after {
            background: linear-gradient(180deg, rgba(13, 106, 65, 0.7) 0%, rgba(13, 106, 65, 0.82) 45%, rgba(13, 106, 65, 0.96) 100%);
        }

        .regions-page-banner .regions-banner-panel__art {
            inset: 0;
            width: 100%;
            background-position: left center;
            opacity: 0.42;
        }

        .regions-page-banner .regions-banner-panel__content {
            padding: 1rem 1.25rem;
        }

    .regions-banner-panel__copy {
        max-width: 100%;
        gap: 0.2rem;
    }

    .regions-banner-panel__number {
        font-size: 3rem;
    }

    .regions-banner-panel__title {
        font-size: 1.35rem;
    }

    .regions-banner-panel__desc {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .home-regions-section .regions-banner-panel {
        min-height: 200px;
    }

        .home-regions-section .regions-banner-panel::after {
            background: linear-gradient(180deg, rgba(13, 106, 65, 0.7) 0%, rgba(13, 106, 65, 0.82) 45%, rgba(13, 106, 65, 0.96) 100%);
        }

    .home-regions-section .regions-banner-panel__art {
        inset: 0;
        width: 100%;
        background-position: left center;
        opacity: 0.42;
    }

    .home-regions-section .regions-banner-panel__content {
        padding: 1rem 1.25rem;
    }

    body.auth-flat-page .auth-wrapper {
        padding-top: 2.2rem;
    }

    body.auth-flat-page .auth-card {
        padding: 1.45rem 1rem;
    }

        body.auth-flat-page .auth-card h2 {
            font-size: 28px;
            line-height: 1.35;
        }
}

@media (max-width: 991.98px) {
    .ads-layout,
    .program-detail-shell,
    .program-detail-hero__inner {
        grid-template-columns: 1fr !important;
    }

    .ads-layout {
        grid-template-areas:
            "list"
            "detail" !important;
    }

    .program-detail-hero__inner {
        grid-template-areas:
            "content"
            "art" !important;
    }

    .program-detail-hero__content {
        padding: 2rem 1.5rem;
        align-items: flex-start;
    }

    .program-detail-shell {
        grid-template-areas:
            "main"
            "sidebar" !important;
    }
}

@media (max-width: 767.98px) {
    .ads-detail-panel .ads-detail-title {
        font-size: 1.6rem !important;
    }

    .program-audience-grid {
        grid-template-columns: 1fr;
    }

    .program-detail-hero__art {
        min-height: 220px;
    }
}

@media (max-width: 991.98px) {
    .news-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-detail-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "article"
            "sidebar";
    }

    .news-detail-article {
        border-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .regions-banner-panel__headline {
        font-size: 28px;
        line-height: 42px !important;
    }

    .partners-carousel {
        grid-template-columns: 1fr;
    }

        .partners-carousel .strip-nav {
            display: none;
        }

    .partner-card {
        flex-basis: 156px;
        height: 82px;
    }

    .news-page-grid {
        grid-template-columns: 1fr;
    }

    .news-detail-image img {
        height: 240px;
    }

    .news-detail-article h1 {
        font-size: 1.9rem !important;
    }
}

@media (max-width: 767.98px) {
    .main-footer .footer-policy-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem 1rem;
        text-align: center;
    }

        .main-footer .footer-policy-links .policy-sep {
            display: none;
        }

        .main-footer .footer-policy-links a:last-of-type {
            width: 100%;
        }

    .main-footer .footer-copyright small {
        display: block;
        line-height: 1.9;
        text-align: center;
    }

    .main-footer .footer-logos-left {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
    }

    .main-footer .footer-logo-img {
        height: 34px;
    }

    .main-footer .footer-logos-left .ms-3 {
        margin-left: 0 !important;
    }

    .ads-detail-panel,
    .ads-list-panel {
        border-radius: 16px;
    }

    .ads-list-item {
        min-height: 104px;
    }
}

@media (max-width: 767.98px) {
    .regions-banner-panel__headline,
    .regions-page-banner .regions-banner-panel__content strong,
    .home-regions-section .regions-banner-panel__content strong {
        font-size: 26px !important;
    }
}

@media (max-width: 991.98px) {
    .ads-list-panel {
        height: auto;
    }

    .ads-list-items {
        overflow: visible;
    }
}

@media (max-width: 767.98px) {
    .region-list-card,
    .region-entity-card {
        min-height: 172px;
        padding: 1rem;
    }

    html[dir="rtl"] .regions-banner-panel__content,
    html[dir="rtl"] .regions-page-banner .regions-banner-panel__content {
        padding-inline: 1.2rem !important;
    }

    .ads-detail-panel .ads-detail-title {
        font-size: 1.05rem !important;
    }
}

@media (max-width: 991.98px) {
    .program-detail-hero .container {
        padding-inline: 0.75rem;
    }

    .program-detail-hero__inner {
        min-height: auto;
    }

    .program-detail-hero__art {
        min-height: 260px;
    }

    .program-detail-hero__content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .site-header .header-row {
        min-height: 70px;
        gap: 0.75rem;
    }

    .site-header .header-actions {
        margin-inline-start: auto;
    }

    .site-header .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-header .header-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        inset-inline-start: 0;
        inset-inline-end: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        padding: 0.8rem;
        border: 1px solid #edf2ef;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        z-index: 1100;
    }

        .site-header .header-nav .nav-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.7rem 0.9rem;
            border: 1px solid #edf2ef;
            border-radius: 10px;
            font-size: 0.95rem;
        }

        .site-header .header-nav .nav-mobile-only {
            display: flex;
        }

        .site-header .header-nav .nav-item.active::after {
            display: none;
        }

    .site-header .nav-toggle-input:checked ~ .header-nav {
        display: flex;
    }
}

@media (max-width: 767.98px) {
    .main-footer .footer-policy-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem 1rem;
        text-align: center;
    }

        .main-footer .footer-policy-links .policy-sep {
            display: none;
        }

        .main-footer .footer-policy-links a {
            white-space: normal;
        }
}
