/* =====================================================================
   Race Educare — Design System (app.css)
   Tokens → base → components → sections → utilities
   Brand: primary #116e94 · accent #ffcc29 · Figtree
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Tokens                                                           */
/* ------------------------------------------------------------------ */
:root {
    /* Brand */
    --re-primary:       #116e94;
    --re-primary-dark:  #0b5578;
    --re-primary-deep:  #0d2b38;   /* headings / footer — teal-derived ink   */
    --re-primary-tint:  #e3f1f7;   /* chips, icon tiles, soft highlights     */
    --re-accent:        #ffcc29;
    --re-accent-dark:   #e6b30f;

    /* Neutrals (cool, derived from the brand hue) */
    --re-ink:           #0d2b38;
    --re-body:          #43606e;
    --re-muted:         #6d8794;
    --re-line:          #dbe8ee;
    --re-mist:          #f4f9fb;   /* alternate section background           */
    --re-surface:       #ffffff;

    /* Elevation — shadows tinted with the primary, never grey */
    --re-shadow-sm:     0 2px 10px rgba(13, 43, 56, .06);
    --re-shadow-md:     0 10px 30px rgba(13, 43, 56, .10);
    --re-shadow-lg:     0 22px 50px rgba(17, 110, 148, .16);

    /* Shape & rhythm */
    --re-radius:        18px;
    --re-radius-sm:     12px;
    --re-radius-pill:   100px;
    --re-section-y:     6rem;

    /* Motion */
    --re-ease:          cubic-bezier(.22, .61, .36, 1);
    --re-speed:         .28s;

    /* Bootstrap bridge */
    --bs-primary:       var(--re-primary);
    --bs-body-color:    var(--re-body);
    --bs-body-font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    --bs-link-color:    var(--re-primary);
    --bs-link-hover-color: var(--re-primary-dark);
}

/* ------------------------------------------------------------------ */
/* 2. Base                                                             */
/* ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }

body {
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    color: var(--re-body);
    background: var(--re-surface);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--re-ink);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.18;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 800;
    letter-spacing: -.028em;
}

a { text-decoration: none; transition: color var(--re-speed) var(--re-ease); }

::selection { background: var(--re-accent); color: var(--re-ink); }

:focus-visible {
    outline: 3px solid rgba(17, 110, 148, .45);
    outline-offset: 2px;
    border-radius: 4px;
}

img { max-width: 100%; height: auto; }

/* ------------------------------------------------------------------ */
/* 3. Signature: the accent tab (eyebrow)                              */
/*    One device, repeated: section eyebrows, nav active state,        */
/*    card hover accents.                                              */
/* ------------------------------------------------------------------ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--re-primary);
    margin-bottom: .9rem;
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 8px;
    border-radius: var(--re-radius-pill);
    background: var(--re-accent);
    flex: 0 0 auto;
}

/* ------------------------------------------------------------------ */
/* 4. Buttons                                                          */
/* ------------------------------------------------------------------ */
.btn {
    font-weight: 600;
    border-radius: var(--re-radius-pill);
    padding: .7rem 1.6rem;
    transition: transform var(--re-speed) var(--re-ease),
                box-shadow var(--re-speed) var(--re-ease),
                background-color var(--re-speed) var(--re-ease),
                border-color var(--re-speed) var(--re-ease),
                color var(--re-speed) var(--re-ease);
}
.btn:active { transform: translateY(1px); }

.btn-brand {
    background: var(--re-primary);
    border: 1px solid var(--re-primary);
    color: #fff;
}
.btn-brand:hover, .btn-brand:focus {
    background: var(--re-primary-dark);
    border-color: var(--re-primary-dark);
    color: #fff;
    box-shadow: 0 10px 24px rgba(17, 110, 148, .28);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--re-accent);
    border: 1px solid var(--re-accent);
    color: var(--re-ink);
}
.btn-accent:hover, .btn-accent:focus {
    background: var(--re-accent-dark);
    border-color: var(--re-accent-dark);
    color: var(--re-ink);
    box-shadow: 0 10px 24px rgba(230, 179, 15, .32);
    transform: translateY(-2px);
}

