/* ============================================================
   ICFSS — INTERNATIONAL COLLEGE OF FITNESS & SPORT SCIENCE
   Premium 3D Website — Global Design System
   Colors: White / Bright Blue #1F4FA3 / Gold #F5B400 / Red #E21C0D
   ============================================================ */

:root {
    --navy:        #1F4FA3;
    --navy-deep:   #16408C;
    --navy-soft:   #2E66C7;
    --yellow:      #F5B400;
    --yellow-soft: #F5B400;
    --red:         #E21C0D;
    --red-dark:    #B30F05;
    --white:       #FFFFFF;
    --ink:         #1F4FA3;
    --muted:       #5F74A0;
    --line:        rgba(31, 79, 163, 0.12);

    --grad-dark:   linear-gradient(135deg, #2E66C7 0%, #1F4FA3 100%);
    --grad-hero:   radial-gradient(1200px 700px at 75% 20%, rgba(31,79,163,.85) 0%, rgba(22,64,140,.96) 60%), linear-gradient(160deg, #1F4FA3, #16408C);
    --grad-red:    linear-gradient(120deg, #E21C0D 0%, #8F1008 100%);
    --grad-yellow: linear-gradient(120deg, #F5B400 0%, #F5B400 100%);

    --glass:       rgba(255, 255, 255, 0.10);
    --glass-strong:rgba(255, 255, 255, 0.16);
    --glass-border:rgba(255, 255, 255, 0.22);

    --shadow-sm:   0 4px 14px rgba(31, 79, 163, 0.10);
    --shadow-md:   0 10px 30px rgba(31, 79, 163, 0.14);
    --shadow-lg:   0 24px 60px rgba(31, 79, 163, 0.22);
    --shadow-yellow:0 12px 30px rgba(245, 180, 0, 0.35);
    --shadow-red:  0 12px 30px rgba(226, 28, 13, 0.35);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --font-head: 'Montserrat', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.15; font-weight: 800; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

.container { width: min(1200px, 92%); margin-inline: auto; }

section { position: relative; }

::selection { background: var(--yellow); color: var(--navy); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #EAF0FA; }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-soft); }

/* ---------- Preloader ---------- */
.loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--grad-hero);
    display: grid; place-items: center;
    transition: opacity .7s ease, visibility .7s ease;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; }

.loader-logo {
    width: 84px; height: 84px;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
    margin: 0 auto 20px;
    animation: loader-logo-pulse 1.6s ease-in-out infinite;
}
@keyframes loader-logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.loader-brand {
    color: #fff; font-family: var(--font-head);
    font-weight: 800; font-size: 1.35rem; letter-spacing: .12em;
    margin-bottom: 4px;
}
.loader-brand-sub {
    color: var(--yellow); font-family: var(--font-head);
    font-weight: 600; font-size: .85rem; letter-spacing: .22em;
    text-transform: uppercase; margin-bottom: 20px;
}
.loader-bar {
    width: 180px; height: 4px; border-radius: 4px;
    background: rgba(255,255,255,.15); overflow: hidden; margin-inline: auto;
}
.loader-bar span {
    display: block; height: 100%; width: 40%;
    background: var(--grad-yellow); border-radius: 4px;
    animation: load-slide 1.1s ease-in-out infinite;
}
@keyframes load-slide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 4px; width: 0%;
    background: var(--grad-yellow); z-index: 1200;
    box-shadow: 0 0 12px rgba(245, 180, 0,.7);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-h);
    display: flex; align-items: center;
    transition: background .35s ease, box-shadow .35s ease, height .35s ease;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(31,79,163, 0.98);
    box-shadow: 0 8px 30px rgba(31,79,163, .35);
    height: 64px;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-img {
    width: 46px; height: 46px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 5px;
    box-shadow: var(--shadow-sm);
}
.footer-logo .logo-img { width: 54px; height: 54px; border-radius: 14px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; color: #fff; }
.logo-text strong { font-family: var(--font-head); font-size: .98rem; font-weight: 800; letter-spacing: .02em; }
.logo-text small { font-size: .68rem; color: var(--yellow); font-weight: 600; letter-spacing: .05em; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu > li > a {
    display: block; padding: 10px 16px;
    color: rgba(255,255,255,.85); font-weight: 600; font-size: .92rem;
    border-radius: 10px; position: relative;
    transition: color .25s ease, background .25s ease;
}
.nav-menu > li > a::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 5px;
    height: 2px; border-radius: 2px; background: var(--yellow);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease-out);
}
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--yellow); }
.nav-menu > li > a:hover::after, .nav-menu > li > a.active::after { transform: scaleX(1); }
.nav-menu .nav-cta { margin-left: 10px; }
.nav-menu .nav-cta a::after { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: var(--font-head); font-weight: 700; font-size: .92rem; letter-spacing: .03em;
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s ease, color .3s ease;
    position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-yellow { background: var(--grad-yellow); color: var(--navy); box-shadow: var(--shadow-yellow); }
.btn-yellow:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(245, 180, 0, .45); }

.btn-red { background: var(--grad-red); color: #fff; box-shadow: var(--shadow-red); }
.btn-red:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(226, 28, 13, .5); }

.btn-ghost { border: 2px solid rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-3px); }

.btn-sm { padding: 10px 22px; font-size: .85rem; }

/* Shine sweep */
.btn-shine::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: -80%;
    width: 50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg); transition: left .6s var(--ease-out);
}
.btn-shine:hover::before { left: 130%; }

/* ---------- Page transitions ---------- */
body.page-leave #main { animation: page-out .45s ease forwards; }
body.page-enter #main { animation: page-in .65s var(--ease-out) both; }
@keyframes page-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-out { from { opacity: 1; } to { opacity: 0; } }

/* ---------- Reveal-on-scroll (only hidden when JS is active) ---------- */
html.js [data-reveal] {
    opacity: 0; transform: translateY(38px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--d, 0s);
}
html.js [data-reveal].revealed { opacity: 1; transform: none; }
html.js [data-reveal="left"]  { transform: translateX(-46px); }
html.js [data-reveal="right"] { transform: translateX(46px); }
html.js [data-reveal="zoom"]  { transform: scale(.9); }
html.js [data-reveal="left"].revealed, html.js [data-reveal="right"].revealed, html.js [data-reveal="zoom"].revealed { transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Section shells ---------- */
.section { padding: 110px 0; }
.section-dark {
    background: var(--grad-dark); color: #fff;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    color: var(--red); margin-bottom: 14px;
}
.section-head .eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--yellow); }
.section-head .eyebrow::after { content: ''; width: 28px; height: 2px; background: var(--yellow); }
.section-dark .section-head h2 { color: #fff; }
.section-head p { color: var(--muted); margin-top: 12px; }
.section-dark .section-head p { color: rgba(255,255,255,.65); }

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    background: var(--grad-hero);
    color: #fff;
    display: flex; align-items: center;
    padding-top: calc(var(--nav-h) + 40px); padding-bottom: 70px;
    overflow: hidden;
    position: relative;
}

.hero-video-layer {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden;
}
.hero-video-layer::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(12, 25, 60, .55) 0%, rgba(12, 25, 60, .45) 45%, var(--navy-deep) 100%),
        var(--grad-hero);
    opacity: .82;
}
.hero-video {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    padding: 9px 18px; border-radius: 50px;
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--yellow); margin-bottom: 26px;
    animation: fadeUp 1s .15s var(--ease-out) both;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(245, 180, 0,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(245, 180, 0,0); } }

