/* =========================================================
   Home page sections, opportunities and request pages
   (html/Franchise Updated Content.docx). Shares the purple
   palette of the hero via --primary-color / --footer-bg.
   ========================================================= */

:root {
    --line-color: #ECE6F0;
    --tint-color: color-mix(in srgb, var(--primary-color, #39004D) 8%, #fff);
    --tint-strong: color-mix(in srgb, var(--primary-color, #39004D) 14%, #fff);
}

/* ---------- Home hero (light) ---------- */
.hero-section--light {
    isolation: isolate;
    padding: 104px 0 96px;
    color: #1d1530;
    background:
        radial-gradient(38% 55% at 8% 12%, rgba(160, 110, 255, 0.55) 0%, rgba(160, 110, 255, 0) 70%),
        radial-gradient(34% 50% at 96% 92%, rgba(220, 140, 255, 0.55) 0%, rgba(220, 140, 255, 0) 70%),
        linear-gradient(180deg, #F1E9FC 0%, #F7F1FE 55%, #F3E8FD 100%);
}

/* soft dot grid, faded towards the edges */
.hero-section--light::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(57, 0, 77, 0.10) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000 0%, transparent 100%);
    mask-image: radial-gradient(60% 70% at 50% 50%, #000 0%, transparent 100%);
}

.hero-section--light .hero-content {
    max-width: 920px;
}

.hero-section--light .hero-eyebrow {
    border-color: rgba(57, 0, 77, 0.14);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
}

.hero-section--light .hero-title {
    margin-bottom: 28px;
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
    color: #1d1530;
}

[dir="rtl"] .hero-section--light .hero-title {
    letter-spacing: 0;
}

/* beats the legacy `.hero-content span { color: #F35426 }` rule in style.css */
.hero-section--light .hero-highlight {
    background: linear-gradient(90deg, var(--primary-color) 0%, #8B3DFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-section--light .hero-lead {
    font-size: 17px;
    color: #4A4458;
}

.hero-section--light .hero-text {
    font-size: 16px;
    color: #5E576C;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 980px;
    margin: 40px auto 0;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
    transform: translateY(-2px);
}

.hero-btn--primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7B2FF7 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(91, 20, 160, 0.30);
}

.hero-btn--primary:hover,
.hero-btn--primary:focus-visible {
    color: #fff;
    box-shadow: 0 14px 30px rgba(91, 20, 160, 0.38);
}

.hero-btn--outline {
    border-color: #D6C8E8;
    background: #fff;
    color: #1d1530;
}

.hero-btn--outline:hover,
.hero-btn--outline:focus-visible {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-btn--soft {
    border-color: rgba(57, 0, 77, 0.08);
    background: rgba(255, 255, 255, 0.55);
    color: var(--primary-color);
}

.hero-btn--soft:hover,
.hero-btn--soft:focus-visible {
    background: #fff;
    color: var(--primary-color);
}

@media (max-width: 575.98px) {
    .hero-section--light {
        padding: 64px 0 56px;
    }

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

/* ---------- Section shell ---------- */
.home-section {
    padding: 88px 0;
}

.home-section--white {
    background: #fff;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head--start {
    margin-inline: 0;
    text-align: start;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
}

[dir="rtl"] .section-eyebrow {
    letter-spacing: 0;
}

.section-title {
    margin-bottom: 14px;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-color, #212529);
}

.section-desc {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--sec-text, #6C757D);
}

.section-desc + .section-desc {
    margin-top: 12px;
}

.section-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

/* ---------- Buttons ---------- */
.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    background: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-brand:hover,
.btn-brand:focus-visible {
    background: color-mix(in srgb, var(--primary-color) 85%, #000);
    border-color: color-mix(in srgb, var(--primary-color) 85%, #000);
    color: #fff;
}

.btn-brand--outline {
    background: transparent;
    color: var(--primary-color);
}

.btn-brand--outline:hover,
.btn-brand--outline:focus-visible {
    background: var(--tint-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-brand--light {
    background: #fff;
    border-color: #fff;
    color: var(--primary-color);
}

.btn-brand--light:hover,
.btn-brand--light:focus-visible {
    background: #F1E9F6;
    border-color: #F1E9F6;
    color: var(--primary-color);
}

.btn-brand--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-brand--ghost:hover,
.btn-brand--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn-brand--sm {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
}

.link-arrow {
    display: inline;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--primary-color);
}

.link-arrow:hover {
    color: color-mix(in srgb, var(--primary-color) 75%, #000);
}

.link-arrow i,
.btn-brand .bi-arrow-right {
    display: inline-block;
    transition: transform 0.2s ease;
}

.link-arrow i {
    margin-inline-start: 6px;
    vertical-align: -2px;
}

.link-arrow:hover i {
    transform: translateX(3px);
}

[dir="rtl"] .link-arrow i,
[dir="rtl"] .btn-brand .bi-arrow-right {
    transform: scaleX(-1);
}

[dir="rtl"] .link-arrow:hover i {
    transform: scaleX(-1) translateX(3px);
}

/* ---------- Cards ---------- */
.h-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    border: 1px solid var(--line-color);
    border-radius: 16px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.h-card:hover {
    border-color: var(--tint-strong);
    box-shadow: 0 12px 32px rgba(57, 0, 77, 0.08);
    transform: translateY(-2px);
}

.h-card--compact {
    padding: 22px;
}

.h-card__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--tint-color);
    font-size: 22px;
    color: var(--primary-color);
}

.h-card--compact .h-card__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    font-size: 19px;
}

.h-card--inline {
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.h-card--inline .h-card__icon {
    margin-bottom: 0;
}

.h-card__num {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.h-card__title {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color, #212529);
}

.h-card--compact .h-card__title {
    font-size: 16px;
}

.h-card__text {
    flex-grow: 1;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--sec-text, #6C757D);
}

.h-card--compact .h-card__text {
    font-size: 14px;
    margin-bottom: 16px;
}

.h-card__meta {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sec-text, #6C757D);
}

.h-card__meta strong {
    color: var(--primary-color);
}

.h-card .link-arrow {
    margin-top: auto;
}

/* ---------- Opportunity cards ---------- */
.opp-card .opp-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.opp-card .h-card__title {
    margin-bottom: 0;
}

.opp-card__sector {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

.opp-card__facts {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line-color);
    list-style: none;
}

.opp-card__facts li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color, #212529);
}

.opp-card__facts i {
    flex-shrink: 0;
    color: var(--sec-text, #6C757D);
}

.opp-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.opp-card__actions .btn-brand {
    flex: 1 1 auto;
}

.status-badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge--available {
    background: #E7F6EC;
    color: #1E7B3C;
}

.status-badge--under_review {
    background: #FFF4DE;
    color: #8A5A00;
}

.status-badge--sourcing {
    background: #E6F0FB;
    color: #1F5A9E;
}

/* ---------- Discovery engine ---------- */
.discovery-panel {
    padding: 32px;
    border: 1px solid var(--line-color);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(57, 0, 77, 0.06);
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 18px;
}

.discovery-field--wide {
    grid-column: span 2;
}

.discovery-field label,
.discovery-needs legend,
.form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color, #212529);
}

.discovery-panel .form-select,
.discovery-panel .form-control,
.request-form .form-select,
.request-form .form-control {
    min-height: 46px;
    border-color: #DCD3E2;
    border-radius: 10px;
    font-size: 15px;
}

.request-form textarea.form-control {
    min-height: 120px;
}

.discovery-panel .form-select:focus,
.discovery-panel .form-control:focus,
.request-form .form-select:focus,
.request-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--tint-strong);
}

[dir="rtl"] .discovery-panel .form-select,
[dir="rtl"] .request-form .form-select {
    background-position: left 0.75rem center;
    padding-left: 2.25rem;
    padding-right: 0.75rem;
}

.discovery-needs {
    margin: 22px 0 0;
    padding: 0;
    border: 0;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-check span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #DCD3E2;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    color: var(--text-color, #212529);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip-check input:checked + span {
    border-color: var(--primary-color);
    background: var(--tint-color);
    color: var(--primary-color);
}

.chip-check input:focus-visible + span {
    box-shadow: 0 0 0 3px var(--tint-strong);
}

.discovery-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line-color);
}

.discovery-actions__count {
    margin-inline-end: auto;
    font-size: 14px;
    color: var(--sec-text, #6C757D);
}

.discovery-notice,
.empty-state {
    padding: 40px 24px;
    border: 1px dashed #D6CCDD;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.discovery-notice {
    margin-top: 20px;
    padding: 18px 20px;
    text-align: start;
    font-size: 14px;
    color: var(--sec-text, #6C757D);
}

.empty-state__icon {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--tint-color);
    font-size: 26px;
    color: var(--primary-color);
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
}

.empty-state p {
    max-width: 520px;
    margin: 0 auto 20px;
    color: var(--sec-text, #6C757D);
}

/* ---------- Results toolbar ---------- */
.results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 40px 0 24px;
}

.results-bar__count {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.results-bar form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-bar label {
    margin: 0;
    font-size: 14px;
    color: var(--sec-text, #6C757D);
    white-space: nowrap;
}

.results-bar .form-select {
    min-width: 200px;
    border-radius: 10px;
}

.page-band {
    padding: 64px 0 56px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--footer-bg, #4B0076) 100%);
}

.page-band h1 {
    margin-bottom: 10px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #fff;
}

.page-band p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.82);
}

.page-band .breadcrumb-mini {
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.page-band .breadcrumb-mini a {
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Dark band (Saudi entry, final CTA) ---------- */
.band-dark {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(135deg, var(--primary-color) 0%, var(--footer-bg, #4B0076) 100%);
}

.band-dark .section-eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

.band-dark .section-title {
    color: #fff;
}

.band-dark .section-desc {
    color: rgba(255, 255, 255, 0.82);
}

/* ---------- Pathway split (Saudi entry / export) ---------- */
.pathway-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.pathway-split .section-head {
    margin-bottom: 0;
}

.pathway-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.check-panel {
    padding: 32px;
    border: 1px solid var(--line-color);
    border-radius: 20px;
    background: #fff;
}

.band-dark .check-panel {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.check-panel h3 {
    margin-bottom: 18px;
    font-size: 17px;
    font-weight: 600;
}

.check-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 12px;
    font-size: 15px;
    line-height: 1.55;
}

.check-list i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-color);
}

.band-dark .check-list li {
    color: rgba(255, 255, 255, 0.9);
}

.band-dark .check-list i {
    color: #fff;
}

/* ---------- How to get started tabs ---------- */
.journey-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 32px;
    padding: 6px;
    border: 1px solid var(--line-color);
    border-radius: 14px;
    background: #fff;
    width: fit-content;
    max-width: 100%;
    list-style: none;
}

.journey-tab {
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--sec-text, #6C757D);
    transition: background 0.2s ease, color 0.2s ease;
}

.journey-tab:hover {
    color: var(--primary-color);
}

.journey-tab.active {
    background: var(--primary-color);
    color: #fff;
}

.journey-panel {
    padding: 36px;
    border: 1px solid var(--line-color);
    border-radius: 20px;
    background: #fff;
}

.step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 28px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step-list li {
    display: flex;
    gap: 14px;
    font-size: 15px;
    line-height: 1.55;
    counter-increment: step;
}

.step-list li::before {
    content: counter(step);
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--tint-color);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ---------- Final CTA ---------- */
.final-cta {
    padding: 80px 0;
    text-align: center;
}

.final-cta .section-head {
    margin-bottom: 32px;
}

.final-cta .section-foot {
    margin-top: 0;
}

/* ---------- Request form page ---------- */
.request-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 40px;
    align-items: start;
}

.request-form {
    padding: 32px;
    border: 1px solid var(--line-color);
    border-radius: 20px;
    background: #fff;
}

.request-form .form-field {
    margin-bottom: 18px;
}

.request-form .required::after {
    content: " *";
    color: #C62828;
}

.request-note {
    font-size: 13px;
    color: var(--sec-text, #6C757D);
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-facts li {
    padding: 16px;
    border-radius: 12px;
    background: var(--tint-color);
}

.detail-facts small {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sec-text, #6C757D);
}

.detail-facts span {
    font-weight: 600;
}

/* Text column on the left and image on the right in both languages (RTL would otherwise mirror it) */
@media (min-width: 992px) {
    [dir="rtl"] .split-text-left {
        flex-direction: row-reverse;
    }
}

/* ---------- About page ---------- */
.about-media {
    display: block;
    width: 100%;
    aspect-ratio: 700 / 441;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(57, 0, 77, 0.10);
}

/* ---------- Our services ---------- */
.svc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line-color);
    border-radius: 18px;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.svc-card:hover {
    border-color: var(--tint-strong);
    box-shadow: 0 16px 40px rgba(57, 0, 77, 0.10);
    transform: translateY(-4px);
}

.svc-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tint-color);
}

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

.svc-card:hover .svc-card__media img {
    transform: scale(1.05);
}

.svc-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.svc-card__body .h-card__text {
    margin-bottom: 0;
}

.svc-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line-color);
    list-style: none;
}

.svc-card__tags li {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--tint-color);
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
}

/* Featured opportunity cards (home) */
.feat-card {
    color: inherit;
}

.feat-card:hover {
    color: inherit;
}

.feat-card .svc-card__media {
    position: relative;
}

.feat-card__badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feat-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--sec-text, #6C757D);
}