.btn-outline-brand {
    background: transparent;
    border: 1.5px solid var(--re-primary);
    color: var(--re-primary);
}
.btn-outline-brand:hover, .btn-outline-brand:focus {
    background: var(--re-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost-light {                      /* for use on dark / hero surfaces */
    background: rgba(255, 255, 255, .12);
    border: 1.5px solid rgba(255, 255, 255, .55);
    color: #fff;
    backdrop-filter: blur(6px);
}
.btn-ghost-light:hover, .btn-ghost-light:focus {
    background: #fff;
    color: var(--re-primary);
    transform: translateY(-2px);
}

/* ------------------------------------------------------------------ */
/* 5. Top bar + Navbar                                                 */
/* ------------------------------------------------------------------ */
.topbar {
    background: var(--re-primary-deep);
    color: rgba(255, 255, 255, .85);
    font-size: .875rem;
}
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--re-accent); }

/* Transparent over the hero on load; gains a solid background on scroll. */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background var(--re-speed) var(--re-ease),
                box-shadow var(--re-speed) var(--re-ease),
                border-color var(--re-speed) var(--re-ease);
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom-color: var(--re-line);
    box-shadow: var(--re-shadow-sm);
}

/* --- Transparent state: light text/logo over the dark hero --- */
.site-header:not(.is-scrolled) .nav-link { color: #fff; }
.site-header:not(.is-scrolled) .nav-link:hover,
.site-header:not(.is-scrolled) .nav-link:focus { color: var(--re-accent); }
.site-header:not(.is-scrolled) .nav-link.active { color: #fff; }
.site-header:not(.is-scrolled) .navbar-brand .brand-text { color: #fff; }
.site-header:not(.is-scrolled) .navbar-brand img { filter: brightness(0) invert(1); }
.site-header:not(.is-scrolled) .navbar-toggler i { color: #fff !important; }
.site-header .navbar-brand img,
.site-header .nav-link { transition: color var(--re-speed) var(--re-ease), filter var(--re-speed) var(--re-ease); }
/* On mobile the open menu panel is light, so links revert to dark there. */
@media (max-width: 991.98px) {
    .site-header:not(.is-scrolled) .navbar-collapse .nav-link { color: var(--re-ink); }
    .site-header:not(.is-scrolled) .navbar-collapse .nav-link.active { color: var(--re-primary); }
}

.navbar-re { padding-block: .9rem; }
.navbar-re .navbar-brand img { height: 52px; width: auto; }
.navbar-re .navbar-brand .brand-text {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--re-primary);
    letter-spacing: -.02em;
}

.navbar-re .nav-link {
    position: relative;
    color: var(--re-ink);
    font-weight: 600;
    font-size: .975rem;
    padding: .55rem .95rem !important;
}
.navbar-re .nav-link:hover,
.navbar-re .nav-link:focus { color: var(--re-primary); }

/* Accent-tab underline for active links (the signature, again) */
.navbar-re .nav-link::after {
    content: "";
    position: absolute;
    left: .95rem;
    right: .95rem;
    bottom: .1rem;
    height: 4px;
    border-radius: var(--re-radius-pill);
    background: var(--re-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--re-speed) var(--re-ease);
}
.navbar-re .nav-link.active::after,
.navbar-re .nav-link:hover::after { transform: scaleX(1); }
.navbar-re .nav-link.active { color: var(--re-primary); }

/* Dropdown — soft scale + fade panel */
.nav-dropdown {
    border: 1px solid var(--re-line);
    border-radius: var(--re-radius);
    box-shadow: var(--re-shadow-md);
    padding: .75rem;
    min-width: 260px;
    margin-top: .75rem !important;
}
@keyframes reDropIn {
    from { opacity: 0; transform: translateY(-6px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.nav-dropdown.show {
    animation: reDropIn .22s var(--re-ease);
    transform-origin: top center;
}
.nav-dropdown .dropdown-header {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--re-muted);
    padding: .55rem .9rem .25rem;
}
.nav-dropdown .dropdown-item {
    border-radius: var(--re-radius-sm);
    font-weight: 600;
    color: var(--re-ink);
    padding: .55rem .9rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    transition: background var(--re-speed) var(--re-ease),
                color var(--re-speed) var(--re-ease),
                padding-left var(--re-speed) var(--re-ease);
}
.nav-dropdown .dropdown-item i {
    color: var(--re-primary);
    width: 1.1rem;
    text-align: center;
}
.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item:focus {
    background: var(--re-primary-tint);
    color: var(--re-primary-dark);
    padding-left: 1.15rem;
}

/* Destinations mega menu: region column + country flyout */
.nav-dropdown--mega { min-width: 500px; padding: 0; overflow: hidden; }
.mega-panel { display: flex; align-items: stretch; }
.mega-regions {
    flex: 0 0 168px;
    background: var(--re-mist);
    padding: .65rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    border-right: 1px solid var(--re-line);
}
.mega-region-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    text-align: left;
    border: 0;
    background: transparent;
    padding: .65rem .85rem;
    border-radius: var(--re-radius-sm);
    font-weight: 700;
    font-size: .875rem;
    color: var(--re-ink);
    transition: background var(--re-speed) var(--re-ease), color var(--re-speed) var(--re-ease);
}
.mega-region-link i { font-size: .7rem; opacity: .5; }
.mega-region-link:hover { background: rgba(17, 110, 148, .09); }
.mega-region-link--single { color: var(--re-ink); text-decoration: none; }
.mega-region-link--single i { transition: transform var(--re-speed) var(--re-ease); }
.mega-region-link--single:hover i { transform: translateX(3px); }
.mega-region-link.is-active {
    background: var(--re-accent);
    color: var(--re-ink);
    box-shadow: var(--re-shadow-sm);
}
.mega-region-link.is-active i { opacity: .8; }
.mega-countries {
    flex: 1 1 auto;
    padding: .65rem;
    max-height: 360px;
    overflow-y: auto;
}
.mega-country-list { display: flex; flex-direction: column; gap: .05rem; }
.mega-footer { border-top: 1px solid var(--re-line); padding: .5rem .65rem; }
.mega-footer .dropdown-item { color: var(--re-primary); }
.mega-footer .dropdown-item i { color: var(--re-primary); }

@media (max-width: 991.98px) {
    .nav-dropdown--mega { min-width: 0; }
    .mega-panel { flex-direction: column; }
    .mega-regions {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: 0;
        border-bottom: 1px solid var(--re-line);
    }
    .mega-region-link { flex: 1 1 auto; justify-content: center; }
    .mega-region-link i { display: none; }
    .mega-countries { max-height: none; }
}

/* Mobile nav panel */
@media (max-width: 991.98px) {
    .navbar-re .navbar-collapse {
        background: var(--re-surface);
        border: 1px solid var(--re-line);
        border-radius: var(--re-radius);
        box-shadow: var(--re-shadow-md);
        padding: 1rem;
        margin-top: .75rem;
    }
    .navbar-re .nav-link::after { display: none; }
    .nav-dropdown { box-shadow: none; border: 0; padding-left: 1rem; }
}
.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: none; }

/* ------------------------------------------------------------------ */
/* 6. Sections                                                         */
/* ------------------------------------------------------------------ */
.section { padding-block: var(--re-section-y); }
.section--mist { background: var(--re-mist); }
.section--deep {
    background: var(--re-primary-deep);
    color: rgba(255, 255, 255, .82);
}
.section--deep h1, .section--deep h2,
.section--deep h3, .section--deep h4 { color: #fff; }

.section-heading { max-width: 640px; }
.section-heading h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 800; }
.section-heading p  { font-size: 1.075rem; color: var(--re-muted); }

@media (max-width: 767.98px) {
    :root { --re-section-y: 4rem; }
}

/* Inner page hero */
.page-hero {
    background:
        radial-gradient(1100px 420px at 85% -10%, rgba(255, 204, 41, .16), transparent 60%),
        linear-gradient(135deg, var(--re-primary-deep) 0%, var(--re-primary) 100%);
    color: rgba(255, 255, 255, .85);
    /* Extra top padding clears the fixed navbar; taller banner overall. */
    padding: 9rem 0 6rem;
    min-height: 58vh;
    display: flex;
    align-items: center;
}
@media (max-width: 767.98px) {
    .page-hero { padding: 7rem 0 4rem; min-height: 44vh; }
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin-bottom: .75rem; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .75); }
.page-hero .breadcrumb a:hover { color: var(--re-accent); }
.page-hero .breadcrumb-item.active { color: var(--re-accent); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* 7. Cards                                                            */
/* ------------------------------------------------------------------ */
.card-re {
    background: var(--re-surface);
    border: 1px solid var(--re-line);
    border-radius: var(--re-radius);
    box-shadow: var(--re-shadow-sm);
    transition: transform var(--re-speed) var(--re-ease),
                box-shadow var(--re-speed) var(--re-ease),
                border-color var(--re-speed) var(--re-ease);
    height: 100%;
}
.card-re:hover {
    transform: translateY(-8px);
    box-shadow: var(--re-shadow-lg);
    border-color: rgba(17, 110, 148, .25);
}

.icon-tile {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--re-radius-sm);
    background: var(--re-primary-tint);
    color: var(--re-primary);
    font-size: 1.45rem;
    transition: background var(--re-speed) var(--re-ease),
                color var(--re-speed) var(--re-ease),
                transform var(--re-speed) var(--re-ease);
}
.card-re:hover .icon-tile {
    background: var(--re-primary);
    color: var(--re-accent);
    transform: scale(1.06) rotate(-3deg);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--re-primary-tint);
    color: var(--re-primary-dark);
    font-size: .8125rem;
    font-weight: 700;
    border-radius: var(--re-radius-pill);
    padding: .3rem .85rem;
}

.rating-stars { color: var(--re-accent-dark); letter-spacing: .1em; }

.promo-card {
    position: relative;
    display: block;
    border-radius: var(--re-radius);
    overflow: hidden;
    box-shadow: var(--re-shadow-sm);
    aspect-ratio: 4 / 3.05;
    transition: box-shadow var(--re-speed) var(--re-ease), transform var(--re-speed) var(--re-ease);
}
.promo-card:hover { box-shadow: var(--re-shadow-lg); transform: translateY(-6px); }
.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--re-ease);
}
.promo-card:hover img { transform: scale(1.06); }
.promo-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: 1.5rem 1.1rem 1rem;
    background: linear-gradient(0deg, rgba(13, 43, 56, .92) 0%, rgba(13, 43, 56, .55) 55%, transparent 100%);
    color: #fff;
    transform: translateY(6px);
    transition: transform var(--re-speed) var(--re-ease);
}
.promo-card:hover .promo-card-overlay { transform: translateY(0); }
.promo-card-eyebrow {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--re-accent);
}
.promo-card-title { font-weight: 800; font-size: 1.02rem; line-height: 1.25; }
.promo-card-text { font-size: .8rem; color: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------------ */
/* 8. CTA banner                                                       */
/* ------------------------------------------------------------------ */
.cta-banner {
    background:
        radial-gradient(900px 380px at 12% 120%, rgba(255, 204, 41, .22), transparent 60%),
        linear-gradient(120deg, var(--re-primary) 0%, var(--re-primary-dark) 100%);
    border-radius: calc(var(--re-radius) + 8px);
    color: rgba(255, 255, 255, .88);
    padding: 3.5rem;
    box-shadow: var(--re-shadow-lg);
}
.cta-banner h2 { color: #fff; }
@media (max-width: 767.98px) { .cta-banner { padding: 2.25rem 1.5rem; } }

/* ------------------------------------------------------------------ */
/* 8b. Pathway destinations ("One path, multiple destinations")        */
/* ------------------------------------------------------------------ */
.pathway-map-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 139 / 70;
    border-radius: var(--re-radius);
    background: radial-gradient(120% 140% at 78% 46%, var(--re-primary-tint) 0%, transparent 62%);
    overflow: visible;
}
.pathway-map-dots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .38;
    user-select: none;
    pointer-events: none;
}
.pathway-routes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.pathway-route {
    fill: none;
    stroke: var(--re-primary);
    stroke-width: .28;
    stroke-linecap: round;
    stroke-dasharray: 1.6 1.6;
    opacity: .45;
    transition: opacity var(--re-speed) var(--re-ease), stroke var(--re-speed) var(--re-ease);
    animation: pathway-dash 22s linear infinite;
}
.pathway-route.is-active {
    stroke: var(--re-accent-dark);
    opacity: 1;
    stroke-width: .4;
}
@keyframes pathway-dash { to { stroke-dashoffset: -64; } }

