/* ============================================================
   Nkubu Vocational Training Centre — Landing Site Stylesheet
   Navy (#1e3a5f) + Gold (#d4af37)
   ============================================================ */

:root {
    --navy-dark:   #0f1e3d;
    --navy:        #1e3a5f;
    --navy-mid:    #2d5286;
    --navy-light:  #4a7ab8;
    --navy-pale:   #eff6ff;
    --gold:        #d4af37;
    --gold-light:  #e8c96a;
    --gold-dark:   #a68a1f;
    --text:        #1a2940;
    --text-soft:   #5c6b80;
    --text-mute:   #8b95a3;
    --bg:          #f8fafc;
    --bg-alt:      #f1f5f9;
    --white:       #ffffff;
    --border:      #e2e8f0;
    --shadow-sm:   0 2px 8px rgba(15, 30, 61, 0.06);
    --shadow-md:   0 8px 28px rgba(15, 30, 61, 0.10);
    --shadow-lg:   0 18px 48px rgba(15, 30, 61, 0.16);
    --radius:      14px;
    --radius-lg:   20px;
    --transition:  all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }

/* ============================================================
   ANNOUNCEMENT TICKER
   ============================================================ */
/* ============================================================
   STICKY TOP BLOCK — ticker + header move as one unit
   ============================================================ */
.sticky-top-block {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ticker-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-dark) 100%);
    color: #e2e8f0;
    height: 38px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
}
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark);
    height: 100%;
    padding: 0 20px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.ticker-label i { font-size: 0.85rem; }

.ticker-label::after {
    content: '';
    position: absolute;
    top: 0; right: -12px;
    width: 12px; height: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    clip-path: polygon(0 0, 0 100%, 100% 50%);
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
    padding-left: 100%;
    will-change: transform;
}

.ticker-content:hover { animation-play-state: paused; }

.ticker-content span {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding-right: 60px;
    display: inline-block;
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--navy-pale);
    padding: 4px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 0.95rem; font-weight: 800; color: var(--navy); letter-spacing: -0.2px; }
.brand-sub  { font-size: 0.7rem;  font-weight: 500; color: var(--text-mute); text-transform: uppercase; letter-spacing: 1px; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.site-nav .nav-link {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
    transition: var(--transition);
    position: relative;
}

.site-nav .nav-link:hover { background: var(--navy-pale); color: var(--navy); }
.site-nav .nav-link.active { color: var(--navy); }

.site-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.site-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn-portal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--white);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.25);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-portal:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30, 58, 95, 0.35); }

.mobile-toggle {
    display: none;
    background: var(--navy-pale);
    border: none;
    color: var(--navy);
    width: 42px; height: 42px;
    border-radius: 10px;
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-toggle:hover { background: var(--navy); color: var(--white); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.slider-track { position: absolute; inset: 0; }

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

.slide.active { opacity: 1; }

.slide-gradient {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
}

.slide-gradient::before {
    content: '';
    position: absolute;
    top: -50%; right: -15%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 65%);
    border-radius: 50%;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 30, 61, 0.88) 0%,
        rgba(15, 30, 61, 0.65) 50%,
        rgba(15, 30, 61, 0.35) 100%
    );
    z-index: 2;
}

.slider-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
}

.slider-content-inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    color: var(--white);
    animation: slideContentIn 1s ease-out;
}

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

.slider-title {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.3px;
    margin: 12px 0 14px;
    max-width: 780px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.slider-motto {
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.slider-sub {
    font-size: 1.15rem;
    color: #dbe4f0;
    line-height: 1.65;
    margin-bottom: 34px;
    max-width: 580px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.slider-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-eyebrow {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-light);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dot:hover { background: rgba(255, 255, 255, 0.7); transform: scale(1.15); }

.slider-dot.active {
    background: var(--gold);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-slider:hover .slider-arrow { opacity: 1; }

.slider-arrow:hover {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-gold,
.btn-outline-light,
.btn-primary-navy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #3a2f00;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.btn-primary-gold:hover { color: #3a2f00; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(212, 175, 55, 0.45); }

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }

.btn-primary-navy {
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--white);
    box-shadow: 0 6px 18px rgba(30, 58, 95, 0.25);
}

.btn-primary-navy:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(30, 58, 95, 0.35); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 54px 24px; }
.section-alt { background: var(--bg-alt); }

.section-inner {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

.section-inner.narrow {
    max-width: 900px;
    padding: 0 24px;
}

.section-head { text-align: center; margin-bottom: 34px; }

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 6px;
}

.section-eyebrow::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 2px;
    background: var(--gold);
}

.section-head h2,
.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.6px;
}