.feat-card__meta i {
    color: var(--primary-color);
}

/* ---------- Franchise guide ---------- */
.guide-highlight {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    padding: 32px;
    border-color: var(--tint-strong);
}

.guide-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.guide-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color, #212529);
}

.guide-subtitle::before {
    content: "";
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: var(--primary-color);
}

.guide-step__num {
    margin-bottom: 14px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--tint-strong);
    -webkit-text-stroke: 1px var(--primary-color);
}

.guide-role-title {
    margin: 28px 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 575.98px) {
    .guide-highlight {
        flex-direction: column;
        padding: 22px;
    }

    .guide-jump .btn-brand {
        width: 100%;
    }
}

/* ---------- Footer columns ---------- */
.footer-about {
    max-width: 340px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .step-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .home-section {
        padding: 64px 0;
    }

    .discovery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pathway-split,
    .request-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 575.98px) {
    .home-section {
        padding: 52px 0;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .section-desc {
        font-size: 16px;
    }

    .discovery-panel,
    .journey-panel,
    .check-panel,
    .request-form {
        padding: 22px;
    }

    .discovery-grid,
    .step-list,
    .detail-facts {
        grid-template-columns: 1fr;
    }

    .discovery-field--wide {
        grid-column: auto;
    }

    .discovery-actions .btn-brand,
    .section-foot .btn-brand,
    .pathway-actions .btn-brand {
        width: 100%;
    }

    .discovery-actions__count {
        width: 100%;
    }

    .journey-tabs {
        width: 100%;
    }

    .journey-tabs li {
        flex: 1 1 100%;
    }

    .journey-tab {
        width: 100%;
    }

    .results-bar form {
        width: 100%;
    }

    .results-bar .form-select {
        min-width: 0;
        flex: 1;
    }
}

/* ---------- Header navbar and mobile menu (moved from components/app-sidebar; pushed css arrived after the head stack) ---------- */
/* The English pages load Bootstrap 5.0 CSS with the 5.3 JS bundle, which toggles
   .showing/.hiding classes instead of inline visibility. */
.offcanvas.show,
.offcanvas.showing,
.offcanvas.hiding {
    visibility: visible;
}

.offcanvas.showing {
    transform: none;
}

.offcanvas-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background-color: #000;
}