.pathway-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}
.pathway-pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--re-primary);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(13, 43, 56, .25);
    transition: background var(--re-speed) var(--re-ease), transform var(--re-speed) var(--re-ease);
}
.pathway-pin-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid var(--re-primary);
    opacity: 0;
    animation: pathway-ping 2.4s var(--re-ease) infinite;
}
.pathway-pin:hover .pathway-pin-dot,
.pathway-pin.is-active .pathway-pin-dot {
    background: var(--re-accent-dark);
    transform: scale(1.25);
}
.pathway-pin.is-active .pathway-pin-dot::after { border-color: var(--re-accent-dark); opacity: 1; }
@keyframes pathway-ping {
    0%   { transform: scale(.6); opacity: .55; }
    100% { transform: scale(1.8); opacity: 0; }
}
.pathway-pin-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--re-primary-dark);
    white-space: nowrap;
    background: #fff;
    padding: .15rem .55rem;
    border-radius: var(--re-radius-pill);
    box-shadow: var(--re-shadow-sm);
}
.pathway-pin--origin { z-index: 3; }
.pathway-pin--origin .pathway-pin-dot {
    background: var(--re-accent-dark);
    width: 18px;
    height: 18px;
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(255, 204, 41, .25), 0 4px 12px rgba(13, 43, 56, .3);
}
.pathway-pin--origin .pathway-pin-dot::after {
    border-color: var(--re-accent-dark);
    opacity: 1;
    inset: -9px;
}
.pathway-pin-label--origin {
    display: flex !important;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 800;
    color: var(--re-ink);
    background: var(--re-accent);
    padding: .25rem .7rem .25rem .35rem;
    box-shadow: var(--re-shadow-md);
}
.pathway-pin-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}