.hero h1 { color: #fff; font-weight: 900; animation: fadeUp 1s .3s var(--ease-out) both; }
.hero h1 .hl-yellow { color: var(--yellow); }
.hero h1 .hl-red { color: #FF0000; }
.hero-sub { color: rgba(255,255,255,.75); font-size: 1.15rem; margin: 22px 0 34px; max-width: 540px; animation: fadeUp 1s .45s var(--ease-out) both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; animation: fadeUp 1s .6s var(--ease-out) both; }

.hero-stats { display: flex; gap: 34px; margin-top: 52px; flex-wrap: wrap; animation: fadeUp 1s .75s var(--ease-out) both; }
.hero-stat h3 { color: var(--yellow); font-size: 1.7rem; font-weight: 900; }
.hero-stat p { color: rgba(255,255,255,.6); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.hero-3d-wrap { position: relative; display: flex; justify-content: center; animation: fadeUp 1s .5s var(--ease-out) both; }
.hero-3d-wrap canvas { width: 100% !important; height: auto !important; max-width: 560px; }
.hero-glow {
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    width: 480px; height: 480px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 180, 0,.16) 0%, rgba(226, 28, 13,.08) 45%, transparent 70%);
    filter: blur(30px); pointer-events: none;
}

.hero-scroll-hint {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    z-index: 3; color: rgba(255,255,255,.55); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    animation: bounce-y 2.2s infinite;
}
.hero-scroll-hint::after {
    content: ''; width: 1.5px; height: 34px; background: linear-gradient(var(--yellow), transparent);
}
@keyframes bounce-y { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------- Trust badges ---------- */
.trust { background: #fff; padding: 44px 0; border-bottom: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 60px; }
.trust-label { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.trust-item {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: .95rem;
    opacity: .75; transition: opacity .3s ease, transform .3s ease;
}
.trust-item:hover { opacity: 1; transform: translateY(-3px); }
.trust-item .t-badge {
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(31,79,163,.06); display: grid; place-items: center;
}
.trust-item .t-badge svg { width: 18px; height: 18px; fill: var(--navy); }

/* ---------- Cards (glass) ---------- */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Course card 3D tilt */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform .5s var(--ease-out), box-shadow .5s ease;
    will-change: transform;
}
.tilt-card:hover { box-shadow: var(--shadow-lg); }
.tilt-card .tilt-inner { transform: translateZ(34px); transform-style: preserve-3d; }

/* ---------- Benefits checklist (home intro) ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
.benefit-item {
    display: flex; align-items: flex-start; gap: 11px;
    font-size: .92rem; font-weight: 600; color: var(--navy);
}
.benefit-check {
    flex: none; width: 22px; height: 22px; border-radius: 50%;
    background: var(--yellow); color: var(--navy);
    display: grid; place-items: center;
    font-size: .7rem; font-weight: 900;
    box-shadow: 0 4px 10px rgba(245, 180, 0, .35);
    margin-top: 2px;
}

/* ---------- Mother company badge ---------- */
.partner-logo { display: inline-flex; flex-direction: row; align-items: center; gap: 18px; padding: 18px 26px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.partner-logo img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 12px; padding: 10px; }
.partner-logo strong { display: block; font-family: var(--font-head); color: #fff !important; font-size: 1.05rem; margin-bottom: 5px; }
.partner-logo small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65) !important; font-weight: 700; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.partner-slot {
    aspect-ratio: 5 / 4; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-lg);
    background: #fff; padding: 8px;
}
.partner-slot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Carousel ---------- */
.carousel { overflow: hidden; position: relative; }
.carousel-track {
    display: flex; transition: transform .7s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}
.carousel-slide {
    flex: 0 0 100%; min-width: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 0 12px; box-sizing: border-box;
}
.carousel-slide img {
    width: 100%; max-width: 720px; height: auto; aspect-ratio: 16 / 10;
    object-fit: cover; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.carousel-slide .slide-caption {
    font-family: var(--font-head); color: var(--navy); font-size: .95rem;
    text-align: center; letter-spacing: .04em;
}
@media (max-width: 768px) {
    .carousel-slide img { max-width: 100%; aspect-ratio: 4 / 3; }
}

/* ---------- Campus single photo ---------- */
.campus-photo { margin: 0 auto; }
.campus-photo img {
    display: block; width: 100%; max-width: 720px; height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    margin: 0 auto;
}
@media (max-width: 768px) {
    .campus-photo img { max-width: 100%; }
}

/* ---------- Practical training grid ---------- */
.training-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    margin-top: 34px;
}
.training-grid img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.training-grid img:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
@media (max-width: 768px) {
    .training-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
}

/* ---------- Course gallery ---------- */
.course-gallery { max-width: 860px; margin: 0 auto; }
.gallery-preview { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.gallery-preview img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.gallery-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(31,79,163,0) 0%, rgba(22,64,140,.78) 100%);
    transition: background .4s var(--ease-out);
}
.gallery-preview:hover .gallery-overlay { background: rgba(22,64,140,.55); }
.gallery-open {
    font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: #fff;
    background: var(--yellow); border: none; border-radius: 999px;
    padding: 13px 28px; cursor: pointer;
    box-shadow: 0 8px 20px rgba(245,180,0,.35);
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.gallery-open:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(245,180,0,.5); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: none; flex-direction: column;
    background: rgba(10,20,40,.95);
    padding: 20px;
    overflow-y: auto;
}
.lightbox.open { display: flex; }
.lightbox-head {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1100px; width: 100%; margin: 0 auto 18px;
    color: #fff; font-family: var(--font-head); font-size: 1.1rem;
}
.lightbox-close {
    background: none; border: 2px solid rgba(255,255,255,.4); color: #fff;
    width: 42px; height: 42px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
    cursor: pointer; transition: all .3s var(--ease-out);
}
.lightbox-close:hover { background: var(--red); border-color: var(--red); }
.lightbox-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px; max-width: 1100px; width: 100%; margin: 0 auto;
}
.lightbox-grid img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 10px; cursor: zoom-in;
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.lightbox-grid img:hover { transform: scale(1.03); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
@media (max-width: 768px) {
    .lightbox-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ---------- Photo placeholders ---------- */
.photo-placeholder {
    border: 2px dashed rgba(31,79,163, .22);
    border-radius: var(--radius-lg);
    min-height: 280px;
    display: grid; place-items: center; text-align: center;
    padding: 34px; color: var(--muted);
    background: linear-gradient(160deg, #F4F8FF 0%, #EAF0FA 100%);
    transition: border-color .3s ease, transform .4s var(--ease-out), box-shadow .4s ease;
}
.photo-placeholder:hover { border-color: var(--yellow); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.photo-placeholder svg { width: 52px; height: 52px; fill: var(--navy); opacity: .55; margin-bottom: 14px; }
.photo-placeholder strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .95rem; margin-bottom: 5px; }
.photo-placeholder small { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.photo-placeholder.tall { min-height: 430px; }
.photo-placeholder img {
    width: 100%; height: 100%; display: block;
    aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
    border-radius: var(--radius-lg);
}
.photo-img {
    width: 100%; border-radius: var(--radius-lg);
    object-fit: cover; object-position: center; display: block;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(31,79,163,.15);
    box-shadow: var(--shadow-md);
}
.photo-img.tall { aspect-ratio: 3 / 2; min-height: 0; }
.photo-img.photo-full { aspect-ratio: 1492 / 1054; object-fit: cover; }

.photo-placeholder.dark {
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .05);
}
.photo-placeholder.dark svg { fill: var(--yellow); opacity: .8; }
.photo-placeholder.dark strong { color: #fff; }
.photo-placeholder.dark small { color: rgba(255, 255, 255, .6); }
.photo-placeholder.dark:hover { border-color: var(--yellow); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.photo-grid-2 { grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; }

/* ---------- International certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.cert-card {
    background: #fff; border: 1px solid rgba(31,79,163,.14);
    border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-card img { width: 100%; height: 100%; object-fit: contain; border-radius: calc(var(--radius-lg) - 6px); }

/* ---------- Accredited by ---------- */
.accredit-card {
    max-width: 900px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
    align-items: center;
    background: #fff; border: 1px solid rgba(31,79,163,.14);
    border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow-md);
}
.accredit-item { position: relative; }
.accredit-item .accredit-logo { display: block; }
.accredit-tag {
    position: absolute; top: 8px; left: 8px;
    background: var(--red); color: #fff;
    font-family: var(--font-head); font-weight: 700;
    font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px;
}
.accredit-link {
    display: block; text-align: center;
    margin-top: 10px;
    font-weight: 700; font-size: .92rem; letter-spacing: .02em;
    color: var(--red); text-decoration: none;
}
.accredit-link:hover { text-decoration: underline; }
.accredit-logo {
    width: 100%; height: 300px; object-fit: contain; flex-shrink: 0;
}
.accredit-cert {
    display: block; width: 100%; height: 260px;
    object-fit: contain; margin-top: 14px; flex-shrink: 0;
}
.accredit-text strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; }
.accredit-text span { color: var(--muted); font-weight: 600; letter-spacing: .04em; }

/* ---------- Founder / leadership ---------- */
.leadership-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 44px; max-width: 1200px; margin: 0 auto;
}
.leader-card { text-align: center; }
.leader-card h3 {
    font-family: var(--font-head); font-size: 1.25rem; line-height: 1.3;
    color: var(--navy); margin: 18px 0 8px;
}
.founder-photo {
    max-width: 300px; margin: 0 auto;
}
.founder-photo img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    border-radius: var(--radius-lg);
    border: 4px solid #fff; box-shadow: var(--shadow-md);
}
.founder-text { min-width: 0; }
.founder-text h3 {
    font-family: var(--font-head); font-size: 1.55rem; line-height: 1.25;
    color: var(--navy); margin-bottom: 8px;
}
.founder-role {
    display: inline-block; color: var(--red); font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; font-size: .78rem;
    max-width: 38ch;
}
.leader-creds {
    display: flex; flex-direction: column; gap: 4px; margin-top: 10px;
}
.leader-creds span {
    color: var(--red); font-weight: 600; font-size: .85rem; line-height: 1.4;
}
.leader-foundry {
    grid-column: 1 / -1; text-align: center;
    display: block;
    padding: 34px; background: #fff;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.leader-foundry .founder-photo { margin: 0 auto 6px; max-width: 560px; }
.leader-foundry .founder-photo img {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top;
}
.leader-foundry .founder-text h3 { font-size: 1.4rem; margin-top: 0; }
.leader-flip {
    text-align: left;
    display: grid; grid-template-columns: 1fr minmax(230px, 300px);
    gap: 36px; align-items: center;
}
.leader-flip .founder-photo { margin: 0; max-width: none; order: 2; }
.leader-flip .founder-text { order: 1; }
.leader-flip .founder-photo img { aspect-ratio: 4 / 5; }
.leader-bullets {
    list-style: none; margin: 18px auto 0; padding: 0;
    max-width: 880px; text-align: left;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px;
}
.leader-bullets li {
    position: relative; padding-left: 20px;
    color: var(--muted); font-size: .88rem; line-height: 1.5;
}
.leader-bullets li::before {
    content: ''; position: absolute; left: 0; top: .55em;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--grad-dark);
}
.leader-contact {
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid rgba(31,79,163,.15);
    font-size: .85rem;
}
.leader-contact a {
    color: var(--navy-soft); font-weight: 600; text-decoration: none;
    transition: color .22s;
}
.leader-contact a:hover { color: var(--red); }
@media (max-width: 900px) {
    .leadership-grid { grid-template-columns: 1fr; }
    .leader-foundry { padding: 26px 20px; }
    .leader-flip { grid-template-columns: 1fr; text-align: center; }
    .leader-flip .founder-photo { order: 0; margin: 0 auto 6px; max-width: 320px; }
    .leader-flip .founder-text { order: 0; }
    .leader-bullets { grid-template-columns: 1fr; text-align: left; }
    .leader-contact { justify-content: center; }
}
@media (max-width: 640px) {
    .leader-foundry .founder-photo { max-width: 100%; }
    .founder-photo { max-width: 260px; margin: 0 auto; }
    .split { flex-direction: column; }
}

/* ---------- Featured courses ---------- */
.course-card {
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .5s var(--ease-out), box-shadow .5s ease;
    display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.course-card .cc-media { position: relative; height: 210px; overflow: hidden; }
.course-card .cc-media img, .course-card .cc-media .cc-fallback {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s var(--ease-out);
}
.course-card:hover .cc-media img { transform: scale(1.08); }
.cc-media .cc-tag {
    position: absolute; top: 16px; left: 16px;
    background: var(--yellow); color: var(--navy);
    font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 50px;
}
.cc-media .cc-level {
    position: absolute; top: 16px; right: 16px;
    background: rgba(31,79,163,.8); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-size: .7rem; font-weight: 700; padding: 6px 12px; border-radius: 50px;
}
.cc-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cc-body h3 { font-size: 1.2rem; }
.cc-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.cc-meta { display: flex; gap: 18px; font-size: .82rem; color: var(--navy); font-weight: 600; }
.cc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cc-meta svg { width: 15px; height: 15px; fill: var(--red); }
.cc-body .btn { align-self: flex-start; }

/* Fallback gradient art for media (no images required) */
.cc-fallback {
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 60%, var(--navy-soft) 100%);
    position: relative;
}
.cc-fallback::after {
    content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 180, 0,.25), transparent 65%);
    bottom: -70px; right: -60px;
}
.cc-fallback svg { width: 64px; height: 64px; fill: var(--yellow); opacity: .95; }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-item {
    padding: 34px 26px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .5s var(--ease-out), box-shadow .5s ease, border-color .3s;
}
.why-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(245, 180, 0,.7); }
.why-icon {
    width: 62px; height: 62px; border-radius: 18px;
    background: var(--grad-dark); color: var(--yellow);
    display: grid; place-items: center; margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    transition: transform .45s var(--ease-out);
}
.why-item:hover .why-icon { transform: rotate(-8deg) scale(1.1); }
.why-icon svg { width: 28px; height: 28px; fill: currentColor; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: .88rem; }
.why-item.why-photo { padding: 0; overflow: hidden; }
.why-item.why-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; display: block; }
.why-item.why-photo.why-photo-wide img { aspect-ratio: auto; object-fit: contain; background: #fff; }

/* ---------- Testimonials slider ---------- */
.testi-section { background: var(--grad-dark); color: #fff; overflow: hidden; }
.testi-section .section-head h2 { color: #fff; }
.testi-section .section-head p { color: rgba(255, 255, 255, .65); }
.testi-viewport { overflow: hidden; padding: 20px 6px 30px; }
.testi-track { display: flex; gap: 28px; transition: transform .7s var(--ease-out); }
.testi-slide { flex: 0 0 calc((100% - 56px) / 3); min-width: 300px; }
.testi-slide.testi-single { flex-basis: 100%; min-width: 0; }
.testi-slide.testi-single .testi-card { text-align: center; align-items: center; }
.testi-slide.testi-single .testi-person { justify-content: center; text-align: left; }
.testi-slide.testi-single .testi-person div { text-align: center; }
.testi-card {
    background: var(--glass); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-radius: var(--radius-lg); padding: 32px 28px;
    height: 100%; display: flex; flex-direction: column; gap: 18px;
    transition: transform .4s var(--ease-out), border-color .3s;
}
.testi-card:hover { transform: translateY(-6px); border-color: rgba(245, 180, 0,.55); }
.testi-stars { color: var(--yellow); font-size: 1.05rem; letter-spacing: 3px; }
.testi-card blockquote { font-size: .96rem; color: rgba(255,255,255,.85); font-style: italic; flex: 1; }
.testi-person { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
    width: 50px; height: 50px; border-radius: 50%; flex: none;
    background: linear-gradient(135deg, var(--yellow), var(--red));
    color: var(--navy); display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
}
.testi-person strong { display: block; font-family: var(--font-head); font-size: .95rem; color: #fff; }
.testi-person small { color: var(--yellow); font-size: .78rem; letter-spacing: .04em; }
.testi-img {
    width: 96px; height: 96px; border-radius: 50%; flex: none;
    object-fit: cover; border: 3px solid var(--yellow);
}

.testi-controls { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.testi-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.25); transition: all .3s ease;
}
.testi-dot.active { background: var(--yellow); transform: scale(1.35); box-shadow: 0 0 12px rgba(245, 180, 0,.8); }

/* ---------- CTA banner ---------- */
.cta-banner {
    background: var(--grad-red);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    box-shadow: var(--shadow-red);
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 180, 0,.28), transparent 65%);
    top: -160px; right: -100px;
}
.cta-banner h2 { color: #fff; font-weight: 900; }
.cta-banner p { color: rgba(255,255,255,.85); margin-top: 10px; max-width: 560px; }
.cta-banner .btn { position: relative; z-index: 2; }

/* ---------- About ---------- */
.page-hero {
    padding: calc(var(--nav-h) + 90px) 0 90px;
    background: var(--grad-hero); color: #fff; text-align: center; overflow: hidden;
}
.page-hero h1 { color: #fff; animation: fadeUp .9s .15s var(--ease-out) both; }
.page-hero .crumbs { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: 16px; animation: fadeUp .9s .3s var(--ease-out) both; }
.page-hero .crumbs a { color: var(--yellow); }
.page-hero .eyebrow { color: var(--yellow); letter-spacing: .25em; text-transform: uppercase; font-size: .78rem; font-weight: 700; margin-bottom: 14px; display: block; }
.hero-logo {
    width: 300px; height: 200px;
    object-fit: contain;
    border-radius: 28px;
    background: #fff;
    padding: 22px 30px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto 28px;
    animation: fadeUp .9s .05s var(--ease-out) both;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-3d { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }

.panel-card {
    background: var(--navy); color: #fff;
    border-radius: var(--radius-lg); padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.panel-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 14px; }
.panel-card p { color: rgba(255,255,255,.72); font-size: .95rem; }
.panel-card .p-icon {
    width: 58px; height: 58px; border-radius: 16px; background: var(--yellow); color: var(--navy);
    display: grid; place-items: center; margin-bottom: 22px;
}
.panel-card .p-icon svg { width: 26px; height: 26px; fill: currentColor; }
.panel-card::after {
    content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 180, 0,.18), transparent 65%);
    bottom: -120px; right: -80px;
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card {
    text-align: center; padding: 34px 22px 28px;
    background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .5s var(--ease-out), box-shadow .5s ease;
}
.team-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-lg); }
.team-avatar {
    width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 20px;
    background: var(--grad-dark); color: var(--yellow);
    display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 900; font-size: 1.9rem;
    box-shadow: var(--shadow-md);
    position: relative;
}
.team-avatar::after {
    content: ''; position: absolute; inset: -8px; border-radius: 50%;
    border: 2px dashed rgba(245, 180, 0,.6);
    animation: spin-slow 14s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.team-card h3 { font-size: 1.05rem; }
.team-card .role { color: var(--red); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 4px 0 10px; }
.team-card p { color: var(--muted); font-size: .85rem; }

/* Facilities */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.facility-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; height: 340px; box-shadow: var(--shadow-md); }
.facility-card .cc-fallback { position: absolute; inset: 0; height: 100%; }
.facility-card .fac-cover { position: absolute; inset: 0; display: grid; place-items: center; }
.facility-card .fac-cover svg { width: 70px; height: 70px; fill: var(--yellow); filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
.facility-card .fac-info {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 40%, rgba(31,79,163,.9));
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 28px; color: #fff;
    transition: background .4s ease;
}
.facility-card:hover .fac-info { background: linear-gradient(transparent 15%, rgba(226, 28, 13,.92)); }
.facility-card h3 { color: #fff; font-size: 1.15rem; }
.facility-card p { color: rgba(255,255,255,.8); font-size: .85rem; margin-top: 6px; }

/* Achievements stats */
.stats-band { background: var(--grad-yellow); border-radius: var(--radius-xl); padding: 52px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; box-shadow: var(--shadow-yellow); }
.stat-box { text-align: center; }
.stat-box h3 { color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; }
.stat-box .stat-plus { color: var(--red); }
.stat-box p { color: var(--navy); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

/* ---------- Programme cards (courses page) ---------- */
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.programme-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    padding: 32px; position: relative; overflow: hidden;
    transition: transform .5s var(--ease-out), box-shadow .5s ease;
}
.programme-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.programme-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--yellow) 0%, var(--red) 100%);
}
.programme-card .p-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.programme-card .p-ico {
    width: 54px; height: 54px; flex: none; border-radius: 15px;
    background: var(--grad-dark); color: var(--yellow);
    display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.programme-card .p-ico svg { width: 26px; height: 26px; fill: currentColor; }
.programme-card h3 { font-size: 1.08rem; flex: 1; line-height: 1.3; }
.programme-card .p-count {
    background: var(--yellow); color: var(--navy);
    font-family: var(--font-head); font-weight: 800; font-size: .75rem;
    padding: 4px 12px; border-radius: 50px; flex: none;
}
.programme-card ul { display: grid; gap: 12px; }
.programme-card ul li {
    position: relative; padding-left: 28px;
    font-size: .9rem; font-weight: 600; color: var(--navy); line-height: 1.45;
}
.programme-card ul li::before {
    content: '\2713'; position: absolute; left: 0; top: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--yellow); color: var(--navy);
    font-size: .65rem; font-weight: 900; display: grid; place-items: center;
}
.programme-card.ws-card { margin-top: 28px; }

