/* ===================================================================
   POLISH.CSS - Visual refinement layer (loaded last)
   Keeps the approved identity (indigo #2F39A9 / teal #15D8B3 / gold CTA)
   and adds depth, rhythm, motion and responsive behaviour for every
   screen from 280px foldables to 4K displays.
   =================================================================== */

:root {
    --ink: #0f1440;
    --brand: #2F39A9;
    --brand-2: #2E6FA0;
    --teal: #15D8B3;
    --teal-2: #0fb899;
    --gold: #E6A817;
    --gold-2: #f4c246;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;

    --sh-1: 0 1px 2px rgba(16, 24, 64, .05), 0 2px 8px rgba(16, 24, 64, .05);
    --sh-2: 0 2px 6px rgba(16, 24, 64, .05), 0 14px 34px -10px rgba(47, 57, 169, .20);
    --sh-3: 0 8px 20px -6px rgba(16, 24, 64, .12), 0 30px 60px -22px rgba(47, 57, 169, .38);

    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

    --gutter: clamp(16px, 4vw, 32px);
}

/* ===== BASE ===== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }

::selection { background: rgba(21, 216, 179, .28); color: inherit; }

:focus-visible {
    outline: 3px solid rgba(21, 216, 179, .75);
    outline-offset: 3px;
    border-radius: 6px;
}

img, video, iframe, svg { max-width: 100%; }
table { max-width: 100%; }
input, select, textarea, button { font: inherit; }

/* Long words / URLs never push the layout sideways */
.main-content :where(p, li, td, h1, h2, h3, h4, a, span) { overflow-wrap: break-word; }

