/* ============================================
   Sadat Industrial City Portal
   Modern, clean, animated design
   ============================================ */

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

/* Restore fixed positioning support: only clip on body, not html */
@supports (overflow: clip) {
    html {
        overflow-x: unset;
    }
    body {
        overflow-x: clip;
    }
}

:root {
    --portal-primary: #2C2E85;
    --portal-primary-dark: #22246a;
    --portal-primary-light: #3d3f9e;
    --portal-accent: #2C2E85;
    --portal-bg: #f8fafc;
    --portal-card: #ffffff;
    --portal-text: #1e293b;
    --portal-text-muted: #64748b;
    --portal-border: #e2e8f0;
    --portal-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --portal-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --portal-shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --portal-radius: 1rem;
    --portal-radius-lg: 1.5rem;
}

body.portal-body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--portal-bg);
    color: var(--portal-text);
    max-width: 100%;
    overflow-x: clip;
    padding-top: 110px;
}

/* Arabic UI */
[dir="rtl"] body.portal-body {
    font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
}

.portal-body > main {
    max-width: 100%;
    min-width: 0;
}

.portal-main {
    background: var(--portal-bg);
}

.portal-register-page {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - 110px);
    background: url("../images/register-background.jpg") center / cover fixed;
}

.portal-register-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

.portal-register-page > * {
    position: relative;
    z-index: 1;
}

.portal-register-hero {
    min-height: 220px;
    background: transparent;
    color: #fff;
}

.portal-register-hero h1 {
    color: #fff;
    font-weight: 900;
}

.portal-register-hero .lead {
    color: rgba(255, 255, 255, 0.8);
}

.portal-register-content {
    background: transparent;
}

.portal-register-page .portal-card {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(6, 17, 38, 0.28);
    backdrop-filter: blur(14px);
}

.portal-register-page .portal-card:hover {
    border-color: rgba(218, 165, 32, 0.42);
    box-shadow: 0 30px 78px rgba(6, 17, 38, 0.36);
}

.portal-body.portal-entrance-lock {
    overflow: hidden;
}

.portal-entrance {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #061126;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.portal-entrance--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.portal-entrance__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-entrance__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(218, 165, 32, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(6, 17, 38, 0.18), rgba(6, 17, 38, 0.58));
    pointer-events: none;
}

.portal-entrance__skip {
    position: absolute;
    z-index: 3;
    inset-inline-end: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    min-width: 5.25rem;
    min-height: 2.55rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(6, 17, 38, 0.48);
    color: #fff;
    font-weight: 800;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.portal-entrance__skip:hover {
    background: rgba(218, 165, 32, 0.92);
    border-color: rgba(218, 165, 32, 0.95);
    transform: translateY(-2px);
}

/* ----- Header ----- */

.portal-header .navbar {
    position: relative;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

/* Static flow only — absolute brand/actions overlapped nav links (AR/EN vs مزودو الخدمة) */
.portal-header .navbar-brand {
    position: static;
    flex-shrink: 0;
}

.portal-header .navbar-collapse {
    flex-grow: 1;
    min-width: 0;
    justify-content: space-between;
}

.portal-header .navbar-collapse .portal-nav {
    margin: 0;
    justify-content: flex-start;
}

/* Menu alignment: left in EN (LTR), right in AR (RTL) — mobile / stacked */
[dir="rtl"] .portal-header .navbar-collapse .portal-nav {
    justify-content: flex-end;
}

@media (min-width: 992px) {
    .portal-header .navbar-collapse {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        align-content: center;
        gap: 0.75rem clamp(1rem, 2.5vw, 2rem);
    }

    .portal-header .navbar-collapse .portal-nav {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        padding-inline: clamp(0.75rem, 2vw, 2.5rem);
    }

    [dir="rtl"] .portal-header .navbar-collapse .portal-nav {
        justify-content: center;
    }

    .portal-header .navbar-collapse > .portal-header-actions {
        flex: 0 1 auto;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-inline-start: clamp(0.5rem, 1.5vw, 1.25rem);
    }
}

/* Bootstrap’s expanded .navbar-nav uses nowrap — links then paint under locale/actions */
.portal-header .navbar-nav.portal-nav {
    flex-wrap: wrap !important;
    row-gap: 0.45rem;
    column-gap: 0.35rem;
}

@media (min-width: 992px) {
    .portal-header .navbar-nav.portal-nav {
        column-gap: 0.65rem;
        row-gap: 0.5rem;
    }
}

/* Tight viewports: full-width nav row, actions row — no overlap with lang switcher */
@media (min-width: 992px) and (max-width: 1279.98px) {
    .portal-header .navbar-collapse .portal-nav {
        flex: 1 1 100%;
        min-width: 0;
        justify-content: center;
        padding-inline: 0.5rem;
        padding-bottom: 0.35rem;
        border-bottom: 1px solid var(--portal-border);
    }

    .portal-header .navbar-collapse > .portal-header-actions {
        flex: 1 1 100%;
        justify-content: center;
        margin-inline-start: 0 !important;
        padding-top: 0.35rem;
    }
}

.portal-header .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--portal-text) !important;
}

.portal-logo {
    height: 88px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .portal-logo {
        height: 72px;
    }
}

@media (max-width: 991.98px) {
    .portal-header .navbar-collapse {
        justify-content: flex-start;
        margin-top: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }

    .portal-header .navbar-collapse .portal-nav {
        margin: 0;
        padding: 0.5rem 0;
        gap: 0.5rem;
    }
}

/* Right-side header actions: solid locale toggle (avoid z-index stacking over nav links) */
.portal-header-actions {
    row-gap: 0.5rem;
    flex-shrink: 0;
    position: relative;
}

.portal-header-actions .btn,
.portal-header-actions .btn-group .btn {
    white-space: nowrap;
}

.portal-header-actions .btn-group {
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--portal-border);
    background: var(--portal-card);
}

.portal-header-actions .btn-group .btn {
    background-color: var(--portal-card);
    border-color: var(--portal-border);
    color: var(--portal-text-muted);
}

.portal-header-actions .btn-group .btn.active {
    background: var(--portal-primary);
    color: #fff !important;
    border-color: var(--portal-primary);
    z-index: 1;
}

.portal-header-actions .btn-portal-primary {
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.875rem;
}

.btn-portal-outline {
    border: 1px solid var(--portal-primary);
    color: var(--portal-primary);
    background: var(--portal-card);
    font-weight: 600;
    border-radius: 999px;
}

.btn-portal-outline:hover {
    background: rgba(44, 46, 133, 0.08);
    color: var(--portal-primary-dark);
    border-color: var(--portal-primary-dark);
}

/* ----- Admin multilingual tabs (TravelVlog-style) ----- */
.lang-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--portal-border);
    margin-bottom: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
}

.lang-tab {
    padding: 0.45rem 0.9rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--portal-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.lang-tab:hover { color: var(--portal-primary); }
.lang-tab.active {
    color: var(--portal-primary);
    border-bottom-color: var(--portal-primary);
}

.lang-pane { display: none; }
.lang-pane.active { display: block; }

.translate-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.translate-status {
    font-size: 0.85rem;
    color: var(--portal-text-muted);
}

@media (max-width: 520px) {
    .portal-header-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .portal-header-actions .btn-group {
        flex: 0 0 auto;
    }

    .portal-header-actions .btn {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
}

.brand-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
    color: white !important;
    font-size: 1.1rem;
}

.portal-nav .nav-link {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    color: var(--portal-text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

@media (min-width: 1200px) {
    .portal-nav .nav-link {
        padding-inline: 1rem;
    }
}

.portal-nav .nav-link:hover {
    color: var(--portal-primary) !important;
    background: rgba(44, 46, 133, 0.08);
}

.portal-nav .nav-link.active {
    background: var(--portal-primary);
    color: white !important;
}

.portal-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.portal-nav .nav-item { list-style: none; }

/* Industrial Activity dropdown - show on hover */
.portal-nav-dropdown {
    position: relative;
}

.portal-nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: 0;
    padding-top: 0.5rem;
    min-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: var(--portal-shadow-lg);
    border-radius: var(--portal-radius);
    border: 1px solid var(--portal-border);
    padding: 0.5rem 0;
}

.portal-nav-dropdown .dropdown-menu.show {
    display: block;
}

.portal-nav-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--portal-text) !important;
    font-size: 0.9rem;
}

.portal-nav-dropdown .dropdown-item:hover {
    background: rgba(44, 46, 133, 0.08);
    color: var(--portal-primary) !important;
}

[dir="rtl"] .portal-nav-dropdown .dropdown-menu {
    left: auto;
    right: 0;
}

/* ----- Premium public navbar refresh ----- */
.portal-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 1030;
    padding: 0;
    background:
        linear-gradient(135deg, rgba(6, 17, 38, 0.98), rgba(44, 46, 133, 0.96));
    border-bottom: 1px solid rgba(218, 165, 32, 0.18);
    box-shadow: 0 14px 36px rgba(6, 17, 38, 0.24);
    backdrop-filter: blur(18px);
}

.portal-header-nav {
    position: relative;
    z-index: 1035;
    overflow: visible;
    min-height: 76px;
    padding-block: 0.55rem;
}

