:root {
    --portal-navy: #0b2845;
    --portal-orange: #ef6b3b;
    --portal-blue: #1371b9;
    --portal-green: #449d47;
    --portal-soft-blue: #eaf7fd;
    --portal-soft-peach: #fff3ef;
    --portal-white: #ffffff;
    --portal-surface: rgba(255, 255, 255, 0.98);
    --portal-shadow-card: 0 1px 3px rgba(11, 40, 69, 0.12), 0 10px 22px rgba(11, 40, 69, 0.05);
    --portal-shadow-banner: 0 24px 48px rgba(11, 40, 69, 0.16);
    --portal-radius-card: 8px;
    --portal-radius-pill: 999px;
    --portal-radius-banner: 18px;
    --portal-max-width: 1140px;
    --portal-font-en: "Cairo", "Segoe UI", Arial, sans-serif;
    --portal-font-ar: "Cairo", "Almarai", "Tahoma", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: clip;
    color: var(--portal-navy);
    background:
        radial-gradient(circle at 12% 22%, rgba(234, 247, 253, 0.96) 0, rgba(234, 247, 253, 0.96) 12%, rgba(234, 247, 253, 0) 36%),
        radial-gradient(circle at 88% 16%, rgba(255, 243, 239, 0.96) 0, rgba(255, 243, 239, 0.96) 13%, rgba(255, 243, 239, 0) 38%),
        linear-gradient(180deg, #fffdfc 0%, #f8fcff 48%, #ffffff 100%);
    font-family: var(--portal-font-en);
}

body.portal-gateway {
    transition: background-color 260ms ease;
}

body.is-rtl {
    font-family: var(--portal-font-ar);
}

a {
    color: inherit;
    text-decoration: none;
}

.portal-gateway-page {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    background: transparent;
    transition: background 320ms ease;
}

body.portal-gateway.theme-orange .portal-gateway-page {
    background: radial-gradient(circle at 50% 16%, rgba(239, 107, 59, 0.12) 0%, rgba(239, 107, 59, 0) 64%);
}

body.portal-gateway.theme-blue .portal-gateway-page {
    background: radial-gradient(circle at 50% 16%, rgba(19, 113, 185, 0.12) 0%, rgba(19, 113, 185, 0) 64%);
}

body.portal-gateway.theme-green .portal-gateway-page {
    background: radial-gradient(circle at 50% 16%, rgba(68, 157, 71, 0.12) 0%, rgba(68, 157, 71, 0) 64%);
}

.portal-gateway-shell {
    width: min(var(--portal-max-width), calc(100vw - 48px));
    margin-inline: auto;
    padding-block: 84px 56px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    z-index: 1;
}

body.portal-gateway.is-rtl .portal-gateway-shell {
    direction: rtl;
}

body.portal-gateway.is-ltr .portal-gateway-shell {
    direction: ltr;
}

/* Header */
.portal-topbar {
    display: grid;
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "menu brand language"
        "nav nav nav";
    gap: 12px 18px;
    min-height: 74px;
}

html[dir="rtl"] .portal-topbar {
    grid-template-areas:
        "language brand menu"
        "nav nav nav";
}

.portal-brand-block {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    justify-self: center;
    gap: 14px;
    min-width: 0;
}

.portal-brand,
.portal-language-switcher {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.portal-brand-logo {
    width: 122px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(11, 40, 69, 0.08));
}

.portal-brand-logo--large {
    width: 122px;
}

.portal-brand-logo--small {
    width: 92px;
}

.portal-brand-emblems {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.portal-brand-emblem {
    display: block;
    width: 26px;
    height: auto;
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 4px rgba(11, 40, 69, 0.16));
}

.portal-brand-emblem--primary {
    width: 32px;
}

.portal-brand-emblem--secondary,
.portal-brand-emblem--tertiary {
    width: 22px;
}

.portal-brand-emblem--tertiary {
    filter: drop-shadow(0 1px 0 rgba(11, 40, 69, 0.7)) drop-shadow(0 1px 4px rgba(11, 40, 69, 0.18));
}

.portal-language-switcher {
    grid-area: language;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    color: rgba(11, 40, 69, 0.82);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    justify-self: end;
}

html[dir="rtl"] .portal-language-switcher {
    justify-self: start;
}

.portal-language-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.portal-nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    flex-wrap: wrap;
}

.portal-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(11, 40, 69, 0.88);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 160ms ease, transform 160ms ease;
}