.section-head p {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto;
}

.section-cta { text-align: center; margin-top: 34px; }
.lead { font-size: 1.12rem; line-height: 1.75; color: var(--text-soft); }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, transparent 65%);
    border-radius: 50%;
}

.stats-inner {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.stat-block {
    text-align: center;
    padding: 20px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-block:last-child { border-right: none; }

.stat-value {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.85rem;
    color: #c7d3e4;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* ============================================================
   SUPPORT GRID
   ============================================================ */
.section-support { padding: 40px 24px 44px; }

.support-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.support-tile {
    background: linear-gradient(135deg, #1e3a5f, #0f1e3d);
    border-radius: 12px;
    padding: 26px 14px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 110px;
    box-shadow: 0 6px 18px rgba(15, 30, 61, 0.14);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.support-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d4af37, #a68a1f);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.support-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(15, 30, 61, 0.25);
    color: #1a2940;
}

.support-tile:hover::before { opacity: 1; }

.support-icon,
.support-label { position: relative; z-index: 1; }

.support-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.support-tile:hover .support-icon { transform: scale(1.15); }

.support-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

/* ============================================================
   FEATURED PROGRAMMES
   ============================================================ */
.section-featured { padding: 52px 24px; }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.featured-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(15, 30, 61, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(15, 30, 61, 0.16);
    border-color: transparent;
}

.featured-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a5f, #0f1e3d);
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover .featured-image img { transform: scale(1.06); }

.featured-image-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 175, 55, 0.5);
    font-size: 3rem;
}

.featured-body {
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0 0 10px;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.featured-body p {
    font-size: 0.92rem;
    color: #5c6b80;
    line-height: 1.65;
    margin: 0 0 18px;
    flex: 1;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

.featured-link i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d4af37;
    color: #1a2940;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.featured-link:hover { color: #1e3a5f; }

.featured-link:hover i {
    background: #1e3a5f;
    color: #ffffff;
    transform: translateX(4px);
}

/* Featured card safety — no overflow on any width */
.featured-card,
.featured-body,
.featured-body h3,
.featured-body p,
.featured-link {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.featured-link { white-space: normal; }

/* ============================================================
   ABOUT SPLIT
   ============================================================ */
.section-about { padding: 60px 24px; }

.about-split {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    position: relative;
    padding-bottom: 40px;
    padding-right: 40px;
}

.about-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
}

.about-image-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(212, 175, 55, 0.35);
}

.about-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.15), transparent 60%);
}

.about-image-frame::before {
    content: '';
    position: absolute;
    top: 20px; right: -40px; bottom: 20px; left: 40px;
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.4;
}

.about-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #3a2f00;
    padding: 22px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.about-badge-num {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.about-badge-lbl {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.about-text .section-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding-bottom: 0;
}

.about-text .section-eyebrow::after { display: none; }

.about-heading {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 20px;
}

.about-lead {
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.75;
    margin-bottom: 28px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 32px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feature-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-feature strong {
    display: block;
    font-size: 0.95rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 2px;
}

.about-feature span {
    font-size: 0.85rem;
    color: var(--text-mute);
}

/* ============================================================
   WHY CARDS
   ============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 38px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--gold));
    opacity: 0;
    transition: var(--transition);
}

.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.why-card:hover::before { opacity: 1; }

.why-icon {
    width: 62px; height: 62px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 22px;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark);
    transform: rotate(-6deg) scale(1.08);
}

.why-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.why-card p  { font-size: 0.92rem; color: var(--text-soft); line-height: 1.65; }

/* ============================================================
   COURSES PREVIEW
   ============================================================ */
.courses-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.course-mini {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    border-left: 4px solid var(--gold);
    text-decoration: none;
    color: var(--text);
    position: relative;
}

.course-mini:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--navy);
    color: var(--text);
}

.course-mini-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--navy-pale);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.course-mini:hover .course-mini-icon { background: var(--navy); color: var(--white); }