.portal-header .navbar-brand {
    min-width: 0;
    padding: 0;
}

.portal-logo {
    height: 66px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.portal-logo--mobile {
    display: none;
}

.portal-header .navbar-toggler {
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.portal-header .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
}

.portal-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 46, 133, 0.14);
}

@media (min-width: 992px) {
    .portal-header .navbar-collapse {
        flex-wrap: nowrap;
        gap: clamp(0.75rem, 1.6vw, 1.35rem);
    }

    .portal-header .navbar-collapse .portal-nav {
        flex: 1 1 auto;
        padding: 0.38rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    .portal-header .navbar-collapse > .portal-header-actions {
        flex-wrap: nowrap !important;
        margin-inline-start: 0 !important;
    }
}

.portal-header .navbar-nav.portal-nav {
    column-gap: 0.2rem;
    row-gap: 0.35rem;
}

.portal-nav .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.52rem 0.9rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
}

.portal-nav .nav-link:hover,
.portal-nav .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.13);
}

.portal-nav .nav-link.active {
    color: #061126 !important;
    background: linear-gradient(135deg, #f2c764, #d6a72f);
    box-shadow: 0 12px 26px rgba(218, 165, 32, 0.24);
}

.portal-nav .nav-link.active::after {
    content: "";
    position: absolute;
    inset-inline: 1.15rem;
    bottom: 0.34rem;
    height: 2px;
    border-radius: 999px;
    background: rgba(218, 165, 32, 0.92);
}

.portal-nav-dropdown .dropdown-menu {
    z-index: 1060;
    margin-top: 0.8rem;
    padding: 0.75rem;
    border: 1px solid rgba(26, 31, 110, 0.12);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(6, 17, 38, 0.16);
    backdrop-filter: blur(16px);
}

.portal-nav-dropdown .dropdown-item {
    border-radius: 0.75rem;
    padding: 0.62rem 0.85rem;
    color: #334155 !important;
    font-weight: 700;
}

.portal-nav-dropdown .dropdown-item:hover,
.portal-nav-dropdown .dropdown-item:focus {
    background: rgba(44, 46, 133, 0.08);
    color: var(--portal-primary) !important;
}

.portal-header-actions {
    gap: 0.45rem !important;
}

.portal-mobile-locale {
    display: none;
}

.portal-header-actions .btn,
.portal-header-actions .btn-group .btn {
    min-height: 2.45rem;
    padding: 0.52rem 0.95rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
}

.portal-header-actions .btn-group {
    padding: 0.18rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.portal-header-actions .btn-group .btn {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.76);
}

.portal-header-actions .btn-group .btn.active {
    background: #fff;
    color: var(--portal-primary) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.portal-header-actions .btn-portal-outline {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.portal-header-actions .btn-portal-primary {
    background: linear-gradient(135deg, #f2c764, #d6a72f);
    color: #061126 !important;
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(218, 165, 32, 0.24);
}

@media (min-width: 992px) and (max-width: 1279.98px) {
    .portal-header .navbar-collapse .portal-nav {
        flex: 1 1 100%;
        border-radius: 1rem;
        padding-bottom: 0.38rem;
        border-bottom: 1px solid rgba(26, 31, 110, 0.1);
    }
}

@media (max-width: 1200px) {
    .portal-logo {
        height: 60px;
    }
}

@media (max-width: 991.98px) {
    body.portal-body {
        padding-top: 104px;
    }

    .portal-header-nav {
        position: relative;
        justify-content: flex-end;
        min-height: 70px;
    }

    .portal-header .navbar-brand {
        position: absolute;
        top: 9px;
        left: 58%;
        z-index: 1;
        margin: 0;
        transform: translateX(-50%);
    }

    .portal-logo {
        width: auto;
        max-width: min(52vw, 230px);
        height: 52px;
        object-fit: contain;
    }

    .portal-logo--desktop {
        display: none;
    }

    .portal-logo--mobile {
        display: block;
        max-width: min(54vw, 220px);
        height: 54px;
    }

    .portal-header .navbar-toggler {
        position: absolute;
        top: 15px;
        right: 0.75rem;
        z-index: 2;
        width: 2.35rem;
        height: 2.35rem;
        margin: 0;
        transform: none;
    }

    .portal-mobile-locale {
        position: absolute;
        top: 1rem;
        left: 0.25rem;
        z-index: 2;
        display: block;
        margin: 0;
        transform: none;
    }

    [dir="ltr"] .portal-mobile-locale {
        left: 0.25rem;
    }

    [dir="rtl"] .portal-mobile-locale {
        left: 0.25rem;
        right: auto;
        order: initial;
    }

    [dir="rtl"] .portal-header .navbar-toggler {
        right: 0.75rem;
        left: auto;
    }

    .portal-mobile-locale .btn-group {
        padding: 0.16rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
    }

    .portal-mobile-locale .btn {
        min-height: 1.85rem;
        padding: 0.34rem 0.48rem;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: rgba(255, 255, 255, 0.76);
        font-size: 0.68rem;
        font-weight: 800;
        line-height: 1;
    }

    .portal-mobile-locale .btn.active {
        background: #fff;
        color: var(--portal-primary) !important;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    }

    .portal-desktop-locale {
        display: none;
    }

    .portal-header .navbar-collapse {
        flex-basis: 100%;
        margin-top: 4.75rem;
        padding: 0.85rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 1.15rem;
        background: rgba(6, 17, 38, 0.96);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    }

    .portal-header .navbar-collapse .portal-nav {
        padding: 0;
    }

    .portal-nav .nav-link {
        width: 100%;
        justify-content: flex-start;
        border-radius: 0.8rem;
    }

    [dir="rtl"] .portal-nav .nav-link {
        justify-content: flex-end;
    }

    .portal-nav .nav-link.active::after {
        display: none;
    }

    .portal-nav-dropdown .dropdown-menu {
        position: static;
        max-height: 18rem;
        margin-top: 0.35rem;
        box-shadow: none;
        border-radius: 0.9rem;
    }

    .portal-header-actions {
        justify-content: stretch !important;
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

/* ----- Hero Section (split / association-style) ----- */
.portal-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.portal-hero--split {
    background-color: #eef3fb;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: clamp(28rem, 56vh, 40rem);
    padding-top: clamp(3.75rem, 10vw, 7rem);
}

/* Full-bleed photo (URL from inline --portal-hero-bg on section) */
.portal-hero--split::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--portal-hero-bg);
    /* Cover + top anchor: keep the top of the artwork visible (less top crop) */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform-origin: center center;
    backface-visibility: hidden;
}

/* Readability scrim: strong on text side (left in LTR, right in RTL) */
.portal-hero--split::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(248, 250, 252, 0.94) 0%, rgba(248, 250, 252, 0.78) 28%, rgba(248, 250, 252, 0.42) 46%, rgba(248, 250, 252, 0.12) 62%, transparent 78%),
        radial-gradient(ellipse 85% 55% at 100% 25%, rgba(44, 46, 133, 0.07), transparent 55%),
        radial-gradient(ellipse 65% 45% at 0% 78%, rgba(34, 197, 94, 0.05), transparent 50%);
}

.portal-hero--cinematic {
    min-height: clamp(34rem, 72vh, 46rem);
    background-color: #061126;
    isolation: isolate;
}

.portal-hero--cinematic::before {
    filter: saturate(0.92) contrast(1.08);
    transform: scale(1.02);
}

.portal-hero--cinematic::after,
[dir="rtl"] .portal-hero--cinematic::after {
    background:
        linear-gradient(90deg, rgba(3, 10, 27, 0.88), rgba(6, 17, 38, 0.72) 42%, rgba(6, 17, 38, 0.38) 68%, rgba(6, 17, 38, 0.2)),
        radial-gradient(circle at 24% 30%, rgba(218, 165, 32, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(6, 17, 38, 0.08), rgba(6, 17, 38, 0.86));
}

[dir="rtl"] .portal-hero--cinematic::after {
    background:
        linear-gradient(270deg, rgba(3, 10, 27, 0.88), rgba(6, 17, 38, 0.72) 42%, rgba(6, 17, 38, 0.38) 68%, rgba(6, 17, 38, 0.2)),
        radial-gradient(circle at 76% 30%, rgba(218, 165, 32, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(6, 17, 38, 0.08), rgba(6, 17, 38, 0.86));
}

.portal-hero-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(218, 165, 32, 0.48);
    border-radius: 999px;
    background: rgba(218, 165, 32, 0.13);
    color: #f8dc89;
    font-weight: 800;
    font-size: 0.88rem;
}

.portal-hero--cinematic .portal-hero-association-heading {
    color: #fff;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.portal-hero--cinematic .portal-home-hero__title .portal-hero-about-accent {
    color: #f0c35a;
}

[dir="rtl"] .portal-hero--cinematic .portal-hero-association-heading {
    font-size: clamp(2.65rem, 6.6vw, 4.85rem);
    line-height: 1.16;
    letter-spacing: 0;
    max-width: 820px;
}

.portal-hero-association-line {
    display: block;
    white-space: nowrap;
}

.portal-hero--cinematic .portal-hero-about-text.portal-hero-association-body {
    color: rgba(255, 255, 255, 0.86);
    text-shadow: none;
    max-width: 43rem;
}

.portal-hero-btn--primary {
    background: linear-gradient(135deg, #d7a72f, #a97312);
    box-shadow: 0 16px 34px rgba(217, 166, 45, 0.28);
}

.portal-hero-btn--outline {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
}

.portal-hero-btn--ghost {
    color: #f8dc89 !important;
    border: 1px solid rgba(218, 165, 32, 0.45);
    background: rgba(5, 16, 36, 0.45);
}

.portal-quick-access {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.35rem;
    color: rgba(255, 255, 255, 0.64);
}

.portal-quick-access--glass {
    width: fit-content;
    max-width: min(100%, 48rem);
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    background: rgba(6, 17, 38, 0.42);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.portal-quick-access span {
    font-weight: 800;
    color: #f8dc89;
}

.portal-quick-access a {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.07);
    font-weight: 700;
    font-size: 0.88rem;
}

.portal-quick-access a:hover {
    color: #061126;
    background: #fff;
}

[dir="rtl"] .portal-hero--split::after {
    background:
        linear-gradient(to left, rgba(248, 250, 252, 0.94) 0%, rgba(248, 250, 252, 0.78) 28%, rgba(248, 250, 252, 0.42) 46%, rgba(248, 250, 252, 0.12) 62%, transparent 78%),
        radial-gradient(ellipse 85% 55% at 0% 25%, rgba(44, 46, 133, 0.07), transparent 55%),
        radial-gradient(ellipse 65% 45% at 100% 78%, rgba(34, 197, 94, 0.05), transparent 50%);
}

.portal-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 0;
}

.portal-hero--split .portal-hero-title,
.portal-hero--split .portal-hero-kicker {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 1.25rem rgba(255, 255, 255, 0.65);
}

.portal-hero--split .portal-hero-about-heading,
.portal-hero--split .portal-hero-association-heading {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.portal-hero--split .portal-hero-about-text {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.portal-hero-text {
    text-align: start;
}

.portal-hero-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--portal-primary);
    margin-bottom: 0;
}

.portal-hero-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.portal-hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--portal-text-muted);
    max-width: 34rem;
}

.portal-hero-about-heading {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.35;
}

/* Hero main title (association name) — two lines, large type */
.portal-hero-association-heading {
    font-size: clamp(2rem, 5.5vw, 3.15rem);
    font-weight: 800;
    color: #001b48;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.portal-hero-association-heading .portal-hero-association-line {
    display: block;
}

.portal-hero-association-heading .portal-hero-association-line + .portal-hero-association-line {
    margin-top: 0.12em;
}

.portal-hero-about-heading .portal-hero-about-accent,
.portal-hero-association-heading .portal-hero-about-accent {
    color: #e07000;
}

.portal-hero-about-heading .portal-hero-about-navy,
.portal-hero-association-heading .portal-hero-about-navy {
    color: #001b48;
}

.portal-hero-about-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--portal-text-muted);
    max-width: 36rem;
}