/* Scrollbar */
@supports (scrollbar-color: auto) {
    html { scrollbar-color: rgba(47, 57, 169, .45) transparent; scrollbar-width: thin; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(47, 57, 169, .55), rgba(21, 216, 179, .55));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Fluid container gutters + wider canvas on big screens */
.container { padding-inline: var(--gutter); }
@media (min-width: 1800px) { :root { --container-max: 1560px; } }
@media (min-width: 2400px) { :root { --container-max: 1760px; } }

/* ===== HEADER ===== */
.site-header {
    border-bottom: 0;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(47, 57, 169, .06), 0 8px 24px -16px rgba(47, 57, 169, .25);
}
.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), #49A4BB 45%, var(--brand));
    opacity: .9;
    pointer-events: none;
}
html[dir="rtl"] .site-header::after { background: linear-gradient(270deg, var(--teal), #49A4BB 45%, var(--brand)); }
.site-header.scrolled { box-shadow: 0 10px 30px -12px rgba(15, 20, 64, .28); }
.utility-bar, .main-nav-bar { background: transparent; }
.utility-bar { border-bottom-color: rgba(47, 57, 169, .07); }

.logo-img { transition: transform .4s var(--ease-out); }
.logo:hover .logo-img { transform: scale(1.04); }

/* Main nav: animated underline instead of heavy pills */
.main-nav .nav-list > li > a {
    position: relative;
    border-radius: 10px;
    transition: color .2s ease, background-color .2s ease;
}
.main-nav .nav-list > li > a::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--teal), var(--brand));
    transform: scaleX(0);
    transition: transform .3s var(--ease-out);
}
.main-nav .nav-list > li > a:hover::after,
.main-nav .nav-list > li > a.active::after { transform: scaleX(1); }
.main-nav .nav-list > li > a:hover,
.main-nav .nav-list > li > a.active { background: rgba(47, 57, 169, .05); }
.main-nav .nav-list > li > a i:first-child { color: #49A4BB; transition: color .2s ease; }
.main-nav .nav-list > li > a:hover i:first-child,
.main-nav .nav-list > li > a.active i:first-child { color: var(--brand); }

/* Dropdowns */
.paths-dropdown {
    border-radius: var(--r-md);
    border: 1px solid rgba(47, 57, 169, .08);
    box-shadow: var(--sh-3);
    padding: 8px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(10px);
    animation: polDrop .22s var(--ease-out);
}
@keyframes polDrop {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
.paths-dropdown a {
    border-radius: 10px;
    font-weight: 600;
    transition: background-color .18s ease, color .18s ease, padding .2s var(--ease-out);
}
.paths-dropdown a i { color: #49A4BB; width: 18px; text-align: center; }
.paths-dropdown a:hover {
    background: linear-gradient(90deg, rgba(21, 216, 179, .10), rgba(47, 57, 169, .06));
    color: var(--brand);
    padding-inline-start: calc(var(--space-md) + 4px);
}

/* Utility bar items */
.btn-yellow, #headerReserveBtn {
    background: linear-gradient(135deg, var(--gold-2), var(--gold)) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 6px 16px -4px rgba(230, 168, 23, .55);
    transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.btn-yellow:hover, #headerReserveBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -6px rgba(230, 168, 23, .65);
}
.utility-actions .util-link,
.utility-actions .nav-lang-link,
.utility-actions .nav-cart-link {
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.utility-actions .util-link:hover,
.utility-actions .nav-lang-link:hover,
.utility-actions .nav-cart-link:hover { transform: translateY(-1px); }

.user-dropdown {
    border-radius: var(--r-md) !important;
    box-shadow: var(--sh-3) !important;
    border: 1px solid rgba(47, 57, 169, .08) !important;
    overflow: hidden;
}

/* Mobile menu panel */
@media (max-width: 992px) {
    /* The second bar only hosts the fixed hamburger panel: no empty white band */
    .main-nav-bar { height: 0; border: 0; }
    .main-nav-bar .nav-container { min-height: 0 !important; padding: 0 !important; }
    .main-nav { top: 62px !important; }
    .main-nav.nav-open {
        border-radius: 0 0 var(--r-lg) var(--r-lg);
        box-shadow: 0 24px 50px -20px rgba(15, 20, 64, .35);
        animation: polDrop .25s var(--ease-out);
    }
    .main-nav .nav-list > li > a::after { display: none; }
    .main-nav .nav-list > li > a { min-height: 48px; }
    .nav-toggle {
        border-color: rgba(47, 57, 169, .15) !important;
        background: rgba(47, 57, 169, .04) !important;
        border-radius: 12px !important;
    }
}

/* ===== BUTTONS ===== */
.btn {
    transition: transform .25s var(--ease-out), box-shadow .25s ease, background .25s ease, color .2s ease, border-color .2s ease;
    -webkit-user-select: none;
    user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn-outline {
    border-color: rgba(47, 57, 169, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
}
.btn-outline:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(47, 57, 169, .45);
}
.btn-arrow {
    font-size: .8em;
    margin-inline-start: 2px;
    transition: transform .3s var(--ease-out);
}
html[dir="ltr"] .btn-arrow { transform: scaleX(-1); }
.btn:hover .btn-arrow { transform: translateX(-4px); }
html[dir="ltr"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(-4px); }

.btn-gold {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 55%, #d9930a 100%);
    box-shadow: 0 12px 30px -8px rgba(230, 168, 23, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.btn-gold::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .8s var(--ease-out);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -10px rgba(230, 168, 23, .7); background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 55%, #d9930a 100%); }
.btn-gold:hover::after { transform: translateX(120%); }

/* ===== HERO ===== */
.hero-slide-overlay,
.hero-overlay {
    background:
        radial-gradient(ellipse 80% 70% at 50% 55%, rgba(8, 12, 40, .55) 0%, rgba(8, 12, 40, .78) 75%, rgba(8, 12, 40, .88) 100%),
        linear-gradient(180deg, rgba(47, 57, 169, .28) 0%, rgba(8, 12, 34, .15) 50%, rgba(8, 12, 34, .35) 100%);
}

.hero-slider .swiper-slide-active .hero-slide-bg { animation: polKenBurns 9s ease-out both; }
@keyframes polKenBurns {
    from { transform: scale(1.12); }
    to   { transform: scale(1.02); }
}

.hero-slide-content { gap: 0; }
.hero-slide-content h1 {
    font-size: clamp(1.7rem, 1rem + 3.2vw, 3.6rem);
    line-height: 1.22;
    max-width: 22ch;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
html[dir="ltr"] .hero-slide-content h1 { font-size: clamp(1.6rem, .9rem + 2.8vw, 3.2rem); }
.hero-slide-content p {
    font-size: clamp(.95rem, .85rem + .45vw, 1.25rem);
    max-width: 60ch;
    color: rgba(255, 255, 255, .9);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.1rem;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    color: #eafff9;
    background: rgba(21, 216, 179, .16);
    border: 1px solid rgba(21, 216, 179, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px -10px rgba(21, 216, 179, .6);
}
.hero-eyebrow i { color: var(--teal); }

.hero-actions { gap: 14px; }
.hero-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 14px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    opacity: 1;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color .25s ease, border-color .25s ease, transform .25s var(--ease-out);
}
.hero-link-secondary:hover {
    background: rgba(255, 255, 255, .2);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Staggered entrance of the active slide's content (only once Swiper runs) */
.hero-slider .swiper-initialized .hero-slide-content > * {
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.hero-slider .swiper-initialized .swiper-slide:not(.swiper-slide-active) .hero-slide-content > * {
    opacity: 0;
    transform: translateY(26px);
}
.hero-slider .swiper-initialized .swiper-slide-active .hero-slide-content > :nth-child(1) { transition-delay: .15s; }
.hero-slider .swiper-initialized .swiper-slide-active .hero-slide-content > :nth-child(2) { transition-delay: .28s; }
.hero-slider .swiper-initialized .swiper-slide-active .hero-slide-content > :nth-child(3) { transition-delay: .42s; }
.hero-slider .swiper-initialized .swiper-slide-active .hero-slide-content > :nth-child(4) { transition-delay: .56s; }

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color .25s ease, border-color .25s ease, transform .25s var(--ease-out);
}
.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-50%) scale(1.06);
}
.hero-slider .swiper-pagination { bottom: 34px; }
.hero-slider .swiper-pagination-bullet { height: 5px; width: 28px; background: rgba(255, 255, 255, .4); }
.hero-slider .swiper-pagination-bullet-active {
    width: 56px;
    background: linear-gradient(90deg, var(--teal), #7cf0d9);
    box-shadow: 0 0 14px rgba(21, 216, 179, .7);
}

.hero-social-sidebar {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 10px 7px;
}

.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 96px;
    z-index: 6;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 14px;
    opacity: .85;
    transition: opacity .2s ease, border-color .2s ease;
}
.hero-scroll-cue:hover { opacity: 1; border-color: #fff; }
.hero-scroll-cue span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: polScroll 1.8s ease-in-out infinite;
}
@keyframes polScroll {
    0%   { opacity: 0; transform: translateY(0); }
    30%  { opacity: 1; }
    80%  { opacity: 0; transform: translateY(14px); }
    100% { opacity: 0; }
}
@media (max-width: 768px), (max-height: 680px) { .hero-scroll-cue { display: none; } }

/* ===== SECTION HEADERS ===== */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--brand);
    background: linear-gradient(90deg, rgba(21, 216, 179, .14), rgba(47, 57, 169, .08));
    border: 1px solid rgba(47, 57, 169, .1);
}
.section-eyebrow i { color: var(--teal-2); font-size: .85em; }
.section-header .section-eyebrow + h2 { margin-top: 0; }
.featured-programs-section .section-header,
.testimonials-section .section-header { display: flex; flex-direction: column; align-items: flex-start; }
.testimonials-section .section-header { align-items: center; text-align: center; }
html[dir="ltr"] .testimonials-section .section-header { align-items: flex-start; }

.section-header h2::after {
    width: 72px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--teal), var(--brand));
}
html[dir="rtl"] .section-header h2::after { background: linear-gradient(270deg, var(--teal), var(--brand)); }

/* ===== PROGRAMS SHOWCASE ===== */
.showcase-tab {
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s var(--ease-out);
}
.showcase-tab:hover { transform: translateY(-1px); }
.btn-green-solid { border-radius: 14px; }
.btn-green-solid:hover { transform: translateY(-3px); }
.programs-showcase .panel-card { box-shadow: 0 14px 34px -14px rgba(5, 10, 40, .55); }
.programs-showcase .panel-card-photo { transition: transform .7s var(--ease-out); }
.programs-showcase .panel-card:hover .panel-card-photo { transform: scale(1.05); }

/* ===== COURSE CARDS (home + listing) ===== */
.course-card {
    border-radius: var(--r-lg) !important;
    border: 1px solid rgba(47, 57, 169, .07) !important;
    box-shadow: var(--sh-1) !important;
    background: #fff;
    isolation: isolate;
    transition: transform .4s var(--ease-out), box-shadow .4s ease, border-color .3s ease !important;
}
.course-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--sh-3) !important;
    border-color: rgba(21, 216, 179, .35) !important;
}
.course-card .course-card-image,
.course-card .program-card__image {
    border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
}
.course-card .course-card-image img,
.course-card .program-card__image img {
    transition: transform .8s var(--ease-out);
}
.course-card:hover .course-card-image img,
.course-card:hover .program-card__image img { transform: scale(1.06); }
.course-card .course-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 20, 64, .28) 100%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.course-card:hover .course-card-image::after { opacity: 1; }

.course-card-body h3 a { transition: color .2s ease; }
.course-card-body h3 a:hover { color: var(--brand-2); }

.course-card .course-card-meta {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px !important;
}
.course-card .course-card-meta span {
    padding: 5px 11px;
    border-radius: 999px;
    background: #f3f6ff;
    border: 1px solid rgba(47, 57, 169, .07);
    font-weight: 600;
    font-size: .8rem;
    color: #3d4673;
    line-height: 1.5;
}
.course-card .course-card-meta i { width: auto; color: var(--teal-2); }

.course-card-footer { border-top-color: rgba(47, 57, 169, .07) !important; }
.course-card-footer .btn-primary {
    flex: 1 1 auto;
    width: 100%;
    border-radius: 12px !important;
}

.status-badge {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .3);
}