.course-mini > div:nth-child(2) { flex: 1; }

.course-mini-code {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--gold-dark);
    letter-spacing: 1.2px;
    margin-bottom: 3px;
}

.course-mini h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin: 0;
}

.course-mini-arrow {
    font-size: 0.85rem;
    color: var(--text-mute);
    opacity: 0;
    transition: var(--transition);
}

.course-mini:hover .course-mini-arrow {
    opacity: 1;
    color: var(--gold-dark);
    transform: translateX(4px);
}

/* ============================================================
   COURSES FULL
   ============================================================ */
.courses-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.course-card-full {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card-full:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--navy-pale); }

.course-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.course-card-code {
    display: inline-block;
    background: var(--navy-pale);
    color: var(--navy);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.course-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #3a2f00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.course-card-full h3 { font-size: 1.22rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; line-height: 1.35; }
.course-card-full p  { font-size: 0.93rem; color: var(--text-soft); line-height: 1.7; flex: 1; margin-bottom: 20px; }

.course-card-meta { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--border); }
.course-card-meta > div { font-size: 0.85rem; color: var(--text-soft); display: flex; align-items: center; gap: 10px; }
.course-card-meta i { color: var(--gold-dark); width: 16px; text-align: center; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.testimonial-quote { font-size: 1.6rem; color: var(--gold); margin-bottom: 16px; opacity: 0.7; }

.testimonial-text {
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--text-soft);
    font-style: italic;
    flex: 1;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 0.95rem; color: var(--navy); font-weight: 800; margin-bottom: 2px; }
.testimonial-author span   { font-size: 0.82rem; color: var(--text-mute); }

/* ============================================================
   PORTALS
   ============================================================ */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.portal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    color: var(--text);
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--navy);
    color: var(--text);
}

.portal-card:hover::before { opacity: 1; }

.portal-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 22px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.portal-card:hover .portal-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark);
    transform: scale(1.08) rotate(-4deg);
}

.portal-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.portal-card p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.65;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.portal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 1;
}

.portal-link i { transition: var(--transition); }
.portal-card:hover .portal-link i { transform: translateX(5px); }

/* ============================================================
   CTA BAND
   ============================================================ */
.section-cta-band {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: var(--white);
    padding: 52px 24px;
    position: relative;
    overflow: hidden;
}

.section-cta-band::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.section-cta-band::after {
    content: '';
    position: absolute;
    bottom: -60%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(74, 122, 184, 0.15) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-band-inner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.4px; }
.cta-band-inner p  { font-size: 1.02rem; color: #c7d3e4; }

.cta-band-inner .section-eyebrow {
    color: var(--gold-light);
    display: inline-block;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.cta-band-inner .section-eyebrow::after { display: none; }

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: var(--white);
    padding: 80px 24px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.8rem; font-weight: 900; letter-spacing: -0.8px; margin-bottom: 12px; }
.page-hero-sub { font-size: 1.08rem; color: #c7d3e4; max-width: 620px; margin: 0 auto; }

/* ============================================================
   MISSION / VISION / VALUES
   ============================================================ */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.mv-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.mv-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #3a2f00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 22px;
}

.mv-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.mv-card p  { font-size: 0.95rem; color: var(--text-soft); line-height: 1.75; }

/* ============================================================
   PRINCIPAL PHOTO CARD
   ============================================================ */
.principal-card {
    display: flex;
    gap: 34px;
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.principal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
}

.principal-photo {
    width: 200px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 30, 61, 0.18);
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
}

.principal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.principal-photo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
}

.principal-content { flex: 1; min-width: 0; }

.principal-content p {
    font-size: 1rem;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 18px;
    font-style: italic;
}