/* Hero association paragraph — larger (must follow .portal-hero-about-text so size wins) */
.portal-hero-about-text.portal-hero-association-body {
    font-size: clamp(1.12rem, 2.4vw, 1.42rem);
    line-height: 1.75;
    max-width: 38rem;
    color: #000;
}

.portal-hero--split .portal-hero-about-text.portal-hero-association-body {
    color: #000;
    text-shadow: none;
}

@media (max-width: 991.98px) {
    /* Let the full intro read on mobile without a nested scroll area */
    .portal-hero-about-text {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    [dir="rtl"] .portal-hero-about-text {
        padding-left: 0;
    }
}

.portal-hero-btn {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.portal-hero-btn--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important;
    border: none;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.portal-hero-btn--primary:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.4);
}

.portal-hero-btn--outline {
    background: transparent;
    color: #2563eb !important;
    border: 2px solid #2563eb;
}

.portal-hero-btn--outline:hover {
    background: rgba(37, 99, 235, 0.06);
    color: #1d4ed8 !important;
    transform: translateY(-2px);
}

/* Hero visual (right column) */
.portal-hero-visual-col {
    position: relative;
}

.portal-hero-visual {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 2.5rem;
}

.portal-hero-visual--minimal {
    min-height: 200px;
    padding: 2rem 0 3rem;
}

.portal-hero-visual-col--bg-only .portal-hero-big-num {
    opacity: 0.35;
    text-shadow: 0 2px 24px rgba(255, 255, 255, 0.95);
}

.portal-hero-visual-col--bg-only .portal-hero-caption-ar {
    color: #1e40af;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 1px 0 rgba(255, 255, 255, 0.9);
}

.portal-hero-big-num {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    font-size: clamp(7rem, 28vw, 14rem);
    font-weight: 800;
    line-height: 1;
    color: #2563eb;
    opacity: 0.22;
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

.portal-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    z-index: 0;
    pointer-events: none;
}

.portal-hero-blob--a {
    width: min(180px, 45vw);
    height: min(180px, 45vw);
    background: rgba(52, 211, 153, 0.35);
    top: 8%;
    left: 5%;
    opacity: 0.9;
}

.portal-hero-blob--b {
    width: min(120px, 30vw);
    height: min(120px, 30vw);
    background: rgba(96, 165, 250, 0.4);
    bottom: 12%;
    right: 8%;
}

.portal-hero-img-wrap {
    position: relative;
    z-index: 2;
    width: min(100%, 420px);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
}

/* Wide hero artwork: use full column width, no clipping */
.portal-hero-img-wrap--fullbleed {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
}

.portal-hero-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: cover;
    aspect-ratio: 900 / 700;
}

/* Full-bleed / landscape hero art — entire graphic visible, no crop */
.portal-hero-img--contain {
    object-fit: contain;
    object-position: center center;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    aspect-ratio: auto;
    margin-inline: auto;
    vertical-align: middle;
}

/* Undo base hero photo crop rules when using --contain (higher specificity) */
.portal-hero-img.portal-hero-img--contain {
    object-fit: contain;
    aspect-ratio: auto;
}

.portal-hero-caption-ar {
    position: absolute;
    bottom: 0;
    right: 4%;
    z-index: 3;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2563eb;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

[dir="rtl"] .portal-hero-caption-ar {
    right: auto;
    left: 4%;
}

@media (max-width: 991.98px) {
    .portal-hero-content .row {
        justify-content: center;
    }

    .portal-hero-text {
        text-align: center;
    }

    /* RTL: centered text still needs auto margins so max-width blocks sit in the middle */
    .portal-hero-text .portal-hero-association-heading,
    .portal-hero-text .portal-hero-about-text {
        margin-left: auto;
        margin-right: auto;
    }

    .portal-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .portal-hero-actions {
        justify-content: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .portal-hero-visual {
        min-height: 240px;
        padding-bottom: 2rem;
    }

    /*
     * contain = entire image visible (no side crop). Letterboxing uses #eef3fb from the section.
     * ::after scrim stays z-index:1; copy stays z-index:2 (see .portal-hero-content).
     */
    .portal-hero--split::before {
        background-size: contain;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .portal-hero--split::after {
        background:
            linear-gradient(to bottom, rgba(248, 250, 252, 0.82) 0%, rgba(248, 250, 252, 0.45) 38%, rgba(248, 250, 252, 0.12) 72%, rgba(248, 250, 252, 0.04) 100%),
            radial-gradient(ellipse 95% 45% at 50% 15%, rgba(44, 46, 133, 0.07), transparent 60%);
    }

    [dir="rtl"] .portal-hero--split::after {
        background:
            linear-gradient(to bottom, rgba(248, 250, 252, 0.82) 0%, rgba(248, 250, 252, 0.45) 38%, rgba(248, 250, 252, 0.12) 72%, rgba(248, 250, 252, 0.04) 100%),
            radial-gradient(ellipse 95% 45% at 50% 15%, rgba(44, 46, 133, 0.07), transparent 60%);
    }

    /* Beat RTL / utility rules that keep hero copy start-aligned on small screens */
    .portal-hero-text,
    .portal-hero-text h1,
    .portal-hero-text p {
        text-align: center !important;
    }
}

/* Phones: full-width CTAs, roomier stats; same width-fit background as ≤991px */
@media (max-width: 575.98px) {
    .portal-hero--split {
        min-height: clamp(22rem, 50vh, 34rem);
        padding-top: clamp(2rem, 6vw, 3.5rem);
        padding-bottom: 1.5rem;
    }

    .portal-hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 22rem;
        margin-inline: auto;
        gap: 0.65rem;
    }

    .portal-hero-actions .portal-hero-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .portal-stats-bar {
        padding: 1.35rem 1rem;
    }

    .portal-stat-item .stat-value {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }

    .portal-stat-item .stat-label {
        font-size: 0.8rem;
        line-height: 1.35;
        padding-inline: 0.15rem;
    }
}

/* ----- Stats Bar ----- */
.portal-stats-bar {
    background: white;
    border-radius: var(--portal-radius-lg);
    padding: 1.5rem 2rem;
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
    box-shadow: var(--portal-shadow-lg);
}

/* When stats follow page content instead of overlapping the hero */
.portal-stats-bar.portal-stats-bar--inline {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Stats row sits right under hero, overlapping its bottom (original layout) */
.portal-hero-after-stats {
    position: relative;
    z-index: 5;
    margin-bottom: 0.5rem;
}

.portal-stat-item {
    text-align: center;
}

.portal-stat-item .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--portal-primary);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

/* 24/7 stays visible even if JS does not run (no opacity:0 gate) */
.portal-stats-bar .portal-stat-counter--static {
    opacity: 1;
}

.portal-stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--portal-text-muted);
}