.ws-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.ws-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 20px; border-radius: 50px;
    border: 2px solid var(--line); background: #FBFCFE;
    font-weight: 700; font-size: .88rem; color: var(--navy);
    text-decoration: none; cursor: pointer;
    transition: all .3s ease;
}
.ws-chip:hover { border-color: var(--red); background: var(--red); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ws-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.ws-chip:hover .dot { background: #fff; }
.ws-chip .ws-arrow { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.ws-chip:hover .ws-arrow { color: #fff; }

/* ---------- Image viewer (tap to zoom) ---------- */
.img-viewer {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
    background: rgba(10,20,40,.95);
    padding: 24px; cursor: zoom-out;
}
.img-viewer.open { display: flex; }
.img-viewer img {
    max-width: 92vw; max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0,0,0,.6);
    animation: fadeUp .35s var(--ease-out);
    cursor: default;
}
.img-viewer-close {
    position: absolute; top: 18px; right: 18px;
    background: none; border: 2px solid rgba(255,255,255,.4); color: #fff;
    width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; line-height: 1;
    cursor: pointer; transition: all .3s var(--ease-out);
}
.img-viewer-close:hover { background: var(--red); border-color: var(--red); }

/* ---------- Courses page ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 46px; }
.cat-tab {
    padding: 12px 26px; border-radius: 50px;
    border: 2px solid var(--line); background: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--navy);
    transition: all .3s ease;
}
.cat-tab:hover { border-color: var(--yellow); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cat-tab.active { background: var(--grad-dark); color: var(--yellow); border-color: var(--navy); box-shadow: var(--shadow-md); }

.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.poster-card {
    position: relative; display: block; width: 100%;
    border-radius: var(--radius-lg);
}
.poster-card img {
    width: 100%; height: auto; display: block;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.poster-card img:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.poster-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 18px;
    background: linear-gradient(180deg, transparent, rgba(22,64,140,.94));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    color: #fff; opacity: 0; transform: translateY(10px);
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
    pointer-events: none;
}
.poster-overlay strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.3; }
.poster-overlay small { display: block; margin-top: 4px; color: var(--yellow); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.poster-card:hover .poster-overlay, .poster-card:focus-visible .poster-overlay { opacity: 1; transform: none; }
@media (hover: none) {
    .poster-overlay { opacity: 1; transform: none; }
}
.course-card.hidden { display: none; }

.course-card .btn-details { align-self: flex-start; }

/* Modal */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(31,79,163, .72);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    display: grid; place-items: center; padding: 24px;
    opacity: 0; visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
    width: min(860px, 100%); max-height: 88vh; overflow-y: auto;
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(46px) scale(.96);
    transition: transform .45s var(--ease-out);
}
.modal-backdrop.open .modal { transform: none; }
.modal-top { background: var(--grad-dark); color: #fff; padding: 34px 38px; position: relative; }
.modal-top h3 { color: #fff; font-size: 1.5rem; padding-right: 40px; }
.modal-top .modal-tag { display: inline-block; background: var(--yellow); color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 50px; margin-bottom: 12px; }
.modal-close {
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.12); color: #fff;
    font-size: 1.2rem; line-height: 1;
    transition: background .3s ease, transform .3s ease;
}
.modal-close:hover { background: var(--red); transform: rotate(90deg); }
.modal-body { padding: 34px 38px; }
.modal-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.modal-fact { background: rgba(31,79,163,.05); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.modal-fact strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.modal-fact small { color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.modal-body h4 { margin: 22px 0 10px; font-size: 1rem; }
.modal-body p, .modal-body li { color: var(--muted); font-size: .93rem; }
.modal-body ul { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.modal-body ul li { position: relative; padding-left: 24px; }
.modal-body ul li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--yellow);
    box-shadow: 0 0 0 3px rgba(245, 180, 0,.25);
}
.modal-foot { padding: 0 38px 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.modal-price { font-family: var(--font-head); font-weight: 900; color: var(--red); font-size: 1.5rem; margin-right: auto; align-self: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 20px; grid-column: 1; grid-row: 1; }
.register-card { grid-column: 2; grid-row: 1; }
.contact-item {
    display: flex; gap: 18px; align-items: flex-start;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-md); padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease-out), box-shadow .4s ease;
}
.contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-ico {
    width: 52px; height: 52px; flex: none; border-radius: 15px;
    background: var(--grad-dark); color: var(--yellow);
    display: grid; place-items: center;
}
.contact-ico svg { width: 24px; height: 24px; fill: currentColor; }
.contact-item h4 { margin-bottom: 4px; font-size: .95rem; }
.contact-item p, .contact-item a { color: var(--muted); font-size: .92rem; }
.contact-item a:hover { color: var(--red); }

.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 34px 0 0; grid-column: 1 / -1; grid-row: 2; }
.map-cell { display: flex; flex-direction: column; gap: 10px; }
.map-label {
    font-family: var(--font-head); font-weight: 800; font-size: .82rem;
    letter-spacing: .12em; color: var(--navy); text-transform: uppercase;
}
.map-box {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow-md);
    position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--grad-dark);
}
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-box--large { aspect-ratio: 4 / 3; height: auto; }
.map-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.map-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); display: block; }
.map-link {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 12px; padding: 14px 26px; width: 100%; box-sizing: border-box;
    font-size: .85rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; text-align: center;
    color: #fff; background: var(--red); border-radius: 8px;
    text-decoration: none; transition: background .3s ease, transform .3s var(--ease-out);
}
.map-link svg { width: 18px; height: 18px; fill: #fff; flex: none; }
.map-link:hover { background: var(--navy); transform: translateY(-2px); }
@media (max-width: 900px) {
    .map-box { aspect-ratio: 16 / 10; }
    .map-grid { grid-template-columns: 1fr; }
}
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.75); text-align: center; padding: 30px; }
.map-fallback svg { width: 52px; height: 52px; fill: var(--yellow); margin: 0 auto 16px; }