.portal-nav-link:hover {
    background: rgba(11, 40, 69, 0.05);
    transform: translateY(-1px);
}

.portal-menu-toggle {
    grid-area: menu;
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(11, 40, 69, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
}

.portal-menu-toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--portal-navy);
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero */
.portal-hero {
    width: min(100%, 900px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 8px 0 4px;
}

body.portal-gateway .portal-hero-eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(19, 113, 185, 0.08);
    border: 1px solid rgba(19, 113, 185, 0.14);
    color: rgba(11, 40, 69, 0.74);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}

body.portal-gateway .portal-title {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 6px 14px;
    width: min(100%, 860px);
    color: var(--portal-navy);
    font-size: clamp(3.2rem, 4.4vw, 4.7rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: pretty;
}

body.portal-gateway .portal-title-main,
body.portal-gateway .portal-title-accent {
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
}

body.portal-gateway .portal-title-accent {
    color: var(--portal-orange);
}

body.portal-gateway .portal-subtitle {
    width: min(100%, 760px);
    margin: 0;
    color: rgba(11, 40, 69, 0.82);
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    font-weight: 400;
    line-height: 1.7;
}

body.portal-gateway .portal-hero.is-ltr .portal-hero-eyebrow,
body.portal-gateway .portal-hero.is-ltr .portal-title,
body.portal-gateway .portal-hero.is-ltr .portal-subtitle {
    font-family: "Cairo", "Segoe UI", Arial, sans-serif;
}

body.portal-gateway .portal-hero.is-ltr .portal-title {
    width: min(100%, 980px);
}

body.portal-gateway .portal-hero.is-rtl .portal-hero-eyebrow,
body.portal-gateway .portal-hero.is-rtl .portal-title,
body.portal-gateway .portal-hero.is-rtl .portal-subtitle {
    font-family: var(--portal-font-ar);
}

body.portal-gateway .portal-hero.is-rtl .portal-title {
    width: min(100%, 760px);
    gap: 4px 12px;
    font-size: clamp(3.35rem, 4.8vw, 4.9rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    direction: rtl;
}

body.portal-gateway .portal-hero.is-rtl .portal-title-main:first-child {
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1.04;
}

body.portal-gateway .portal-hero.is-rtl .portal-title-main:nth-child(2) {
    font-size: 1em;
}

body.portal-gateway .portal-hero.is-rtl .portal-title-accent {
    font-size: 1.04em;
}

body.portal-gateway .portal-hero.is-rtl .portal-subtitle {
    width: min(100%, 700px);
    line-height: 1.85;
}

/* Experiences */
.portal-experiences {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

html[dir="ltr"] .portal-experiences {
    direction: ltr;
}

html[dir="rtl"] .portal-experiences {
    direction: rtl;
}

.portal-experience-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    position: relative;
    padding-bottom: 112px;
}

.portal-card-coming-soon {
    position: absolute;
    inset-block-start: 10px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--portal-green);
    color: #fff;
    font-family: var(--portal-font-ar);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    z-index: 1;
    transform: translateX(-50%);
    white-space: nowrap;
}

.portal-card--disabled {
    cursor: not-allowed;
    opacity: .72;
}

.portal-card--disabled .portal-card-copy {
    padding-block-start: 24px;
}

.portal-experience-column.is-coming-soon .portal-card-actions,
.portal-experience-column.is-coming-soon.is-active .portal-card-actions {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
}

.portal-card {
    min-height: 150px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    background: var(--portal-surface);
    border-radius: var(--portal-radius-card);
    box-shadow: var(--portal-shadow-card);
    border: 1px solid transparent;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

html[dir="ltr"] .portal-card {
    direction: ltr;
}

html[dir="rtl"] .portal-card {
    direction: rtl;
}

.portal-card:hover {
    box-shadow: 0 14px 28px rgba(11, 40, 69, 0.12);
}

.portal-experience-column.is-active .portal-card {
    box-shadow: 0 18px 36px rgba(11, 40, 69, 0.16);
}

.portal-card--orange,
.portal-experience-column.is-active .portal-card--orange {
    border-color: var(--portal-orange);
}

.portal-card--blue,
.portal-experience-column.is-active .portal-card--blue {
    border-color: var(--portal-blue);
}

.portal-card--green,
.portal-experience-column.is-active .portal-card--green {
    border-color: var(--portal-green);
}

.portal-card-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-card-heading {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: nowrap;
    line-height: 1.15;
}

.portal-card-brand {
    display: inline-flex;
    align-items: baseline;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.portal-card-title {
    color: var(--portal-navy);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.08;
    white-space: nowrap;
}

.portal-card--orange .portal-card-brand {
    color: var(--portal-orange);
}

.portal-card--blue .portal-card-brand {
    color: var(--portal-blue);
}

.portal-card--green .portal-card-brand {
    color: var(--portal-green);
}

/* government.svg is white — tint it green to match the card accent */
.portal-experience-column--green .portal-card-icon,
.portal-experience-column--green .portal-card-pill img {
    filter: invert(55%) sepia(40%) saturate(600%) hue-rotate(85deg) brightness(88%);
}

.portal-card-description {
    margin: 0;
    color: var(--portal-navy);
    font-family: var(--portal-font-ar);
    font-size: 13px;
    line-height: 1.45;
}

.portal-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-family: var(--portal-font-ar);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
}

.portal-card-cta svg {
    width: 22px;
    height: 22px;
    display: block;
}

.portal-card-actions {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 220ms ease;
}

.portal-experience-column.is-active .portal-card-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.portal-experience-column.is-active {
    z-index: 2;
}

.portal-card-pill {
    min-height: 36px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border-radius: var(--portal-radius-pill);
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 2px rgba(11, 40, 69, 0.05);
    font-family: var(--portal-font-ar);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.portal-card-pill span {
    flex: 1 1 auto;
    min-width: 0;
}

.portal-card-pill img {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 18px;
}

.accent-orange { color: var(--portal-orange); }
.accent-blue { color: var(--portal-blue); }
.accent-green { color: var(--portal-green); }

.portal-card-icon-wrap {
    flex: 0 0 auto;
    align-self: center;
}

.portal-card-icon {
    width: 58px;
    height: 58px;
    display: block;
    object-fit: contain;
}

html[dir="ltr"] .portal-card {
    flex-direction: row-reverse;
}

html[dir="rtl"] .portal-card {
    flex-direction: row-reverse;
}

html[dir="ltr"] .portal-card-heading,
html[dir="ltr"] .portal-card-description {
    text-align: left;
}

html[dir="rtl"] .portal-card-heading,
html[dir="rtl"] .portal-card-description {
    text-align: right;
}

html[dir="ltr"] .portal-card-cta {
    flex-direction: row;
}

html[dir="rtl"] .portal-card-cta {
    flex-direction: row-reverse;
}

html[dir="ltr"] .portal-card-cta svg {
    transform: scaleX(-1);
}

html[dir="rtl"] .portal-card-cta svg {
    transform: none;
}

html[dir="ltr"] .portal-card-pill {
    flex-direction: row;
}

html[dir="rtl"] .portal-card-pill {
    flex-direction: row-reverse;
}

/* Smart Match banner */
.portal-smartmatch-banner {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    border-radius: var(--portal-radius-banner);
    background: linear-gradient(135deg, #071829 0%, #18548f 100%);
    box-shadow: var(--portal-shadow-banner);
    isolation: isolate;
}

.portal-smartmatch-banner-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.portal-smartmatch-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.94;
    mix-blend-mode: screen;
}

.portal-smartmatch-banner-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.portal-smartmatch-banner-glow {
    position: absolute;
    inset-inline-end: -160px;
    inset-block-end: -140px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72, 136, 205, 0.34) 0%, rgba(72, 136, 205, 0.16) 38%, rgba(72, 136, 205, 0) 72%);
    filter: blur(18px);
}

.portal-smartmatch-banner-copy {
    position: relative;
    z-index: 1;
    min-height: 340px;
    padding: 30px 32px 26px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-content: space-between;
    gap: 14px;
}

.portal-smartmatch-banner-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    width: fit-content;
}