/* ----- Section Headers ----- */
.portal-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--portal-text);
}

.portal-section-subtitle {
    color: var(--portal-text-muted);
    font-size: 0.95rem;
}

/* ----- Cards (TravelVlog style) ----- */
.portal-card {
    background: var(--portal-card);
    border-radius: var(--portal-radius);
    border: 1px solid var(--portal-border);
    box-shadow: var(--portal-shadow);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--portal-shadow-hover);
    border-color: rgba(44, 46, 133, 0.2);
}

.portal-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--portal-accent);
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

/* Full-bleed media strip at top of card (img + placeholder divs) */
.portal-card-img {
    width: 100%;
    display: block;
    height: 200px;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.portal-card > img.portal-card-img {
    flex-shrink: 0;
    max-width: none;
}

.portal-card-img.d-flex {
    width: 100%;
}

.portal-card-body {
    padding: 1.25rem;
}

.portal-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--portal-text);
}

.portal-card-meta {
    font-size: 0.85rem;
    color: var(--portal-text-muted);
}

.portal-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--portal-primary);
    text-decoration: none;
    transition: gap 0.25s;
}

.portal-card-btn:hover {
    color: var(--portal-primary-dark);
    gap: 0.75rem;
}

/* ----- Deal/Job Cards ----- */
.portal-deal-card {
    background: white;
    border-radius: var(--portal-radius);
    border: 1px solid var(--portal-border);
    padding: 1.25rem;
    transition: all 0.35s ease;
}

.portal-deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--portal-shadow-hover);
}

.portal-deal-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

/* ----- Destination/Factory Cards ----- */
.portal-dest-card {
    position: relative;
    border-radius: var(--portal-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: transform 0.4s ease;
}

.portal-dest-card:hover {
    transform: scale(1.03);
}

.portal-dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-dest-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.portal-dest-card-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.portal-dest-card-meta {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
}

/* ----- Hotel/Training Cards ----- */
.portal-hotel-card {
    background: white;
    border-radius: var(--portal-radius);
    overflow: hidden;
    border: 1px solid var(--portal-border);
    transition: all 0.35s ease;
}

.portal-hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--portal-shadow-hover);
}

.portal-hotel-img {
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.portal-hotel-body {
    padding: 1.25rem;
}

.portal-hotel-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.portal-training-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.portal-training-card {
    position: relative;
    display: grid;
    grid-template-rows: 150px 1fr;
    overflow: hidden;
    border: 1px solid rgba(44, 46, 133, 0.12);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(6, 17, 38, 0.09);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.portal-training-card::before {
    content: "";
    position: absolute;
    inset-inline: 1rem;
    top: 0;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #2c2e85, #d6a72f);
    z-index: 2;
}

.portal-training-card-link:hover .portal-training-card {
    transform: translateY(-7px);
    border-color: rgba(44, 46, 133, 0.28);
    box-shadow: 0 28px 62px rgba(6, 17, 38, 0.16);
}

.portal-training-card__media {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(44, 46, 133, 0.94), rgba(6, 17, 38, 0.88)),
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: auto, 2.2rem 2.2rem, 2.2rem 2.2rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 4rem;
}

.portal-training-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(218, 165, 32, 0.22), transparent 32%),
        linear-gradient(180deg, transparent, rgba(6, 17, 38, 0.28));
    pointer-events: none;
}

.portal-training-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.portal-training-card-link:hover .portal-training-card__media img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.portal-training-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.15rem;
}

.portal-training-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: -2rem;
}

.portal-training-card__status,
.portal-training-card__badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(44, 46, 133, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--portal-primary);
    font-size: 0.8rem;
    font-weight: 900;
}

.portal-training-card__status {
    padding: 0.38rem 0.72rem;
    box-shadow: 0 10px 24px rgba(6, 17, 38, 0.1);
}

.portal-training-card__icon {
    width: 3.1rem;
    height: 3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    border-radius: 1rem;
    background: linear-gradient(135deg, #d6a72f, #a97312);
    color: #fff;
    box-shadow: 0 14px 28px rgba(169, 115, 18, 0.22);
}

.portal-training-card__title {
    margin: 0;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.35;
}

.portal-training-card__desc {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
}

.portal-training-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portal-training-card__badges span {
    padding: 0.34rem 0.65rem;
    background: rgba(44, 46, 133, 0.06);
}

.portal-training-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(44, 46, 133, 0.1);
    color: var(--portal-primary);
    font-weight: 900;
}

.portal-training-card__cta i {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(44, 46, 133, 0.08);
    font-size: 1.2rem;
    transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.portal-training-card-link:hover .portal-training-card__cta i {
    background: var(--portal-primary);
    color: #fff;
    transform: translateX(-3px);
}

[dir="ltr"] .portal-training-card-link:hover .portal-training-card__cta i {
    transform: translateX(3px);
}

/* ----- Testimonials ----- */
.portal-why-sadat {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(rgba(116, 55, 7, 0.42), rgba(116, 55, 7, 0.5)),
        url("../images/why-sadat-background.jpg") center / cover;
}

.portal-why-sadat::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(90deg, rgba(6, 17, 38, 0.12), transparent 42%, rgba(6, 17, 38, 0.1));
}

.portal-why-sadat > .container {
    position: relative;
    z-index: 1;
}

.portal-why-sadat .portal-section-title {
    color: #fff;
    text-shadow: 0 10px 28px rgba(6, 17, 38, 0.25);
}

.portal-testimonial {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 247, 237, 0.94));
    border-radius: 1.35rem;
    padding: 1.6rem 1.45rem;
    border: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: 0 20px 46px rgba(116, 55, 7, 0.18);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portal-testimonial::before {
    content: "";
    position: absolute;
    inset-inline: 1.15rem;
    top: 0;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, #d6a72f, transparent);
}

.portal-testimonial::after {
    content: "";
    position: absolute;
    width: 8rem;
    height: 8rem;
    inset: auto -3rem -3.5rem auto;
    border: 1px solid rgba(218, 165, 32, 0.18);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.08), transparent 64%);
    pointer-events: none;
}

.portal-testimonial:hover {
    transform: translateY(-7px);
    border-color: rgba(218, 165, 32, 0.5);
    box-shadow: 0 30px 68px rgba(116, 55, 7, 0.24);
}

.portal-testimonial-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.portal-testimonial-head strong {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.35;
}