/* Cards without a photo: branded artwork instead of a pale empty box */
.course-card-image.is-placeholder,
.featured-programs-section .course-card-image.is-placeholder {
    background:
        radial-gradient(circle at 20% 20%, rgba(21, 216, 179, .35), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(73, 164, 187, .45), transparent 50%),
        linear-gradient(135deg, #232c8f 0%, var(--brand) 50%, var(--brand-2) 100%) !important;
}
.course-card-image.is-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 18px 18px;
}
.course-card-image.is-placeholder i {
    font-size: clamp(2.6rem, 4vw, 3.4rem) !important;
    color: rgba(255, 255, 255, .9) !important;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .25));
    transition: transform .6s var(--ease-out);
}
.course-card:hover .course-card-image.is-placeholder i { transform: scale(1.1) rotate(-4deg); }

.course-card-trainer__avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(21, 216, 179, .45); border: 0; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    border-radius: var(--r-xl) !important;
    box-shadow: var(--sh-2) !important;
    border: 1px solid rgba(47, 57, 169, .07) !important;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%) !important;
}
.testimonial-quote {
    background: linear-gradient(135deg, var(--teal), var(--brand)) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px -8px rgba(47, 57, 169, .55);
}
.testimonials-nav {
    transition: background-color .25s ease, color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease !important;
}
.testimonials-nav:hover { transform: scale(1.08); box-shadow: var(--sh-2); }

/* ===== PARTNERS ===== */
/* No hard borders: the tint lives on a ::before layer that fades out at the
   top and bottom, so the section melts into its neighbours. */
.partners-section {
    background: transparent;
    border-top: 0;
    border-bottom: 0;
}
.partners-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 clamp(90px, 10vw, 160px), #000 calc(100% - clamp(90px, 10vw, 160px)), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 clamp(90px, 10vw, 160px), #000 calc(100% - clamp(90px, 10vw, 160px)), transparent 100%);
}
.partner-item img {
    filter: grayscale(.4) saturate(.9);
    opacity: .9;
    transition: filter .35s ease, opacity .35s ease, transform .35s var(--ease-out);
}
.partner-item:hover img { filter: none; opacity: 1; transform: scale(1.05); }

/* ===== CTA: floating gradient card =====
   A rounded card that sits on the light page (instead of an edge-to-edge
   dark slab) so the page ends open and inviting. */
.cta-ticket.cta-card {
    position: relative;
    isolation: isolate;
    width: auto;
    margin: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px) !important;
    border-radius: clamp(20px, 2.5vw, 32px);
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .22), transparent 40%),
        radial-gradient(circle at 92% 100%, rgba(21, 216, 179, .45), transparent 45%),
        linear-gradient(115deg, #2F39A9 0%, #3553c2 38%, #2E86B0 72%, #1fbfae 100%);
    box-shadow: 0 30px 60px -28px rgba(47, 57, 169, .55), 0 10px 24px -12px rgba(15, 20, 64, .18);
    transition: box-shadow .4s ease;
}
.cta-ticket.cta-card:hover {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .22), transparent 40%),
        radial-gradient(circle at 92% 100%, rgba(21, 216, 179, .45), transparent 45%),
        linear-gradient(115deg, #2F39A9 0%, #3553c2 38%, #2E86B0 72%, #1fbfae 100%);
    box-shadow: 0 36px 70px -28px rgba(47, 57, 169, .6), 0 12px 28px -12px rgba(15, 20, 64, .2);
}
.cta-ticket.cta-card::before,
.cta-ticket.cta-card::after { background: rgba(255, 255, 255, .08); filter: none; }
.cta-ring {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .18);
    pointer-events: none;
}
.cta-ring--a { width: 420px; height: 420px; inset-inline-end: -140px; top: -220px; }
.cta-ring--b { width: 260px; height: 260px; inset-inline-start: -90px; bottom: -150px; border-color: rgba(255, 255, 255, .14); }