.socials.light a { background: rgba(31,79,163, .06); }
.socials.light a svg { fill: var(--navy); }
.socials.light a:hover { background: var(--red); }
.socials.light a:hover svg { fill: #fff; }

.campus-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.campus-chip {
    padding: 8px 18px; border-radius: 50px;
    background: rgba(31,79,163, .06); border: 1px solid var(--line);
    font-weight: 700; font-size: .82rem; color: var(--navy);
    transition: all .3s ease;
}
.campus-chip:hover { background: var(--grad-dark); color: var(--yellow); transform: translateY(-2px); }

.form-control.file-input {
    padding: 10px 14px; cursor: pointer;
}
.form-control.file-input::file-selector-button {
    margin-right: 14px; padding: 9px 18px;
    border: none; border-radius: 8px;
    background: var(--grad-dark); color: var(--yellow);
    font-family: var(--font-head); font-weight: 700; font-size: .78rem;
    cursor: pointer; transition: background .3s ease;
}
.form-control.file-input::file-selector-button:hover { background: var(--red); color: #fff; }

/* Registration form */
.register-card {
    background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 44px; position: relative; overflow: hidden;
}
.register-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--yellow) 0%, var(--red) 100%);
}
.register-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.register-card > p { color: var(--muted); margin-bottom: 30px; font-size: .93rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .84rem; color: var(--navy); margin-bottom: 8px; }
.form-group label .req { color: var(--red); }
.question-label { display: block; font-weight: 600; font-size: .84rem; color: var(--navy); margin-bottom: 10px; }
.radio-row { display: flex; gap: 12px; }
.radio-pill {
    position: relative; display: inline-block; flex: 1;
    max-width: 140px;
}
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
    display: block; width: 100%; text-align: center;
    padding: 12px 16px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #FBFCFE; color: var(--ink); font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: all .3s ease;
}
.radio-pill input:checked + span {
    background: var(--navy); border-color: var(--navy); color: #fff;
}
.radio-pill input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.radio-pill span:hover { border-color: var(--navy); }
.radio-pill input:checked + span:hover { border-color: var(--navy); }
.radio-pill input:checked + span { box-shadow: 0 0 0 4px rgba(31,79,163,.12); }
.form-control {
    width: 100%; padding: 14px 18px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-size: .95rem; color: var(--ink); background: #FBFCFE;
    transition: border-color .3s ease, box-shadow .3s ease, background .3s;
}
.form-control:focus {
    outline: none; border-color: var(--navy);
    box-shadow: 0 0 0 4px rgba(31,79,163,.08); background: #fff;
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231F4FA3' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }

.form-submit { width: 100%; margin-top: 6px; }
.form-submit.loading { opacity: .7; pointer-events: none; }
.form-submit.loading .btn-label { visibility: hidden; }
.form-submit .spinner {
    display: none; position: absolute; left: 50%; top: 50%;
    width: 20px; height: 20px; margin: -10px 0 0 -10px;
    border: 3px solid rgba(31,79,163,.25); border-top-color: var(--navy);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-submit.loading .spinner { display: block; }

.form-alert {
    display: none; border-radius: var(--radius-sm); padding: 15px 18px;
    font-size: .9rem; font-weight: 600; margin-bottom: 20px;
}
.form-alert.show { display: block; animation: fadeUp .5s var(--ease-out); }
.form-alert.success { background: #E8F8EF; color: #0B7A3E; border: 1px solid #B4E9CB; }
.form-alert.error { background: #FDECEC; color: var(--red-dark); border: 1px solid #F6C1BF; }

/* ---------- Featured video & newsletter (blog) ---------- */
.video-wrap { padding: 30px; }
.video-box {
    position: relative; border-radius: var(--radius-md);
    overflow: hidden; background: var(--navy-deep);
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, .12);
}
.video-embed {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: 0; display: block;
}
.video-fallback {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    text-align: center; padding: 24px;
    background:
        radial-gradient(420px 260px at 50% 30%, rgba(18, 48, 107, .7) 0%, transparent 70%),
        linear-gradient(160deg, #1F4FA3, #16408C);
}
.video-fallback strong { color: #fff; font-family: var(--font-head); font-size: .95rem; }
.video-fallback small { color: rgba(255, 255, 255, .55); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.video-play {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--grad-yellow); color: var(--navy);
    display: grid; place-items: center;
    box-shadow: var(--shadow-yellow);
    margin-bottom: 10px;
    transition: transform .35s var(--ease-out), box-shadow .35s ease;
    position: relative;
}
.video-play::after {
    content: ''; position: absolute; inset: -10px; border-radius: 50%;
    border: 2px dashed rgba(245, 180, 0, .55);
    animation: spin-slow 10s linear infinite;
}
.video-play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.video-play:hover { transform: scale(1.12); box-shadow: 0 20px 46px rgba(245, 180, 0, .55); }

.newsletter-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    padding: 64px 48px; text-align: center;
    max-width: 820px; margin-inline: auto; position: relative; overflow: hidden;
}
.newsletter-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--yellow) 0%, var(--red) 100%);
}
.newsletter-card h2 { margin-bottom: 10px; }
.newsletter-card > p { color: var(--muted); max-width: 520px; margin: 0 auto 30px; }
.newsletter-form {
    display: flex; gap: 12px;
    max-width: 520px; margin-inline: auto;
}
.newsletter-form .form-control { flex: 1; }
.newsletter-form .btn { flex: none; }

/* ---------- Blog ---------- */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.blog-card {
    background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .5s var(--ease-out), box-shadow .5s ease;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-card .cc-media { height: 200px; }
.blog-card .cc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.blog-card:hover .cc-media img { transform: scale(1.07); }
.blog-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-meta { display: flex; gap: 14px; font-size: .76rem; color: var(--muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.blog-meta .cat { color: var(--red); }
.blog-body h3 { font-size: 1.12rem; line-height: 1.35; }
.blog-body h3 a:hover { color: var(--red); }
.blog-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.blog-link { font-weight: 700; font-size: .88rem; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.blog-link svg { width: 15px; height: 15px; fill: var(--red); transition: transform .3s ease; }
.blog-card:hover .blog-link svg { transform: translateX(5px); }

.sidebar { position: sticky; top: 100px; display: grid; gap: 26px; }
.side-widget {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm);
}
.side-widget h4 { margin-bottom: 16px; font-size: .95rem; position: relative; padding-bottom: 12px; }
.side-widget h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 3px; background: var(--grad-yellow); }
.search-bar { position: relative; }
.search-bar input { padding-right: 54px; }
.search-bar button {
    position: absolute; right: 6px; top: 6px; bottom: 6px;
    width: 42px; border-radius: 9px; background: var(--grad-dark); color: var(--yellow);
    display: grid; place-items: center; transition: background .3s;
}
.search-bar button:hover { background: var(--red); color: #fff; }
.search-bar button svg { width: 18px; height: 18px; fill: currentColor; }

.cat-list li a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 0; border-bottom: 1px dashed var(--line);
    font-size: .9rem; font-weight: 600; color: var(--navy);
    transition: color .25s ease, padding-left .25s ease;
}
.cat-list li:last-child a { border-bottom: none; }
.cat-list li a:hover { color: var(--red); padding-left: 8px; }
.cat-list .count { background: rgba(31,79,163,.07); border-radius: 50px; font-size: .72rem; padding: 3px 10px; color: var(--navy); }

/* Article */
.article { max-width: 820px; margin-inline: auto; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin: 34px 0; }
.article-cover img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.article h2 { margin: 34px 0 14px; font-size: 1.5rem; }
.article p { color: var(--muted); margin-bottom: 18px; }
.article ul { list-style: none; margin-bottom: 18px; }
.article ul li { position: relative; padding-left: 26px; color: var(--muted); margin-bottom: 10px; }
.article ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(245, 180, 0,.25); }
.article blockquote {
    border-left: 4px solid var(--yellow); background: rgba(245, 180, 0,.08);
    padding: 22px 26px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic; font-weight: 600; color: var(--navy); margin: 26px 0;
}
.article-share { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-share strong { font-family: var(--font-head); font-size: .9rem; color: var(--navy); }
.share-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(31,79,163,.06); display: grid; place-items: center;
    transition: all .3s ease;
}
.share-btn svg { width: 17px; height: 17px; fill: var(--navy); }
.share-btn:hover { background: var(--red); transform: translateY(-3px); }
.share-btn:hover svg { fill: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 46px; padding-bottom: 56px; }
.footer-brand p { font-size: .9rem; margin: 20px 0 24px; max-width: 340px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--grad-yellow); }
.footer-col ul { display: grid; gap: 12px; }
.footer-col li a { font-size: .9rem; transition: color .25s ease, padding-left .25s ease; }
.footer-col li a:hover { color: var(--yellow); padding-left: 6px; }
.footer-contact li { font-size: .9rem; margin-bottom: 12px; }

.socials { display: flex; gap: 12px; }
.socials a {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,.07); display: grid; place-items: center;
    transition: all .3s ease;
}
.socials a svg { width: 18px; height: 18px; fill: rgba(255,255,255,.85); }
.socials a:hover { background: var(--yellow); transform: translateY(-4px); }
.socials a:hover svg { fill: var(--navy); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .82rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom span { color: var(--yellow); font-weight: 700; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
    position: fixed; right: 26px; bottom: 26px; z-index: 1500;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
    transition: transform .35s var(--ease-out);
    animation: wa-in .3s var(--ease-out) both;
}
.whatsapp-fab:hover { transform: scale(1.12) rotate(8deg); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: currentColor; }
@keyframes wa-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }

/* ---------- Back to top ---------- */
.back-top {
    position: fixed; left: 26px; bottom: 26px; z-index: 1500;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--grad-dark); color: var(--yellow);
    display: grid; place-items: center;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
    transition: all .35s ease;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-4px); background: var(--red); color: #fff; }
.back-top svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .facility-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-ctas, .hero-stats { justify-content: center; }
    .hero-3d-wrap { order: -1; }
    .hero-3d-wrap canvas { max-width: 400px; }
    .testi-slide { flex-basis: calc((100% - 28px) / 2); }
    .blog-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info, .register-card { grid-column: auto; grid-row: auto; }
    .map-grid { grid-column: auto; grid-row: auto; }
    .split, .split-3d { grid-template-columns: 1fr; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .programme-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-inner { gap: 10px; }
    .nav-toggle {
        width: 44px; height: 44px; border-radius: 12px;
        background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
        display: grid; place-items: center; gap: 5px; z-index: 1102;
    }
    .nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: all .35s ease; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-menu {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(320px, 84vw);
        background: rgba(31,79,163, .97);
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        padding: calc(var(--nav-h) + 26px) 24px 40px; gap: 6px;
        transform: translateX(105%); transition: transform .5s var(--ease-out);
        z-index: 1101;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu.open { transform: none; }
    .nav-menu > li { width: 100%; flex: none; }
    .nav-menu > li > a { font-size: 1.02rem; padding: 14px 18px; color: rgba(255,255,255,.9); text-align: center; }
    .nav-menu > li > a::after { display: none; }
    .nav-menu .nav-cta { margin: 16px 0 0; }
    .nav-cta .btn { width: 100%; }

    h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .section { padding: 80px 0; }
    .hero-stats { gap: 22px; }
    .testi-slide { flex-basis: 100%; min-width: 0; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .form-row { grid-template-columns: 1fr; }
    .cc-body { padding: 16px 14px; gap: 8px; }
    .cc-body h3 { font-size: .95rem; }
    .cc-body p { font-size: .8rem; }
    .cc-meta { gap: 10px; font-size: .72rem; flex-wrap: wrap; }
    .cc-body .btn { padding: 8px 14px; font-size: .75rem; }
    .modal-facts { grid-template-columns: 1fr; }
    .stats-band { grid-template-columns: 1fr 1fr; padding: 40px 26px; }
    .cta-banner { padding: 46px 28px; text-align: center; justify-content: center; }
    .register-card { padding: 32px 24px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .blog-card .cc-media { height: 130px; }
    .blog-body { padding: 14px 12px; gap: 8px; }
    .blog-body h3 { font-size: .92rem; }
    .blog-body p { font-size: .8rem; }
    .blog-meta { gap: 8px; font-size: .64rem; }
    .blog-link { font-size: .8rem; }
    .newsletter-card { padding: 44px 26px; }
    .newsletter-form { flex-direction: column; }
    .facility-card { height: 260px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; padding-bottom: 44px; }
    .footer-grid > :nth-of-type(2) { order: 1; }
    .footer-grid > :nth-of-type(3) { order: 2; }
    .footer-grid > :nth-of-type(1) { order: 3; }
    .footer-grid > :nth-of-type(4) { order: 4; }
    .footer-brand p { font-size: .84rem; margin: 14px 0 16px; max-width: 100%; }
    .footer-col ul { gap: 10px; }
    .footer-col li a, .footer-contact li { font-size: .85rem; }
    .footer-contact .btn { margin-top: 8px; }
    .trust-row { gap: 16px 30px; }
    .modal-body, .modal-foot, .modal-top { padding-left: 26px; padding-right: 26px; }
    .hero-3d-wrap canvas { max-width: 300px; }
    .benefit-grid { grid-template-columns: 1fr; }
    .photo-grid, .photo-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .leadership-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .leader-foundry, .leader-flip { grid-column: 1 / -1; }
    .leader-flip { grid-template-columns: 1fr; text-align: center; }
    .leader-flip .founder-photo { order: -1; margin: 0 auto; max-width: 240px; }
    .leader-card h3 { font-size: 1.02rem; }
    .founder-role { font-size: .72rem; }
    .founder-photo { max-width: 240px; }
    .leader-contact { justify-content: center; }
    .photo-placeholder { min-height: 0; padding: 12px; border-radius: var(--radius-md); }
    .photo-placeholder.tall { min-height: 0; }
    .photo-placeholder img { border-radius: calc(var(--radius-md) - 4px); }
    .photo-img { border-radius: calc(var(--radius-lg) - 6px); }
    .accredit-card { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; }
    .accredit-logo { height: 120px; }
    .accredit-cert { height: 160px; margin-top: 8px; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cert-card { padding: 10px; }
    .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .partner-slot { padding: 4px; }
    .partner-slot img { object-fit: contain; }
    .logo-img { width: 40px; height: 40px; padding: 4px; }
    .logo-text strong { font-size: .82rem; }
    .logo-text small { font-size: .6rem; }

    /* Contact page */
    .contact-info { gap: 14px; order: -1; }
    .map-grid { order: 1; }
    .contact-item { padding: 18px; gap: 14px; align-items: center; }
    .contact-ico { width: 46px; height: 46px; border-radius: 13px; }
    .contact-ico svg { width: 21px; height: 21px; }
    .contact-item h4 { font-size: .98rem; }
    .contact-item p, .contact-item a { font-size: .88rem; word-break: break-word; }
    .register-card { padding: 26px 20px; }
    .register-card h2 { font-size: 1.35rem; }
    .form-group { margin-bottom: 16px; }
    .form-control { padding: 15px 16px; font-size: 16px; }
    .radio-row { gap: 10px; }
    .radio-pill span { padding: 14px 10px; font-size: .88rem; }
    .form-submit { padding: 15px 20px; font-size: .95rem; }
    .map-grid { gap: 24px; margin: 24px 0 0; }
    .map-label { font-size: .78rem; }
    .map-box { aspect-ratio: 4 / 3; }
    .map-photos { gap: 8px; margin-top: 10px; }
    .map-photos img { border-radius: calc(var(--radius-md) - 6px); }
    .campus-chip { padding: 9px 16px; font-size: .8rem; }
}

@media (max-width: 480px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stats-band { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .why-item { padding: 20px 16px; }
    .why-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; }
    .why-icon svg { width: 20px; height: 20px; }
    .why-item h3 { font-size: .9rem; margin-bottom: 6px; }
    .why-item p { font-size: .78rem; }
}

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */
.chatbot-root { font-family: var(--font-body); }

/* Floating button */
.chat-fab {
    position: fixed; right: 26px; bottom: 100px; z-index: 1500;
    width: 60px; height: 60px; border-radius: 50%;
    border: none; cursor: pointer;
    background: var(--grad-dark); color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 12px 30px rgba(31, 79, 163, .45);
    transition: transform .35s var(--ease-out), opacity .3s ease, visibility .3s ease;
    animation: wa-in .3s var(--ease-out) both;
}
.chat-fab:hover { transform: scale(1.12) rotate(-8deg); }
.chat-fab.hidden { opacity: 0; visibility: hidden; transform: scale(0); }
.chat-fab-icon { width: 28px; height: 28px; }
.chat-fab.pulse { animation: chat-pulse 1s ease 2; }
@keyframes chat-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(31,79,163,.5); }
    100% { box-shadow: 0 0 0 24px rgba(31,79,163,0); }
}
.chat-badge {
    position: absolute; top: 2px; right: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--yellow); border: 2px solid #fff;
}

/* Panel */
.chat-panel {
    position: fixed; right: 26px; bottom: 100px; z-index: 1500;
    width: 370px; max-width: calc(100vw - 32px);
    height: 540px; max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    display: flex; flex-direction: column;
    background: #fff; border-radius: 22px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(31, 79, 163, .3);
    border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(24px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s var(--ease-out);
}
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }

.chat-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; color: #fff;
    background: var(--grad-dark);
}
.chat-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; background: #fff; padding: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.chat-head-text { flex: 1; min-width: 0; line-height: 1.25; }
.chat-head-text strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.chat-head-text small { display: flex; align-items: center; gap: 5px; font-size: .72rem; opacity: .9; }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chat-close {
    background: rgba(255,255,255,.15); color: #fff;
    border: none; cursor: pointer; width: 32px; height: 32px;
    border-radius: 50%; font-size: 1.2rem; line-height: 1;
    display: grid; place-items: center;
    transition: background .25s;
}
.chat-close:hover { background: rgba(255,255,255,.3); }