.portal-testimonial-avatar {
    width: 3.35rem;
    height: 3.35rem;
    flex: 0 0 auto;
    border-radius: 1rem;
    background: linear-gradient(135deg, #061126, var(--portal-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 14px 28px rgba(6, 17, 38, 0.18);
}

.portal-testimonial-count {
    position: absolute;
    inset-inline-end: 1.25rem;
    top: 1rem;
    color: rgba(116, 55, 7, 0.09);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.portal-testimonial p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 600;
}

/* ----- Animations ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.portal-animate-delay-1 { animation-delay: 0.1s; }
.portal-animate-delay-2 { animation-delay: 0.2s; }
.portal-animate-delay-3 { animation-delay: 0.3s; }

/* ----- Scroll reveal (animate when in view) ----- */
.portal-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.portal-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Footer ----- */
.portal-footer {
    background: var(--portal-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
}

/* ----- Links ----- */
.portal-body a {
    color: var(--portal-primary);
    text-decoration: none;
}

.portal-body a:hover {
    color: var(--portal-primary-dark);
}

/* ----- Buttons (blue background = white text) ----- */
.btn-portal-primary,
.btn-portal-primary:hover,
.btn-search,
.btn-portal-about,
.btn-portal-about:hover,
.portal-nav .nav-link.active {
    color: white !important;
}

.btn-portal-primary {
    background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
    color: white !important;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-portal-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(44, 46, 133, 0.35);
    color: white;
}

/* ----- Services section ----- */
.portal-services {
    background:
        linear-gradient(rgba(6, 17, 38, 0.78), rgba(6, 17, 38, 0.72)),
        url("../images/background3.jpg") center / cover;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.portal-services-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f2c764;
}

.portal-services-gear {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(209, 213, 219, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.portal-services-gear--top {
    top: -20px;
    right: -30px;
}

.portal-services-gear--bottom {
    bottom: -20px;
    right: -30px;
}

[dir="rtl"] .portal-services-gear--top,
[dir="rtl"] .portal-services-gear--bottom {
    right: auto;
    left: -30px;
}

.portal-service-card {
    text-align: center;
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
}

.portal-service-card--link {
    display: block;
    height: 100%;
    min-height: 13rem;
    padding: 1.8rem 1.35rem;
    border: 1px solid rgba(6, 17, 38, 0.08);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 36px rgba(6, 17, 38, 0.06);
    color: inherit;
}

.portal-service-card--link:hover {
    color: inherit;
    border-color: rgba(218, 165, 32, 0.38);
}

.portal-service-card:hover {
    transform: translateY(-4px);
}

.portal-service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.portal-service-icon i {
    font-size: 1.75rem;
    color: white;
}

.portal-service-title {
    font-size: 1rem;
    font-weight: 700;
    color: #b45309;
    margin-bottom: 0.5rem;
}

.portal-service-desc {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .portal-services {
        padding-top: max(2rem, env(safe-area-inset-top, 0px));
        padding-bottom: max(3rem, calc(2.5rem + env(safe-area-inset-bottom, 0px)));
    }

    .portal-services-title {
        margin-bottom: 1.75rem !important;
    }

    .portal-service-card {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* ----- About Us section ----- */
.portal-about-bg {
    position: absolute;
    top: 50%;
    right: -2rem;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(44, 46, 133, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

[dir="rtl"] .portal-about-bg {
    right: auto;
    left: -2rem;
}

.btn-portal-about {
    background: var(--portal-primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    transition: background 0.25s, transform 0.2s;
}

.btn-portal-about:hover {
    background: var(--portal-primary-dark);
    color: white;
    transform: translateY(-1px);
}

/* ----- Page content wrapper ----- */
.portal-page-content {
    padding: 3rem 0;
    overflow-x: clip;
}

/* ----- Auth & form pages ----- */
.portal-card .form-control,
.portal-card .form-select {
    border: 1px solid var(--portal-border);
    border-radius: 0.5rem;
}

.portal-card .form-control:focus,
.portal-card .form-select:focus {
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 46, 133, 0.2);
}

.portal-card .form-check-input:checked {
    background-color: var(--portal-primary);
    border-color: var(--portal-primary);
}

/* ============================================
   Global responsive baseline (portal pages)
   Prevents horizontal scroll; improves small screens
   ============================================ */

.portal-body main {
    overflow-x: clip;
    width: 100%;
    margin: 0;
}

/* Media never wider than the content column */
.portal-body main img,
.portal-body main video {
    max-width: 100%;
}

.portal-body main .ratio iframe,
.portal-body main .ratio video {
    max-width: 100%;
}

/* Bootstrap columns: allow flex items to shrink (avoids overflow) */
.portal-body main .row > [class*="col-"] {
    min-width: 0;
}

/* Cards / grids common to directory, jobs, dashboard */
.portal-hotel-card,
.portal-dest-card,
.portal-deal-card,
.portal-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Horizontal scroll tables — smooth on touch */
.portal-body main .table-responsive {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Long text / URLs in cells and cards */
.portal-body main td,
.portal-body main th,
.portal-body main .portal-card-meta {
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .portal-page-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Extra gutter on phones + notched devices */
@media (max-width: 575.98px) {
    .portal-body .container:not(.portal-hero-content),
    .portal-body .container-fluid {
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    }
}

.portal-footer {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

/* Hero strips that span full width — keep inner container only */
section.portal-hero {
    max-width: 100%;
    overflow-x: clip;
}

/* Stacked flex sections (filters, actions) */
@media (max-width: 575.98px) {
    .portal-body main .d-flex.flex-wrap.gap-3,
    .portal-body main .d-flex.flex-wrap.gap-4 {
        gap: 0.75rem !important;
    }
}

/* Main content entry — subtle continuity between public pages */
@media (prefers-reduced-motion: no-preference) {
    .portal-main.portal-page-transition {
        animation: portalMainIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes portalMainIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }

    html.portal-nav-transition-root::view-transition-old(root),
    html.portal-nav-transition-root::view-transition-new(root) {
        animation-duration: 0.32s;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-main.portal-page-transition {
        animation: none;
    }
}

.portal-hero--cinematic .portal-hero-btn--primary {
    background: linear-gradient(135deg, #d7a72f, #a97312);
    box-shadow: 0 16px 34px rgba(217, 166, 45, 0.28);
}

.portal-hero--cinematic .portal-hero-btn--primary:hover {
    box-shadow: 0 18px 38px rgba(217, 166, 45, 0.34);
}

/* ----- Public page themes and section motion ----- */
.portal-theme-section,
.portal-themed-hero,
.inv-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.portal-hero--factories,
.portal-hero--jobs,
.portal-hero--news,
.portal-hero--training,
.portal-hero--invest,
.portal-hero--matchmaking,
.portal-hero--dashboard {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.portal-theme-section > *,
.portal-themed-hero > *,
.inv-page > * {
    position: relative;
    z-index: 2;
}

.portal-theme-section::before,
.portal-theme-section::after,
.portal-themed-hero::before,
.portal-themed-hero::after,
.inv-page::before,
.inv-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.portal-theme-news::before,
.portal-themed-hero--news::before,
.portal-hero--news::before {
    background:
        repeating-linear-gradient(90deg, rgba(6, 17, 38, 0.045) 0 1px, transparent 1px 28%),
        repeating-linear-gradient(0deg, transparent 0 1.15rem, rgba(6, 17, 38, 0.035) 1.15rem 1.2rem);
    opacity: 0.75;
}

.portal-theme-invest::before,
.portal-themed-hero--invest::before,
.portal-hero--invest::before,
.inv-page::before {
    background:
        linear-gradient(135deg, transparent 0 56%, rgba(218, 165, 32, 0.13) 56.2% 57%, transparent 57.2%),
        radial-gradient(circle at 16% 64%, rgba(218, 165, 32, 0.18) 0 0.28rem, transparent 0.34rem),
        radial-gradient(circle at 35% 52%, rgba(44, 46, 133, 0.13) 0 0.24rem, transparent 0.3rem),
        radial-gradient(circle at 58% 40%, rgba(218, 165, 32, 0.18) 0 0.28rem, transparent 0.34rem),
        linear-gradient(0deg, rgba(44, 46, 133, 0.08) 0 0.35rem, transparent 0.35rem 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 4.5rem 2.2rem;
    animation: portal-market-rise 16s ease-in-out infinite alternate;
}

.portal-theme-factories::before,
.portal-themed-hero--factory::before,
.portal-hero--factories::before {
    width: 34rem;
    height: 34rem;
    inset: auto auto -10rem -8rem;
    background: url("../images/industrial-gear-icon.svg") center / contain no-repeat;
    opacity: 0.13;
    animation: portal-gear-spin 42s linear infinite;
}

[dir="rtl"] .portal-theme-factories::before,
[dir="rtl"] .portal-themed-hero--factory::before,
[dir="rtl"] .portal-hero--factories::before {
    inset: auto -8rem -10rem auto;
}

.portal-theme-factories::after,
.portal-themed-hero--factory::after,
.portal-hero--factories::after {
    width: 21rem;
    height: 21rem;
    inset: 3rem 8% auto auto;
    background: url("../images/industrial-gear-icon.svg") center / contain no-repeat;
    opacity: 0.1;
    animation: portal-gear-spin-reverse 36s linear infinite;
}

.portal-theme-factories::before,
.portal-theme-factories::after {
    display: none;
}

.portal-theme-factories .portal-factory-gear {
    position: absolute;
    z-index: 0;
    display: block;
    pointer-events: none;
    background: url("../images/industrial-gear-icon.svg") center / contain no-repeat;
    opacity: 0.085;
}

.portal-theme-factories .portal-factory-gear--one {
    width: 23rem;
    height: 23rem;
    inset: -7rem auto auto -5.5rem;
    opacity: 0.1;
    animation: portal-gear-spin-reverse 48s linear infinite;
}

.portal-theme-factories .portal-factory-gear--two {
    width: 18rem;
    height: 18rem;
    inset: -4.5rem -4.5rem auto auto;
    opacity: 0.085;
    animation: portal-gear-spin 54s linear infinite;
}

.portal-theme-factories .portal-factory-gear--three {
    width: 27rem;
    height: 27rem;
    inset: auto auto -9rem -6.5rem;
    opacity: 0.095;
    animation: portal-gear-spin 56s linear infinite;
}

.portal-theme-factories .portal-factory-gear--four {
    width: 20rem;
    height: 20rem;
    inset: auto -5rem -6.5rem auto;
    opacity: 0.08;
    animation: portal-gear-spin-reverse 44s linear infinite;
}

[dir="rtl"] .portal-theme-factories .portal-factory-gear--one {
    inset: -7rem -5.5rem auto auto;
}

[dir="rtl"] .portal-theme-factories .portal-factory-gear--two {
    inset: -4.5rem auto auto -4.5rem;
}

[dir="rtl"] .portal-theme-factories .portal-factory-gear--three {
    inset: auto -6.5rem -9rem auto;
}

[dir="rtl"] .portal-theme-factories .portal-factory-gear--four {
    inset: auto auto -6.5rem -5rem;
}

.portal-factory-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.portal-factory-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(26, 31, 110, 0.12);
    border-radius: 1.35rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 18px 46px rgba(6, 17, 38, 0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.portal-factory-card::before {
    content: "";
    position: absolute;
    inset-inline: 1.15rem;
    top: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, #d6a72f, transparent);
    opacity: 0.9;
    z-index: 2;
}

.portal-factory-card-link:hover .portal-factory-card {
    transform: translateY(-8px);
    border-color: rgba(218, 165, 32, 0.42);
    box-shadow: 0 28px 68px rgba(6, 17, 38, 0.18);
}

.portal-factory-card__media {
    position: relative;
    height: 215px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(6, 17, 38, 0.96), rgba(44, 46, 133, 0.82)),
        url("../images/background3.jpg") center / cover;
}

.portal-factory-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 17, 38, 0.04), rgba(6, 17, 38, 0.72)),
        radial-gradient(circle at 18% 18%, rgba(218, 165, 32, 0.16), transparent 30%);
    pointer-events: none;
}

.portal-factory-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.portal-factory-card-link:hover .portal-factory-card__media img {
    transform: scale(1.08);
    filter: saturate(1.05) contrast(1.04);
}

.portal-factory-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.74);
    font-size: 4.5rem;
}

.portal-factory-card__sector {
    position: absolute;
    z-index: 2;
    inset-inline-start: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
    padding: 0.42rem 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(6, 17, 38, 0.54);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    backdrop-filter: blur(10px);
}

.portal-factory-card__body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.4rem 1.35rem 1.35rem;
}

.portal-factory-card__icon {
    position: absolute;
    inset-inline-end: 1.25rem;
    top: -1.45rem;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    border-radius: 1rem;
    background: linear-gradient(135deg, #d6a72f, #a97312);
    color: #fff;
    box-shadow: 0 14px 28px rgba(169, 115, 18, 0.24);
}

.portal-factory-card__title {
    margin: 0 0 0.7rem;
    padding-inline-end: 3.2rem;
    color: #0f172a;
    font-size: 1.14rem;
    font-weight: 900;
    line-height: 1.35;
}

[dir="rtl"] .portal-factory-card__title {
    padding-inline-end: 0;
    padding-inline-start: 3.2rem;
}

.portal-factory-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
}

.portal-factory-card__meta span,
.portal-factory-card__jobs {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.portal-factory-card__jobs {
    align-self: flex-start;
    margin-bottom: 1rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(44, 46, 133, 0.08);
    color: var(--portal-primary);
    font-size: 0.82rem;
    font-weight: 900;
}

.portal-factory-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(26, 31, 110, 0.1);
    color: var(--portal-primary);
    font-weight: 900;
}

.portal-factory-card__cta i {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(44, 46, 133, 0.08);
    font-size: 1.2rem;
    transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.portal-factory-card-link:hover .portal-factory-card__cta i {
    background: var(--portal-primary);
    color: #fff;
    transform: translateX(-3px);
}

[dir="ltr"] .portal-factory-card-link:hover .portal-factory-card__cta i {
    transform: translateX(3px);
}

.portal-theme-invest::before,
.portal-theme-invest .inv-page::before {
    width: 32rem;
    height: 32rem;
    inset: -10rem auto auto -8rem;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 196, 77, 0.34) 0 18%, rgba(255, 196, 77, 0.16) 19% 38%, transparent 39%),
        repeating-conic-gradient(from 0deg, rgba(218, 165, 32, 0.16) 0 3deg, transparent 3deg 15deg);
    background-size: auto;
    opacity: 0.7;
    filter: blur(0.1px);
    animation: portal-invest-sun-pulse 8s ease-in-out infinite alternate;
}

[dir="rtl"] .portal-theme-invest::before,
[dir="rtl"] .portal-theme-invest .inv-page::before {
    inset: -10rem -8rem auto auto;
}

.portal-theme-invest::after,
.portal-theme-invest .inv-page::after {
    inset: 14% 5% 8% 5%;
    width: auto;
    height: auto;
    background:
        linear-gradient(135deg, transparent 0 36%, rgba(218, 165, 32, 0.28) 36.2% 36.8%, transparent 37%),
        linear-gradient(135deg, transparent 0 47%, rgba(44, 46, 133, 0.2) 47.2% 47.8%, transparent 48%),
        linear-gradient(135deg, transparent 0 58%, rgba(218, 165, 32, 0.24) 58.2% 58.8%, transparent 59%),
        radial-gradient(circle at 28% 72%, rgba(218, 165, 32, 0.38) 0 0.26rem, transparent 0.32rem),
        radial-gradient(circle at 43% 58%, rgba(44, 46, 133, 0.26) 0 0.24rem, transparent 0.3rem),
        radial-gradient(circle at 60% 43%, rgba(218, 165, 32, 0.34) 0 0.26rem, transparent 0.32rem),
        radial-gradient(circle at 76% 28%, rgba(44, 46, 133, 0.24) 0 0.24rem, transparent 0.3rem),
        linear-gradient(0deg, rgba(44, 46, 133, 0.12) 0 0.45rem, transparent 0.45rem 100%);
    background-size:
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        4.8rem 2.4rem;
    opacity: 0.62;
    animation: portal-invest-market-rise 13s ease-in-out infinite alternate;
}

.portal-theme-jobs::before,
.portal-themed-hero--jobs::before,
.portal-hero--jobs::before {
    background:
        linear-gradient(90deg, transparent 73%, rgba(6, 17, 38, 0.08) 73% 88%, transparent 88%),
        linear-gradient(90deg, transparent 77%, rgba(6, 17, 38, 0.1) 77% 79%, transparent 79% 82%, rgba(6, 17, 38, 0.08) 82% 84%, transparent 84%),
        linear-gradient(0deg, transparent 64%, rgba(44, 46, 133, 0.12) 64.2% 64.7%, transparent 64.9%),
        radial-gradient(circle at 24% 68%, rgba(218, 165, 32, 0.2) 0 0.28rem, transparent 0.36rem),
        radial-gradient(circle at 40% 61%, rgba(44, 46, 133, 0.14) 0 0.22rem, transparent 0.3rem),
        radial-gradient(circle at 58% 54%, rgba(218, 165, 32, 0.16) 0 0.24rem, transparent 0.32rem),
        linear-gradient(145deg, transparent 0 29%, rgba(44, 46, 133, 0.13) 29.15% 29.45%, transparent 29.6% 100%);
    opacity: 0.95;
    animation: portal-jobs-path-drift 16s ease-in-out infinite alternate;
}

.portal-theme-jobs::after,
.portal-themed-hero--jobs::after,
.portal-hero--jobs::after {
    width: 1.6rem;
    height: 2.6rem;
    border-radius: 1rem 1rem 0.35rem 0.35rem;
    inset: auto auto 4.8rem 20%;
    background: linear-gradient(180deg, #d6a72f, #a97312);
    box-shadow:
        0.25rem -1rem 0 -0.4rem rgba(6, 17, 38, 0.72),
        0.25rem 2.25rem 0 -0.18rem #061126,
        -0.95rem 1.35rem 0 -0.36rem rgba(6, 17, 38, 0.5),
        0.95rem 1.35rem 0 -0.38rem rgba(6, 17, 38, 0.36),
        -0.82rem 2.05rem 0 -0.42rem rgba(6, 17, 38, 0.5),
        0.82rem 2.05rem 0 -0.42rem rgba(6, 17, 38, 0.5),
        -1.05rem 1.85rem 0 -0.46rem #d6a72f,
        0 0.95rem 0 0.46rem rgba(6, 17, 38, 0.14);
    animation: portal-applicant-walk 13s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate;
}

.portal-theme-training::before,
.portal-themed-hero--training::before,
.portal-hero--training::before {
    background:
        radial-gradient(circle at 18% 24%, rgba(218, 165, 32, 0.2) 0 0.28rem, transparent 0.35rem),
        radial-gradient(circle at 35% 58%, rgba(44, 46, 133, 0.16) 0 0.22rem, transparent 0.3rem),
        radial-gradient(circle at 62% 36%, rgba(218, 165, 32, 0.18) 0 0.25rem, transparent 0.32rem),
        radial-gradient(circle at 82% 72%, rgba(44, 46, 133, 0.14) 0 0.24rem, transparent 0.3rem),
        linear-gradient(24deg, transparent 0 19%, rgba(218, 165, 32, 0.13) 19.15% 19.5%, transparent 19.65% 100%),
        linear-gradient(154deg, transparent 0 38%, rgba(44, 46, 133, 0.11) 38.15% 38.5%, transparent 38.65% 100%),
        linear-gradient(118deg, transparent 0 63%, rgba(218, 165, 32, 0.1) 63.15% 63.45%, transparent 63.6% 100%),
        radial-gradient(ellipse at 50% 50%, transparent 0 42%, rgba(44, 46, 133, 0.055) 43% 44%, transparent 45%);
    background-size: 100% 100%;
    opacity: 0.9;
    animation: portal-training-circuit-drift 20s ease-in-out infinite alternate;
}

.portal-theme-training::after,
.portal-themed-hero--training::after,
.portal-hero--training::after {
    inset: 8% 4%;
    background:
        radial-gradient(circle at 20% 70%, rgba(218, 165, 32, 0.16), transparent 18%),
        radial-gradient(circle at 76% 18%, rgba(44, 46, 133, 0.12), transparent 22%),
        linear-gradient(18deg, transparent 0 46%, rgba(255, 255, 255, 0.36) 46.1% 46.35%, transparent 46.5% 100%);
    opacity: 0.58;
    filter: blur(0.1px);
    animation: portal-training-light-sweep 14s ease-in-out infinite alternate;
}

.portal-theme-training {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(239, 246, 255, 0.96)),
        radial-gradient(circle at 50% 0%, rgba(218, 165, 32, 0.1), transparent 38%);
}

.portal-themed-hero {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: linear-gradient(135deg, #061126, #132248);
    color: #fff;
}

.portal-themed-hero .portal-section-title,
.portal-themed-hero .portal-section-subtitle {
    color: #fff;
}

.portal-themed-hero .portal-section-subtitle {
    color: rgba(255, 255, 255, 0.78);
}

.portal-themed-hero--matchmaking::before,
.portal-hero--matchmaking::before {
    background:
        radial-gradient(circle at 20% 40%, rgba(218, 165, 32, 0.22) 0 0.22rem, transparent 0.28rem),
        radial-gradient(circle at 48% 52%, rgba(255, 255, 255, 0.18) 0 0.18rem, transparent 0.24rem),
        radial-gradient(circle at 76% 36%, rgba(218, 165, 32, 0.18) 0 0.2rem, transparent 0.26rem),
        linear-gradient(25deg, transparent 19%, rgba(255, 255, 255, 0.08) 19.2% 19.6%, transparent 19.8%),
        linear-gradient(155deg, transparent 32%, rgba(255, 255, 255, 0.08) 32.2% 32.6%, transparent 32.8%);
}

.portal-themed-hero--dashboard::before,
.portal-hero--dashboard::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px),
        radial-gradient(circle at 18% 24%, rgba(218, 165, 32, 0.2), transparent 24%);
    background-size: 3.5rem 3.5rem, 3.5rem 3.5rem, 100% 100%;
}

@keyframes portal-market-rise {
    from { transform: translateY(0); }
    to { transform: translateY(-0.9rem); }
}

@keyframes portal-invest-sun-pulse {
    from { transform: scale(0.96) rotate(0deg); opacity: 0.46; }
    to { transform: scale(1.06) rotate(10deg); opacity: 0.72; }
}

@keyframes portal-invest-market-rise {
    from { transform: translateY(0); }
    to { transform: translateY(-1.15rem); }
}

@keyframes portal-gear-spin {
    to { transform: rotate(360deg); }
}

@keyframes portal-gear-spin-reverse {
    to { transform: rotate(-360deg); }
}

@keyframes portal-applicant-walk {
    0% { transform: translate3d(0, 0, 0) scale(0.96); opacity: 0.5; }
    55% { transform: translate3d(22vw, -0.9rem, 0) scale(1); opacity: 0.42; }
    100% { transform: translate3d(42vw, -1.5rem, 0) scale(0.98); opacity: 0.32; }
}

@keyframes portal-jobs-path-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0.7rem, -0.45rem, 0); }
}

@keyframes portal-training-circuit-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0.85rem, -0.75rem, 0); }
}

@keyframes portal-training-light-sweep {
    from { transform: translateX(-0.7rem); opacity: 0.38; }
    to { transform: translateX(0.7rem); opacity: 0.62; }
}

@media (max-width: 575.98px) {
    [dir="rtl"] .portal-hero--cinematic .portal-hero-association-heading {
        font-size: clamp(2.45rem, 13vw, 3.6rem);
    }

    .portal-hero-association-line {
        white-space: normal;
    }

    .portal-quick-access {
        justify-content: center;
    }

    .portal-theme-jobs::after,
    .portal-themed-hero--jobs::after {
        transform: scale(0.78);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

/* ----- Approved homepage cinematic hero ----- */
.portal-home-hero {
    position: relative;
    min-height: calc(100svh - 110px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(7rem, 12vw, 10.5rem) 0 clamp(4rem, 8vw, 5.65rem);
    background: #0d1436;
}

.portal-home-hero__media {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: var(--portal-hero-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.portal-home-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(270deg, rgba(8, 12, 38, 0.98) 0%, rgba(13, 19, 58, 0.9) 37%, rgba(19, 29, 78, 0.56) 68%, rgba(8, 12, 38, 0.22) 100%),
        linear-gradient(0deg, rgba(8, 12, 38, 0.86) 0%, rgba(8, 12, 38, 0.12) 46%, rgba(8, 12, 38, 0.46) 100%);
}

.portal-home-hero::before {
    content: "";
    position: absolute;
    inset: -18% -12%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5.75rem),
        repeating-linear-gradient(0deg, rgba(218, 165, 32, 0.12) 0 1px, transparent 1px 4.5rem),
        linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.16) 45%, transparent 52% 100%);
    transform: skewY(-7deg) translateY(0);
    animation: portal-home-scan 9s ease-in-out infinite alternate;
}

.portal-home-hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.9), transparent);
}