.offcanvas-backdrop.fade {
    opacity: 0;
    transition: opacity .15s linear;
}

.offcanvas-backdrop.show {
    opacity: .5;
}

.custom-sidebar {
    width: min(320px, 86vw) !important;
    background: #fff;
    box-shadow: 0 0 30px rgba(20, 10, 40, 0.18);
    padding: 0;
    z-index: 1060;
}

.custom-sidebar .offcanvas-header {
    padding: 16px 20px;
}

.custom-sidebar .offcanvas-body {
    padding: 12px 20px 24px;
    overflow-y: auto;
}

.nav-menu-mobile .navigation ul {
    padding: 0;
}

.nav-menu-mobile .navigation ul li {
    border-bottom: 1px solid #F0EDF3;
}

.nav-menu-mobile .nav-link {
    padding: 13px 4px !important;
    font-size: 16px !important;
    font-weight: 500;
}

.nav-menu-mobile .nav-link.active {
    color: var(--primary-color, #39004D);
    font-weight: 600;
}

[dir="rtl"] .nav-menu-mobile-caret {
    transform: scaleX(-1);
}

.navbar-nav {
    gap: 0.25rem;
}

.navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    font-size: 16px !important;
    color: #24262b;
    transition: color .2s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color, #39004D);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color, #39004D);
}

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

