/* ===========================================================================
   Masarat Alriyadah — public design system
   Palette derived from the official logo:
   navy #152A4E · royal blue #2C5AA0 · green #1F8A4C · gold #BE9B58
   =========================================================================== */

/* Fonts are preloaded from includes/header.php; no @import here so the
   stylesheet never blocks on a second round-trip to Google Fonts. */

:root {
    /* Brand */
    --primary-color: #152a4e;
    --secondary-color: #2c5aa0;
    --accent-color: #1f8a4c;
    --highlight-color: #be9b58;

    /* Tints used for washes, borders and focus rings */
    --primary-050: #eef2f8;
    --primary-100: #d6e0ee;
    --primary-600: #1d3a68;
    --primary-800: #0e1c34;
    --accent-050: #ecf7f0;
    --accent-600: #197340;
    --gold-050: #faf5ea;

    /* Text — every value below clears 4.5:1 on --surface */
    --text-dark: #14213a;
    --text-body: #2f3d55;
    --text-muted: #5a6b85;
    --text-light: #f8f9fa;

    /* Surfaces */
    --surface-page: #f4f7fa;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);

    /* Bootstrap bridge so bg-primary / text-primary follow the brand */
    --bs-primary: #152a4e;
    --bs-primary-rgb: 21, 42, 78;
    --bs-link-color: #1d3a68;
    --bs-link-hover-color: #2c5aa0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--surface-page);
    color: var(--text-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
}

/* A colour set on the element itself beats one inherited from an ancestor, so
   the rule above would otherwise repaint headings dark inside light-on-dark
   sections (heroes, footer, overlays) — the text then vanishes against its own
   background. Hand those contexts back their inherited colour. */
[class*="text-white"] h1, [class*="text-white"] h2, [class*="text-white"] h3,
[class*="text-white"] h4, [class*="text-white"] h5, [class*="text-white"] h6,
.fat-footer h1, .fat-footer h2, .fat-footer h3,
.fat-footer h4, .fat-footer h5, .fat-footer h6,
.page-hero h1, .page-hero h2, .page-hero h3,
.blog-hero h1, .blog-hero h2,
.article-hero h1, .article-hero h2,
.join-page > .container h1,
.hero-section h1, .hero-section h2, .hero-section h3,
.swiper-slide h1, .swiper-slide h2, .swiper-slide h3 {
    color: #fff;
}

/* Paragraphs inherit. Any rule that sets a colour on `p` directly — however
   it is scoped — outranks an inherited one and repaints copy inside dark
   panels, so the body tone is carried by `body` alone and components override
   it explicitly where they need to. */
p {
    color: inherit;
}

/* Bootstrap's .text-muted is too light against our page wash. */
.text-muted {
    color: var(--text-muted) !important;
}

/* Visible focus ring for keyboard users on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Skip link — first tab stop on every page.
   Centred with auto inline margins rather than a 50% offset plus a negative
   translate: the translate approach lands off-canvas under `dir="rtl"`. */
.skip-link {
    position: absolute;
    inset-inline: 0;
    top: 8px;
    width: fit-content;
    margin-inline: auto;
    transform: translateY(-160%);
    z-index: 2000;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 22px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
    color: #fff;
}

::selection {
    background: var(--secondary-color);
    color: #fff;
}

/* Floating Navbar */
.navbar-floating {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 2rem;
    z-index: 1050;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.navbar-floating.scrolled {
    top: 10px;
    width: 95%;
    padding: 0.5rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

/* Solid brand colour, never gradient-clipped text.
   `-webkit-text-fill-color: transparent` used to paint the wordmark with the
   element background; wherever that background failed to resolve the text
   rendered invisible and only became readable once selected. */
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    -webkit-text-fill-color: currentColor;
    text-decoration: none;
}

.navbar-brand span {
    color: var(--primary-color);
    -webkit-text-fill-color: currentColor;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    background: rgba(0, 180, 216, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background-color: var(--accent-color);
    transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: translateX(-50%) scale(1);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.6);
    color: #fff;
}

/* Horizontal Scroll Filter Bar */
.horizontal-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.horizontal-filter-bar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-color: #fff;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.filter-pill:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 168, 232, 0.3);
    border-color: transparent;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 150px 0 100px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 20%);
    background-size: 50px 50px;
    animation: floating 20s linear infinite;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes floating {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-50px) translateX(-50px); }
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.course-card .badge-price {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

/* Hover Lift Utility */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Fat Footer */
.fat-footer {
    background: linear-gradient(135deg, #061b30, var(--primary-color));
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.fat-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%231f8a4c" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.5;
    pointer-events: none;
}

.fat-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.fat-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* RTL default */
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}
html[dir="ltr"] .fat-footer h5::after {
    right: auto;
    left: 0;
}

.fat-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fat-footer ul li {
    margin-bottom: 12px;
}

.fat-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.fat-footer a:hover {
    color: var(--accent-color);
    transform: translateX(-5px); /* RTL */
}
html[dir="ltr"] .fat-footer a:hover {
    transform: translateX(5px);
}

.social-glow a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #fff;
    margin-left: 10px;
    transition: all 0.3s ease;
}
html[dir="ltr"] .social-glow a {
    margin-left: 0;
    margin-right: 10px;
}

.social-glow a:hover {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transform: translateY(-3px);
}

.newsletter-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}
.newsletter-form .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 180, 216, 0.25);
}
.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* =========================================================
   Masarat finishing layer
   ========================================================= */
:root {
    --surface: #ffffff;
    --surface-soft: #f6f8fb;
    --surface-muted: #eef3f7;
    --ink: #142033;
    --ink-muted: #5c6b7a;
    --line: rgba(20, 32, 51, 0.1);
    --radius-card: 8px;
    --shadow-soft: 0 12px 30px rgba(20, 32, 51, 0.08);
    --shadow-lift: 0 18px 42px rgba(20, 32, 51, 0.12);
}

html {
    scroll-behavior: smooth;
}

body.public-site {
    background: var(--surface-soft);
    color: var(--ink);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
    max-width: 100%;
}

a,
button,
.btn {
    touch-action: manipulation;
}

.container {
    width: min(calc(100% - 24px), 1180px);
    max-width: 1180px;
}

body.public-site main,
.hero-swiper,
section,
.fat-footer {
    max-width: 100vw;
}

html,
body.public-site,
body.public-site main {
    overflow-x: hidden;
}

@supports (overflow: clip) {
    body.public-site main,
    .hero-swiper,
    section {
        overflow-x: clip;
    }
}

.swiper,
.swiper-wrapper,
.swiper-slide {
    max-width: 100%;
}

.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(11, 43, 77, 0.08);
    background: #fff;
}