.portal-home-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.portal-home-hero__row {
    min-height: min(620px, calc(100svh - 210px));
}

.portal-home-hero__main {
    text-align: start;
    padding-inline-start: clamp(1rem, 2vw, 2rem);
}

.portal-home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    margin-bottom: 1.25rem;
    padding: 0.44rem 0.95rem;
    border: 1px solid rgba(218, 165, 32, 0.42);
    border-radius: 999px;
    background: rgba(218, 165, 32, 0.14);
    color: #f7d989;
    font-size: 0.88rem;
    font-weight: 800;
}

.portal-home-hero__title {
    margin: 0;
    font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.portal-home-hero__title .portal-hero-about-accent {
    color: #f2c764;
}

.portal-hero-association-line {
    display: block;
    white-space: nowrap;
}

[dir="rtl"] .portal-home-hero__title {
    max-width: 820px;
    font-size: clamp(3rem, 5.9vw, 5rem);
    line-height: 1.08;
}

.portal-home-hero__lead {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.8;
}

.portal-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: 2.2rem;
}

.portal-home-hero__btn,
.portal-home-hero__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.portal-home-hero__btn {
    padding: 0.72rem 1.55rem;
}

.portal-home-hero__btn--primary {
    border: 1px solid rgba(218, 165, 32, 0.72);
    background: linear-gradient(135deg, #e4b84a, #b9851c);
    color: #fff !important;
    box-shadow: 0 18px 34px rgba(218, 165, 32, 0.28);
}

.portal-home-hero__btn--outline {
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
}

.portal-home-hero__link {
    padding: 0.5rem 0.15rem;
    color: #fff !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.portal-home-hero__link:hover {
    color: #f2c764 !important;
    transform: translateX(-3px);
}

.portal-home-hero__quick {
    width: 100%;
    max-width: 540px;
    margin-inline-start: auto;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
}

[dir="rtl"] .portal-home-hero__quick {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

.portal-home-hero__quick-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.05rem;
    color: #fff;
    font-weight: 900;
    font-size: 1.35rem;
}

.portal-home-hero__quick-head i {
    color: #f2c764;
}

.portal-home-hero__quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.portal-home-hero__quick-card {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    font-weight: 800;
    line-height: 1.35;
    font-size: 1.1rem;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.portal-home-hero__quick-card span {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
    border-radius: 0.75rem;
    background: rgba(218, 165, 32, 0.2);
    color: #f2c764;
}

.portal-home-hero__quick-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(218, 165, 32, 0.46);
}

@keyframes portal-home-scan {
    from {
        transform: skewY(-7deg) translateY(0);
    }
    to {
        transform: skewY(-7deg) translateY(-2.5rem);
    }
}

@media (max-width: 991.98px) {
    .portal-home-hero {
        min-height: auto;
        padding: clamp(5rem, 18vw, 7rem) 0 3rem;
    }

    .portal-home-hero__media {
        background-image: var(--portal-hero-mobile-bg, var(--portal-hero-bg));
        background-position: center top;
    }

    .portal-home-hero__shade {
        background:
            linear-gradient(0deg, rgba(8, 12, 38, 0.92) 0%, rgba(14, 20, 61, 0.74) 55%, rgba(8, 12, 38, 0.38) 100%),
            linear-gradient(270deg, rgba(8, 12, 38, 0.84), rgba(8, 12, 38, 0.32));
    }

    .portal-home-hero__quick {
        max-width: 100%;
    }

    .portal-home-hero__main {
        padding-inline-start: 0;
    }

    .portal-home-hero__row {
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .portal-home-hero .portal-hero-association-line {
        white-space: nowrap;
    }

    [dir="rtl"] .portal-home-hero__title {
        max-width: 100%;
        font-size: clamp(2rem, 9.5vw, 2.85rem);
        line-height: 1.16;
    }

    .portal-home-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-home-hero__btn,
    .portal-home-hero__link {
        width: 100%;
    }

}

@media (max-width: 399.98px) {
    [dir="rtl"] .portal-home-hero__title {
        font-size: clamp(1.82rem, 9vw, 2.15rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-home-hero::before {
        animation: none;
    }
}

/* Homepage news: static editorial field */
.portal-home-news {
    position: relative;
    isolation: isolate;
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: linear-gradient(135deg, #061126, #132248) !important;
}

.portal-home-news > * {
    position: relative;
    z-index: 1;
}

.portal-home-news::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    background:
        radial-gradient(circle at 12% 18%, rgba(218, 165, 32, 0.18) 0 0.35rem, transparent 0.42rem),
        radial-gradient(circle at 88% 18%, rgba(218, 165, 32, 0.12) 0 7rem, transparent 13rem),
        radial-gradient(circle at 18% 84%, rgba(255, 255, 255, 0.07) 0 8rem, transparent 15rem),
        radial-gradient(circle at 50% 46%, transparent 0 3.8rem, rgba(255, 255, 255, 0.055) 3.85rem 3.95rem, transparent 4rem),
        radial-gradient(circle at 22% 38%, transparent 0 2.4rem, rgba(218, 165, 32, 0.11) 2.45rem 2.55rem, transparent 2.6rem),
        radial-gradient(circle at 76% 70%, transparent 0 3rem, rgba(255, 255, 255, 0.05) 3.05rem 3.16rem, transparent 3.22rem),
        radial-gradient(circle at 66% 26%, transparent 0 1.7rem, rgba(218, 165, 32, 0.12) 1.75rem 1.86rem, transparent 1.92rem),
        linear-gradient(135deg, rgba(6, 17, 38, 0.95), rgba(19, 34, 72, 0.92));
    background-size: 100% 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 86%, transparent 100%);
}

.portal-home-news::after {
    content: "";
    position: absolute;
    inset: 8% auto auto 6%;
    z-index: 0;
    width: clamp(10rem, 20vw, 20rem);
    aspect-ratio: 1;
    border: 1px solid rgba(44, 46, 133, 0.08);
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 42%, rgba(255, 255, 255, 0.055) 43% 44%, transparent 45%),
        conic-gradient(from 0deg, transparent 0 16%, rgba(218, 165, 32, 0.12) 16% 18%, transparent 18% 54%, rgba(255, 255, 255, 0.06) 54% 56%, transparent 56%);
    pointer-events: none;
}

[dir="rtl"] .portal-home-news::after {
    inset: 8% 6% auto auto;
}

.portal-home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.15rem;
}

.portal-home-news .portal-section-title {
    color: #fff;
}

.portal-home-news .portal-section-eyebrow::before {
    background: linear-gradient(90deg, rgba(242, 199, 100, 0), rgba(242, 199, 100, 0.95));
}

.portal-home-news .portal-link-more {
    color: #fff !important;
}

[dir="rtl"] .portal-home-section-head {
    direction: rtl;
}

.portal-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    color: #f2c764;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0;
}