.pathway-swiper { overflow: hidden; }
.pathway-card {
    background: var(--re-surface);
    border: 1px solid var(--re-line);
    border-radius: var(--re-radius);
    box-shadow: var(--re-shadow-md);
    overflow: hidden;
    position: relative;
}
.pathway-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--re-accent);
    color: var(--re-ink);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding: .4rem .8rem;
    border-radius: var(--re-radius-pill);
    box-shadow: var(--re-shadow-sm);
}
.pathway-card-head {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--re-primary) 0%, var(--re-primary-dark) 100%);
    overflow: hidden;
}
.pathway-card-head--germany   { background: linear-gradient(135deg, #2b2b2b 0%, #b02318 55%, #d69f14 100%); }
.pathway-card-head--usa       { background: linear-gradient(135deg, #0b3d91 0%, #b22234 100%); }
.pathway-card-head--canada    { background: linear-gradient(135deg, #d80621 0%, #8c0417 100%); }
.pathway-card-head--new-zealand { background: linear-gradient(135deg, #012169 0%, #116e94 100%); }
.pathway-card-head--france    { background: linear-gradient(135deg, #002654 0%, #ce1126 100%); }
.pathway-card-watermark {
    position: absolute;
    right: -.75rem;
    bottom: -1.25rem;
    font-size: 7rem;
    color: rgba(255, 255, 255, .12);
}
.pathway-card-flag {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, .85);
    box-shadow: var(--re-shadow-lg);
}
.pathway-card-body { padding: 1.75rem; }
.pathway-flag-sm { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; box-shadow: var(--re-shadow-sm); }
.pathway-tagline { color: var(--re-muted); font-weight: 600; font-size: .95rem; }
.pathway-highlights { margin: 0; }
.pathway-highlights li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .9rem;
    color: var(--re-body);
    margin-bottom: .55rem;
}
.pathway-highlights li i { color: var(--re-primary); margin-top: .2rem; flex: none; }
.pathway-stat {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--re-primary-tint);
    color: var(--re-primary-dark);
    font-weight: 700;
    font-size: .85rem;
    padding: .55rem .9rem;
    border-radius: var(--re-radius-sm);
}
.pathway-controls { max-width: 260px; margin-inline: auto; }
.pathway-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--re-primary);
    background: #fff;
    color: var(--re-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--re-speed) var(--re-ease), color var(--re-speed) var(--re-ease), transform var(--re-speed) var(--re-ease);
}
.pathway-arrow:hover { background: var(--re-primary); color: #fff; transform: translateY(-2px); }
.pathway-counter { font-weight: 700; color: var(--re-muted); letter-spacing: .04em; font-size: .9rem; }

@media (max-width: 991.98px) {
    .pathway-map-wrap { margin-bottom: 1rem; }
    .pathway-pin-label { display: none; }
}

/* ------------------------------------------------------------------ */
/* 9. Forms                                                            */
/* ------------------------------------------------------------------ */
.form-control, .form-select {
    border: 1.5px solid var(--re-line);
    border-radius: var(--re-radius-sm);
    padding: .7rem 1rem;
    color: var(--re-ink);
    transition: border-color var(--re-speed) var(--re-ease),
                box-shadow var(--re-speed) var(--re-ease);
}
.form-control:focus, .form-select:focus {
    border-color: var(--re-primary);
    box-shadow: 0 0 0 .25rem rgba(17, 110, 148, .12);
}
.form-label { font-weight: 600; color: var(--re-ink); }
.invalid-feedback { font-weight: 600; }

/* ------------------------------------------------------------------ */
/* 10. Footer                                                          */
/* ------------------------------------------------------------------ */
.site-footer {
    background: var(--re-primary-deep);
    color: rgba(255, 255, 255, .72);
}
.site-footer .footer-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.15rem;
}
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: var(--re-accent); }
.site-footer .footer-links li { margin-bottom: .6rem; }
.site-footer .footer-links a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: padding-left var(--re-speed) var(--re-ease), color var(--re-speed) var(--re-ease);
}
.site-footer .footer-links a:hover { padding-left: .35rem; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .9rem;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--re-radius-sm);
    padding: .3rem .5rem;
    line-height: 0;
}
.footer-logo img { height: 40px; width: auto; display: block; }
.social-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff !important;
    transition: background var(--re-speed) var(--re-ease),
                color var(--re-speed) var(--re-ease),
                transform var(--re-speed) var(--re-ease);
}
.social-btn:hover {
    background: var(--re-accent);
    color: var(--re-ink) !important;
    transform: translateY(-3px);
}

/* ------------------------------------------------------------------ */
/* 11. Utilities                                                       */
/* ------------------------------------------------------------------ */
.text-brand  { color: var(--re-primary) !important; }
.text-ink    { color: var(--re-ink) !important; }
.bg-mist     { background: var(--re-mist) !important; }
.bg-tint     { background: var(--re-primary-tint) !important; }
.rounded-re  { border-radius: var(--re-radius) !important; }
.shadow-re   { box-shadow: var(--re-shadow-md) !important; }

.back-to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 1040;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--re-primary);
    color: #fff;
    box-shadow: var(--re-shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--re-speed) var(--re-ease),
                transform var(--re-speed) var(--re-ease),
                background var(--re-speed) var(--re-ease);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--re-primary-dark); color: var(--re-accent); }