.navbar-floating {
    top: 12px;
    width: min(96%, 1320px);
    border-radius: 18px;
    padding: 0.65rem 1rem;
    box-shadow: 0 18px 50px rgba(20, 32, 51, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.navbar-floating.scrolled {
    top: 8px;
    border-radius: 14px;
    padding: 0.45rem 1rem;
}

.navbar-brand {
    max-width: 280px;
    min-width: 0;
}

.navbar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-link {
    border-radius: 8px;
    padding: 0.55rem 0.75rem !important;
}

.nav-link.active {
    color: var(--accent-color) !important;
    background: rgba(0, 180, 216, 0.08);
}

.navbar-actions {
    min-width: fit-content;
}

.nav-utility-link,
.language-switch {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
}

.btn-primary-custom,
.btn-outline-primary,
.btn-outline-light,
.filter-pill {
    min-height: 42px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 10px 24px rgba(0, 168, 232, 0.22);
}

.btn-primary-custom:hover {
    box-shadow: 0 14px 28px rgba(0, 168, 232, 0.28);
}

.hero-swiper {
    min-height: 620px;
    background: var(--primary-color);
}

.hero-swiper .container {
    padding-top: 76px;
    padding-bottom: 56px;
}

.hero-swiper h1,
.hero-section h1 {
    max-width: 920px;
    line-height: 1.15;
    text-wrap: balance;
}

.public-hero-title {
    width: min(100%, 920px);
    margin-inline: auto;
    text-align: center;
}

.hero-swiper .lead,
.hero-section .lead {
    max-width: 760px;
    line-height: 1.9;
}

.hero-proof-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -18px auto 30px;
    max-width: 820px;
}

.hero-proof-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.hero-proof-row i {
    color: #7de3ff;
    font-size: 1rem;
}

section {
    scroll-margin-top: 96px;
}

.bg-light {
    background-color: var(--surface-soft) !important;
}

.glass-card,
.card,
.rounded-4 {
    border-radius: var(--radius-card) !important;
}

.glass-card,
.card {
    border: 1px solid var(--line) !important;
    box-shadow: 0 6px 18px rgba(20, 32, 51, 0.06) !important;
}

.glass-card:hover,
.card:hover,
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift) !important;
}

.course-card .card-img-top,
.course-card [style*="height: 220px"],
.card [style*="height: 220px"] {
    border-radius: 0 !important;
}

.horizontal-filter-bar {
    gap: 10px;
    padding: 8px 2px 14px;
    scroll-padding-inline: 16px;
}