.principal-sign {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.principal-sign strong { font-size: 1rem; color: var(--navy); font-weight: 800; }
.principal-sign span   { font-size: 0.82rem; color: var(--text-mute); }

/* ============================================================
   ADMISSIONS
   ============================================================ */
.admissions-steps { display: flex; flex-direction: column; gap: 22px; }

.adm-step {
    display: flex;
    gap: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.adm-step:hover { box-shadow: var(--shadow-md); transform: translateX(6px); }

.adm-num {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    flex-shrink: 0;
}

.adm-step h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.adm-step p  { font-size: 0.95rem; color: var(--text-soft); line-height: 1.7; }

.docs-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.docs-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 16px 22px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 0.96rem;
    color: var(--text-soft);
    transition: var(--transition);
}

.docs-list li:hover { border-color: var(--gold); transform: translateX(4px); }
.docs-list i { color: var(--gold-dark); font-size: 1.05rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
}

.gallery-item {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    position: relative;
    transition: var(--transition);
}

.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.gallery-item img { width: 100%; height: auto; display: block; }

.gallery-item figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(15, 30, 61, 0.9), transparent);
    color: var(--white);
    padding: 28px 18px 14px;
    font-size: 0.88rem;
    font-weight: 500;
}

.empty-gallery { text-align: center; padding: 90px 20px; color: var(--text-mute); }
.empty-gallery i { font-size: 4rem; opacity: 0.4; margin-bottom: 18px; display: block; color: var(--navy-light); }
.empty-gallery p { font-size: 1.05rem; }

.empty-note { text-align: center; padding: 40px; color: var(--text-mute); font-style: italic; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

.contact-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }

.contact-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: var(--navy-pale);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon { background: var(--navy); color: var(--white); }

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-item p { font-size: 1.02rem; color: var(--navy); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(135deg, var(--navy-dark), #0a1730);
    color: #b8c6db;
    padding: 70px 24px 0;
    margin-top: 0;
}

.footer-inner {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr 1.4fr;
    gap: 34px;
    padding-bottom: 48px;
}

.footer-col h4 { font-size: 1.05rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }

.footer-col h5 {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.footer-motto { font-style: italic; color: var(--gold-light); font-size: 0.92rem; margin-bottom: 14px; }
.footer-about { font-size: 0.88rem; line-height: 1.75; color: #93a5bd; }

.footer-links,
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 11px; }

.footer-links a { color: #b8c6db; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: #b8c6db; line-height: 1.55; }
.footer-contact i { color: var(--gold-light); width: 18px; margin-top: 3px; flex-shrink: 0; }

.footer-map-col { display: flex; flex-direction: column; }

.footer-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.25);
    line-height: 0;
    background: #1a2940;
}

.footer-map iframe {
    display: block;
    width: 100%;
    height: 180px;
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.3s ease;
}

.footer-map:hover iframe { filter: none; }

.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #b8c6db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-map-link:hover { color: #e8c96a; }
.footer-map-link i { font-size: 0.72rem; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1800px;
    margin: 0 auto;
    font-size: 0.84rem;
    color: #7a8aa3;
}

.footer-credit { color: var(--gold-light); opacity: 0.75; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   POPUP MODAL
   ============================================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 30, 61, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.popup-overlay.visible { opacity: 1; visibility: visible; }

.popup-box {
    background: #ffffff;
    border-radius: 18px;
    max-width: 560px;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 70px rgba(15, 30, 61, 0.45);
    transform: translateY(30px) scale(0.96);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.popup-overlay.visible .popup-box { transform: translateY(0) scale(1); opacity: 1; }

.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    color: #1e3a5f;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 30, 61, 0.25);
    z-index: 3;
    transition: all 0.25s ease;
}

.popup-close:hover { background: #dc2626; color: #ffffff; transform: rotate(90deg) scale(1.08); }

.popup-image { width: 100%; overflow: hidden; border-radius: 18px 18px 0 0; background: #f1f5f9; }
.popup-image img { width: 100%; height: auto; max-height: 300px; object-fit: cover; display: block; }

.popup-body { padding: 32px 34px 34px; text-align: center; }

.popup-heading {
    font-size: 1.55rem;
    font-weight: 900;
    color: #1e3a5f;
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -0.4px;
}

.popup-text {
    font-size: 0.97rem;
    color: #5c6b80;
    line-height: 1.7;
    margin: 0 0 26px;
}

.popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e3a5f, #0f1e3d);
    color: #ffffff;
    padding: 14px 34px;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(30, 58, 95, 0.35);
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.popup-btn:hover { color: #ffffff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 58, 95, 0.45); }

/* ============================================================
   RESPONSIVE — all breakpoints in order
   ============================================================ */

@media (max-width: 1200px) {
    .footer-inner {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 30px;
    }
    .footer-map-col { grid-column: 1 / -1; }
    .footer-map iframe { height: 220px; }
}

@media (max-width: 1024px) {
    .hero-slider { height: 580px; }
    .slider-title { font-size: 2.8rem; }
    .slider-sub { font-size: 1.02rem; }
    .about-split { grid-template-columns: 1fr; gap: 50px; }
    .about-image { max-width: 500px; margin: 0 auto; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-block:nth-child(2) { border-right: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .support-grid { grid-template-columns: repeat(3, 1fr); }
    .featured-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .ticker-bar { height: 34px; }
    .ticker-label { padding: 0 12px; font-size: 0.68rem; letter-spacing: 0.5px; }
    .ticker-label span { display: none; }
    .ticker-content span { font-size: 0.8rem; padding-right: 40px; }
    .ticker-content { animation-duration: 40s; }

    .site-header-inner { padding: 0 14px; height: 66px; gap: 10px; }
    .site-brand { gap: 8px; }
    .brand-logo { width: 38px; height: 38px; }
    .btn-portal { padding: 9px 14px; font-size: 0.82rem; }
    .btn-portal i { font-size: 0.9rem; }

    .site-nav {
        display: none;
        position: fixed;
        top: 66px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        box-shadow: var(--shadow-lg);
        gap: 4px;
        z-index: 999;
        max-height: calc(100vh - 66px);
        overflow-y: auto;
    }

    .site-nav.open { display: flex; }
    .site-nav .nav-link { padding: 14px 16px; border-radius: 10px; font-size: 0.95rem; text-align: left; }
    .site-nav .nav-link.active::after { display: none; }
    .site-nav .nav-link.active { background: var(--navy-pale); color: var(--navy); }

    .mobile-toggle { display: flex; align-items: center; justify-content: center; }

    .hero-slider { height: 520px; }
    .slider-content-inner { padding: 0 20px; }
    .slider-title { font-size: 2.1rem; letter-spacing: -0.7px; }
    .slider-motto { font-size: 1rem; }
    .slider-sub { font-size: 0.95rem; margin-bottom: 26px; }
    .slider-arrow { display: none; }
    .slider-dots { bottom: 22px; }
    .slider-dot { width: 10px; height: 10px; }
    .slider-dot.active { width: 26px; }
    .slider-actions { flex-direction: column; align-items: stretch; }
    .slider-actions .btn-primary-gold,
    .slider-actions .btn-outline-light { justify-content: center; }

    /* Sections — tighter padding, single padding source */
    .section { padding: 32px 16px; }
    .section-inner.narrow { padding: 0 16px; }
    .section-support { padding: 24px 16px 28px; }
    .section-featured { padding: 32px 16px; }
    .section-about { padding: 40px 16px; }
    .stats-strip { padding: 32px 16px; }
    .section-cta-band { padding: 40px 16px; }
    .page-hero { padding: 50px 16px 44px; }

    .section-head { margin-bottom: 26px; }
    .section-head h2,
    .section-title { font-size: 1.7rem; }

    .about-heading { font-size: 1.8rem; }
    .about-features { grid-template-columns: 1fr; }
    .about-image-frame { aspect-ratio: 1 / 1; }
    .about-badge { padding: 18px 22px; }
    .about-badge-num { font-size: 2rem; }

    .stats-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-block { border-right: none; padding: 12px; }
    .stat-value { font-size: 2.4rem; }
    .stat-label { font-size: 0.75rem; }

    .featured-body { padding: 18px 20px 20px; }
    .featured-body h3 { font-size: 1.05rem; }
    .featured-body p { font-size: 0.88rem; }
    .featured-link { font-size: 0.82rem; gap: 6px; padding-top: 10px; }
    .featured-link i { width: 22px; height: 22px; font-size: 0.65rem; flex-shrink: 0; }

    .support-grid { grid-template-columns: repeat(3, 1fr); }
    .support-tile { padding: 16px 12px; min-height: 60px; }
    .support-label { font-size: 0.82rem; }
    .support-icon { font-size: 1.1rem; width: auto; height: auto; }

    .why-grid { grid-template-columns: 1fr; }
    .courses-preview { grid-template-columns: 1fr; }
    .courses-full-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .portal-grid { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr; }

    .page-hero h1 { font-size: 2rem; }
    .page-hero-sub { font-size: 0.98rem; }

    .cta-band-inner { flex-direction: column; text-align: center; }
    .cta-band-inner h2 { font-size: 1.5rem; }

    .principal-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 26px;
    }
    .principal-card::before { display: none; }
    .principal-photo { width: 160px; margin-bottom: 6px; }
    .principal-content p { font-size: 0.95rem; }
    .principal-sign { align-items: center; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 34px; }
    .footer-map iframe { height: 240px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
    .popup-overlay { padding: 16px; }
    .popup-box { border-radius: 16px; max-height: calc(100vh - 32px); }
    .popup-image img { max-height: 220px; }
    .popup-body { padding: 26px 22px 28px; }
    .popup-heading { font-size: 1.25rem; }
    .popup-text { font-size: 0.92rem; margin-bottom: 22px; }
    .popup-btn { padding: 13px 26px; font-size: 0.93rem; }
    .popup-close { width: 34px; height: 34px; top: 10px; right: 10px; font-size: 0.9rem; }
}

@media (max-width: 560px) {
    .hero-slider { height: 500px; }
    .slider-title { font-size: 1.75rem; }
    .slider-sub { font-size: 0.9rem; }

    .gallery-grid { grid-template-columns: 1fr; }

    .support-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .support-tile { padding: 14px 10px; min-height: 56px; border-radius: 8px; }
    .support-label { font-size: 0.74rem; }
    .support-icon { font-size: 1rem; }

    .section { padding: 28px 14px; }
    .section-support { padding: 20px 14px 24px; }
    .section-featured { padding: 28px 14px; }

    .btn-primary-gold,
    .btn-outline-light,
    .btn-primary-navy { padding: 12px 22px; font-size: 0.9rem; }

    .brand-name { font-size: 0.85rem; }
    .brand-sub { font-size: 0.62rem; }
}
/*/* ============================================================
   WELCOME / SCHOOL GATE — floating photo, drop cap style
   ============================================================ */
.section-welcome {
    padding: 60px 24px;
    background: var(--white);
}

.welcome-copy {
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.85;
    overflow: hidden; /* keep floats inside the box */
}

/* The floating photo — like a drop cap */
.welcome-dropcap {
    float: left;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    margin: 4px 26px 14px 0;
    box-shadow: 0 12px 32px rgba(15, 30, 61, 0.18);
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-dropcap:hover { transform: scale(1.03); }

.welcome-dropcap-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 175, 55, 0.6);
    font-size: 3rem;
}

.welcome-copy p {
    margin: 0;
    text-align: justify;
    hyphens: auto;
}

.welcome-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 36px;
    justify-content: center;
}

.btn-welcome-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--border);
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-welcome-outline:hover {
    border-color: var(--navy);
    background: var(--navy-pale);
    color: var(--navy);
    transform: translateY(-2px);
}

/* Make the header of the section sit centered above */
.section-welcome .section-head {
    text-align: center;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .section-welcome { padding: 50px 20px; }
}

@media (max-width: 768px) {
    .section-welcome { padding: 40px 16px; }

    .welcome-copy { font-size: 0.98rem; line-height: 1.75; }

    .welcome-dropcap {
        width: 160px;
        height: 160px;
        margin: 4px 18px 10px 0;
        border-radius: 12px;
    }

    .welcome-actions { flex-direction: column; align-items: stretch; }
    .welcome-actions .btn-primary-navy,
    .welcome-actions .btn-welcome-outline { justify-content: center; }
}

@media (max-width: 560px) {
    .section-welcome { padding: 32px 14px; }

    .welcome-copy { font-size: 0.92rem; }

    .welcome-dropcap {
        width: 120px;
        height: 120px;
        margin: 3px 14px 8px 0;
        border-radius: 10px;
    }

    .welcome-copy p { text-align: left; }
}
/* =========================================
   MODERN ENHANCEMENTS - NKUBU VTC
   ========================================= */

/* Hero Glassmorphism */
.modern-hero-card {
    background: rgba(26, 41, 64, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.modern-hero-card .hero-eyebrow {
    color: #ffd700;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}
.modern-hero-card .slider-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 10px;
}
.modern-hero-card .slider-motto {
    color: #4ec9b0;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    font-weight: 500;
}
.modern-hero-card .slider-sub {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Glowing Buttons */
.glow-btn {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}
.glow-btn:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    transform: translateY(-2px);
}

/* Modern Stats */
.modern-stats .stat-block {
    border-right: 1px solid rgba(0,0,0,0.1);
}
.modern-stats .stat-block:last-child {
    border-right: none;
}
.modern-stats .stat-value {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1a2940, #1a6fa6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Dropcap */
.modern-dropcap {
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
    border: 4px solid #fff;
    transition: transform 0.3s ease;
}
.modern-dropcap:hover {
    transform: scale(1.02);
}

/* Modern Featured Cards */
.modern-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
}
.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}
.modern-card .featured-image {
    height: 220px;
    overflow: hidden;
}
.modern-card .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.modern-card:hover .featured-image img {
    transform: scale(1.1);
}
.modern-card .featured-body {
    padding: 25px;
}
.modern-card .featured-link {
    color: #1a6fa6;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: gap 0.3s ease;
}
.modern-card:hover .featured-link {
    gap: 12px;
}

/* Modern Why Us */
.modern-why-card {
    padding: 40px 30px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: none;
    transition: all 0.3s ease;
}
.modern-why-card:hover {
    background: #f8fafc;
    transform: translateY(-5px);
}
.modern-why-card .why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a6fa6, #4ec9b0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px -5px rgba(26, 111, 166, 0.4);
}

/* Modern Testimonials */
.modern-quote-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.modern-quote-card .testimonial-stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}
.modern-quote-card .testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 25px;
}
.modern-quote-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.modern-quote-card .testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a6fa6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}
.modern-quote-card .testimonial-author strong {
    display: block;
    color: #1a2940;
    font-size: 1rem;
}
.modern-quote-card .testimonial-author span {
    color: #64748b;
    font-size: 0.85rem;
}

/* Modern Portals */
.modern-portal-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.modern-portal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #1a6fa6, #4ec9b0);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modern-portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border-color: #1a6fa6;
}
.modern-portal-card:hover::before {
    opacity: 1;
}
.modern-portal-card .portal-icon {
    font-size: 3rem;
    color: #1a6fa6;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.modern-portal-card:hover .portal-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Modern CTA Band */
.modern-cta {
    background: linear-gradient(135deg, #1a2940, #1a6fa6) !important;
    border-radius: 30px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 25px 50px -12px rgba(26, 41, 64, 0.5);
}
.modern-cta h3 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
}
.modern-cta p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modern-hero-card { padding: 1.5rem; border-radius: 15px; }
    .modern-hero-card .slider-title { font-size: 2rem; }
    .modern-hero-card .slider-sub { font-size: 1rem; }
    .modern-stats .stat-block { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 20px; margin-bottom: 20px; }
    .modern-stats .stat-block:last-child { border-bottom: none; }
    .modern-cta { border-radius: 20px; padding: 30px 20px; }
    .modern-cta h3 { font-size: 1.5rem; }
}
/* ============================================================
   PARTNERS MARQUEE (Sliding Animation)
   ============================================================ */