.cta-card .cta-inner {
    padding: clamp(40px, 5vw, 72px) clamp(20px, 5vw, 64px);
    background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
    background-size: 22px 22px;
}
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cta-card .cta-inner h2 {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem);
    font-weight: 800;
    line-height: 1.35;
    max-width: 30ch;
    text-shadow: 0 6px 24px rgba(10, 16, 60, .25);
}
.cta-sub {
    margin: 0 auto 28px;
    max-width: 58ch;
    font-size: clamp(.95rem, .9rem + .25vw, 1.1rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, .88);
}
.cta-card .cta-btn {
    min-width: 0;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cta-card .cta-btn:not(.cta-btn-outline) {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
    box-shadow: 0 14px 30px -12px rgba(10, 16, 60, .45);
}
.cta-card .cta-btn:not(.cta-btn-outline):hover { background: #fff; color: #232c8f; transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(10, 16, 60, .5); }
.cta-card .cta-btn-outline {
    background: rgba(255, 255, 255, .1);
    border: 1.5px solid rgba(255, 255, 255, .55);
    color: #fff;
}
.cta-card .cta-btn-outline:hover { background: rgba(255, 255, 255, .2); border-color: #fff; transform: translateY(-3px); box-shadow: none; }
.main-content:has(> .container > .cta-ticket:last-child) { padding-bottom: 0; }

/* ===== FORMS (site-wide) ===== */
.form-control {
    border-radius: 12px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form-control:focus {
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 4px rgba(21, 216, 179, .16) !important;
    outline: none;
}
.alert {
    border-radius: 14px;
    border-width: 1px;
    box-shadow: var(--sh-1);
    animation: polDrop .35s var(--ease-out);
}

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 0%, rgba(21, 216, 179, .18), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(73, 164, 187, .22), transparent 45%),
        linear-gradient(135deg, #141b63 0%, #232c8f 45%, #1d4f7d 100%);
    border-top: 0;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), #49A4BB, var(--brand), var(--teal));
}
.footer-grid { position: relative; }
.footer-heading { font-weight: 800; letter-spacing: .01em; }
.footer-heading::after {
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--teal), #49A4BB);
}
html[dir="ltr"] .footer-heading::after { right: auto; left: 0; }
.footer-links a { transition: color .2s ease, transform .25s var(--ease-out); padding-inline: 0 !important; }
.footer-links a:hover { color: #7cf0d9; transform: translateX(-4px); }
html[dir="ltr"] .footer-links a:hover { transform: translateX(4px); }
html[dir="ltr"] .footer-links .fa-chevron-left { transform: rotate(180deg); }
.footer-contact i {
    width: 32px;
    height: 32px;
    margin-top: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #7cf0d9;
    font-size: .85rem;
}
.footer-contact li { align-items: center; }
.footer-contact a { color: rgba(255, 255, 255, .85); transition: color .2s ease; }
.footer-contact a:hover { color: #7cf0d9; }
.footer-contact span:empty { display: none; }
.footer-social { flex-wrap: wrap; }
.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: background .25s ease, transform .25s var(--ease-out), border-color .25s ease;
}
.footer-social a:hover {
    background: linear-gradient(135deg, var(--teal), #49A4BB);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}
.footer-newsletter {
    padding: 5px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
}
.footer-newsletter input,
html[dir="ltr"] .footer-newsletter input {
    min-width: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    padding: .6rem .8rem;
}
.footer-newsletter input::placeholder { color: rgba(255, 255, 255, .6); }
.footer-newsletter button,
html[dir="ltr"] .footer-newsletter button {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    padding: .6rem 1rem;
    transition: transform .2s var(--ease-out), box-shadow .2s ease;
}
.footer-newsletter button:hover { background: linear-gradient(135deg, #2ee6c3, var(--teal)); box-shadow: 0 8px 18px -6px rgba(21, 216, 179, .7); }
.footer-bottom { opacity: .75; }

/* ===== FLOATING ACTIONS ===== */
.whatsapp-btn { animation: polPulse 2.8s ease-out infinite; }
@keyframes polPulse {
    0%   { box-shadow: 0 10px 25px rgba(6, 140, 60, .25), 0 0 0 0 rgba(11, 176, 122, .45); }
    70%  { box-shadow: 0 10px 25px rgba(6, 140, 60, .25), 0 0 0 16px rgba(11, 176, 122, 0); }
    100% { box-shadow: 0 10px 25px rgba(6, 140, 60, .25), 0 0 0 0 rgba(11, 176, 122, 0); }
}

.back-to-top {
    position: fixed;
    inset-inline-end: 24px;
    bottom: 28px;
    z-index: 9990;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 28px -10px rgba(47, 57, 169, .7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.9);
    transition: opacity .3s ease, transform .35s var(--ease-spring), visibility .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: linear-gradient(135deg, var(--teal), var(--teal-2)); }
.back-to-top svg { width: 46px; height: 46px; position: absolute; inset: 1px; transform: rotate(-90deg); }
.back-to-top circle { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2.5; stroke-linecap: round; }

/* Reserve modal (footer) */
#headerReserveModal { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(10, 14, 40, .55) !important; }
#headerReserveModal > div {
    border-radius: var(--r-lg) !important;
    box-shadow: var(--sh-3) !important;
    animation: polPop .35s var(--ease-spring);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}
@keyframes polPop {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

/* ===== SCROLL REVEAL =====
   html.js-reveal is set in <head> only when IntersectionObserver exists and
   the user did not ask for reduced motion; ui.js adds .is-visible.
   The fallback animation shows everything after 2.5s if ui.js never runs. */
html.js-reveal :is(
    .section-header, .showcase-header, .course-card, .mag-stat, .testimonials-carousel,
    .partners-copy, .cta-inner, .footer-col, .blog-card, .trainer-card, .kit-card, .tm-intro, .tm-stage,
    .about-section, .value-card, .contact-info-item
):not(.is-visible) {
    opacity: 0;
    translate: 0 30px;
    animation: polRevealFallback .01s 2.5s forwards;
}
html.js-reveal .is-visible {
    opacity: 1;
    translate: none;
    transition: opacity .8s var(--ease-out), translate .8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}
@keyframes polRevealFallback { to { opacity: 1; translate: none; } }

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

/* ===================================================================
   RESPONSIVE - every width, every orientation
   =================================================================== */

/* Large desktop: give the hero content more presence */
@media (min-width: 1600px) {
    .hero-slide-content p { max-width: 64ch; }
    .courses-grid { gap: 28px !important; }
}

/* Laptop */
@media (max-width: 1200px) {
    .members-and-growing-section { padding-inline: 4vw; }
}

/* Tablet: stats become a 2x2 grid instead of a squeezed row */
@media (max-width: 900px) {
    .members-and-growing-section { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 0; }
    .members-and-growing-section .mag-stat { padding: 24px 12px; border: 0 !important; }
    .members-and-growing-section .mag-stat:nth-child(odd) { border-inline-end: 1px solid rgba(255, 255, 255, .14) !important; }
    .members-and-growing-section .mag-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .14) !important; }
}

@media (max-width: 768px) {
    .section, section { padding-block: 3rem; }
    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next { width: 42px; height: 42px; }
    .hero-link-secondary { padding: 12px 20px; }
    .btn-gold { padding: 13px 24px; font-size: 1rem; }
    .back-to-top { width: 44px; height: 44px; bottom: 22px; inset-inline-end: 16px; border-radius: 14px; }
    .back-to-top svg { width: 42px; height: 42px; }
    .footer-grid { gap: 28px !important; padding-block: 44px 28px !important; }
}

/* The hero sits under the translucent header: keep its content clear of it */
@media (max-width: 992px) {
    .hero-slide-content { padding-top: 56px; }
}

/* Phones */
@media (max-width: 576px) {
    .hero-eyebrow { font-size: .74rem; padding: 6px 12px; margin-bottom: .8rem; }
    .hero-slide-content { padding-inline: 18px; }
    .hero-slide-content p { margin-bottom: 1.4rem; }
    .hero-actions { flex-direction: column !important; width: 100%; max-width: 340px; margin-inline: auto; }
    .hero-actions .btn-gold,
    .hero-actions .hero-link-secondary { width: 100%; justify-content: center; }
    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next { display: none; }
    .hero-slider .swiper-pagination { bottom: 22px; }
    .course-card:hover { transform: translateY(-4px) !important; }
    .section-eyebrow { font-size: .74rem; }
    .cta-btn { width: 100%; min-width: 0; }
}

/* Small phones + foldables (Galaxy Fold 280px, iPhone SE 320px) */
@media (max-width: 360px) {
    :root { --gutter: 14px; }
    html { font-size: 15px; }
    .hero-slide-content h1 { font-size: 1.45rem; }
    .utility-actions { gap: 2px !important; }
    .utility-actions .util-link,
    .utility-actions .nav-lang-link,
    .utility-actions .nav-cart-link { width: 32px !important; height: 32px !important; }
    .logo-img { height: 34px !important; }
    .members-and-growing-section { grid-template-columns: 1fr 1fr; }
    .members-and-growing-section .mag-stat .number { font-size: 1.9rem; }
    .footer-newsletter { flex-wrap: nowrap; }
}
@media (max-width: 300px) {
    .members-and-growing-section { grid-template-columns: 1fr; }
    .members-and-growing-section .mag-stat { border-inline-end: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .14) !important; }
    .members-and-growing-section .mag-stat:last-child { border-bottom: 0 !important; }
}

/* Landscape phones / short viewports: hero fits, no clipped CTA */
@media (orientation: landscape) and (max-height: 520px) {
    .hero-slider { height: 100svh !important; min-height: 360px !important; }
    .hero-eyebrow { display: none; }
    .hero-slide-content h1 { font-size: clamp(1.3rem, 3.4vw, 2rem); margin-bottom: .5rem; }
    .hero-slide-content p { margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-actions { flex-direction: row !important; max-width: none; }
    .hero-actions .btn-gold, .hero-actions .hero-link-secondary { width: auto; }
}

/* Touch devices: no sticky hover lifts */
@media (hover: none) {
    .course-card:hover { transform: none !important; }
    .course-card:hover .course-card-image img,
    .course-card:hover .program-card__image img { transform: none; }
}

/* Notched phones */
@supports (padding: max(0px)) {
    .whatsapp-widget { bottom: max(24px, env(safe-area-inset-bottom)); }
    .back-to-top { bottom: max(28px, calc(env(safe-area-inset-bottom) + 8px)); }
}

/* Print */
@media print {
    .site-header, .site-footer, .whatsapp-widget, .back-to-top, .hero-scroll-cue, #spa-progress { display: none !important; }
    html.js-reveal * { opacity: 1 !important; translate: none !important; }
}

/* ===================================================================
   TESTIMONIALS - Misk-style: two-tone headline beside a speech-bubble
   quote card, dash indicators underneath. Scoped to .testimonials-misk
   so the legacy carousel rules never leak in.
   =================================================================== */
.testimonials-section.testimonials-misk {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding: clamp(56px, 7vw, 96px) 0;
    position: relative;
    background: transparent;
    overflow: hidden;
}
.testimonials-misk::after { display: none !important; }
/* Tinted backdrop on its own layer, faded in from the top so the section
   melts into the featured-programs area instead of starting on a hard line. */
.testimonials-section.testimonials-misk::before {
    display: block !important;
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 88% 30%, rgba(21, 216, 179, .10), transparent 38%),
        radial-gradient(circle at 8% 90%, rgba(47, 57, 169, .08), transparent 42%),
        #eef1f7;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 clamp(120px, 14vw, 220px));
    mask-image: linear-gradient(180deg, transparent 0, #000 clamp(120px, 14vw, 220px));
}
.testimonials-misk > .container { position: relative; z-index: 1; }

.tm-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
}

/* Copy column */
.tm-intro { min-width: 0; }
.tm-title {
    margin: 0 0 18px;
    line-height: 1.15;
    font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);
}
.tm-title::after { display: none; }
.tm-title-light {
    display: block;
    font-weight: 400;
    color: #49A4BB;
}
.tm-title-bold {
    display: block;
    font-weight: 800;
    color: var(--brand);
}
.tm-sub {
    margin: 0 0 26px;
    max-width: 44ch;
    font-size: 1rem;
    line-height: 1.85;
    color: #4a5374;
}
.tm-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1.5px solid var(--brand);
    background: transparent;
    color: var(--brand);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease;
}
.tm-share-btn:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(47, 57, 169, .55);
}