.portal-smartmatch-banner-logo img {
    display: block;
    object-fit: contain;
}

.portal-smartmatch-banner-logo-mark {
    width: 96px;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(4, 16, 34, 0.2));
}

.portal-smartmatch-banner-logo-type {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.portal-smartmatch-banner-logo-type img:first-child {
    width: 82px;
}

.portal-smartmatch-banner-logo-type img:last-child {
    width: 86px;
    filter: drop-shadow(0 1px 0 rgba(3, 14, 28, 0.55));
}

.portal-smartmatch-banner-text {
    width: min(770px, 60%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-smartmatch-banner-text h2 {
    margin: 0;
    color: var(--portal-white);
    font-family: var(--portal-font-ar);
    font-size: clamp(2.15rem, 3vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    max-width: 100%;
}

.portal-smartmatch-banner-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-family: var(--portal-font-ar);
    font-size: clamp(1.02rem, 1.28vw, 1.18rem);
    line-height: 1.55;
    max-width: 100%;
}

.portal-smartmatch-banner-accent {
    color: var(--portal-orange);
}

.portal-smartmatch-banner-cta {
    width: fit-content;
    min-width: 0;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: #ffffff !important;
    font-family: var(--portal-font-ar);
    font-size: clamp(1.75rem, 2.1vw, 2.3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    text-shadow: 0 3px 12px rgba(7, 24, 41, 0.25);
    transition: transform 160ms ease, opacity 160ms ease;
}

.portal-smartmatch-banner-cta:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.portal-smartmatch-banner-cta span {
    color: inherit;
}

.portal-smartmatch-banner-cta-label {
    min-height: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    background: none;
    white-space: nowrap;
}

.portal-smartmatch-banner-cta-arrow {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.portal-smartmatch-banner-cta-arrow img {
    width: 0.9em;
    height: 0.9em;
    display: block;
}

html[dir="ltr"] .portal-smartmatch-banner,
body.portal-gateway.is-ltr .portal-smartmatch-banner {
    direction: ltr;
}

html[dir="rtl"] .portal-smartmatch-banner,
body.portal-gateway.is-rtl .portal-smartmatch-banner {
    direction: rtl;
}

html[dir="ltr"] .portal-smartmatch-banner-image,
body.portal-gateway.is-ltr .portal-smartmatch-banner-image {
    object-position: right center;
}

html[dir="rtl"] .portal-smartmatch-banner-image,
body.portal-gateway.is-rtl .portal-smartmatch-banner-image {
    object-position: left center;
}

html[dir="ltr"] .portal-smartmatch-banner-visual::after,
body.portal-gateway.is-ltr .portal-smartmatch-banner-visual::after {
    background: linear-gradient(90deg, rgba(7, 24, 41, 0.78) 0%, rgba(7, 24, 41, 0.5) 40%, rgba(7, 24, 41, 0.08) 72%, rgba(7, 24, 41, 0.02) 100%);
}

html[dir="rtl"] .portal-smartmatch-banner-visual::after,
body.portal-gateway.is-rtl .portal-smartmatch-banner-visual::after {
    background: linear-gradient(270deg, rgba(7, 24, 41, 0.78) 0%, rgba(7, 24, 41, 0.5) 40%, rgba(7, 24, 41, 0.08) 72%, rgba(7, 24, 41, 0.02) 100%);
}

html[dir="ltr"] .portal-smartmatch-banner-copy,
body.portal-gateway.is-ltr .portal-smartmatch-banner-copy {
    text-align: left;
    direction: ltr;
    padding-inline: 36px 32px;
    gap: 10px;
}

html[dir="rtl"] .portal-smartmatch-banner-copy,
body.portal-gateway.is-rtl .portal-smartmatch-banner-copy {
    text-align: right;
    direction: rtl;
    padding-inline: 32px 36px;
}

html[dir="ltr"] .portal-smartmatch-banner-logo,
body.portal-gateway.is-ltr .portal-smartmatch-banner-logo {
    justify-content: flex-start;
    flex-direction: row;
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .portal-smartmatch-banner-logo,
body.portal-gateway.is-rtl .portal-smartmatch-banner-logo {
    justify-content: flex-end;
    flex-direction: row-reverse;
    margin-left: auto;
    margin-right: 0;
}

html[dir="rtl"] .portal-smartmatch-banner-logo-type,
body.portal-gateway.is-rtl .portal-smartmatch-banner-logo-type {
    align-items: flex-end;
}

html[dir="ltr"] .portal-smartmatch-banner-text,
body.portal-gateway.is-ltr .portal-smartmatch-banner-text {
    align-items: flex-start;
    width: min(860px, 66%);
    max-width: 70ch;
    gap: 9px;
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .portal-smartmatch-banner-text,
body.portal-gateway.is-rtl .portal-smartmatch-banner-text {
    align-items: flex-end;
    width: min(820px, 62%);
    max-width: 44rem;
    margin-left: auto;
    margin-right: 0;
}

html[dir="ltr"] .portal-smartmatch-banner-text h2,
body.portal-gateway.is-ltr .portal-smartmatch-banner-text h2 {
    font-family: var(--portal-font-en);
    font-size: clamp(1.8rem, 2.15vw, 2.2rem);
    line-height: 1.12;
    max-width: 30ch;
    letter-spacing: -0.01em;
}

html[dir="rtl"] .portal-smartmatch-banner-text h2,
body.portal-gateway.is-rtl .portal-smartmatch-banner-text h2 {
    font-family: var(--portal-font-ar);
    font-size: clamp(2rem, 2.55vw, 2.5rem);
    line-height: 1.16;
}

html[dir="ltr"] .portal-smartmatch-banner-text p,
body.portal-gateway.is-ltr .portal-smartmatch-banner-text p {
    font-family: var(--portal-font-en);
    font-size: clamp(1.15rem, 1.22vw, 1.32rem);
    line-height: 1.48;
    max-width: 72ch;
}

html[dir="rtl"] .portal-smartmatch-banner-text p,
body.portal-gateway.is-rtl .portal-smartmatch-banner-text p {
    font-family: var(--portal-font-ar);
    font-size: clamp(1.22rem, 1.38vw, 1.4rem);
    line-height: 1.5;
}

html[dir="ltr"] .portal-smartmatch-banner-cta,
body.portal-gateway.is-ltr .portal-smartmatch-banner-cta {
    font-family: var(--portal-font-en);
    font-size: clamp(2rem, 2.35vw, 2.45rem);
    margin-left: auto;
    margin-right: 0;
}

html[dir="rtl"] .portal-smartmatch-banner-cta,
body.portal-gateway.is-rtl .portal-smartmatch-banner-cta {
    font-family: var(--portal-font-ar);
    font-size: clamp(2.05rem, 2.45vw, 2.6rem);
    margin-right: auto;
    margin-left: 0;
}

html[dir="ltr"] .portal-smartmatch-banner-cta,
body.portal-gateway.is-ltr .portal-smartmatch-banner-cta {
    align-self: flex-end;
    flex-direction: row;
}

html[dir="rtl"] .portal-smartmatch-banner-cta,
body.portal-gateway.is-rtl .portal-smartmatch-banner-cta {
    align-self: flex-start;
    flex-direction: row-reverse;
}

html[dir="ltr"] .portal-smartmatch-banner-cta-arrow img,
body.portal-gateway.is-ltr .portal-smartmatch-banner-cta-arrow img {
    transform: scaleX(-1);
}

html[dir="rtl"] .portal-smartmatch-banner-cta-arrow img,
body.portal-gateway.is-rtl .portal-smartmatch-banner-cta-arrow img {
    transform: none;
}

/* Smart Match overview */
.portal-smartmatch-page {
    min-height: 100vh;
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    color: var(--portal-white);
    background:
        radial-gradient(circle at 0% 0%, rgba(52, 185, 201, 0.18) 0, rgba(52, 185, 201, 0.04) 22%, rgba(52, 185, 201, 0) 44%),
        linear-gradient(180deg, #061726 0%, #081f34 40%, #0b2845 100%);
    overflow-x: clip;
}

.portal-smartmatch-page-shell {
    width: 100%;
    min-height: 100vh;
}

body.portal-smartmatch-page.is-rtl .portal-smartmatch-page-shell {
    direction: rtl;
}

body.portal-smartmatch-page.is-ltr .portal-smartmatch-page-shell {
    direction: ltr;
}

.portal-smartmatch-hero {
    position: relative;
    min-height: 100vh;
    padding: 150px clamp(18px, 5vw, 70px) 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 36px;
    overflow: hidden;
}

.portal-smartmatch-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 28%, rgba(52, 185, 201, 0.34) 0, rgba(52, 185, 201, 0.14) 12%, rgba(52, 185, 201, 0) 34%),
        radial-gradient(circle at 70% 14%, rgba(109, 198, 217, 0.18) 0, rgba(109, 198, 217, 0.06) 14%, rgba(109, 198, 217, 0) 38%);
    pointer-events: none;
}

.portal-smartmatch-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    width: min(1120px, 100%);
}

.portal-smartmatch-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    padding: 4px 8px 4px 10px;
    border-radius: 999px;
    border: 1px solid #34b9c9;
    background: rgba(4, 16, 30, 0.22);
    color: #cccccc;
    font-family: inherit;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.portal-smartmatch-kicker-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #34b9c9;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.portal-smartmatch-hero-copy h1 {
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    width: min(1100px, 100%);
    color: var(--portal-white);
    font-size: clamp(48px, 3.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.portal-smartmatch-hero-copy h1 span {
    color: #adffe7;
    white-space: nowrap;
}

.portal-smartmatch-hero-copy p {
    margin: 0;
    max-width: 980px;
    color: var(--portal-white);
    font-size: clamp(22px, 1.95vw, 28px);
    font-weight: 500;
    line-height: 1.1;
}

.portal-smartmatch-accent {
    color: #34b9c9;
    font-weight: 500;
}

.portal-smartmatch-primary-cta {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    margin-top: 14px;
    padding: 10px 14px 10px 18px;
    border-radius: 12px;
    background: linear-gradient(90deg, #1d83d0 0%, #2fa8d9 100%);
    color: var(--portal-white);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 14px 24px rgba(18, 110, 171, 0.3);
}

.portal-smartmatch-primary-cta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 12px;
    border-radius: 10px;
    background: #39c1da;
    font-size: 1.3rem;
    line-height: 1;
}

body.portal-smartmatch-page.is-rtl .portal-smartmatch-primary-cta span {
    margin-left: 0;
    margin-right: 12px;
}

.portal-smartmatch-hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.portal-smartmatch-hero-visual img {
    position: absolute;
    right: clamp(-90px, 2vw, 0);
    top: 130px;
    width: min(760px, 52vw);
    height: auto;
    display: block;
    opacity: 0.95;
    filter: saturate(1.05) contrast(1.02);
}

body.portal-smartmatch-page.is-rtl .portal-smartmatch-hero-visual img {
    right: auto;
    left: clamp(-90px, 2vw, 0);
}

.portal-smartmatch-stats {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100vw - 48px));
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #34b9c9;
    border-radius: 28px;
    background: rgba(6, 11, 21, 0.76);
    backdrop-filter: blur(12px);
}

.portal-smartmatch-stat {
    padding: 26px 20px 22px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

body.portal-smartmatch-page.is-rtl .portal-smartmatch-stat {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.portal-smartmatch-stat:last-child {
    border-right: none;
}

body.portal-smartmatch-page.is-rtl .portal-smartmatch-stat:last-child {
    border-left: none;
}

.portal-smartmatch-stat-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    color: var(--portal-white);
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
}

.portal-smartmatch-stat-value b {
    color: #34b9c9;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.portal-smartmatch-stat-label {
    margin-top: 10px;
    color: #34b9c9;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
}

.portal-smartmatch-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.portal-smartmatch-highlight {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--portal-shadow-card);
    border: 1px solid rgba(11, 40, 69, 0.07);
}

.portal-smartmatch-highlight-index {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--portal-orange);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.portal-smartmatch-highlight h2 {
    margin: 0 0 8px;
    color: var(--portal-navy);
    font-size: 1.28rem;
    line-height: 1.2;
}

.portal-smartmatch-highlight p {
    margin: 0;
    color: rgba(11, 40, 69, 0.8);
    line-height: 1.6;
}

.portal-smartmatch-blocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.portal-smartmatch-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--portal-shadow-card);
    border: 1px solid rgba(11, 40, 69, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.portal-smartmatch-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(11, 40, 69, 0.14);
}

.portal-smartmatch-block img {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
}

.portal-smartmatch-block h2 {
    margin: 0 0 6px;
    color: var(--portal-navy);
    font-size: 1.1rem;
}

.portal-smartmatch-block p {
    margin: 0;
    color: rgba(11, 40, 69, 0.78);
    line-height: 1.58;
}

/* Responsive */
@media (max-width: 1080px) {
    .portal-gateway-shell {
        width: min(100vw - 32px, var(--portal-max-width));
        padding-block: 74px 50px;
    }

    .portal-experiences {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-inline: 40px;
    }

    .portal-experience-column {
        padding-bottom: 0;
    }

    .portal-card-actions {
        display: none;
    }

    .portal-smartmatch-banner {
        min-height: 300px;
    }

    .portal-smartmatch-banner-copy {
        min-height: 300px;
        padding: 24px 24px 22px;
    }

    .portal-smartmatch-banner-text {
        width: min(100%, 70%);
    }

    html[dir="ltr"] .portal-smartmatch-banner-text,
    body.portal-gateway.is-ltr .portal-smartmatch-banner-text,
    html[dir="rtl"] .portal-smartmatch-banner-text,
    body.portal-gateway.is-rtl .portal-smartmatch-banner-text {
        max-width: 100%;
        width: min(100%, 72%);
    }

    .portal-experience-column:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(100%, calc((100% - 20px) / 2));
    }

    #ec-master-header.ec-header--gateway .ec-action--menu,
    #ec-master-header.ec-header--gateway .ec-header__nav--gateway {
        display: none !important;
    }

    #ec-master-header.ec-header--gateway .ec-header__container--gateway {
        grid-template-columns: 1fr auto 1fr;
    }

    #ec-master-header.ec-header--gateway .ec-header__actions--gateway {
        justify-content: flex-end;
    }

    html[dir="rtl"] #ec-master-header.ec-header--gateway .ec-header__actions--gateway {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .portal-experiences {
        grid-template-columns: 1fr;
    }

    .portal-experience-column:nth-child(3) {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
    }

    .portal-smartmatch-banner {
        min-height: 320px;
    }

    .portal-smartmatch-banner-copy {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .portal-gateway-shell {
        width: min(100vw - 20px, var(--portal-max-width));
        padding-block: 68px 34px;
        gap: 18px;
    }

    .portal-topbar {
        gap: 8px 10px;
        min-height: 62px;
    }

    .portal-brand-logo {
        width: 92px;
    }

    .portal-brand-logo--large {
        width: 92px;
    }

    .portal-brand-logo--small {
        width: 72px;
    }

    .portal-brand-emblems {
        display: none;
    }

    .portal-language-switcher {
        padding: 6px 8px;
        font-size: 14px;
    }

    .portal-menu-toggle {
        display: inline-flex;
    }

    .portal-nav {
        display: none;
        grid-column: 1 / -1;
        justify-content: flex-start;
        width: 100%;
        padding-top: 6px;
    }

    .portal-topbar.is-nav-open .portal-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .portal-nav-link {
        width: 100%;
        justify-content: center;
        min-height: 34px;
        padding: 7px 10px;
        font-size: 14px;
    }

    body.portal-gateway .portal-title {
        width: min(100%, 100%);
        font-size: clamp(2.55rem, 7vw, 3.15rem);
        gap: 4px 10px;
        line-height: 1.12;
    }

    body.portal-gateway .portal-hero.is-rtl .portal-title {
        font-size: clamp(2.25rem, 8.3vw, 2.85rem);
        line-height: 1.15;
    }

    .portal-subtitle {
        font-size: 14px;
        line-height: 1.65;
    }

    .portal-hero-eyebrow {
        min-height: 30px;
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    body.portal-gateway .portal-hero.is-rtl .portal-title {
        width: min(100%, 520px);
    }

    .portal-experiences {
        gap: 14px;
    }

    .portal-experience-column {
        padding-bottom: 0;
    }

    .portal-card {
        min-height: 148px;
        padding: 16px;
        gap: 14px;
    }

    .portal-card-brand,
    .portal-card-title {
        font-size: 20px;
        white-space: normal;
    }

    .portal-card-description {
        font-size: 14px;
        line-height: 1.45;
    }

    .portal-card-icon {
        width: 56px;
        height: 56px;
    }

    .portal-card-actions {
        display: none;
    }

    .portal-smartmatch-banner {
        min-height: 0;
        border-radius: 16px;
    }

    .portal-smartmatch-banner-copy {
        min-height: 0;
        padding: 16px 14px 14px;
        gap: 12px;
    }

    .portal-smartmatch-banner-logo {
        min-height: 36px;
    }

    .portal-smartmatch-banner-logo img {
        width: auto;
    }

    .portal-smartmatch-banner-logo-mark {
        width: 70px;
    }

    .portal-smartmatch-banner-logo-type img:first-child {
        width: 64px;
    }

    .portal-smartmatch-banner-logo-type img:last-child {
        width: 68px;
    }

    .portal-smartmatch-banner-text {
        width: 100%;
        gap: 8px;
        max-width: 100%;
    }

    .portal-smartmatch-banner-text h2 {
        font-size: 1.5rem;
        line-height: 1.14;
        max-width: 100%;
    }

    .portal-smartmatch-banner-text p {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 100%;
    }

    .portal-smartmatch-banner-cta {
        min-width: 0;
        font-size: clamp(1.4rem, 6vw, 1.9rem);
        margin-top: 4px;
    }

    .portal-smartmatch-banner-cta-label {
        min-height: 0;
        width: auto;
        padding: 0;
        justify-content: flex-start;
    }

    .portal-smartmatch-banner-cta-arrow {
        width: auto;
        height: auto;
    }

    .portal-smartmatch-banner-cta-arrow img {
        width: 0.9em;
        height: 0.9em;
    }
}

/* Desktop hover behavior for quick links. */
@media (hover: none), (pointer: coarse) {
    .portal-card:hover {
        box-shadow: var(--portal-shadow-card);
    }

    .portal-experience-column.is-active .portal-card {
        box-shadow: var(--portal-shadow-card);
    }

    .portal-card-actions {
        display: none;
    }
}

@media (max-width: 1080px) {
    .portal-smartmatch-page-shell {
        width: min(100vw - 32px, var(--portal-max-width));
    }

    .portal-smartmatch-hero {
        grid-template-columns: 1fr;
    }

    .portal-smartmatch-hero-visual {
        min-height: 300px;
    }

    .portal-smartmatch-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-smartmatch-highlights,
    .portal-smartmatch-blocks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .portal-smartmatch-page-shell {
        width: min(100vw - 20px, var(--portal-max-width));
        padding-block: 24px 34px;
        gap: 18px;
    }

    .portal-smartmatch-hero {
        padding: 20px;
        gap: 18px;
        border-radius: 22px;
    }

    .portal-smartmatch-hero-copy h1 {
        font-size: clamp(2.05rem, 8vw, 2.85rem);
    }

    .portal-smartmatch-hero-visual {
        min-height: 240px;
    }

    .portal-smartmatch-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 22px;
    }

    .portal-smartmatch-stat {
        padding: 18px 12px 16px;
    }

    .portal-smartmatch-stat-value {
        font-size: 1.8rem;
    }

    .portal-smartmatch-stat-value b {
        font-size: 2rem;
    }

    .portal-smartmatch-stat-label {
        font-size: 0.92rem;
    }

    .portal-smartmatch-highlights,
    .portal-smartmatch-blocks {
        grid-template-columns: 1fr;
    }

    .portal-smartmatch-highlight,
    .portal-smartmatch-block {
        padding: 16px;
    }
}