/* Swiper theme bridge */
.swiper-pagination-bullet { background: var(--re-primary); opacity: .35; }
.swiper-pagination-bullet-active { background: var(--re-primary); opacity: 1; }
.swiper-button-next, .swiper-button-prev { color: var(--re-primary); }

/* ------------------------------------------------------------------ */
/* 12. Accessibility: reduced motion                                   */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ------------------------------------------------------------------ */
/* 13. Homepage hero slider + counters band                            */
/* ------------------------------------------------------------------ */
.hero-slide {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 4rem; /* clears the fixed transparent navbar */
    background: linear-gradient(135deg, var(--re-primary-deep) 0%, var(--re-primary) 100%);
}
@media (max-width: 767.98px) { .hero-slide { min-height: 80vh; } }
.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1100px 460px at 85% -10%, rgba(255, 204, 41, .18), transparent 60%),
        linear-gradient(135deg, rgba(13, 43, 56, .88) 0%, rgba(17, 110, 148, .72) 100%);
}
.hero-content { z-index: 2; padding-block: 5rem; }
.hero-content h1 { font-size: clamp(2.35rem, 5.6vw, 3.75rem); font-weight: 800; letter-spacing: -.03em; }
.hero-pagination { bottom: 1.4rem !important; }
.hero-pagination .swiper-pagination-bullet { background: #fff; opacity: .5; }
.hero-pagination .swiper-pagination-bullet-active { background: var(--re-accent); opacity: 1; }

/* Trust row — small proof point under hero CTAs (avatar stack + rating) */
.trust-row {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    margin-top: 2.25rem;
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
    font-size: .925rem;
}
.avatar-stack { display: inline-flex; }
.avatar-stack span {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .85);
    background: var(--re-primary-tint);
    color: var(--re-primary-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 800;
    margin-left: -12px;
}
.avatar-stack span:first-child { margin-left: 0; }
.trust-row .rating-stars { color: var(--re-accent); font-size: 1rem; }

/* Decorative quotation mark on testimonial cards */
.quote-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 800;
    color: var(--re-primary-tint);
    margin-bottom: -1.75rem;
    display: block;
}