.main-navbar {
    transition: box-shadow .25s ease;
}

.main-navbar.navbar-scrolled {
    box-shadow: 0 6px 20px rgba(20, 10, 40, 0.1);
}

.header-top-divider {
    color: rgba(255, 255, 255, 0.4);
}

.nav-menu-mobile .nav-link {
    font-size: 16px;
    color: #333;
}

.nav-menu-mobile .nav-link:hover {
    color: var(--primary-color, #39004D);
}

.nav-menu-mobile-caret {
    color: var(--primary-color, #39004D);
}

.menu-bar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #E6E0EC;
    border-radius: 12px;
    background: #fff !important;
    color: var(--primary-color, #39004D);
    font-size: 28px !important;
    line-height: 1;
}

.menu-bar-icon:focus-visible {
    outline: 2px solid var(--primary-color, #39004D);
    outline-offset: 2px;
}

/* Desktop menu: one row inside the container, items spread evenly between the logo and the edge */
.main-navbar > .container {
    flex-wrap: nowrap;
}

.main-navbar .navbar-brand {
    flex-shrink: 0;
    margin-inline-end: 28px;
}

.main-navbar__links {
    flex: 1 1 auto;
    min-width: 0;
}

.main-navbar__links .navbar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    gap: 0;
}

.main-navbar__links .nav-item {
    margin: 0;
    padding: 0;
}

.main-navbar__links .navbar-nav .nav-link {
    padding: 0.5rem 0.25rem !important;
    font-size: 14.5px !important;
    white-space: nowrap;
}

.main-navbar__links .navbar-nav .nav-link::after {
    left: 0.25rem;
    right: 0.25rem;
}

@media (min-width: 1400px) {
    .main-navbar__links .navbar-nav .nav-link {
        font-size: 16px !important;
    }
}