.filter-pill {
    border-radius: 999px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    box-shadow: none;
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.fat-footer {
    padding: 64px 0 28px;
}

.fat-footer h3,
.fat-footer h5 {
    color: #fff;
}

.fat-footer p,
.fat-footer li,
.fat-footer a {
    line-height: 1.8;
}

.fat-footer .social-glow {
    gap: 10px;
}

.social-glow a {
    margin: 0;
    border-radius: 8px;
}

.newsletter-form .input-group {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.newsletter-form .form-control,
.newsletter-form .btn {
    border-radius: 0 !important;
}

.table-responsive {
    border-radius: 8px;
}

@media (min-width: 768px) {
    .w-md-75 {
        width: 75% !important;
    }
}

@media (max-width: 1199.98px) {
    .navbar-floating {
        width: calc(100% - 20px);
    }

    .navbar-floating .navbar-collapse {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(20, 32, 51, 0.09);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .navbar-floating .navbar-nav {
        gap: 4px;
    }

    .navbar-floating .nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.7rem 0.85rem !important;
    }

    .navbar-actions {
        width: 100%;
        margin: 12px 0 0 !important;
        padding: 12px 0 0 !important;
        border-inline: 0 !important;
        border-top: 1px solid rgba(20, 32, 51, 0.09);
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .navbar-actions > * {
        flex: 1 1 auto;
        justify-content: center;
    }

    .navbar-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    body.public-site {
        font-size: 15px;
    }

    .container {
        width: min(calc(100% - 20px), 1180px);
    }

    .navbar-floating {
        top: 8px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        transform: none;
        border-radius: 12px;
        padding: 0.5rem 0.7rem;
    }

    .navbar-brand {
        max-width: calc(100vw - 120px);
        font-size: 1.05rem !important;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .hero-swiper {
        height: auto !important;
        min-height: 100svh;
        width: 100vw;
        margin-inline: 0;
    }

    .hero-swiper .container {
        min-height: 100svh;
        padding-top: 108px;
        padding-bottom: 84px;
        align-items: stretch !important;
        text-align: start !important;
    }

    .hero-swiper h1,
    .hero-section h1,
    .display-3,
    .display-4 {
        font-size: 2.15rem;
        line-height: 1.25;
    }

    .hero-swiper .lead,
    .hero-section .lead,
    .lead {
        font-size: 1rem;
        line-height: 1.8;
    }

    .hero-nav-btn {
        display: none;
    }

    section.py-5,
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .glass-card,
    .card {
        padding: 20px !important;
    }

    .course-card,
    .card.h-100 {
        padding: 0 !important;
    }

    .card-body,
    .course-card .p-4 {
        padding: 1.1rem !important;
    }

    .horizontal-filter-bar {
        margin-inline: -10px;
        padding-inline: 10px;
    }

    .horizontal-filter-bar ~ .position-absolute {
        display: none;
    }

    .filter-pill {
        flex: 0 0 auto;
        max-width: 78vw;
        padding: 9px 15px;
        font-size: 0.92rem;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .fat-footer {
        text-align: start;
        padding-top: 48px;
        padding-bottom: calc(42px + 86px + env(safe-area-inset-bottom));
        margin-bottom: calc(-86px - env(safe-area-inset-bottom));
    }

    .fat-footer [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .fat-footer .row {
        row-gap: 28px !important;
    }

    .fat-footer .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .fat-footer .col-lg-4 {
        margin-bottom: 0 !important;
    }

    .fat-footer p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .fat-footer .row > .footer-link-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }

    .footer-link-col h5 {
        font-size: 1rem;
        white-space: nowrap;
    }

    .footer-link-col ul li {
        margin-bottom: 10px;
    }

    .footer-link-col a {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .fat-footer .footer-bottom .d-flex {
        gap: 10px !important;
    }

    .newsletter-form .input-group {
        display: flex;
        flex-wrap: nowrap;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }

    .verify-search-box {
        display: grid !important;
        grid-template-columns: 1fr;
        border-radius: 18px !important;
        gap: 8px;
    }

    .verify-search-box .form-control,
    .verify-search-box .btn {
        width: 100%;
        min-height: 54px;
        border-radius: 14px !important;
        text-align: center;
    }

    .public-hero-title {
        width: min(100%, 680px);
        margin-inline: auto !important;
        text-align: center !important;
        overflow-wrap: anywhere;
    }

    .hero-section {
        min-height: 34vh !important;
        padding: 120px 0 64px;
        background-attachment: scroll !important;
    }

    .policy-body {
        font-size: 1rem !important;
        line-height: 1.85 !important;
    }

    .policy-body h2,
    .policy-body h3 {
        line-height: 1.45;
        margin-top: 1.35rem;
    }

    .list-group-item-action {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .contact-page-card,
    .contact-info-card {
        border-radius: 14px !important;
    }

    .contact-page-card .form-control,
    .contact-page-card .btn {
        min-height: 52px;
        border-radius: 14px !important;
    }

    .contact-info-item {
        align-items: flex-start !important;
        gap: 12px;
    }

    .contact-info-item > .bg-white {
        margin: 0 !important;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
    }

    .contact-info-item span,
    .contact-info-item a {
        overflow-wrap: anywhere;
    }

    .diploma-search-panel {
        display: grid !important;
        grid-template-columns: auto 1fr;
        border-radius: 18px !important;
        padding: 10px !important;
        gap: 8px;
    }

    .diploma-search-panel .btn {
        grid-column: 1 / -1;
        min-height: 50px;
        width: 100%;
    }

    .diploma-card-modern .row {
        flex-direction: column !important;
    }

    .diploma-card-modern [style*="min-height: 420px"] {
        min-height: 260px !important;
    }

    .diploma-card-copy {
        padding-inline: 0 !important;
        text-align: start;
    }

    .diploma-title {
        font-size: 1.55rem !important;
    }

    .diploma-excerpt {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .gallery-album-card,
    .card-img-top {
        max-width: 100%;
    }
}

@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;
    }
}

/* =========================================================
   Mobile app-like experience
   ========================================================= */
.mobile-menu-head,
.mobile-nav-icon,
.mobile-action-dock {
    display: none;
}

.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: rgba(11, 43, 77, 0.06);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mobile-menu-toggle i {
    font-size: 1.55rem;
    line-height: 1;
}

.mobile-menu-toggle:active {
    transform: scale(0.94);
}

@media (max-width: 991.98px) {
    html,
    body,
    body.public-site {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden !important;
        overscroll-behavior-x: none;
    }

    body.public-menu-open {
        overflow: hidden !important;
    }

    body.public-site {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
        background: #f6f8fb;
    }

    .navbar-floating {
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        top: max(8px, env(safe-area-inset-top));
        width: auto !important;
        max-width: none;
        transform: none !important;
        border-radius: 18px;
        padding: 0.55rem 0.65rem;
        box-shadow: 0 14px 36px rgba(10, 25, 41, 0.15);
    }

    .navbar-floating .container-fluid {
        padding-inline: 0;
        min-width: 0;
    }

    .navbar-brand {
        max-width: calc(100vw - 92px);
        min-width: 0;
        padding: 0;
    }

    .navbar-brand span {
        font-size: 1.02rem;
        line-height: 1;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .navbar-floating .navbar-collapse,
    .navbar-floating .navbar-collapse.collapsing {
        position: fixed;
        top: calc(-1 * max(9px, env(safe-area-inset-top)));
        left: calc(-1 * max(10px, env(safe-area-inset-left)));
        right: auto;
        bottom: auto;
        z-index: 2000;
        margin: 0;
        padding: calc(22px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom));
        max-height: none;
        height: 100dvh !important;
        width: calc(100dvw + max(10px, env(safe-area-inset-left)));
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        background:
            radial-gradient(circle at 20% 0%, rgba(0, 180, 216, 0.16), transparent 30%),
            linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,251,0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: none;
    }

    body.public-menu-open {
        overflow: hidden;
        touch-action: none;
    }

    .navbar-floating .navbar-collapse.collapsing {
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .navbar-floating .navbar-collapse:not(.show) {
        pointer-events: none;
    }

    .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 22px;
    }

    .mobile-menu-kicker {
        display: block;
        color: var(--accent-color);
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0;
        margin-bottom: 4px;
    }

    .mobile-menu-head h3 {
        margin: 0;
        color: var(--primary-color);
        font-size: clamp(1.25rem, 6.4vw, 1.85rem);
        font-weight: 800;
    }

    .mobile-menu-close {
        width: 46px;
        height: 46px;
        border: 1px solid rgba(11, 43, 77, 0.1);
        border-radius: 14px;
        color: var(--primary-color);
        background: #fff;
        box-shadow: 0 10px 26px rgba(20, 32, 51, 0.08);
    }

    .navbar-floating .navbar-nav {
        width: 100%;
        gap: 10px;
        margin: 0 !important;
        padding: 0;
        text-wrap: nowrap;
    }

    .navbar-floating .nav-item {
        opacity: 0;
        transform: translateY(12px);
        animation: mobileMenuItem 0.34s ease forwards;
    }

    .navbar-floating .navbar-collapse.show .nav-item:nth-child(1) { animation-delay: 0.03s; }
    .navbar-floating .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 0.06s; }
    .navbar-floating .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 0.09s; }
    .navbar-floating .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 0.12s; }
    .navbar-floating .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 0.15s; }
    .navbar-floating .navbar-collapse.show .nav-item:nth-child(6) { animation-delay: 0.18s; }
    .navbar-floating .navbar-collapse.show .nav-item:nth-child(7) { animation-delay: 0.21s; }

    @keyframes mobileMenuItem {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-floating .nav-link {
        min-height: 58px;
        padding: 0.8rem 1rem !important;
        border: 1px solid rgba(20, 32, 51, 0.08);
        border-radius: 16px;
        background: #fff;
        color: var(--primary-color) !important;
        font-size: 1.02rem;
        font-weight: 800;
        box-shadow: 0 10px 24px rgba(20, 32, 51, 0.055);
        justify-content: flex-start;
        gap: 12px;
    }

    html[dir="rtl"] .navbar-floating .nav-link {
        justify-content: flex-start;
    }

    .mobile-nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 11px;
        color: var(--accent-color);
        background: rgba(0, 180, 216, 0.1);
        font-size: 1.05rem;
        flex: 0 0 34px;
    }

    .navbar-floating .nav-link.active {
        color: #fff !important;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        border-color: transparent;
        box-shadow: 0 16px 32px rgba(0, 168, 232, 0.22);
    }

    .navbar-floating .nav-link.active .mobile-nav-icon {
        color: #fff;
        background: rgba(255, 255, 255, 0.18);
    }

    .navbar-floating .nav-link::after {
        display: none;
    }

    .navbar-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
        width: 100%;
        margin: 18px 0 0 !important;
        padding: 18px 0 0 !important;
        border: 0 !important;
        border-top: 1px solid rgba(20, 32, 51, 0.08) !important;
    }

    .navbar-actions .btn {
        grid-column: 1 / -1;
        min-height: 54px;
        border-radius: 16px !important;
    }

    .nav-utility-link,
    .language-switch {
        min-height: 50px;
        border: 1px solid rgba(20, 32, 51, 0.08) !important;
        border-radius: 14px;
        background: #fff;
        justify-content: center;
    }

    .mobile-action-dock {
        position: fixed;
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        z-index: 1040;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.76);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 16px 38px rgba(10, 25, 41, 0.18);
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    body.public-menu-open .mobile-action-dock {
        opacity: 0;
        transform: translateY(110%);
        pointer-events: none;
    }

    .mobile-action-dock.is-hidden {
        opacity: 0;
        transform: translateY(calc(100% + 20px));
        pointer-events: none;
    }

    .mobile-action-dock a {
        min-width: 0;
        min-height: 54px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 15px;
        color: var(--primary-color);
        text-decoration: none;
        font-size: 0.74rem;
        font-weight: 800;
        line-height: 1.15;
        position: relative;
        overflow: hidden;
        transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
    }

    .mobile-action-dock a i {
        font-size: 1.2rem;
    }

    .mobile-action-dock a.active,
    .mobile-action-dock a:active {
        color: #fff;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        transform: translateY(-2px);
    }

    .hero-swiper {
        min-height: 100svh;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .hero-swiper .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .hero-swiper .container {
        width: 100%;
        max-width: 100%;
        padding-inline: 22px;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hero-swiper h1 {
        max-width: 100%;
        font-size: clamp(2.05rem, 10vw, 3.1rem);
        line-height: 1.18;
        margin-inline: auto;
        overflow-wrap: anywhere;
    }

    .hero-swiper .lead {
        max-width: 100%;
        margin-inline: auto;
        font-size: clamp(1rem, 4.2vw, 1.18rem);
        line-height: 1.85;
    }

    .hero-proof-row {
        display: grid;
        grid-template-columns: 1fr;
        width: min(100%, 320px);
        margin: -14px auto 24px;
        gap: 8px;
    }

    .hero-proof-row span {
        justify-content: center;
        min-height: 42px;
        font-size: 0.86rem;
    }

    .hero-swiper .btn,
    .btn-primary-custom {
        position: relative;
        overflow: hidden;
    }

    .hero-swiper .btn {
        width: min(100%, 320px);
        min-height: 56px;
        justify-content: center;
        border-radius: 18px !important;
        font-size: 1.03rem;
    }

    .hero-pagination {
        bottom: 84px !important;
    }

    .hero-pagination .swiper-pagination-bullet {
        width: 9px;
        height: 9px;
    }

    .btn-primary-custom:active,
    .filter-pill:active,
    .card:active,
    .glass-card:active {
        transform: scale(0.98);
    }

    .card,
    .glass-card,
    .filter-pill,
    .btn {
        position: relative;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
    }

    .btn::before,
    .filter-pill::before,
    .mobile-action-dock a::before,
    .navbar-floating .nav-link::before {
        content: '';
        position: absolute;
        left: var(--tap-x, 50%);
        top: var(--tap-y, 50%);
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.38);
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: none;
    }

    .filter-pill::before,
    .mobile-action-dock a::before,
    .navbar-floating .nav-link::before {
        background: rgba(0, 180, 216, 0.16);
    }

    .tap-active::before {
        animation: tapRipple 0.48s ease-out;
    }

    @keyframes tapRipple {
        0% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        100% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(24);
        }
    }
}

@media (max-width: 380px) {
    .hero-swiper .container {
        padding-inline: 16px;
    }

    .navbar-floating {
        left: 8px;
        right: 8px;
    }

    .navbar-floating .navbar-collapse,
    .navbar-floating .navbar-collapse.collapsing {
        left: calc(-1 * max(10px, env(safe-area-inset-left)));
    }

    .mobile-action-dock {
        left: 8px;
        right: 8px;
    }

    .mobile-action-dock a span {
        font-size: 0.68rem;
    }
}

/* =========================================================
   Visual content enrichment
   ========================================================= */
.about-feature-section {
    padding: 72px 0 56px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.about-copy-panel {
    max-width: 680px;
}

html[dir="rtl"] .about-copy-panel {
    text-align: right;
}

html[dir="ltr"] .about-copy-panel {
    text-align: left;
}

.about-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 180, 216, 0.18);
    border-radius: 999px;
    background: rgba(0, 180, 216, 0.08);
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.about-copy-panel h2 {
    max-width: 640px;
    margin-bottom: 18px;
    color: var(--primary-color);
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1.18;
    font-weight: 800;
}

.about-copy-panel p {
    max-width: 640px;
    margin-bottom: 28px;
    color: #526173;
    font-size: 1.08rem;
    line-height: 2;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.about-actions .btn {
    min-height: 48px;
    padding-inline: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.about-visual-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 8px;
    background: #e9eef5;
    box-shadow: 0 24px 70px rgba(10, 25, 41, 0.16);
}

.about-visual-card img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    display: block;
}

.about-visual-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(11, 43, 77, 0), rgba(11, 43, 77, 0.78));
    pointer-events: none;
}