.chat-langbar {
    display: flex; gap: 6px; padding: 8px 16px;
    background: #fff; border-bottom: 1px solid rgba(31,79,163,.12);
}
.chat-lang {
    flex: 1; padding: 6px 8px; cursor: pointer;
    border: 1px solid rgba(31,79,163,.25); border-radius: 999px;
    background: #fff; color: var(--navy-soft, #1F4FA3);
    font-family: var(--font-head); font-size: .78rem; font-weight: 700;
    transition: all .22s;
}
.chat-lang:hover { border-color: var(--red, #E21C0D); color: var(--red, #E21C0D); }
.chat-lang.active {
    background: var(--grad-dark); color: #fff; border-color: transparent;
    box-shadow: 0 3px 8px rgba(20,53,112,.25);
}

.chat-body {
    flex: 1; overflow-y: auto; padding: 16px;
    background: url('../img/chatbot.jpg.jpeg') center top / cover no-repeat #F4F7FC;
    display: flex; flex-direction: column; gap: 10px;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(31,79,163,.25); border-radius: 6px; }

.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }

.chat-bubble {
    max-width: 82%; padding: 11px 14px;
    font-size: .86rem; line-height: 1.55;
    border-radius: 16px; word-wrap: break-word;
}
.chat-bubble b { font-weight: 700; }
.chat-msg.bot .chat-bubble {
    background: #fff; color: var(--ink);
    border: 1px solid var(--line);
    border-bottom-left-radius: 5px;
    box-shadow: var(--shadow-sm);
}
.chat-msg.user .chat-bubble {
    background: var(--grad-dark); color: #fff;
    border-bottom-right-radius: 5px;
}

/* Typing dots */
.chat-msg.typing .chat-bubble { display: flex; gap: 4px; align-items: center; padding: 14px; }
.tdot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--navy-soft);
    animation: tdot-b 1s infinite ease-in-out;
}
.tdot:nth-child(2) { animation-delay: .15s; }
.tdot:nth-child(3) { animation-delay: .3s; }
@keyframes tdot-b { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* Quick reply chips */
.chat-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 10px 14px; background: #F4F7FC;
    border-top: 1px solid var(--line);
}
.chat-chip {
    border: 1px solid var(--navy-soft); color: var(--navy);
    background: #fff; border-radius: 999px; cursor: pointer;
    padding: 7px 14px; font-size: .76rem; font-weight: 600;
    font-family: var(--font-body);
    transition: all .25s;
}
.chat-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Chat links */
.chat-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chat-links a {
    display: inline-block; padding: 7px 14px;
    background: var(--grad-yellow); color: var(--navy);
    border-radius: 999px; font-size: .78rem; font-weight: 800;
    text-decoration: none; box-shadow: var(--shadow-yellow);
    transition: transform .25s;
}
.chat-links a:hover { transform: translateY(-2px); }