/* Approved-by / membership logo strip — sits right above the footer, on every page */
.logo-strip-section { background: var(--re-mist); border-top: 1px solid var(--re-line); }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3.5rem; }
.logo-strip img {
    max-height: 84px;
    width: auto;
    transition: transform var(--re-speed) var(--re-ease), filter var(--re-speed) var(--re-ease);
}
.logo-strip a:hover img, .logo-strip img:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 8px 16px rgba(13, 43, 56, .12));
}
@media (max-width: 575.98px) { .logo-strip img { max-height: 60px; } }

/* Counters band overlaps the hero bottom for a premium layered feel */
.counters-band { margin-top: -3.5rem; position: relative; z-index: 3; padding-bottom: 2rem; }
@media (max-width: 767.98px) { .counters-band { margin-top: 1.5rem; } }

/* FAQ accordion theming */
.accordion-item.card-re { border-radius: var(--re-radius) !important; }
.accordion-button { font-weight: 600; color: var(--re-ink); background: transparent; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--re-primary); background: transparent; }
.accordion-button::after { filter: hue-rotate(160deg); }

/* Floating currency converter (booking pages) */
.currency-widget {
    position: fixed;
    right: 1.4rem;
    bottom: 5.4rem;
    z-index: 1039;
    width: 300px;
    max-width: calc(100vw - 2.8rem);
}
.currency-widget .card-re { box-shadow: var(--re-shadow-lg); }
.currency-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: var(--re-accent);
    color: var(--re-ink);
    font-size: 1.25rem;
    box-shadow: var(--re-shadow-md);
    transition: transform var(--re-speed) var(--re-ease);
}
.currency-toggle:hover { transform: translateY(-2px) scale(1.05); }