.partners-marquee-container {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.partners-track-slider {
    display: flex;
    width: max-content;
    gap: 30px; 
    animation: scrollPartners 30s linear infinite !important;
}

/* Individual Partner Card */
.scrolling-partner-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15,30,61,0.05);
    border: 1px solid #e2e8f0;
    width: 320px; 
    flex-shrink: 0;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scrolling-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15,30,61,0.1);
}

/* Logo Image Container - HARD FIXED SIZES */
.partner-logo-img {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden; 
}

.partner-logo-img img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain; 
    display: block;
}

/* Text Styles */
.scrolling-partner-card h3 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #1e3a5f;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.scrolling-partner-card p {
    font-size: 1.1rem;
    color: #5c6b80;
    margin: 0;
    line-height: 1.4;
}

/* The Animation */
@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

/* The Animation */
@keyframes scrollPartners {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        /* Moves exactly half the width + half the gap for a seamless loop */
        transform: translateX(calc(-50% - 15px)); 
    }
}
/* =========================================
   PARTNERS SLIDER ANIMATION
   ========================================= */

.partners-track-slider {
    display: flex !important;
    width: max-content !important;
    gap: 30px !important;
    animation: scrollPartners 35s linear infinite !important;
}

.partners-track-slider:hover {
    animation-play-state: paused !important;
}

@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}