/* Input */
.chat-form {
    display: flex; gap: 8px; padding: 12px;
    background: #fff; border-top: 1px solid var(--line);
}
.chat-input {
    flex: 1; border: 1px solid var(--line); border-radius: 999px;
    padding: 11px 16px; font-size: .86rem; font-family: var(--font-body);
    outline: none; color: var(--ink); transition: border-color .25s;
}
.chat-input:focus { border-color: var(--navy-soft); }
.chat-send {
    width: 44px; height: 44px; border-radius: 50%;
    border: none; cursor: pointer; flex-shrink: 0;
    background: var(--grad-dark); color: #fff;
    display: grid; place-items: center;
    transition: transform .25s;
}
.chat-send:hover { transform: scale(1.08); }
.chat-send svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
    .whatsapp-fab, .chat-fab { width: 54px; height: 54px; bottom: 16px; }
    .whatsapp-fab { right: 16px; }
    .chat-fab { right: 80px; }
    .chat-fab svg, .whatsapp-fab svg { width: 26px; height: 26px; }
    .chat-panel { right: 16px; bottom: 80px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 150px); }
    .chat-input { font-size: 16px; }
    .chat-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; }
    .chat-chip { padding: 8px 8px; font-size: .7rem; border-radius: 10px; text-align: center; white-space: normal; }
    .chat-lang { padding: 6px 4px; font-size: .7rem; }
}