/* Slider column */
.tm-stage { min-width: 0; }
.testimonials-misk .tm-viewport { overflow: hidden; border-radius: 0; }
.testimonials-misk .testimonials-slide {
    /* the gutter hosts the bubble notch (inline-start) and the card shadow */
    padding: 6px 10px 40px 26px;
}
html[dir="rtl"] .testimonials-misk .testimonials-slide { padding: 6px 26px 40px 10px; }

.tm-card {
    position: relative;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 25px -5px rgba(15, 20, 64, .10), 0 10px 10px -5px rgba(15, 20, 64, .04);
}
/* The track is forced LTR for translateX; restore the page direction inside */
html[dir="rtl"] .testimonials-misk .testimonials-slide { direction: rtl; }
/* Speech-bubble notch on the top corner facing the headline */
.tm-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: -22px;
    width: 23px;
    height: 26px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 0 100%); /* RTL: tip points right, toward the headline */
}
html[dir="ltr"] .tm-card::before { clip-path: polygon(100% 0, 0 0, 100% 100%); }
.tm-card::after {
    content: "\201D";
    position: absolute;
    top: 6px;
    inset-inline-end: 22px;
    font: 700 6rem/1 Georgia, serif;
    color: rgba(47, 57, 169, .07);
    pointer-events: none;
}

.tm-quote { margin: 0; }
.tm-quote p {
    margin: 0;
    font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem);
    line-height: 1.95;
    font-style: italic;
    color: #151a3a;
}