.about-visual-badge {
    position: absolute;
    inset-inline: 22px;
    bottom: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(10, 25, 41, 0.18);
}

.about-visual-badge i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 180, 216, 0.12);
    color: var(--secondary-color);
    font-size: 1.15rem;
    flex: 0 0 38px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.about-stat-card {
    min-height: 124px;
    padding: 24px 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(10, 25, 41, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-stat-card strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--primary-color, #152a4e);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    font-weight: 800;
}

.about-stat-card strong span,
.about-stat-card strong .counter {
    font-size: clamp(2rem, 3.5vw, 2.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

.about-stat-card .stat-label,
.about-stat-card span:last-child {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.about-rich-content {
    margin-top: 36px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(10, 25, 41, 0.07);
    color: #334155;
    font-size: 1rem;
    line-height: 1.95;
}

html[dir="rtl"] .about-rich-content {
    text-align: right;
}

html[dir="ltr"] .about-rich-content {
    text-align: left;
}

.about-rich-content section {
    padding: 0;
    margin: 0 0 34px;
}

.about-rich-content section:last-child {
    margin-bottom: 0;
}

.about-rich-content .container {
    width: auto;
    max-width: none;
    padding: 0;
}

.about-rich-content h1,
.about-rich-content h2,
.about-rich-content h3 {
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.35;
}

.about-rich-content h1 {
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    margin-bottom: 12px;
}

.about-rich-content h2 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    margin: 0 0 14px;
}

.about-rich-content h3 {
    font-size: 1.08rem;
    margin: 0 0 10px;
}

.about-rich-content p {
    margin-bottom: 14px;
    color: #475569;
}

.about-rich-content ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    padding-inline-start: 1.25rem;
    margin: 18px 0 0;
}

.about-rich-content li {
    color: #475569;
    line-height: 1.75;
}

.about-rich-content .values-grid,
.about-rich-content .market-benefits,
.about-rich-content .vision-mission {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.about-rich-content .value-card,
.about-rich-content .benefit-item,
.about-rich-content .vision-box,
.about-rich-content .mission-box {
    height: 100%;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    background: #f8fafc;
}

.about-rich-content .cta-section {
    padding: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(11, 43, 77, 0.96), rgba(0, 180, 216, 0.88));
    color: #fff;
}

.about-rich-content .cta-section h2,
.about-rich-content .cta-section p {
    color: #fff;
}

.about-rich-content a.btn-primary,
.about-rich-content a.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 6px 0;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.about-rich-content a.btn-primary {
    background: var(--secondary-color);
    color: #fff;
}

.about-rich-content a.btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 1px solid rgba(11, 43, 77, 0.12);
}

@media (max-width: 991.98px) {
    .about-feature-section {
        padding: 44px 0 36px;
    }

    .about-copy-panel h2,
    .about-copy-panel p {
        max-width: none;
    }

    .about-visual-card,
    .about-visual-card img {
        min-height: 340px;
    }

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

    .about-rich-content ul,
    .about-rich-content .values-grid,
    .about-rich-content .market-benefits,
    .about-rich-content .vision-mission {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .about-actions .btn {
        width: 100%;
    }

    .about-stats-grid {
        gap: 10px;
    }

    .about-stat-card {
        padding: 16px 12px;
        min-height: 104px;
    }
}

.visual-trust-strip {
    position: relative;
    margin-top: -42px;
    z-index: 5;
    padding: 0 0 42px;
}

.visual-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(20, 32, 51, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.visual-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    min-height: 88px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fbfd);
    border: 1px solid rgba(20, 32, 51, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.visual-trust-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(20, 32, 51, 0.1);
}

.visual-trust-item i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 10px 22px rgba(0, 168, 232, 0.18);
    font-size: 1.15rem;
}

.visual-trust-item strong,
.visual-trust-item span {
    display: block;
}

.visual-trust-item strong {
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.35;
}

.visual-trust-item span {
    color: var(--ink-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.academy-experience-section {
    position: relative;
    padding: 90px 0;
    background:
        linear-gradient(180deg, #fff 0%, #f7fafc 100%);
    overflow: hidden;
}

.experience-steps {
    display: grid;
    gap: 12px;
}

.experience-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(20, 32, 51, 0.08);
    box-shadow: 0 10px 24px rgba(20, 32, 51, 0.06);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.experience-step:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 180, 216, 0.28);
    box-shadow: 0 18px 38px rgba(20, 32, 51, 0.1);
}

.experience-step > span {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(0, 180, 216, 0.1);
}

.experience-step strong {
    display: block;
    color: var(--ink);
    margin-bottom: 3px;
}

.experience-step p {
    margin: 0;
    color: var(--ink-muted);
    line-height: 1.65;
}

.experience-visual-board {
    position: relative;
    min-height: 560px;
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 26px 60px rgba(10, 25, 41, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: var(--primary-color);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.experience-visual-board:hover {
    transform: translateY(-4px);
    box-shadow: 0 34px 70px rgba(10, 25, 41, 0.22);
}

.experience-main-img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    display: block;
    filter: saturate(1.08) contrast(1.04);
    transition: transform 0.8s ease;
}

.experience-visual-board:hover .experience-main-img {
    transform: scale(1.04);
}

.experience-visual-board::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(11, 43, 77, 0.05), rgba(11, 43, 77, 0.76)),
        linear-gradient(90deg, rgba(0, 180, 216, 0.32), transparent 55%);
    pointer-events: none;
}

.experience-floating-card {
    position: absolute;
    z-index: 3;
    display: grid;
    gap: 4px;
    min-width: 170px;
    padding: 16px;
    border-radius: 10px;
    color: #fff;
    background: rgba(9, 25, 43, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.experience-floating-card i {
    font-size: 1.3rem;
    color: #61d7f5;
}

.experience-floating-card strong {
    font-size: 0.9rem;
    line-height: 1.4;
}

.experience-floating-card span {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.experience-floating-card.card-top {
    top: 24px;
    inset-inline-start: 24px;
}

.experience-floating-card.card-bottom {
    bottom: 128px;
    inset-inline-end: 24px;
}

.experience-mini-gallery {
    position: absolute;
    z-index: 4;
    left: 22px;
    right: 22px;
    bottom: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.experience-mini-gallery img {
    height: 92px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

@media (max-width: 991.98px) {
    .visual-trust-strip {
        margin-top: -24px;
        padding-bottom: 30px;
    }

    .visual-trust-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 10px;
        margin-inline: -10px;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .visual-trust-grid::-webkit-scrollbar {
        display: none;
    }

    .visual-trust-item {
        min-width: 255px;
        scroll-snap-align: start;
        box-shadow: 0 12px 28px rgba(20, 32, 51, 0.09);
    }

    .academy-experience-section {
        padding: 64px 0;
    }

    .academy-experience-section .lead {
        font-size: 1rem;
    }

    .experience-visual-board {
        min-height: 470px;
    }

    .experience-main-img {
        min-height: 470px;
    }

    .experience-floating-card {
        min-width: 142px;
        padding: 13px;
    }

    .experience-floating-card.card-bottom {
        bottom: 112px;
    }

    .experience-mini-gallery img {
        height: 78px;
    }
}

@media (max-width: 575.98px) {
    .visual-trust-item {
        min-width: 235px;
    }

    .experience-step {
        padding: 14px;
    }

    .experience-visual-board {
        min-height: 430px;
        border-radius: 8px;
    }

    .experience-main-img {
        min-height: 430px;
    }

    .experience-floating-card.card-top {
        top: 16px;
        inset-inline-start: 16px;
    }

    .experience-floating-card.card-bottom {
        inset-inline-end: 16px;
        bottom: 104px;
    }

    .experience-mini-gallery {
        left: 14px;
        right: 14px;
        bottom: 14px;
        gap: 8px;
    }

    .experience-mini-gallery img {
        height: 70px;
    }
}

/* =========================================================
   Verify and diplomas refinement layer
   ========================================================= */
.verify-page {
    isolation: isolate;
}

.verify-shell {
    padding-top: 18px;
    padding-bottom: 18px;
}

.verify-heading h2,
.diploma-section-heading h2 {
    letter-spacing: 0;
}

.verify-search-card,
.verify-result-card,
.diploma-card-modern,
.stat-card-premium {
    border-radius: 8px !important;
}

.verify-result-card {
    border-width: 1px !important;
    border-color: rgba(25, 135, 84, 0.24) !important;
}

.verify-result-grid {
    background: #f7fafc !important;
    border: 1px solid rgba(20, 32, 51, 0.08);
}

.verify-result-grid h5,
.verify-result-grid h6 {
    overflow-wrap: anywhere;
}

.verify-page .btn {
    white-space: normal;
}

html[dir="rtl"] .verify-page,
html[dir="rtl"] .diploma-list-section,
html[dir="rtl"] .diploma-card-copy,
html[dir="rtl"] .diploma-search-panel input {
    text-align: right !important;
}

html[dir="rtl"] .verify-heading,
html[dir="rtl"] .diploma-hero .parallax-content,
html[dir="rtl"] .diploma-section-heading {
    text-align: right !important;
}

html[dir="rtl"] .verify-heading p,
html[dir="rtl"] .diploma-hero .lead {
    margin-right: 0 !important;
    margin-left: auto !important;
}

.diploma-hero {
    min-height: 48vh !important;
    background-attachment: scroll !important;
}

.diploma-hero::before,
.diploma-hero-decor {
    display: none !important;
}

.diploma-hero-overlay {
    background:
        linear-gradient(135deg, rgba(8, 30, 52, 0.9) 0%, rgba(10, 83, 123, 0.82) 62%, rgba(197, 160, 89, 0.32) 100%) !important;
}

.diploma-hero .container {
    max-width: 980px;
}

.diploma-hero .badge {
    border-radius: 8px !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

.diploma-hero h1 {
    font-size: clamp(2.35rem, 5.5vw, 4.6rem);
}

.diploma-hero .lead {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.86) !important;
}

.diploma-stats-section {
    margin-top: 0 !important;
    padding-top: 34px !important;
}

.diploma-stats-section [data-aos],
.diploma-feature-ribbon [data-aos],
.diploma-list-section [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

.stat-card-premium {
    padding: 28px !important;
    box-shadow: 0 10px 26px rgba(20, 32, 51, 0.08) !important;
}

.stat-card-premium > .position-absolute {
    display: none !important;
}

.stat-card-premium h2 {
    font-size: clamp(2.2rem, 4.4vw, 3.25rem) !important;
    line-height: 1;
}

.stat-card-premium:hover {
    transform: translateY(-4px);
}

.stat-icon-wrapper {
    width: 62px;
    height: 62px;
    border-radius: 8px;
    font-size: 1.65rem;
    margin-bottom: 18px;
    transform: none;
}

.stat-icon-wrapper::after {
    border-radius: 8px;
}

.diploma-feature-ribbon .d-flex {
    min-height: 54px;
    padding: 10px 14px;
    border: 1px solid rgba(20, 32, 51, 0.08);
    border-radius: 8px;
    background: #fff;
}

.diploma-list-section {
    background: linear-gradient(180deg, #f4f7f6 0%, #ffffff 100%) !important;
}

.diploma-section-heading {
    max-width: 760px;
}

html[dir="ltr"] .diploma-section-heading {
    margin-inline: auto;
}

html[dir="rtl"] .diploma-section-heading {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

.diploma-search-panel {
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(20, 32, 51, 0.08) !important;
}

.diploma-search-panel .btn {
    border-radius: 8px !important;
    min-width: 112px;
}

.diploma-card-modern {
    border-color: rgba(20, 32, 51, 0.09) !important;
    box-shadow: 0 16px 42px rgba(20, 32, 51, 0.08) !important;
}

.diploma-card-modern .card-glow {
    display: none !important;
}

.diploma-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(20, 32, 51, 0.12) !important;
}

.diploma-card-modern .rounded-4 {
    border-radius: 8px !important;
}

.diploma-card-modern img {
    min-height: 320px;
}

.diploma-card-copy {
    max-width: 760px;
}

.diploma-card-copy .badge {
    border-radius: 8px !important;
    letter-spacing: 0 !important;
}

.diploma-title {
    font-size: clamp(1.65rem, 3vw, 2.45rem) !important;
}

.diploma-excerpt {
    font-size: 1.05rem !important;
    margin-bottom: 1.7rem !important;
}

.feature-box {
    border-radius: 8px !important;
}

.feature-box:hover {
    transform: translateY(-2px);
}

.diploma-actions .btn {
    border-radius: 8px !important;
}

html[dir="rtl"] .diploma-actions {
    justify-content: flex-start;
}

@media (max-width: 991.98px) {
    .verify-page {
        margin-top: 68px !important;
        min-height: auto !important;
    }

    .verify-shell {
        padding-top: 24px;
        padding-bottom: 88px;
    }

    .verify-heading {
        margin-bottom: 1.5rem !important;
    }

    .verify-heading h2 {
        font-size: clamp(1.7rem, 7vw, 2.25rem);
    }

    .verify-search-card,
    .verify-result-card {
        padding: 18px !important;
    }

    .verify-result-grid {
        padding: 18px !important;
        gap: 14px 0;
    }

    .verify-result-card .bi-check-circle-fill {
        font-size: 3.4rem !important;
    }

    .diploma-hero {
        margin-top: 72px !important;
        min-height: auto !important;
        padding: 84px 0 56px;
        text-align: start !important;
    }

    .diploma-hero .container {
        padding-inline: 18px;
        margin-top: 0 !important;
    }

    .diploma-hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.25rem);
    }

    .diploma-hero .lead {
        font-size: 1.02rem !important;
    }

    .diploma-hero svg {
        height: 34px !important;
    }

    .diploma-stats-section {
        padding-top: 22px !important;
    }

    .stat-card-premium {
        padding: 22px !important;
    }

    .stat-card-premium .position-relative.z-1 {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 6px 14px;
        text-align: start;
    }

    .stat-card-premium .stat-icon-wrapper {
        grid-row: 1 / span 2;
        width: 54px;
        height: 54px;
        margin: 0;
        font-size: 1.45rem;
    }

    .stat-card-premium h2 {
        margin: 0 !important;
        font-size: clamp(2rem, 10vw, 2.55rem) !important;
    }

    .stat-card-premium h6 {
        letter-spacing: 0 !important;
        font-size: 0.85rem !important;
        line-height: 1.35;
        text-align: start;
    }

    .diploma-feature-ribbon .row {
        --bs-gutter-y: 0.7rem;
    }

    .diploma-feature-ribbon .col-6 {
        width: 100%;
    }

    .diploma-feature-ribbon .d-flex {
        justify-content: flex-start !important;
    }

    html[dir="rtl"] .diploma-feature-ribbon .d-flex {
        justify-content: flex-start !important;
    }

    .diploma-search-panel {
        display: grid !important;
        grid-template-columns: auto 1fr;
        gap: 8px;
        border-radius: 8px !important;
        padding: 10px !important;
    }

    .diploma-search-panel .btn {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 48px;
        margin: 0 !important;
    }

    .diploma-card-modern > .row {
        flex-direction: column !important;
    }

    .diploma-card-modern .col-lg-5,
    .diploma-card-modern .col-lg-7 {
        width: 100%;
    }

    .diploma-card-modern .col-lg-5 > div {
        min-height: 240px !important;
    }

    .diploma-card-modern img {
        min-height: 240px;
    }

    .diploma-card-modern .col-lg-7 {
        padding: 22px !important;
    }

    .diploma-card-copy {
        padding: 0 !important;
    }

    .diploma-excerpt {
        font-size: 0.98rem !important;
    }

    .diploma-card-modern .row.g-4.mb-5 {
        margin-bottom: 1.35rem !important;
    }

    .feature-box {
        padding: 12px !important;
    }

    .feature-box strong {
        font-size: 1rem !important;
    }

    .diploma-actions,
    .diploma-actions .btn {
        width: 100%;
    }

    .diploma-actions .btn {
        justify-content: center;
        min-height: 52px;
        padding-inline: 18px !important;
    }
}

@media (max-width: 575.98px) {
    .verify-page .row.g-3 > [class*="col-"],
    .verify-page .row.g-4 > [class*="col-"] {
        width: 100%;
    }

    .verify-page .img-thumbnail {
        width: 132px;
        height: 132px;
    }

    .verify-search-box .form-control {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
    }

    .diploma-section-heading h2 {
        font-size: 1.75rem;
    }

    .diploma-card-modern .col-lg-5 {
        padding: 10px !important;
    }

    .diploma-card-modern .col-lg-5 > div,
    .diploma-card-modern img {
        min-height: 210px !important;
    }

    .diploma-title {
        font-size: 1.55rem !important;
    }

    .diploma-card-modern .badge {
        white-space: normal;
    }
}

/* =========================================================
   Masarat 2026 — component layer
   Page heroes, PDF viewer, application wizard, article grid,
   empty states and rich-text rendering.
   ========================================================= */

/* ---------------------------------------------------------
   Shared page hero
   --------------------------------------------------------- */
.page-hero {
    position: relative;
    margin-top: 80px;
    padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
    background:
        linear-gradient(135deg, rgba(21, 42, 78, .96) 0%, rgba(44, 90, 160, .92) 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 20%, rgba(190, 155, 88, .30), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(31, 138, 76, .32), transparent 48%);
    pointer-events: none;
}

.page-hero .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    padding: .5rem 1.15rem;
    border-radius: 50rem;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(6px);
}

.page-hero .hero-title {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.9rem, 4.6vw, 3rem);
    margin-bottom: 1rem;
    text-wrap: balance;
}

.page-hero .hero-lead {
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1rem, 2.1vw, 1.2rem);
    line-height: 1.95;
    max-width: 46rem;
    margin: 0 auto;
}

.page-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    justify-content: center;
    margin-top: 2rem;
}

.page-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 1.75rem 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: .9rem;
    font-weight: 600;
}

.page-hero .hero-meta i { margin-inline-end: .35rem; }

/* ---------------------------------------------------------
   Inline PDF viewer (company profile)
   --------------------------------------------------------- */
.profile-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }

.pdf-viewer {
    background: #fff;
    border: 1px solid var(--primary-100);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(21, 42, 78, .10);
}

.pdf-viewer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .9rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.pdf-viewer__label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-viewer__actions { display: inline-flex; gap: .5rem; flex-shrink: 0; }

.pdf-viewer__btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    border-radius: 50rem;
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease;
}

.pdf-viewer__btn:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.pdf-viewer__btn--solid {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.pdf-viewer__btn--solid:hover { background: rgba(255, 255, 255, .88); color: var(--primary-color); }

.pdf-viewer__frame {
    display: block;
    width: 100%;
    height: clamp(520px, 84vh, 1000px);
    border: 0;
    background: #f1f3f7;
}

.pdf-viewer__fallback {
    padding: 3.5rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.pdf-viewer__fallback i { font-size: 3.5rem; color: var(--primary-color); display: block; margin-bottom: 1rem; }

/* Mobile browsers largely refuse to embed PDFs — show the fallback instead of
   a blank grey box. */
@media (max-width: 767.98px) {
    .pdf-viewer__frame { height: 68vh; min-height: 420px; }
}

/* ---------------------------------------------------------
   Empty states
   --------------------------------------------------------- */
.empty-state {
    text-align: center;
    background: #fff;
    border: 1px dashed var(--primary-100);
    border-radius: 18px;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.empty-state i { font-size: 3.25rem; color: var(--secondary-color); display: block; margin-bottom: 1.15rem; }
.empty-state h2 { font-size: 1.3rem; margin-bottom: .75rem; }
.empty-state p  { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.9; }

/* ---------------------------------------------------------
   Rich text from the CMS
   --------------------------------------------------------- */
.rich-text { color: var(--text-body); line-height: 2.05; font-size: 1.03rem; }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child  { margin-bottom: 0; }
.rich-text p { margin-bottom: 1.35rem; }
.rich-text h2, .rich-text h3, .rich-text h4 {
    color: var(--primary-color);
    margin: 2.25rem 0 1rem;
    font-weight: 800;
}
.rich-text h2 { font-size: 1.5rem; }
.rich-text h3 { font-size: 1.25rem; }
.rich-text ul, .rich-text ol { padding-inline-start: 1.4rem; margin-bottom: 1.35rem; }
.rich-text li { margin-bottom: .6rem; }
.rich-text a  { color: var(--secondary-color); text-underline-offset: 3px; }
.rich-text img { max-width: 100%; height: auto; border-radius: 12px; }
.rich-text blockquote {
    border-inline-start: 4px solid var(--highlight-color);
    background: var(--gold-050);
    margin: 1.75rem 0;
    padding: 1rem 1.35rem;
    border-radius: 0 12px 12px 0;
}
.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.rich-text th, .rich-text td {
    border: 1px solid var(--primary-100);
    padding: .65rem .85rem;
    text-align: start;
}
.rich-text th { background: var(--primary-050); font-weight: 700; }

/* Wide content must scroll inside itself, never widen the page. */
.rich-text .table-wrap,
.rich-text pre { overflow-x: auto; }

/* ---------------------------------------------------------
   Article grid — replaces the Masonry layout
   Masonry absolutely-positioned Bootstrap columns, which fought the grid's
   own padding and produced the overlapping / clipped cards.
   --------------------------------------------------------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    align-items: stretch;
}

@media (max-width: 575.98px) {
    .article-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(21, 42, 78, .08);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 16px rgba(21, 42, 78, .05);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease;
}

.article-card:hover,
.article-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(21, 42, 78, .12);
}

.article-card__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--primary-050);
}

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

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

.article-card__badges {
    position: absolute;
    inset-block-start: .85rem;
    inset-inline: .85rem;
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    pointer-events: none;
}

.article-card__badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(21, 42, 78, .88);
    color: #fff;
    padding: .3rem .7rem;
    border-radius: 50rem;
    font-size: .74rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.article-card__badge--news { background: rgba(190, 155, 88, .95); }
.article-card__badge--article { background: rgba(31, 138, 76, .95); }

.article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.4rem;
    /* min-width:0 lets long unbroken words shrink instead of overflowing. */
    min-width: 0;
}

.article-card__title {
    font-size: 1.13rem;
    font-weight: 800;
    line-height: 1.55;
    margin-bottom: .75rem;
    /* Clamp to keep every card's header block the same height. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color .2s ease;
}

.article-card__title a:hover { color: var(--secondary-color); }

.article-card__excerpt {
    color: var(--text-muted);
    font-size: .94rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Long URLs or unspaced strings must wrap, not spill out of the card. */
    overflow-wrap: anywhere;
}

.article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(21, 42, 78, .08);
}

.article-card__author {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .84rem;
    font-weight: 600;
}

.article-card__link {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    white-space: nowrap;
}

.article-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------
   Trainer application wizard
   --------------------------------------------------------- */
.join-page {
    margin-top: 80px;
    padding-block: clamp(2.5rem, 7vw, 4.5rem);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
}

.join-card { background: rgba(255, 255, 255, .97); border-radius: 20px; }

.join-stepper {
    display: flex;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    counter-reset: step;
    gap: .5rem;
}

.join-stepper li {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    position: relative;
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
}

/* Connector line between the step bullets. */
.join-stepper li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 19px;
    inset-inline-start: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 3px;
    background: var(--primary-100);
    border-radius: 3px;
}