@media (max-width: 1080px) {
    .portal-smartmatch-hero {
        padding-top: 120px;
        padding-bottom: 34px;
    }

    .portal-smartmatch-hero-visual img {
        top: 160px;
        width: min(620px, 58vw);
    }

    .portal-smartmatch-stats {
        width: min(100vw - 32px, 1200px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .portal-smartmatch-hero {
        min-height: auto;
        padding: 102px 12px 28px;
        gap: 28px;
    }

    .portal-smartmatch-hero-copy {
        gap: 18px;
    }

    .portal-smartmatch-kicker {
        gap: 10px;
        font-size: 0.88rem;
    }

    .portal-smartmatch-kicker-pill {
        min-height: 26px;
        padding: 0 10px;
        font-size: 0.82rem;
    }

    .portal-smartmatch-hero-copy h1 {
        gap: 8px;
        font-size: clamp(2.1rem, 7.8vw, 3rem);
        line-height: 1.08;
    }

    .portal-smartmatch-hero-copy p {
        font-size: 1.02rem;
        line-height: 1.35;
    }

    .portal-smartmatch-primary-cta {
        margin-top: 8px;
        font-size: 0.98rem;
    }

    .portal-smartmatch-primary-cta span {
        width: 36px;
        height: 36px;
        margin-left: 10px;
    }

    body.portal-smartmatch-page.is-rtl .portal-smartmatch-primary-cta span {
        margin-left: 0;
        margin-right: 10px;
    }

    .portal-smartmatch-hero-visual {
        position: relative;
        width: 100%;
        min-height: 240px;
        order: -1;
    }

    .portal-smartmatch-hero-visual img {
        position: absolute;
        top: 0;
        right: -40px;
        width: min(420px, 92vw);
    }

    body.portal-smartmatch-page.is-rtl .portal-smartmatch-hero-visual img {
        right: auto;
        left: -40px;
    }

    .portal-smartmatch-stats {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 22px;
    }

    .portal-smartmatch-stat {
        padding: 18px 12px 16px;
    }

    .portal-smartmatch-stat-value {
        font-size: 1.8rem;
    }

    .portal-smartmatch-stat-value b {
        font-size: 2rem;
    }

    .portal-smartmatch-stat-label {
        font-size: 0.92rem;
    }
}