.tm-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(47, 57, 169, .08);
}
.tm-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #49A4BB);
}
.tm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tm-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.tm-name { font-size: 1rem; font-weight: 700; color: var(--brand); }
.tm-role { font-size: .85rem; color: #6b7393; }
.tm-stars { margin-inline-start: auto; display: inline-flex; gap: 3px; font-size: .85rem; color: #d7dbe8; white-space: nowrap; }
.tm-stars .is-on { color: #f59e0b; }

/* Dash indicators + arrows */
.tm-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-inline-start: 26px;
    padding-inline-end: 10px;
    margin-top: -14px;
}
.tm-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-dot {
    width: 36px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: #cdd3e3;
    cursor: pointer;
    transition: width .35s var(--ease-out), background .3s ease;
}
.tm-dot:hover { background: #aab3cc; }
.tm-dot.is-active { width: 60px; background: linear-gradient(90deg, var(--brand), #49A4BB); }
html[dir="rtl"] .tm-dot.is-active { background: linear-gradient(270deg, var(--brand), #49A4BB); }
.tm-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.tm-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(47, 57, 169, .18);
    background: #fff;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-out);
}
.tm-arrow:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
html[dir="ltr"] .tm-arrow i { transform: scaleX(-1); }

/* Tablet / phone: headline on top, bubble below (notch points up) */
@media (max-width: 900px) {
    .tm-layout { grid-template-columns: 1fr; gap: 26px; }
    .tm-intro { text-align: start; }
    .tm-sub { max-width: none; }
    .testimonials-misk .testimonials-slide,
    html[dir="rtl"] .testimonials-misk .testimonials-slide { padding: 22px 6px 36px; }
    .tm-card::before,
    html[dir="ltr"] .tm-card::before {
        top: -20px;
        inset-inline-start: 32px;
        width: 26px;
        height: 21px;
        clip-path: polygon(0 100%, 100% 100%, 0 0);
    }
    html[dir="rtl"] .tm-card::before { clip-path: polygon(0 100%, 100% 100%, 100% 0); }
    .tm-controls { padding-inline: 6px; }
}
@media (max-width: 480px) {
    .tm-person { flex-wrap: wrap; }
    .tm-stars { margin-inline-start: 60px; flex-basis: 100%; }
    .tm-dot { width: 22px; }
    .tm-dot.is-active { width: 40px; }
    .tm-arrow { width: 38px; height: 38px; }
}

/* ===== SHOWCASE BOTTOM EDGE =====
   No wave: the section simply fades out over a short distance so the join
   with the featured-programs section below stays soft and unobtrusive. */
.programs-showcase {
    --fade-h: clamp(28px, 3vw, 48px);
    padding-bottom: calc(36px + var(--fade-h));
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - var(--fade-h)), rgba(0, 0, 0, .35) calc(100% - var(--fade-h) / 3), transparent 100%);
    mask-image: linear-gradient(180deg, #000 calc(100% - var(--fade-h)), rgba(0, 0, 0, .35) calc(100% - var(--fade-h) / 3), transparent 100%);
}

/* Phones: keep the copyright line clear of the floating WhatsApp / back-to-top buttons */
@media (max-width: 768px) {
    .site-footer .footer-bottom { padding-bottom: 88px; }
}

/* ===================================================================
   PROGRAMS SHOWCASE - visual polish only.
   Same markup/structure; refined surfaces, tabs, cards and navigation.
   =================================================================== */
.programs-showcase {
    background:
        radial-gradient(circle at 85% 8%, rgba(21, 216, 179, .22), transparent 42%),
        radial-gradient(circle at 6% 70%, rgba(124, 92, 255, .18), transparent 45%),
        linear-gradient(135deg, #1c2683 0%, #2F39A9 42%, #2E6FA0 82%, #49A4BB 100%);
}
.programs-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

/* Header */
.programs-showcase .showcase-title {
    letter-spacing: 0;
    text-shadow: 0 8px 30px rgba(8, 12, 50, .35);
}
.programs-showcase .btn-green-solid {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #2ee6c3 0%, var(--teal) 50%, var(--teal-2) 100%);
    box-shadow: 0 12px 28px -10px rgba(21, 216, 179, .65), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.programs-showcase .btn-green-solid::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .8s var(--ease-out);
}
.programs-showcase .btn-green-solid:hover::after { transform: translateX(120%); }

/* Tabs: a glass track with a white selected pill */
.programs-showcase .showcase-tabs-wrap {
    padding: 7px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.programs-showcase .showcase-tabs { gap: 6px; padding-bottom: 0; }
.programs-showcase .showcase-tab {
    background: transparent;
    border: 0;
    border-radius: 12px;
    padding: 11px 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.programs-showcase .showcase-tab:hover { background: rgba(255, 255, 255, .1); color: #fff; transform: none; }
.programs-showcase .showcase-tab.active,
.programs-showcase .showcase-tab.active:focus,
.programs-showcase .showcase-tab.active:active {
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    border: 0;
    box-shadow: 0 10px 24px -10px rgba(5, 10, 40, .55);
}
.programs-showcase .tab-scroll-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    transition: background-color .25s ease, color .25s ease;
}
.programs-showcase .tab-scroll-btn:hover:not(:disabled) { background: #fff; color: var(--brand); }

/* Panel surface: frosted glass instead of a flat tinted block */
.programs-showcase .panel-inner {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .14), transparent 45%),
        linear-gradient(135deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .04) 100%) !important;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 26px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 60px -30px rgba(5, 10, 40, .55);
}
.programs-showcase .panel-title { text-shadow: 0 6px 24px rgba(5, 10, 40, .35); }
.programs-showcase .panel-desc { color: rgba(255, 255, 255, .82); }
.programs-showcase .btn-outline-white {
    padding: 12px 22px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--brand);
    box-shadow: 0 12px 26px -12px rgba(5, 10, 40, .6);
    transition: transform .25s var(--ease-out), box-shadow .25s ease, background-color .25s ease;
}
.programs-showcase .btn-outline-white i { transition: transform .3s var(--ease-out); }
.programs-showcase .btn-outline-white:hover {
    background: #fff;
    color: #232c8f;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(5, 10, 40, .65);
}
.programs-showcase .btn-outline-white:hover i { transform: translateX(-4px); }
html[dir="ltr"] .programs-showcase .btn-outline-white i { transform: scaleX(-1); }
html[dir="ltr"] .programs-showcase .btn-outline-white:hover i { transform: scaleX(-1) translateX(-4px); }

/* Cards */
.programs-showcase .panel-card {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    box-shadow: 0 18px 40px -18px rgba(5, 10, 40, .7);
}
.programs-showcase .panel-card-img { border-radius: 19px; }
.programs-showcase .panel-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -20px rgba(5, 10, 40, .75); }
/* Photo-less cards: branded artwork instead of a dark grey block */
.programs-showcase .panel-card--placeholder .panel-card-img > div:not(.panel-card-overlay) {
    background:
        radial-gradient(circle at 20% 15%, rgba(21, 216, 179, .4), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(124, 92, 255, .35), transparent 50%),
        linear-gradient(135deg, #232c8f 0%, #2F39A9 50%, #2E6FA0 100%) !important;
    color: rgba(255, 255, 255, .92) !important;
}
.programs-showcase .panel-card--placeholder .panel-card-img > div:not(.panel-card-overlay)::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 18px 18px;
}
.programs-showcase .panel-card--placeholder .panel-card-img > div:not(.panel-card-overlay) i {
    position: relative;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .3));
    transition: transform .6s var(--ease-out);
}
.programs-showcase .panel-card:hover .panel-card-img > div:not(.panel-card-overlay) i { transform: scale(1.1) rotate(-4deg); }
.programs-showcase .panel-card-back {
    background: linear-gradient(150deg, #2F39A9 0%, #2E6FA0 60%, #1f9fae 100%) !important;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
}
.programs-showcase .panel-card-back-veil { background: rgba(10, 16, 50, .18); }
.programs-showcase .status-badge {
    padding: 5px 12px;
    font-size: 11px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45);
}

/* Navigation: dash indicators + glass arrows */
.programs-showcase .panel-dots,
.programs-showcase.theme-sky .panel-dots {
    background: transparent;
    padding: 6px 0;
    gap: 8px;
    align-items: center;
}
.programs-showcase .dot {
    width: 24px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .3);
    transform: none;
    transition: width .35s var(--ease-out), background-color .3s ease;
}
.programs-showcase .dot:hover { background: rgba(255, 255, 255, .55); }
.programs-showcase .dot.active { width: 48px; background: #fff; transform: none; }
.programs-showcase .arr-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-out);
}
.programs-showcase .arr-btn:hover { background: #fff; color: var(--brand); border-color: #fff; transform: translateY(-2px); }

@media (max-width: 991px) {
    .programs-showcase .panel-inner { border-radius: 22px; }
}
@media (max-width: 576px) {
    .programs-showcase .showcase-tabs-wrap { padding: 5px; border-radius: 14px; }
    .programs-showcase .showcase-tab { padding: 9px 14px; }
    .programs-showcase .tab-scroll-btn { width: 32px; height: 32px; border-radius: 10px; }
}

/* ===================================================================
   COURSE DETAILS - visual polish only (markup/structure unchanged).
   =================================================================== */
.course-detail-header {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 3.2vw, 44px);
    border: 1px solid rgba(47, 57, 169, .08);
    border-radius: clamp(20px, 2.2vw, 28px);
    background:
        radial-gradient(circle at 0% 0%, rgba(21, 216, 179, .07), transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(47, 57, 169, .06), transparent 40%),
        #fff;
    box-shadow: var(--sh-2);
}
.course-detail-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), #49A4BB, var(--brand));
}
html[dir="rtl"] .course-detail-header::before { background: linear-gradient(270deg, var(--teal), #49A4BB, var(--brand)); }
.course-hero { gap: clamp(20px, 3vw, 44px); }
.course-hero__title {
    font-size: clamp(1.55rem, 1.05rem + 1.6vw, 2.4rem);
    font-weight: 800;
    color: var(--brand);
    line-height: 1.3;
    margin-bottom: 14px;
}
.course-hero__desc { color: #4a5374; font-size: 1.02rem; line-height: 1.9; }
.course-detail-header .status-badge,
.course-detail-header .badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

/* Meta: date / duration as soft chips */
.course-detail-meta { gap: 10px !important; margin-bottom: 22px; }
.course-detail-meta-item {
    padding: 10px 16px;
    border-radius: 14px;
    background: #f4f6fd;
    border: 1px solid rgba(47, 57, 169, .07);
    color: #4a5374;
}
.course-detail-meta-item i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff;
    color: var(--teal-2);
    box-shadow: var(--sh-1);
    flex-shrink: 0;
}
.course-detail-meta-item strong { color: var(--ink); }

/* Hero image */
.course-hero__image img,
.course-details__hero-image {
    border-radius: 20px !important;
}
.course-details__hero-image {
    background: #f3f6fc !important;
    border: 1px solid rgba(47, 57, 169, .07);
    box-shadow: 0 24px 50px -28px rgba(15, 20, 64, .45);
}

/* Enrollment buttons */
.course-detail-header .btn { border-radius: 12px; }
.course-detail-header .btn-lg { padding: 14px 30px; }

/* Tabs: a light track with a gradient selected pill */
.course-tabs-section { margin-top: clamp(28px, 4vw, 48px); }
.course-tabs-nav {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px;
    margin-bottom: 18px;
    border: 1px solid rgba(47, 57, 169, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--sh-1);
    overflow-x: auto;
    scrollbar-width: none;
    width: fit-content;
    max-width: 100%;
}
.course-tabs-nav::-webkit-scrollbar { display: none; }
.course-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #4a5374;
    padding: .7rem 1.25rem;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease, box-shadow .25s ease;
}
.course-tab-btn:hover { background: #f1f4fc; color: var(--brand); }
.course-tab-btn.active {
    background: linear-gradient(135deg, var(--brand), #2E6FA0);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(47, 57, 169, .6);
}

/* Tab content as a readable card */
.course-tabs-content {
    padding: clamp(20px, 3vw, 40px);
    border: 1px solid rgba(47, 57, 169, .08);
    border-radius: clamp(18px, 2vw, 26px);
    background: #fff;
    box-shadow: var(--sh-1);
}
.course-tab-pane.active { animation: polDrop .35s var(--ease-out); }
.course-tab-pane { color: #3d4673; line-height: 1.95; font-size: 1.02rem; white-space: normal; }
.course-tab-pane :is(h1, h2, h3, h4) { color: var(--brand); margin-top: 1.2em; }
.course-tab-pane :is(h1, h2, h3, h4):first-child { margin-top: 0; }
.course-tab-pane ul { list-style: none; padding-inline-start: 0; }
.course-tab-pane ul li { position: relative; padding-inline-start: 26px; margin-bottom: .45em; }
.course-tab-pane ul li::before {
    content: "";
    position: absolute;
    inset-inline-start: 4px;
    top: .75em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--brand));
}
.course-tab-pane ol { padding-inline-start: 1.4em; }
.course-tab-pane img { border-radius: 16px; }
.course-tab-pane a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.course-faq-item {
    border-radius: 16px;
    border-color: rgba(47, 57, 169, .08);
    box-shadow: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.course-faq-item:hover { border-color: rgba(47, 57, 169, .18); }
.course-faq-item.open { border-color: rgba(21, 216, 179, .5); box-shadow: 0 12px 26px -16px rgba(47, 57, 169, .35); }
.course-faq-question { padding: 18px 20px; }
html[dir="ltr"] .course-faq-question { text-align: left; }
.course-faq-question i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f4fc;
    font-size: .8rem;
}

/* Reviews inside the tab */
#pane-reviews .reviews-list > div {
    border: 1px solid rgba(47, 57, 169, .07);
    border-radius: 16px !important;
    background: #f7f9fe !important;
    padding: 18px 20px !important;
}

/* Back link: breathing room above the footer */
.course-back-link {
    margin: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 96px);
}
.course-back-link .btn { border-radius: 14px; padding: 12px 24px; }
html[dir="rtl"] .course-back-link .fa-arrow-left { transform: scaleX(-1); }