.join-stepper li.is-done::after { background: var(--accent-color); }

.join-stepper li span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    z-index: 1;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.join-stepper li.is-active span {
    background: var(--secondary-color);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 0 5px rgba(44, 90, 160, .16);
}

.join-stepper li.is-done span { background: var(--accent-color); color: #fff; }
.join-stepper li em { font-style: normal; }

@media (max-width: 575.98px) {
    .join-stepper li em { display: none; }
    .join-stepper li:not(:last-child)::after { top: 18px; }
}

.step-content { animation: joinFadeIn .35s ease-in-out; }

@keyframes joinFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .step-content { animation: none; }
}

/* High-visibility Form Inputs System */
.join-input,
.form-control,
.form-select {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px;
    padding: .75rem 1.1rem;
    color: #0f172a !important;
    font-size: 0.98rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.join-input:hover,
.form-control:hover,
.form-select:hover {
    border-color: #94a3b8 !important;
    background: #ffffff !important;
}

.join-input:focus,
.form-control:focus,
.form-select:focus {
    background: #ffffff !important;
    border-color: var(--secondary-color, #2c5aa0) !important;
    box-shadow: 0 0 0 4px rgba(44, 90, 160, .18) !important;
    color: #0f172a !important;
    outline: none !important;
}

.join-input::placeholder,
.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.join-page label,
.join-card label,
.step-content label,
.form-label {
    color: #152a4e !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Radios/selects inside an input-group must not inherit the pill radius. */
.join-page .input-group > .join-input:not(:first-child) { border-start-start-radius: 0; border-end-start-radius: 0; }
.join-page .input-group > .join-input:not(:last-child)  { border-start-end-radius: 0; border-end-end-radius: 0; }

.photo-field { display: flex; align-items: center; gap: 1rem; }

.photo-field__preview {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border-radius: 16px;
    background: var(--primary-050) center/cover no-repeat;
    border: 2px dashed var(--primary-100);
    display: grid;
    place-items: center;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.photo-field__preview.has-image { border-style: solid; border-color: var(--accent-color); }
.photo-field__preview.has-image i { display: none; }

/* Consent block */
.consent-box {
    background: var(--primary-050);
    border: 1px solid var(--primary-100);
    border-inline-start: 4px solid var(--highlight-color);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
}

.consent-box .form-check { margin: 0; padding-inline-start: 1.9rem; }

.consent-box .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: .22rem;
    margin-inline-start: -1.9rem;
    cursor: pointer;
}

.consent-box .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.consent-box .form-check-label {
    color: var(--text-body);
    font-size: .93rem;
    line-height: 2;
    cursor: pointer;
}

.consent-link {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consent-link:hover { color: var(--primary-color); }

/* ---------------------------------------------------------
   Footer extras
   --------------------------------------------------------- */
.footer-logo {
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    padding: 6px;
    object-fit: contain;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 .6rem;
    border-radius: 5px;
    font-weight: 800;
    font-size: .82rem;
    user-select: none;
    letter-spacing: .5px;
}

.payment-badge--visa { background: #fff; color: #1a1f71; font-style: italic; }
.payment-badge--amex { background: #016fd0; color: #fff; }

/* ---------------------------------------------------------
   Contrast repairs
   Utility classes that rendered near-invisible on light surfaces.
   --------------------------------------------------------- */
.public-site .text-white-50 { color: rgba(255, 255, 255, .82) !important; }

.public-site .bg-light .text-muted,
.public-site .bg-white .text-muted,
.public-site .glass-card .text-muted { color: var(--text-muted) !important; }

/* `.text-info` on white fails contrast; keep it for dark surfaces only. */
.public-site .bg-white .text-info,
.public-site .glass-card .text-info { color: var(--secondary-color) !important; }

.nav-utility-link { color: var(--primary-color) !important; }
.nav-utility-link:hover { color: var(--secondary-color) !important; }
.language-switch { color: var(--primary-color) !important; }
.language-switch:hover { color: var(--secondary-color) !important; }

/* ---------------------------------------------------------
   Print
   --------------------------------------------------------- */
@media print {
    .navbar-floating,
    .mobile-action-dock,
    .fat-footer,
    .skip-link,
    .pdf-viewer__bar { display: none !important; }

    body { background: #fff !important; color: #000 !important; }
    .glass-card, .article-card { box-shadow: none !important; border: 1px solid #ccc !important; }
}

/* =========================================================
   Navbar density
   The public nav carries nine links plus three actions. Below ~1400px that
   overflowed and the wordmark collapsed to an ellipsis, so tighten the
   spacing progressively and keep the brand from ever being the thing that
   shrinks.
   ========================================================= */
.navbar-floating .navbar-brand {
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
}

.navbar-floating .navbar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 992px) {
    .navbar-floating {
        padding-inline: 1.25rem;
        gap: .5rem;
    }

    .navbar-floating .navbar-nav {
        flex-wrap: nowrap;
    }

    .navbar-floating .nav-link {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.93rem;
    }

    .navbar-floating .navbar-actions {
        gap: 0.6rem !important;
        padding-inline-start: 0.6rem !important;
        margin-inline-start: 0.6rem !important;
    }

    .navbar-floating .navbar-actions .btn {
        padding-inline: 1rem;
        font-size: 0.88rem;
    }
}

/* Between lg and xl the wordmark is the first thing to go — drop it and keep
   the logo mark, rather than rendering a truncated brand name. */
@media (min-width: 992px) and (max-width: 1299.98px) {
    .navbar-floating .navbar-brand span { display: none; }
    .navbar-floating .nav-link { font-size: 0.88rem; padding-inline: 0.45rem !important; }
    .navbar-floating .nav-utility-link { font-size: 0.86rem; }
}

@media (min-width: 1300px) {
    .navbar-floating .navbar-brand span {
        max-width: 15ch;
        display: inline-block;
        vertical-align: middle;
    }
}

/* =========================================================
   Hero legibility
   Slide artwork varies wildly; without a firm scrim the headline sits on
   whatever the photo happens to contain.
   ========================================================= */
.hero-swiper .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 20, 40, .30) 0%, rgba(9, 20, 40, .55) 55%, rgba(9, 20, 40, .72) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-swiper .swiper-slide > .container { position: relative; z-index: 2; }

.hero-swiper h1,
.hero-swiper .lead {
    text-shadow: 0 2px 18px rgba(9, 20, 40, .55);
}

.hero-swiper h1 { color: #fff !important; }
.hero-swiper .lead { color: rgba(255, 255, 255, .93) !important; }

.hero-proof-row span {
    background: rgba(9, 20, 40, .48);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
}

/* =========================================================
   Brand weighting
   In the logo, navy and royal blue carry the identity while green and gold
   are accents. The primary CTA gradient ran blue -> green and read as a green
   button, so lead it with the dominant pair and keep green for confirmations.
   ========================================================= */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 15px rgba(21, 42, 78, .28);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus-visible {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 8px 22px rgba(21, 42, 78, .34);
    color: #fff;
}

/* Green stays for affirmative actions (submit an application, confirm). */
.btn-accent-custom {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-600, #197340) 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(31, 138, 76, .3);
    transition: transform .3s ease, box-shadow .3s ease;
}

.btn-accent-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(31, 138, 76, .4);
    color: #fff;
}

/* Gold pinstripe under section headings ties the palette together. */
.section-rule {
    display: block;
    width: 56px;
    height: 3px;
    margin: .85rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--highlight-color), var(--accent-color));
}

/* =========================================================
   Hero copy measure
   A centred lead across a 1400px container produces one- and two-word
   orphan lines. Cap the measure instead.
   ========================================================= */
.hero-swiper .lead,
.hero-section .lead,
.page-hero .hero-lead {
    max-width: 46rem;
    margin-inline: auto;
    text-wrap: pretty;
}

.hero-swiper h1,
.hero-section h1 {
    max-width: 20ch;
    margin-inline: auto;
    text-wrap: balance;
}

@media (max-width: 767.98px) {
    .hero-swiper h1,
    .hero-section h1 { max-width: 100%; }
}

/* Article thumbnails are frequently infographics rather than photographs.
   Cropping from the centre cuts straight through their headline, so anchor
   the crop to the top edge where the title lives. */
.article-card__media img {
    object-position: top center;
}