.portal-section-eyebrow::before {
    content: "";
    width: 2.25rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(218, 165, 32, 0), rgba(218, 165, 32, 0.95));
}

.portal-link-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    font-weight: 900;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.portal-link-more:hover {
    color: #061126;
    background: #f2c764;
    border-color: #f2c764;
    transform: translateY(-2px);
}

@media (max-width: 575.98px) {
    .portal-home-news {
        padding: 2.5rem 0 3rem;
    }

    .portal-home-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    [dir="rtl"] .portal-home-section-head {
        align-items: flex-end;
    }

    .portal-link-more {
        align-self: flex-start;
    }

    [dir="rtl"] .portal-link-more {
        align-self: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-link-more,
    .ns-arrow,
    .ns-card,
    .ns-content,
    .ns-inner {
        transition: none !important;
    }
}

/* -- Market Ticker Bar --------------------------------------------- */
.portal-ticker {
    background: #0a1535;
    color: #fff;
    font-size: 0.78rem;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    height: 34px;
    border-bottom: 2px solid #f2c764;
    font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
    position: relative;
    z-index: 1020;
}

.portal-ticker__badge {
    padding: 0 1rem;
    background: #f2c764;
    color: #0a1535;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.portal-ticker__badge i {
    font-size: 0.85rem;
}

.portal-ticker__viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.portal-ticker__track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    position: absolute;
    left: 0;
    will-change: transform;
}