@media (max-width: 576px) {
    .course-tabs-nav { width: 100%; border-radius: 14px; }
    .course-tab-btn { padding: .6rem 1rem; font-size: .92rem; }
    .course-detail-meta-item { width: 100%; }
    .course-detail-header .btn { width: 100%; justify-content: center; margin-inline: 0 !important; margin-bottom: 8px; }
}

/* ===== TERMS & CONDITIONS LINKS =====
   "i" chip on course pages (pushed to the far edge of the badge row) and the
   small agreement note under enrollment / checkout buttons. */
.terms-chip {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 6px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--brand);
    background: #fff;
    border: 1px solid rgba(47, 57, 169, .15);
    box-shadow: var(--sh-1);
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s var(--ease-out);
}
html[dir="rtl"] .terms-chip { padding: 5px 6px 5px 14px; }
.terms-chip i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #49A4BB);
}
.terms-chip:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.terms-chip:hover i { background: #fff; color: var(--brand); }
.terms-agree-note {
    margin: 12px 0 0;
    font-size: .85rem;
    line-height: 1.7;
    color: var(--color-text-light);
}
.terms-agree-note i { color: #49A4BB; }
.terms-agree-note a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ===================================================================
   CLIENT REVISION: heading sizes, logo, payments, search, how-we-work
   =================================================================== */

/* Same size as "برامج تدريبية مميزة" */
.tm-title,
.cta-card .cta-inner h2 { font-size: clamp(2rem, 2.8vw, 3rem); }
html[dir="ltr"] .tm-title,
html[dir="ltr"] .cta-card .cta-inner h2 { font-size: clamp(1.55rem, 2.05vw, 2.2rem); }

/* Logo: cropped artwork at a readable size, white melts into the header */
.site-header .logo-img {
    height: 58px !important;
    max-height: 58px !important;
    border-radius: 0;
    mix-blend-mode: multiply;
}
@media (max-width: 992px) { .site-header .logo-img { height: 46px !important; max-height: 46px !important; } }
@media (max-width: 480px) { .site-header .logo-img { height: 38px !important; max-height: 38px !important; } }
@media (max-width: 360px) { .site-header .logo-img { height: 30px !important; max-height: 30px !important; } }

/* Footer payment methods: small strip beside the copyright */
.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
}
.footer-bottom { opacity: 1; }
.footer-bottom-row p { opacity: .75; }
.footer-bottom-row img {
    width: auto;
    max-width: 100%;
    height: 42px;
    padding: 3px 8px;
    border-radius: 8px;
    background: #fff;
}
@media (max-width: 576px) {
    .footer-bottom-row { justify-content: center; text-align: center; }
    .footer-bottom-row img { height: auto; width: min(100%, 340px); }
}

/* Shared listing toolbar + search box (courses, kits, trainers) */
.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: var(--space-xl);
}
.list-toolbar--end { justify-content: flex-end; }
.list-toolbar-pills { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 340px; min-width: 0; }
.list-search {
    display: flex;
    align-items: center;
    flex: 0 1 320px;
    min-width: min(100%, 240px);
    padding: 4px;
    border: 1px solid rgba(47, 57, 169, .16);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--sh-1);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.list-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(21, 216, 179, .16); }