/* ------------------------------------------------------------------ */
/* Brand logo tiles (universities on course cards, exams)             */
/* ------------------------------------------------------------------ */
.uni-logo-tile {
    width: 52px; height: 52px; flex: 0 0 52px;
    border-radius: 12px; border: 1px solid var(--re-line); background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.uni-logo-tile img { max-width: 78%; max-height: 78%; object-fit: contain; }
.uni-logo-tile .uni-mono {
    display: none; font-weight: 800; color: var(--re-primary);
    font-size: 1.35rem; line-height: 1;
}
.uni-logo-tile.is-mono { background: var(--re-primary-tint); }
.uni-logo-tile.is-mono .uni-mono { display: inline-flex; }

.exam-logo-tile {
    width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--re-line);
    background: #fff; display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.exam-logo-tile img { max-width: 74%; max-height: 74%; object-fit: contain; }
.exam-logo-tile .exam-mono { display: none; font-weight: 800; color: var(--re-primary); font-size: 1.1rem; }
.exam-logo-tile.is-mono { background: var(--re-primary-tint); }
.exam-logo-tile.is-mono .exam-mono { display: inline-flex; }

/* ------------------------------------------------------------------ */
/* Homepage "Popular Programs" CTA band (replaces course cards)        */
/* ------------------------------------------------------------------ */
.courses-cta {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--re-radius) + 10px);
    box-shadow: var(--re-shadow-lg);
    background-image: url('../images/banners/courses.jpg');
    background-size: cover;
    background-position: center;
    isolation: isolate;
}
.courses-cta__overlay {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 400px at 15% 120%, rgba(255,204,41,.22), transparent 60%),
        linear-gradient(120deg, rgba(13,43,56,.92) 0%, rgba(17,110,148,.82) 100%);
}
.courses-cta__body {
    text-align: center;
    padding: 4.5rem 2rem;
}
@media (max-width: 767.98px) { .courses-cta__body { padding: 3rem 1.25rem; } }