/* ================= Offer card (hero right column) ================= */
.offer-banner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 470px;
    background: linear-gradient(165deg, #1E54AD 0%, #143A80 55%, #0F2C63 100%);
    border: 1px solid rgba(245,180,0,.40);
    border-radius: var(--radius-xl);
    padding: 12px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,.35);
    animation: offerGlow 3s ease-in-out infinite;
}
@keyframes offerGlow {
    0%, 100% { box-shadow: 0 0 18px rgba(245,180,0,.28), 0 30px 70px rgba(0,0,0,.35); }
    50%      { box-shadow: 0 0 56px rgba(245,180,0,.60), 0 30px 70px rgba(0,0,0,.35); }
}
.offer-banner::before {
    content: '';
    position: absolute; top: 0; left: -80%;
    width: 55%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.16), transparent);
    transform: skewX(-20deg);
    animation: offerShine 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes offerShine {
    0%   { left: -80%; }
    60%, 100% { left: 140%; }
}

.offer-media { position: relative; padding: 4px 4px 0; }
.offer-img-frame {
    position: relative;
    border-radius: calc(var(--radius-lg) - 4px);
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.22);
    box-shadow: 0 14px 34px rgba(0,0,0,.3);
}
.offer-img { display: block; width: 100%; height: 280px; object-fit: cover; }
.offer-tag {
    position: absolute; top: 14px; left: -36px;
    transform: rotate(-45deg);
    background: var(--grad-red);
    color: #fff; font-family: var(--font-head); font-weight: 800;
    font-size: .66rem; letter-spacing: .18em;
    padding: 8px 46px;
    box-shadow: 0 6px 18px rgba(226,28,13,.45);
    white-space: nowrap;
}

.offer-content { position: relative; z-index: 1; padding: 16px 10px 8px; }
.offer-date {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: fit-content; margin: 12px auto 0;
    padding: 8px 16px; border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff; font-family: var(--font-head); font-size: .82rem; font-weight: 700;
    white-space: nowrap;
}
.offer-date svg { width: 16px; height: 16px; fill: var(--yellow); flex: none; }
.hero-offer-text { padding: 14px 8px 2px; }
.hero-offer-text h3 {
    color: #fff; font-family: var(--font-head);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.3; margin: 0 0 8px;
}
.hero-offer-text p {
    color: rgba(255,255,255,.82); font-size: .85rem;
    line-height: 1.6; margin: 0;
}
@media (max-width: 1024px) {
    .hero-offer-text { text-align: center; }
}
.offer-eyebrow {
    display: inline-block;
    background: var(--yellow);
    color: var(--navy-deep);
    font-family: var(--font-head); font-weight: 800;
    font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px;
    margin-bottom: 12px;
    box-shadow: 0 6px 20px rgba(245,180,0,.4);
}
.offer-title {
    color: #fff; font-family: var(--font-head);
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    line-height: 1.25; margin: 0 0 10px;
}
.offer-hl { color: var(--yellow); text-shadow: 0 0 16px rgba(245,180,0,.7); }
.offer-hl.hl-red { color: #FF5A4A; text-shadow: 0 0 16px rgba(255,90,74,.7); }
.offer-desc { color: rgba(255,255,255,.85); font-size: .85rem; margin: 0 0 16px; }

.countdown { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.count-box {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--radius-md);
    min-width: 62px; padding: 10px 6px;
    text-align: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.count-box strong {
    display: block; color: var(--yellow);
    font-family: var(--font-head); font-size: 1.35rem; font-weight: 900;
    text-shadow: 0 0 12px rgba(245,180,0,.55);
    font-variant-numeric: tabular-nums;
}
.count-box span {
    display: block; color: rgba(255,255,255,.75);
    font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
    margin-top: 2px;
}
.offer-cta {
    width: 100%;
    justify-content: center;
    font-size: .92rem;
}

@media (max-width: 1024px) {
    .offer-banner { max-width: 460px; }
    .offer-img { height: 240px; }
}
@media (max-width: 480px) {
    .offer-banner { padding: 10px; border-radius: var(--radius-lg); }
    .offer-img { height: 210px; }
    .count-box { min-width: 56px; }
    .count-box strong { font-size: 1.15rem; }
    .count-box span { font-size: .58rem; }
}