.list-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 9px 12px;
    font-size: .95rem;
    color: var(--ink);
}
.list-search button {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    transition: transform .2s var(--ease-out);
}
.list-search button:hover { transform: scale(1.05); }
@media (max-width: 576px) { .list-search { flex: 1 1 100%; } }

/* Kits page */
.kits-tracks-title { font-size: 1.2rem; color: var(--brand); margin-bottom: 14px; }
.kits-tracks-title i { color: var(--teal-2); margin-inline-end: 6px; }
.kit-track-chip {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    color: var(--brand);
    background: rgba(47, 57, 169, .07);
}
.kits-how { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 72px); }

/* "How we work for you" */
.accred-how-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.25rem;
    color: var(--brand);
    margin: var(--space-lg) 0 var(--space-md);
    scroll-margin-top: 120px;
}
.accred-how-title i { color: var(--teal-2); }
.how-intro { max-width: 70ch; color: #4a5374; line-height: 1.9; }
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.how-card {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(47, 57, 169, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--sh-1);
    transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.how-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.how-card-num {
    position: absolute;
    top: 14px;
    inset-inline-end: 18px;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(47, 57, 169, .1);
}
.how-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #49A4BB);
}
.how-card h4 { font-size: 1.05rem; color: var(--brand); margin-bottom: 8px; }
.how-card p { font-size: .94rem; color: #4a5374; line-height: 1.8; margin: 0; }
.how-sources {
    padding: 14px 18px;
    border-radius: 14px;
    background: #f4f6fd;
    color: #3d4673;
    font-size: .95rem;
}
.how-sources i { color: var(--teal-2); margin-inline-end: 6px; }

/* Accreditation period + pending notes */
.trainer-accred-dates {
    display: block;
    margin: 6px 0;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    color: #0a6b58;
    background: rgba(21, 216, 179, .12);
}
.trainer-accred-dates.is-expired { color: #b42318; background: rgba(217, 45, 32, .09); }
.course-pending-note {
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff8e6;
    color: #8a6100;
    font-weight: 600;
}
.course-pending-note i { margin-inline-end: 6px; }

/* Six cards read better as two rows of three */
@media (min-width: 992px) {
    .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Accreditation criteria cards */
.accred-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 16px;
}
.accred-group {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 20px 22px;
    min-width: 0;
}
.accred-group.is-wide { grid-column: 1 / -1; }
.accred-group h4 {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.05rem;
    color: var(--brand);
    margin: 0 0 12px;
}
.accred-group h4 i { color: var(--teal-2); }
.accred-group ul {
    list-style: disc;
    margin: 0;
    padding-inline-start: 1.15rem;
    color: #4a5374;
    font-size: .95rem;
    line-height: 1.85;
}
.accred-group li { margin-bottom: 4px; }
.accred-group li::marker { color: var(--teal-2); }
.accred-group.is-wide ul { columns: 2; column-gap: 36px; }
.accred-group.is-wide ul:has(> li:only-child) { columns: 1; }
.accred-group.is-wide li { break-inside: avoid; }
.accred-form-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 10px;
    font-weight: 600;
    color: var(--brand);
}
@media (max-width: 768px) {
    .accred-group.is-wide ul { columns: 1; }
}

/* Kit accreditation request form */
.kit-request-form .kit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.kit-form-notes {
    list-style: disc;
    margin: 0 0 20px;
    padding: 14px 16px;
    padding-inline-start: 34px;
    background: #fffbea;
    border: 1px solid #f1e2a8;
    border-radius: 10px;
    color: #7a5f12;
    font-size: .92rem;
    line-height: 1.8;
}
.kit-form-heading {
    margin: 22px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6ebf2;
    font-size: 1rem;
    color: var(--brand);
}
.kit-request-form fieldset {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    min-width: 0;
}
.kit-request-form legend {
    padding: 0;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: .95rem;
}
.kit-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 8px 16px;
}
.kit-check-grid label,
.kit-radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}
.kit-check-grid input,
.kit-radio-row input { width: 18px; height: 18px; flex: none; }
.kit-radio-row { display: flex; gap: 20px; }
.kit-axes { display: grid; gap: 8px; }
.kit-axis-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 110px;
    gap: 8px;
    align-items: center;
}
.kit-axis-num { text-align: center; color: #6b7392; font-weight: 600; }
.kit-axes-head { font-size: .86rem; color: #6b7392; }
@media (max-width: 576px) {
    .kit-request-form .kit-form-grid { grid-template-columns: minmax(0, 1fr); }
    .kit-axis-row { grid-template-columns: 22px minmax(0, 1fr) 76px; }
}

/* Ready-made kits: what each kit includes */
.kits-contents { padding-block: clamp(24px, 4vw, 48px) 0; scroll-margin-top: 120px; }
.kits-contents-head { text-align: center; margin-bottom: 22px; }
.kits-contents-head h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--brand); margin-bottom: 6px; }
.kits-contents-head p { color: #4a5374; margin: 0; }
.kits-contents-label { font-weight: 700; color: var(--brand); margin: 0 0 12px; }
.kits-contents-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 22px;
    padding: 22px 24px;
    background: #f4f8fd;
    border: 1px solid #e0e9f4;
    border-radius: 16px;
}
.kits-contents-cta h4 { font-size: 1.1rem; color: var(--brand); margin: 0 0 4px; }
.kits-contents-cta p { margin: 0; color: #4a5374; line-height: 1.8; max-width: 70ch; }

/* Accreditation pages: keep sections close together */
section.accred-section {
    padding-block: 0;
    margin-bottom: clamp(28px, 4vw, 40px);
}
section.accred-section:last-of-type { margin-bottom: 0; }
section.accred-section .form-container { margin-bottom: clamp(32px, 5vw, 48px) !important; }
.accred-section .how-grid { margin-bottom: 0; }
.accred-section .trainer-benefits-grid { margin-bottom: 0; }
.kits-contents { padding-top: clamp(24px, 3vw, 40px); }
.kits-how { padding-top: clamp(28px, 3vw, 40px); }

/* Keep page content off the footer. This margin collapses with the last element's
   bottom margin, so it sets a minimum gap and pages with a larger margin stay as they are. */
.main-content::after {
    content: "";
    display: block;
    margin-top: clamp(32px, 5vw, 48px);
}
/* These end in padding, which would add to the gap above. */
.main-content .container > .empty-state:last-child,
.main-content > .container > section:not([class]):last-child,
.main-content > .container > .kits-how:last-child { padding-bottom: 0; }
.main-content .container > .empty-state:only-child { padding-bottom: 0 !important; }
.main-content > .container > section:not([class]):has(~ .acc-lightbox) { padding-bottom: 0; }
.blog-listing-grid { padding-bottom: 0 !important; }