/* ------------------------------------------------------------------ */
/* Promotions strip (uses the promo images already in the project)     */
/* ------------------------------------------------------------------ */
.promo-strip .promo-card {
    display: block;
    border-radius: var(--re-radius);
    overflow: hidden;
    box-shadow: var(--re-shadow-sm);
    border: 1px solid var(--re-line);
    background: #fff;
    transition: transform var(--re-speed) var(--re-ease), box-shadow var(--re-speed) var(--re-ease);
}
.promo-strip .promo-card:hover { transform: translateY(-6px); box-shadow: var(--re-shadow-lg); }
.promo-strip .promo-card img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 5; }

/* Country page — popular universities logo row */
.uni-logo-card {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    padding: 1.5rem 1rem; background: #fff; border: 1px solid var(--re-line);
    border-radius: var(--re-radius); text-decoration: none; text-align: center;
    transition: transform var(--re-speed) var(--re-ease), box-shadow var(--re-speed) var(--re-ease);
}
a.uni-logo-card:hover { transform: translateY(-5px); box-shadow: var(--re-shadow-md); }
.uni-logo-tile.is-lg { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 16px; }
.uni-logo-tile.is-lg .uni-mono { font-size: 2rem; }
.uni-logo-name { font-weight: 600; font-size: .88rem; color: var(--re-ink); line-height: 1.35; }