.portal-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1.4rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}

[dir="rtl"] .portal-ticker__item {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.portal-ticker__item-label {
    color: #aac4ff;
    font-weight: 500;
}

.portal-ticker__item-value {
    font-weight: 700;
    color: #fff;
}

.portal-ticker__item-change {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}

.portal-ticker__item-change--up {
    color: #22c55e;
}

.portal-ticker__item-change--down {
    color: #f87171;
}

.portal-ticker__loader {
    padding: 0 1.5rem;
    color: rgba(255,255,255,0.4);
    font-style: italic;
}

/* -- Hero diagonal lines animation -------------------------------- */
.portal-home-hero__lines {
    position: absolute;
    inset: -10%;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(
        45deg,
        transparent 0,
        transparent 36px,
        rgba(255, 255, 255, 0.045) 36px,
        rgba(255, 255, 255, 0.045) 38px
    );
    animation: hero-lines-slide 7s linear infinite;
    will-change: transform;
}

@keyframes hero-lines-slide {
    from { transform: translate(0, 0); }
    to   { transform: translate(26.87px, -26.87px); }
}

@media (prefers-reduced-motion: reduce) {
    .portal-home-hero__lines { animation: none; }
}


/* ----------------------------------------------------------------
   MOBILE POLISH � comprehensive phone fixes
   ---------------------------------------------------------------- */

/* -- Ticker: tighter on small screens ----------------------------- */
@media (max-width: 575.98px) {
    .portal-ticker {
        font-size: 0.72rem;
    }
    .portal-ticker__badge {
        padding: 0 0.65rem;
        font-size: 0.68rem;
        gap: 0.25rem;
    }
    .portal-ticker__item {
        padding: 0 0.75rem;
    }
}

/* -- Hero: quick-access grid stays 2�2 on phones ------------------ */
@media (max-width: 575.98px) {
    .portal-home-hero__quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }
    .portal-home-hero__quick-card {
        min-height: 90px;
        padding: 0.7rem 0.65rem;
        font-size: 0.82rem;
        gap: 0.4rem;
        border-radius: 10px;
    }
    .portal-home-hero__quick-card span {
        width: 1.8rem;
        height: 1.8rem;
        border-radius: 0.5rem;
        font-size: 0.85rem;
    }
    .portal-home-hero__quick-head {
        font-size: 1rem;
        margin-bottom: 0.65rem;
    }
    /* Lead text: shorter line-height on phones */
    .portal-home-hero__lead {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    /* Badge: smaller */
    .portal-home-hero__badge {
        font-size: 0.72rem;
        padding: 0.35rem 0.75rem;
        margin-bottom: 0.85rem;
    }
    /* Diagonal lines: disable on mobile for performance */
    .portal-home-hero__lines {
        display: none;
    }
}

/* -- Subpage heroes: less tall on phones -------------------------- */
@media (max-width: 575.98px) {
    .portal-hero--split {
        min-height: clamp(18rem, 55vw, 22rem);
    }
    .portal-hero--factories::before,
    .portal-hero--jobs::before,
    .portal-hero--news::before,
    .portal-hero--training::before,
    .portal-hero--invest::before,
    .portal-hero--matchmaking::before {
        background-attachment: scroll;
    }
    .portal-hero-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .portal-hero-lead {
        font-size: 0.9rem;
    }
}

/* -- Stats bar: compact on phones --------------------------------- */
@media (max-width: 575.98px) {
    .portal-hero-after-stats {
        margin-top: -1rem;
    }
    .portal-stats-bar {
        padding: 1rem 0.75rem;
        border-radius: 0.75rem;
    }
    .stat-value {
        font-size: 1.5rem !important;
    }
    .stat-label {
        font-size: 0.72rem;
    }
}

/* -- Service cards: full-width on phones -------------------------- */
@media (max-width: 399.98px) {
    .portal-service-card {
        padding: 1.25rem 1rem;
    }
    .portal-service-icon {
        font-size: 1.6rem;
    }
}

/* -- Navbar: prevent dropdown overflow on phones ------------------ */
@media (max-width: 575.98px) {
    .portal-header .navbar-collapse {
        max-height: calc(100svh - 110px);
        overflow-y: auto;
    }
    .portal-header-nav {
        padding: 0.5rem 0;
    }
}

/* -- Factory census form: background-attachment on mobile --------- */
@media (max-width: 767.98px) {
    .portal-page-content[style*="background-attachment: fixed"] {
        background-attachment: scroll !important;
    }
}

/* -- General touch targets ----------------------------------------- */
@media (max-width: 575.98px) {
    .portal-home-hero__btn {
        min-height: 48px;
        font-size: 0.9rem;
        padding: 0.65rem 1.2rem;
    }
    .portal-home-hero__link {
        font-size: 0.88rem;
    }
    /* Section headings */
    .portal-services-title,
    .portal-section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
}

/* ── Entrance video: mobile ─────────────────────────────────────── */
@media (max-width: 767.98px) {
    /* Show full video width instead of cropping — wider angle on portrait */
    .portal-entrance__video {
        object-fit: contain;
        object-position: center center;
    }

    .portal-entrance__skip {
        min-width: 5rem;
        min-height: 3rem;
        font-size: 0.9rem;
        padding: 0 1.2rem;
        bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
        inset-inline-end: max(1rem, env(safe-area-inset-right, 1rem));
    }
}
