/* ═══════════════════════════════════════════════════════════════════════════
   MKJ SUPA CUP — Complete Website + CMS Stylesheet
   Governor Mutula Kilonzo Junior Super Cup — Makueni County
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --primary:     #124491;
    --primary-dark:#003388;
    --primary-light:#3a7bd5;
    --accent:      #E8B91E;
    --accent-dark: #c99a00;
    --accent-light:#f5d24e;
    --gold:        #E8B91E;
    --dark:        #0f172a;
    --gray:        #64748b;
    --light-gray:  #e2e8f0;
    --bg:          #f8fafc;
    --white:       #FFFFFF;
    --success:     #129139;
    --warning:     #d97706;
    --info:        #2563eb;
    --danger:      #cf2e2e;
    --shadow:      0 1px 2px rgba(0,0,0,.04), 0 1px 6px rgba(0,0,0,.02);
    --shadow-lg:   0 4px 12px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04);
    --shadow-xl:   0 8px 32px rgba(0,0,0,.08);
    --radius:      8px;
    --radius-lg:   16px;
    --transition:  .2s ease;
    --font-body:   'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display:'Outfit', var(--font-body);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
ul, ol { padding-left: 0; list-style: none; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Scrollbar styling ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.25); }
* { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.15) transparent; }

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 1 — PUBLIC WEBSITE (LIGHT THEME — MKJ SUPA CUP COLORS)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────────
   NAVBAR
   ────────────────────────────────────────────────────────────────────────── */
.fkf-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 10000;
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: background .3s, box-shadow .3s;
}
.fkf-nav--solid {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.fkf-nav-inner {
    max-width: 1200px; width: 100%; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.fkf-nav-brand {
    display: flex; align-items: center; gap: .65rem;
    text-decoration: none;
}
.fkf-nav-brand img {
    height: 36px; width: 36px; border-radius: 50%;
    background: #fff; border: 2px solid rgba(26,111,181,.15);
    object-fit: cover; box-shadow: 0 2px 8px rgba(26,111,181,.1);
}
.fkf-nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
    font-family: 'Outfit', sans-serif; font-size: .95rem;
    font-weight: 800; color: #124491; letter-spacing: 2px;
}
.brand-sub { font-size: .75rem; color: #999; text-transform: uppercase; letter-spacing: 2px; }

.fkf-nav-links {
    display: flex; list-style: none; gap: 0; align-items: center;
}
.fkf-nav-links a {
    display: block; padding: .5rem 1.15rem;
    color: #555; font-size: .88rem; font-weight: 500;
    letter-spacing: .3px; transition: color .3s; position: relative;
}
.fkf-nav-links a::after {
    content: ""; position: absolute;
    bottom: 0; left: 50%; width: 0; height: 2px;
    background: #124491; transition: all .3s; transform: translateX(-50%);
}
.fkf-nav-links a:hover,
.fkf-nav-links a.active { color: #124491; }
.fkf-nav-links a.active::after,
.fkf-nav-links a:hover::after { width: 18px; }

.fkf-nav-actions { display: flex; gap: .75rem; align-items: center; }
.fkf-nav-btn {
    padding: .4rem 1rem; border: 1px solid #124491;
    border-radius: 6px; color: #124491; font-size: .78rem;
    font-weight: 600; letter-spacing: .3px; transition: all .3s;
}
.fkf-nav-btn:hover { background: #124491; color: #fff; }

/* Login link inside mobile nav — hidden on desktop */
.nav-login-mobile { display: none; }

/* Navbar Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; min-width: 200px; border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12); padding: .5rem 0;
    z-index: 100; margin-top: .5rem;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.nav-dropdown .dropdown-menu li { padding: 0; }
.nav-dropdown .dropdown-menu a {
    display: block; padding: .6rem 1.2rem; color: #333;
    font-size: .88rem; font-weight: 500; transition: all .2s;
}
.nav-dropdown .dropdown-menu a:hover {
    background: #e8f0f8; color: #124491;
}

/* Hamburger */
.fkf-nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 24px; position: relative; z-index: 10002;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}
.fkf-nav-toggle span {
    display: block; width: 100%; height: 2px; background: #124491;
    position: absolute; left: 0; transition: all .3s;
}
.fkf-nav-toggle span:nth-child(1) { top: 2px; }
.fkf-nav-toggle span:nth-child(2) { top: 11px; }
.fkf-nav-toggle span:nth-child(3) { top: 20px; }
.fkf-nav-toggle.open span { background: #124491; }
.fkf-nav-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.fkf-nav-toggle.open span:nth-child(2) { opacity: 0; }
.fkf-nav-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ──────────────────────────────────────────────────────────────────────────
   HERO — DARK CINEMATIC
   ────────────────────────────────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
    padding-top: 56px; padding-bottom: 1rem;
}
.hero--dark { background: #0a0f0a; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg--dark {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(26,111,181,.2) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(249,168,37,.08) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 90%, rgba(198,40,40,.06) 0%, transparent 40%),
        linear-gradient(180deg, #0a1a0d 0%, #0d2810 40%, #091508 100%);
}
.hero-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}

/* ── Hero split layout ────────────────────────────────────────────────── */
.hero-split {
    position: relative; z-index: 3;
    display: flex; align-items: center; gap: 3rem;
    width: 100%; max-width: 1280px;
    margin: 0 auto; padding: 2rem 2.5rem;
}
.hero-left {
    flex: 1; position: relative; min-height: 420px;
}
.hero-right {
    flex-shrink: 0; width: 360px;
}

/* ── Hero phase switching ─────────────────────────────────────────────── */
.hero-phase {
    position: absolute;
    top: 50%; left: 0; right: 0;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
    pointer-events: none;
    text-align: center;
}
.hero-phase--active {
    opacity: 1;
    pointer-events: auto;
}

/* ── Phase B: Logo showcase ───────────────────────────────────────────── */
.hero-showcase {
    position: relative;
    width: 280px; height: 280px;
    margin: 0 auto 1.25rem;
    overflow: hidden;
}
.hero-showcase__logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 250px; height: 250px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid rgba(26,111,181,.15);
    box-shadow: 0 12px 50px rgba(26,111,181,.2);
    object-fit: cover;
    z-index: 3;
    animation: showcase-float 4s ease-in-out infinite;
}
@keyframes showcase-float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-12px); }
}
.hero-showcase__orbit { position: absolute; inset: 0; }
.hero-showcase__ring {
    position: absolute; border-radius: 50%;
    border: 2px solid rgba(26,111,181,.2);
}
.hero-showcase__ring--1 {
    inset: 0; animation: ring-spin 12s linear infinite;
    border-color: rgba(26,111,181,.25); border-style: dashed;
}
.hero-showcase__ring--2 {
    inset: 8px; animation: ring-spin 18s linear infinite reverse;
    border-color: rgba(249,168,37,.15); border-width: 1.5px;
}
.hero-showcase__ring--3 {
    inset: 18px; animation: ring-spin 25s linear infinite;
    border-color: rgba(26,111,181,.1); border-width: 1px; border-style: dotted;
}
@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hero-showcase__text {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem; font-weight: 900;
    letter-spacing: 10px; color: #fff;
    margin-bottom: .15rem;
}
.hero-showcase__sub {
    font-size: .8rem; color: rgba(255,255,255,.5);
    letter-spacing: 3px; text-transform: uppercase;
    font-weight: 600; margin-bottom: 1.5rem;
}

/* ── Phase C: Kenyan flag ──────────────────────────────────────────── */
.kenya-flag-wrap {
    display: flex; align-items: stretch;
    justify-content: center; margin-bottom: 1rem; margin-top: 1rem; gap: 0;
}
.flag-pole {
    width: 8px;
    background: linear-gradient(180deg, #a0a0a0 0%, #666 40%, #888 100%);
    border-radius: 4px; position: relative; flex-shrink: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,.3); min-height: 100%;
}
.flag-pole-cap {
    position: absolute; top: -14px; left: 50%;
    transform: translateX(-50%);
    width: 18px; height: 18px;
    background: radial-gradient(circle at 40% 35%, #d4af37, #a08520);
    border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.kenya-flag {
    position: relative; width: 380px; flex-shrink: 0;
    transform-origin: left center; animation: flag-sway 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 40px rgba(0,0,0,.35));
    overflow: hidden; border-radius: 2px;
}
.flag-img { width: 100%; height: auto; display: block; object-fit: cover; }
@keyframes flag-sway {
    0%   { transform: perspective(800px) rotateY(0deg)  skewY(0deg); }
    15%  { transform: perspective(800px) rotateY(6deg)  skewY(-1.5deg); }
    30%  { transform: perspective(800px) rotateY(-3deg) skewY(1deg); }
    50%  { transform: perspective(800px) rotateY(5deg)  skewY(-1deg); }
    70%  { transform: perspective(800px) rotateY(-2deg) skewY(.8deg); }
    85%  { transform: perspective(800px) rotateY(4deg)  skewY(-.6deg); }
    100% { transform: perspective(800px) rotateY(0deg)  skewY(0deg); }
}
.flag-text-block {
    background: rgba(0,0,0,.6); border-radius: 12px;
    padding: 1rem 1.75rem; max-width: 600px; margin: 0 auto;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.flag-quote {
    font-family: 'Outfit', Georgia, serif;
    font-size: 1.05rem; font-style: italic; font-weight: 500;
    color: #ffffff; max-width: 640px; text-align: center;
    line-height: 1.65; margin: 0 auto .75rem;
}
.flag-author {
    display: block; text-align: center;
    font-size: .88rem; color: #f5d060;
    letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase;
}

/* Hero logo */
.hero-logo-wrap {
    position: relative; display: inline-block; margin-bottom: 1rem;
}
.hero-logo-ring {
    display: none;
}
.hero-logo-img {
    width: 200px; height: auto;
    position: relative; z-index: 2;
    object-fit: contain;
}

/* Hero title — dark variant */
.hero--dark .hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem; font-weight: 900;
    line-height: 1.08; margin-bottom: .5rem;
    letter-spacing: -.5px; color: #fff;
}
.hero-line { display: block; }
.hero--dark .hero-line--accent { color: #F9A825; }

/* Alternate hero headline lines so they reveal in sequence */
.hero-title--alternate .hero-line--alt {
    opacity: 0;
    transform: translateY(14px) scale(.985);
    filter: blur(4px);
    will-change: opacity, transform, filter;
}
.hero-phase--active .hero-title--alternate .hero-line--alt {
    animation: hero-line-reveal .6s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-phase--active .hero-title--alternate .hero-line--alt-1 { animation-delay: .05s; }
.hero-phase--active .hero-title--alternate .hero-line--alt-2 { animation-delay: .85s; }
.hero-phase--active .hero-title--alternate .hero-line--alt-3 { animation-delay: 1.65s; }

@keyframes hero-line-reveal {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.985);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-phase--active .hero-title--alternate .hero-line--alt {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.hero--dark .hero-tagline {
    font-size: .75rem; color: rgba(255,255,255,.45);
    letter-spacing: 4px; text-transform: uppercase;
    font-weight: 600; margin-bottom: .75rem;
}
.hero--dark .hero-quote {
    font-size: .9rem; font-style: italic;
    color: rgba(255,255,255,.4); line-height: 1.6;
    margin-bottom: 1.25rem;
}
.hero-actions {
    display: flex; gap: .75rem; justify-content: center;
    flex-wrap: wrap; margin-bottom: 1.5rem;
}

/* Outline light button for dark hero */
.btn--outline-light {
    background: transparent; color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.25);
}
.btn--outline-light:hover {
    background: rgba(255,255,255,.1); color: #fff;
    border-color: rgba(255,255,255,.5);
}

/* ──────────────────────────────────────────────────────────────────────────
   COUNTDOWN CARD — GLASS MORPHISM + RING DIALS
   ────────────────────────────────────────────────────────────────────────── */
.cd-card {
    --cd-glow-1: rgba(249,168,37,.5);
    --cd-glow-2: rgba(26,111,181,.5);
    --cd-glow-3: rgba(198,40,40,.45);
    --cd-panel-bg: linear-gradient(145deg, rgba(12,24,14,.9), rgba(9,16,11,.88));
    --cd-panel-border: rgba(255,255,255,.12);
    --cd-edition-border: rgba(239,83,80,.4);
    --cd-edition-text: #EF5350;
    --cd-edition-bg: rgba(239,83,80,.14);
    --cd-host: #A5D6A7;
    --cd-meta: rgba(255,255,255,.58);
    --cd-live: #A5D6A7;
    --cd-dot: #3a7bd5;
    --cd-days: #F9A825;
    --cd-hrs: #3a7bd5;
    --cd-min: #EF5350;
    --cd-sec: #3a7bd5;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: cd-float 6s ease-in-out infinite;
    transition: transform .35s cubic-bezier(.16,1,.3,1),
                box-shadow .35s ease,
                filter .35s ease;
    box-shadow: 0 16px 45px rgba(0,0,0,.28);
}
.cd-card:hover {
    box-shadow: 0 26px 56px rgba(0,0,0,.36);
    filter: saturate(1.08);
}
.cd-card.cd-theme--aurora {
    --cd-glow-1: rgba(0,229,255,.5);
    --cd-glow-2: rgba(0,200,83,.45);
    --cd-glow-3: rgba(255,214,0,.45);
    --cd-panel-bg: linear-gradient(150deg, rgba(7,24,30,.9), rgba(8,20,15,.9));
    --cd-panel-border: rgba(77,208,225,.26);
    --cd-edition-border: rgba(0,229,255,.4);
    --cd-edition-text: #80DEEA;
    --cd-edition-bg: rgba(0,229,255,.12);
    --cd-host: #B9F6CA;
    --cd-meta: rgba(185,246,202,.7);
    --cd-live: #80DEEA;
    --cd-dot: #00E5FF;
    --cd-days: #00E5FF;
    --cd-hrs: #69F0AE;
    --cd-min: #FFD600;
    --cd-sec: #80D8FF;
}
.cd-card.cd-theme--sunset {
    --cd-glow-1: rgba(255,112,67,.55);
    --cd-glow-2: rgba(255,213,79,.5);
    --cd-glow-3: rgba(198,40,40,.45);
    --cd-panel-bg: linear-gradient(150deg, rgba(38,14,10,.9), rgba(24,9,10,.88));
    --cd-panel-border: rgba(255,171,145,.28);
    --cd-edition-border: rgba(255,138,101,.45);
    --cd-edition-text: #FFAB91;
    --cd-edition-bg: rgba(255,138,101,.16);
    --cd-host: #FFE082;
    --cd-meta: rgba(255,224,178,.72);
    --cd-live: #FFCC80;
    --cd-dot: #FF8A65;
    --cd-days: #FFD54F;
    --cd-hrs: #FF8A65;
    --cd-min: #EF5350;
    --cd-sec: #FFB74D;
}
.cd-card.cd-theme--forest {
    --cd-glow-1: rgba(174,213,129,.5);
    --cd-glow-2: rgba(67,160,71,.5);
    --cd-glow-3: rgba(129,199,132,.45);
    --cd-panel-bg: linear-gradient(150deg, rgba(8,24,11,.92), rgba(7,16,10,.9));
    --cd-panel-border: rgba(129,199,132,.24);
    --cd-edition-border: rgba(174,213,129,.4);
    --cd-edition-text: #C5E1A5;
    --cd-edition-bg: rgba(174,213,129,.14);
    --cd-host: #DCEDC8;
    --cd-meta: rgba(220,237,200,.7);
    --cd-live: #C5E1A5;
    --cd-dot: #AED581;
    --cd-days: #DCE775;
    --cd-hrs: #AED581;
    --cd-min: #81C784;
    --cd-sec: #4DB6AC;
}

@keyframes cd-float {
    0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateX(1.1deg) rotateY(-1.1deg); }
}
.cd-card__glow {
    position: absolute; inset: -2px;
    border-radius: 24px;
    background: conic-gradient(
        from var(--glow-angle, 0deg),
        var(--cd-glow-1),
        var(--cd-glow-2),
        var(--cd-glow-3),
        var(--cd-glow-1)
    );
    z-index: 0;
    animation: glow-spin 4s linear infinite;
    filter: blur(3px);
}
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes glow-spin {
    to { --glow-angle: 360deg; }
}
.cd-card__inner {
    position: relative; z-index: 1;
    background: var(--cd-panel-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--cd-panel-border);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center; color: #fff;
}
.cd-card__inner::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 68%);
    pointer-events: none;
}

.cd-edition {
    display: inline-block; padding: .25rem .7rem;
    border: 1px solid var(--cd-edition-border); border-radius: 50px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: var(--cd-edition-text);
    background: var(--cd-edition-bg); margin-bottom: .75rem;
}
.cd-title {
    font-family: 'Outfit', sans-serif; font-size: 1.8rem;
    font-weight: 900; line-height: 1.1; color: #fff;
    margin-bottom: .25rem; letter-spacing: 1px;
}
.cd-host {
    display: flex; align-items: center; justify-content: center;
    gap: .35rem; font-size: .78rem; color: var(--cd-host);
    font-weight: 600; margin-bottom: 1.25rem;
}
.cd-host svg { opacity: .7; }

/* Timer ring dials */
.cd-timer {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: .4rem; margin-bottom: 1.25rem;
}
.cd-unit { text-align: center; }
.cd-ring {
    position: relative;
    width: 70px; height: 70px;
    margin: 0 auto .25rem;
}
.cd-ring svg {
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}
.cd-ring__track {
    fill: none;
    stroke: rgba(255,255,255,.06);
    stroke-width: 3;
}
.cd-ring__fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 226.2;
    stroke-dashoffset: 226.2;
    transition: stroke-dashoffset 1s ease, stroke .6s ease;
}
.cd-ring__fill--days { stroke: var(--cd-days); }
.cd-ring__fill--hrs  { stroke: var(--cd-hrs); }
.cd-ring__fill--min  { stroke: var(--cd-min); }
.cd-ring__fill--sec  { stroke: var(--cd-sec); }

.cd-num {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem; font-weight: 900; color: #fff;
    letter-spacing: 1px;
}
.cd-label {
    font-size: .75rem; font-weight: 600;
    color: rgba(255,255,255,.4);
    text-transform: uppercase; letter-spacing: 1.5px;
}

/* Meta + CTA */
.cd-meta { margin-bottom: 1rem; }
.cd-date {
    display: flex; align-items: center; justify-content: center;
    gap: .35rem; font-size: .75rem; color: var(--cd-meta);
}
.cd-date svg { opacity: .5; }
.cd-cta { }
.cd-live {
    display: flex; align-items: center; justify-content: center;
    gap: .4rem; font-size: .75rem; font-weight: 600;
    color: var(--cd-live); margin-bottom: .65rem;
}
.cd-live__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cd-dot);
    box-shadow: 0 0 10px color-mix(in srgb, var(--cd-dot) 65%, transparent);
    animation: cd-pulse 2s ease-in-out infinite;
}
@keyframes cd-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(.7); }
}

/* ──────────────────────────────────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .75rem 1.75rem; border-radius: 8px;
    font-size: .9rem; font-weight: 600; letter-spacing: .2px;
    transition: all .3s; cursor: pointer; border: none;
    text-decoration: none;
}
.btn--primary {
    background: #124491; color: #fff;
    box-shadow: 0 4px 18px rgba(26,111,181,.25);
}
.btn--primary:hover {
    background: #124491; transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,111,181,.3); color: #fff;
}
.btn--outline {
    background: transparent; color: #124491;
    border: 1px solid #124491;
}
.btn--outline:hover {
    background: #124491; color: #fff;
}
.btn--lg { padding: .9rem 2.2rem; font-size: .95rem; }
.btn--sm { padding: .45rem 1rem; font-size: .75rem; }

/* ──────────────────────────────────────────────────────────────────────────
   STATS TICKER
   ────────────────────────────────────────────────────────────────────────── */
.ticker {
    background: #124491; padding: .85rem 0; overflow: hidden;
}
.ticker-track { overflow: hidden; }
.ticker-content {
    display: flex; align-items: center; gap: 1.5rem;
    animation: ticker-scroll 22s linear infinite;
    white-space: nowrap; width: max-content;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item { font-size: .85rem; color: rgba(255,255,255,.75); }
.ticker-item strong { color: #fff; font-weight: 700; margin-right: .2rem; }
.ticker-sep { color: rgba(255,255,255,.3); font-size: .7rem; }

/* ──────────────────────────────────────────────────────────────────────────
   SECTIONS
   ────────────────────────────────────────────────────────────────────────── */
.sec { padding: 2.5rem 0; background: #fff; }
.sec--dark { background: #f5f7f5; }

.sec-head { text-align: center; margin-bottom: 1.5rem; }
.sec-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem; font-weight: 800; color: #1a1a1a;
    line-height: 1.15; letter-spacing: -.3px; margin-bottom: .4rem;
}
.sec-line {
    width: 45px; height: 3px;
    background: linear-gradient(90deg, #124491, #E8B91E);
    margin: .8rem auto 0; border-radius: 2px;
}
.badge {
    display: inline-block; padding: .3rem .85rem;
    border: 1px solid rgba(26,111,181,.2); border-radius: 50px;
    font-size: .75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; color: #124491; margin-bottom: .8rem;
    background: rgba(26,111,181,.04);
}
.badge--red { border-color: rgba(198,40,40,.2); color: #C62828; background: rgba(198,40,40,.04); }

/* ──────────────────────────────────────────────────────────────────────────
   FEATURES
   ────────────────────────────────────────────────────────────────────────── */
.features-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.feature {
    padding: 1.25rem 1rem;
    border: 1px solid #e8e8e8; border-radius: 12px;
    background: #fff; transition: all .4s;
    position: relative; overflow: hidden;
}
.feature::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #124491, #E8B91E);
    opacity: 0; transition: opacity .4s;
}
.feature:hover::before { opacity: 1; }
.feature:hover {
    border-color: rgba(26,111,181,.2);
    transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08);
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(26,111,181,.08);
    color: #124491;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .85rem;
    transition: all .4s;
}
.feature-icon--gold { background: rgba(249,168,37,.1); color: #F9A825; }
.feature-icon--red { background: rgba(198,40,40,.08); color: #C62828; }
.feature:hover .feature-icon {
    background: #124491;
    color: #fff;
    transform: scale(1.08);
}
.feature:hover .feature-icon--gold { background: #F9A825; color: #fff; }
.feature:hover .feature-icon--red { background: #C62828; color: #fff; }
.feature h3 {
    font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin-bottom: .5rem;
}
.feature p {
    font-size: .85rem; color: #777; line-height: 1.65;
}

/* ──────────────────────────────────────────────────────────────────────────
   CARD GRID
   ────────────────────────────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 1rem; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ──────────────────────────────────────────────────────────────────────────
   MATCH CARDS (Fixtures)
   ────────────────────────────────────────────────────────────────────────── */
.match-card {
    background: #fff; border: 1px solid #e8e8e8;
    border-radius: 14px; overflow: hidden; transition: all .35s;
}
.match-card:hover {
    border-color: rgba(26,111,181,.2); transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.match-card__comp {
    padding: .6rem 1.15rem; font-size: .7rem; font-weight: 600;
    color: #124491; text-transform: uppercase;
    letter-spacing: .8px; border-bottom: 1px solid #f0f0f0;
    background: rgba(26,111,181,.03);
}
.match-card__body {
    padding: 1.25rem; display: flex; align-items: center; gap: .75rem;
}
.match-card__team { flex: 1; text-align: center; }
.team-badge {
    width: 44px; height: 44px; border-radius: 50%;
    background: #f0f7f1; display: flex;
    align-items: center; justify-content: center;
    margin: 0 auto .4rem; color: #124491;
}
.match-card__team span { font-size: .85rem; font-weight: 600; color: #1a1a1a; }
.match-card__vs { text-align: center; flex-shrink: 0; }
.match-card__vs strong {
    display: block; font-size: .95rem; font-weight: 800;
    color: #C62828; letter-spacing: 2px;
}
.match-card__vs small { font-size: .68rem; color: #999; }
.match-card__foot {
    padding: .55rem 1.15rem; border-top: 1px solid #f0f0f0;
    font-size: .75rem; color: #999;
    display: flex; align-items: center; gap: .35rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   STATS BAR
   ────────────────────────────────────────────────────────────────────────── */
.stats-bar {
    padding: 2.5rem 0; position: relative;
    background: linear-gradient(135deg, #124491 0%, #124491 100%);
}
.stats-bar::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,.08) 0%, transparent 60%);
}
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    position: relative; z-index: 1;
}
.stat-item { text-align: center; padding: 1rem .75rem; }
.stat-num {
    font-family: 'Outfit', sans-serif; font-size: 2.8rem;
    font-weight: 900; color: #fff; line-height: 1; margin-bottom: .2rem;
}
.stat-label {
    font-size: .72rem; color: rgba(255,255,255,.7);
    text-transform: uppercase; letter-spacing: 2px; font-weight: 500;
}

/* ──────────────────────────────────────────────────────────────────────────
   RESULT CARDS
   ────────────────────────────────────────────────────────────────────────── */
.result-card {
    background: #fff; border: 1px solid #e8e8e8;
    border-radius: 14px; overflow: hidden; transition: all .35s;
}
.result-card:hover {
    border-color: rgba(26,111,181,.2); transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.result-card__head {
    padding: .6rem 1.15rem; font-size: .7rem; font-weight: 600;
    color: #124491; text-transform: uppercase; letter-spacing: .8px;
    border-bottom: 1px solid #f0f0f0;
    display: flex; justify-content: space-between;
    background: rgba(26,111,181,.03);
}
.result-card__head span:last-child { font-weight: 400; text-transform: none; letter-spacing: 0; color: #999; }
.result-card__body {
    padding: 1.25rem; display: flex; align-items: center; gap: .75rem;
}
.result-card__team {
    flex: 1; font-size: .88rem; font-weight: 600; color: #1a1a1a;
    text-align: center;
}
.result-card__score {
    display: flex; align-items: center; gap: .4rem; flex-shrink: 0;
}
.result-card__score span {
    font-family: 'Outfit', sans-serif; font-size: 2rem;
    font-weight: 800; color: #1a1a1a;
}
.result-card__score em {
    font-style: normal; font-size: 1.1rem; color: #ccc;
}
.result-card__ft {
    padding: .55rem 1.15rem; border-top: 1px solid #f0f0f0;
    font-size: .68rem; font-weight: 600; color: #124491;
    text-transform: uppercase; letter-spacing: 1px; text-align: center;
    background: rgba(26,111,181,.03);
}

/* ──────────────────────────────────────────────────────────────────────────
   STORIES CAROUSEL
   ────────────────────────────────────────────────────────────────────────── */
.stories-section { overflow: hidden; }
.stories-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
}
.story-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translateX(60px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.25,.46,.45,.94);
}
.story-slide--active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    transform: translateX(0);
}
.story-slide--exit-left {
    opacity: 0;
    transform: translateX(-60px);
    z-index: 1;
}
.story-slide--exit-right {
    opacity: 0;
    transform: translateX(60px);
    z-index: 1;
}

/* Image-only slides — Ken Burns zoom */
.story-slide__img {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.story-slide__img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 6s ease-out;
}
.story-slide--active .story-slide__img img {
    transform: scale(1.06);
}
.story-slide__overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 100%);
    color: #fff;
    transform: translateY(15px);
    opacity: 0;
    transition: transform .5s cubic-bezier(.16,1,.3,1) .25s, opacity .5s ease .25s;
}
.story-slide--active .story-slide__overlay {
    transform: translateY(0);
    opacity: 1;
}
.story-slide__overlay h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem; font-weight: 800;
    margin-top: .4rem;
}
.story-slide__tag {
    display: inline-block;
    font-size: .65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: #A5D6A7;
    background: rgba(26,111,181,.4);
    padding: .25rem .7rem;
    border-radius: 20px;
}

/* Split slides (story + image) */
.story-slide__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.story-slide__split .story-slide__img img { height: 100%; min-height: 360px; }
.story-slide__text {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: transform .6s cubic-bezier(.16,1,.3,1) .2s, opacity .6s ease .2s;
}
.story-slide--active .story-slide__text {
    transform: translateY(0);
    opacity: 1;
}
.story-slide__text .story-slide__tag {
    color: #124491;
    background: rgba(26,111,181,.08);
    align-self: flex-start;
}
.story-slide__text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem; font-weight: 800;
    color: #1a1a1a;
    margin: .75rem 0 .6rem;
    line-height: 1.3;
}
.story-slide__text p {
    font-size: .88rem; color: #666;
    line-height: 1.7;
    margin-bottom: .5rem;
}

/* Controls */
.stories-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.stories-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: all .25s;
}
.stories-btn:hover {
    border-color: #124491;
    color: #124491;
    background: rgba(26,111,181,.05);
}
.stories-dots {
    display: flex;
    gap: .5rem;
}
.stories-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: all .3s;
    padding: 0;
}
.stories-dot--active {
    background: #124491;
    transform: scale(1.3);
}

/* Progress bar for auto-advance */
.stories-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px; width: 0;
    background: linear-gradient(90deg, #124491, #E8B91E);
    z-index: 10;
    animation: storyProgress 6s linear infinite;
}
@keyframes storyProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* ── Story subsection cards ──────────────────────────────────────────── */
.story-subs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.story-sub {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .35s, box-shadow .35s;
}
.story-sub:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}
.story-sub img {
    width: 100%; height: 160px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.story-sub:hover img {
    transform: scale(1.06);
}
.story-sub__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: .85rem;
    color: #fff;
}
.story-sub__tag {
    display: inline-block;
    font-size: .55rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #A5D6A7;
    margin-bottom: .25rem;
}
.story-sub__title {
    font-family: 'Outfit', sans-serif;
    font-size: .82rem; font-weight: 700;
    line-height: 1.3;
}
.story-sub__active-ring {
    position: absolute;
    inset: 0;
    border: 2px solid #E8B91E;
    border-radius: 12px;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.story-sub--active .story-sub__active-ring {
    opacity: 1;
}

/* Responsive — story subs */
@media (max-width: 768px) {
    .story-subs { grid-template-columns: repeat(2, 1fr); }
    .story-sub img { height: 130px; }
}
@media (max-width: 480px) {
    .story-subs { grid-template-columns: 1fr 1fr; gap: .65rem; }
    .story-sub img { height: 110px; }
    .story-sub__title { font-size: .72rem; }
    .story-sub__overlay { padding: .6rem; }
}

/* Responsive — stories carousel */
@media (max-width: 768px) {
    .story-slide__split { grid-template-columns: 1fr; }
    .story-slide__split .story-slide__img img { height: 220px; min-height: unset; }
    .story-slide__text { padding: 1.5rem; }
    .story-slide__text h3 { font-size: 1.15rem; }
    .story-slide__img img { height: 280px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   EMPTY STATE
   ────────────────────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 2.5rem 1rem; color: #bbb;
}
.empty-state svg { margin-bottom: .75rem; }
.empty-state h3 { font-size: 1.15rem; color: #888; margin-bottom: .3rem; }
.empty-state p { font-size: .85rem; }

/* ──────────────────────────────────────────────────────────────────────────
   CTA
   ────────────────────────────────────────────────────────────────────────── */
.cta-section { padding: 2.5rem 0; background: var(--bg); }
.cta-box {
    text-align: center; padding: 3rem 2rem;
    border: 1px solid #e8e8e8; border-radius: 20px;
    background: linear-gradient(135deg, #f0f7f1 0%, #fff 40%, #fffce8 70%, #fef5f5 100%);
    position: relative; overflow: hidden;
}
.cta-logo {
    width: 56px; height: 56px; border-radius: 50%;
    background: #fff; border: 2px solid rgba(26,111,181,.12);
    margin: 0 auto 1rem; object-fit: cover;
    box-shadow: 0 4px 16px rgba(26,111,181,.08);
}
.cta-box h2 {
    font-family: 'Outfit', sans-serif; font-size: 2rem;
    font-weight: 800; color: #1a1a1a; margin-bottom: .5rem;
}
.cta-box p {
    font-size: .95rem; color: #777;
    max-width: 500px; margin: 0 auto 1.75rem; line-height: 1.65;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ──────────────────────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────────────────────── */
.fkf-footer { background: #1a1a2e; }
.fkf-footer-main { padding: 2rem 0 1.25rem; }
.fkf-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1rem;
}
.fkf-footer-brand-top {
    display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem;
}
.fkf-footer-brand-top img {
    height: 36px; width: 36px; border-radius: 50%;
    background: #fff; border: 2px solid rgba(255,255,255,.1);
    object-fit: cover;
}
.fkf-footer-brand-top h3 {
    font-family: 'Outfit', sans-serif; color: #fff;
    font-size: .9rem; letter-spacing: 2px;
}
.fkf-footer-brand p {
    font-size: .75rem; color: rgba(255,255,255,.4); line-height: 1.6;
}
.fkf-footer-grid h4 {
    font-size: .65rem; font-weight: 600; color: rgba(255,255,255,.55);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: .6rem;
}
.fkf-footer-grid ul { list-style: none; }
.fkf-footer-grid ul li { margin-bottom: .25rem; }
.fkf-footer-grid ul a {
    color: rgba(255,255,255,.4); font-size: .75rem; transition: color .3s;
}
.fkf-footer-grid ul a:hover { color: #A5D6A7; }
.fkf-footer-grid ul li:not(:has(a)) { color: rgba(255,255,255,.4); font-size: .75rem; }

.fkf-social { display: flex; gap: .4rem; margin-top: .6rem; }
.fkf-social a {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12); display: flex;
    align-items: center; justify-content: center;
    color: rgba(255,255,255,.4); font-size: .8rem; transition: all .3s;
}
.fkf-social a:hover { background: #124491; border-color: #124491; color: #fff; }

.fkf-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: .75rem 0; text-align: center;
    font-size: .75rem; color: rgba(255,255,255,.3);
}

/* ──────────────────────────────────────────────────────────────────────────
   KENYA STRIPE
   ────────────────────────────────────────────────────────────────────────── */
.kenya-stripe {
    height: 4px;
    background: linear-gradient(to right,
        #000 0%, #000 25%,
        #C62828 25%, #C62828 50%,
        #fff 50%, #fff 55%,
        #006600 55%, #006600 80%,
        #fff 80%, #fff 85%,
        #C62828 85%, #C62828 100%
    );
}

/* btn--gold (shared) */
.btn--gold {
    background: linear-gradient(135deg, #F9A825, #F57F17);
    color: #1a1a1a; border: none; font-weight: 700;
    border-radius: 50px; letter-spacing: .5px;
}
.btn--gold:hover {
    background: linear-gradient(135deg, #FFB300, #F9A825);
    transform: translateY(-1px); box-shadow: 0 4px 16px rgba(249,168,37,.3);
    color: #1a1a1a;
}

/* ──────────────────────────────────────────────────────────────────────────
   STORIES — FULLSCREEN IMMERSIVE WITH LOGO WATERMARK
   ────────────────────────────────────────────────────────────────────────── */
.stories-hero {
    position: relative; width: 100%; height: 80vh; min-height: 500px;
    overflow: hidden; background: #111;
}
.stories-hero__watermark {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; opacity: .05; pointer-events: none;
}
.stories-hero__watermark img {
    width: 320px; height: 320px; object-fit: contain;
}
.stories-hero__slides { position: absolute; inset: 0; }

.story-panel {
    position: absolute; inset: 0;
    opacity: 0; z-index: 1;
    transition: opacity 1.2s ease;
}
.story-panel--active { opacity: 1; z-index: 2; }

.story-panel__bg {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1); transition: transform 8s ease-out;
}
.story-panel--active .story-panel__bg {
    transform: scale(1);
}
.story-panel__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.05) 100%);
}
.story-panel__content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 3rem 3.5rem; z-index: 3; color: #fff;
    max-width: 700px;
    transform: translateY(25px); opacity: 0;
    transition: all .9s cubic-bezier(.16,1,.3,1) .4s;
}
.story-panel--active .story-panel__content {
    transform: translateY(0); opacity: 1;
}
.story-panel__tag {
    display: inline-block; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2.5px;
    color: #A5D6A7; background: rgba(26,111,181,.45);
    padding: .28rem .75rem; border-radius: 20px;
}
.story-panel__title {
    font-family: 'Outfit', sans-serif; font-size: 2rem;
    font-weight: 800; margin-top: .6rem; line-height: 1.2;
}
.story-panel__desc {
    font-size: .9rem; color: rgba(255,255,255,.75);
    line-height: 1.7; margin-top: .5rem; max-width: 560px;
}

/* Stories nav (dots + progress) */
.stories-hero__nav {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%); z-index: 10;
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.stories-hero__dots { display: flex; gap: .5rem; }
.sh-dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4); background: transparent;
    cursor: pointer; transition: all .3s; padding: 0;
}
.sh-dot--active {
    background: #F9A825; border-color: #F9A825;
    transform: scale(1.3);
}
.sh-dot:hover:not(.sh-dot--active) { border-color: rgba(255,255,255,.8); }

.stories-hero__progress {
    width: 80px; height: 2px; background: rgba(255,255,255,.15);
    border-radius: 2px; overflow: hidden; position: relative;
}
.stories-hero__progress::after {
    content: ""; position: absolute; inset: 0;
    background: #F9A825; width: 0;
    animation: storyAutoProgress 5s linear infinite;
}
@keyframes storyAutoProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* Story counter */
.stories-hero__counter {
    position: absolute; top: 2rem; right: 3rem; z-index: 10;
    font-family: 'Outfit', sans-serif; font-size: .85rem;
    font-weight: 700; color: rgba(255,255,255,.5);
    letter-spacing: 2px;
}
.stories-hero__counter span { color: #fff; font-size: 1.1rem; }

/* ──────────────────────────────────────────────────────────────────────────
   MATCH CENTER — STATS + FIXTURES + RESULTS
   ────────────────────────────────────────────────────────────────────────── */
.match-center { background: #fff; }

/* Stats strip */
.mc-stats {
    background: linear-gradient(135deg, #0D3B0F 0%, #124491 60%, #124491 100%);
    padding: 1rem 0; position: relative;
}
.mc-stats::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,.06) 0%, transparent 60%);
}
.mc-stats__row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1rem; position: relative; z-index: 1;
}
.mc-stat { text-align: center; padding: .4rem .5rem; }
.mc-stat__num {
    font-family: 'Outfit', sans-serif; font-size: 1.8rem;
    font-weight: 900; color: #fff; display: block;
    line-height: 1; margin-bottom: .15rem;
}
.mc-stat__label {
    font-size: .75rem; color: rgba(255,255,255,.55);
    text-transform: uppercase; letter-spacing: 2px; font-weight: 500;
}

/* Content area */
.mc-content { padding: 3rem 0; }
.mc-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.mc-col__head {
    display: flex; align-items: center; gap: .65rem;
    margin-bottom: 1.2rem;
}
.mc-col__title {
    font-family: 'Outfit', sans-serif; font-size: 1.25rem;
    font-weight: 800; color: #1a1a1a;
}
.mc-badge {
    display: inline-block; padding: .22rem .6rem;
    border-radius: 50px; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: #124491; border: 1px solid rgba(26,111,181,.2);
    background: rgba(26,111,181,.04);
}
.mc-badge--red {
    color: #C62828; border-color: rgba(198,40,40,.25);
    background: rgba(198,40,40,.05);
}

/* Fixture cards */
.mc-cards { display: flex; flex-direction: column; gap: .75rem; }
.mc-card {
    background: #fff; border: 1px solid #eaeaea;
    border-radius: 12px; overflow: hidden;
    transition: all .3s;
}
.mc-card:hover {
    border-color: rgba(26,111,181,.2); transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.mc-card__comp {
    padding: .45rem .9rem; font-size: .62rem; font-weight: 600;
    color: #124491; text-transform: uppercase; letter-spacing: .8px;
    border-bottom: 1px solid #f0f0f0; background: rgba(26,111,181,.025);
}
.mc-card__body {
    padding: .85rem; display: flex; align-items: center; gap: .5rem;
}
.mc-card__team {
    flex: 1; font-size: .82rem; font-weight: 600; color: #1a1a1a;
    text-align: center;
}
.mc-card__vs {
    text-align: center; flex-shrink: 0; padding: 0 .25rem;
}
.mc-card__vs strong {
    display: block; font-size: .8rem; font-weight: 800;
    color: #C62828; letter-spacing: 2px;
}
.mc-card__vs small { font-size: .6rem; color: #999; display: block; margin-top: .15rem; }
.mc-card__foot {
    padding: .4rem .9rem; border-top: 1px solid #f0f0f0;
    font-size: .68rem; color: #999;
    display: flex; align-items: center; gap: .3rem;
}

/* Result cards */
.mc-result {
    background: #fff; border: 1px solid #eaeaea;
    border-radius: 12px; overflow: hidden;
    transition: all .3s;
}
.mc-result:hover {
    border-color: rgba(26,111,181,.2); transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.mc-result__head {
    padding: .45rem .9rem; font-size: .62rem; font-weight: 600;
    color: #124491; border-bottom: 1px solid #f0f0f0;
    display: flex; justify-content: space-between;
    background: rgba(26,111,181,.025);
}
.mc-result__head span:last-child { color: #999; font-weight: 400; text-transform: none; }
.mc-result__body {
    padding: .85rem; display: flex; align-items: center; gap: .5rem;
}
.mc-result__body > span {
    flex: 1; font-size: .82rem; font-weight: 600; color: #1a1a1a;
    text-align: center;
}
.mc-result__score {
    display: flex; align-items: center; gap: .3rem; flex-shrink: 0;
}
.mc-result__score strong {
    font-family: 'Outfit', sans-serif; font-size: 1.6rem;
    font-weight: 800; color: #1a1a1a;
}
.mc-result__score em { font-style: normal; color: #ccc; font-size: .9rem; }
.mc-result__ft {
    padding: .35rem .9rem; border-top: 1px solid #f0f0f0;
    font-size: .58rem; font-weight: 600; color: #124491;
    text-transform: uppercase; letter-spacing: 1px; text-align: center;
    background: rgba(26,111,181,.025);
}

/* Empty state */
.mc-empty {
    text-align: center; padding: 2.5rem 1rem; color: #bbb;
}
.mc-empty svg { margin-bottom: .5rem; }
.mc-empty p { font-size: .85rem; color: #999; }

/* ──────────────────────────────────────────────────────────────────────────
   REVEAL ANIMATIONS
   ────────────────────────────────────────────────────────────────────────── */
.reveal, .anim-up {
    opacity: 0; transform: translateY(35px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1),
                transform .7s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--delay, 0s);
}
.anim-zoom {
    opacity: 0; transform: scale(.85);
    transition: opacity .7s cubic-bezier(.16,1,.3,1),
                transform .7s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--delay, 0s);
}
.reveal.in-view, .anim-up.in-view { opacity: 1; transform: translateY(0); }
.anim-zoom.in-view { opacity: 1; transform: scale(1); }

/* ──────────────────────────────────────────────────────────────────────────
   PAGE HERO — DARK CINEMATIC (inner pages)
   ────────────────────────────────────────────────────────────────────────── */
.page-hero {
    position: relative; min-height: 260px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
    padding-top: 72px; padding-bottom: 1.5rem;
    background: #0C1B3A;
}
.page-hero__bg {
    position: absolute; inset: 0;
}
.page-hero__gradient {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(26,111,181,.25) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(232,185,30,.08) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 90%, rgba(46,125,50,.06) 0%, transparent 40%),
        linear-gradient(135deg, #0C1B3A 0%, #163A5C 40%, #124491 100%);
}
.page-hero__canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}
.page-hero__inner {
    position: relative; z-index: 3;
}
.page-hero__badge {
    display: inline-block; padding: .3rem .85rem;
    border: 1px solid rgba(26,111,181,.35); border-radius: 50px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2.5px; color: #E8B91E;
    background: rgba(26,111,181,.12); margin-bottom: .75rem;
}
.page-hero__title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem; font-weight: 900; line-height: 1.1;
    color: #fff; margin-bottom: .35rem; letter-spacing: -.5px;
}
.text-gold { color: #E8B91E; }
.page-hero__sub {
    font-size: .95rem; color: rgba(255,255,255,.5);
    max-width: 540px; margin: 0 auto .75rem; line-height: 1.6;
}
.page-hero__breadcrumb {
    display: flex; align-items: center; justify-content: center;
    gap: .4rem; font-size: .75rem; color: rgba(255,255,255,.35);
}
.page-hero__breadcrumb a {
    color: rgba(255,255,255,.5); transition: color .2s;
}
.page-hero__breadcrumb a:hover { color: #E8B91E; }
.page-hero__breadcrumb svg { opacity: .4; }

/* ──────────────────────────────────────────────────────────────────────────
   ABOUT PAGE — Prose, Mission/Vision, Values, Stats
   ────────────────────────────────────────────────────────────────────────── */
.about-prose p {
    font-size: 1.05rem; line-height: 1.85; color: #444; margin-bottom: 1rem;
}
.about-prose p:last-child { margin-bottom: 0; }
.sec-sub {
    max-width: 620px; margin: .5rem auto 0;
    color: #666; font-size: .92rem; line-height: 1.65;
}

/* Mission / Vision cards */
.mv-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.mv-card {
    position: relative; background: #fff; border-radius: 14px;
    padding: 1.25rem 1.15rem; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: transform .35s, box-shadow .35s;
}
.mv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.1);
}
.mv-card__accent {
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.mv-card__accent--green { background: linear-gradient(90deg, #124491, #E8B91E); }
.mv-card__accent--gold { background: linear-gradient(90deg, #F9A825, #FFB300); }
.mv-card__icon { margin-bottom: 1rem; }
.mv-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem; font-weight: 800; color: #1a1a1a; margin-bottom: .65rem;
}
.mv-card__text {
    font-size: .9rem; line-height: 1.7; color: #555;
}

/* Core values grid */
.values-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.value-card {
    text-align: center; background: #fff; border-radius: 12px;
    padding: 1.25rem 1rem; transition: all .35s;
    border: 1px solid #e8e8e8;
}
.value-card:hover {
    border-color: rgba(26,111,181,.2);
    transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.value-card__icon {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(26,111,181,.08); color: #124491;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .85rem; transition: all .35s;
}
.value-card__icon--gold { background: rgba(249,168,37,.1); color: #F9A825; }
.value-card__icon--red { background: rgba(198,40,40,.08); color: #C62828; }
.value-card:hover .value-card__icon { background: #124491; color: #fff; transform: scale(1.1); }
.value-card:hover .value-card__icon--gold { background: #F9A825; }
.value-card:hover .value-card__icon--red { background: #C62828; }
.value-card__title {
    font-size: 1rem; font-weight: 700; color: #1a1a1a; margin-bottom: .4rem;
}
.value-card__text {
    font-size: .84rem; color: #666; line-height: 1.65;
}

/* About stats dark strip */
.about-stats {
    position: relative; padding: 2.5rem 0; overflow: hidden;
    background: #0C1B3A;
}
.about-stats__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 25% 50%, rgba(26,111,181,.25) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 50%, rgba(232,185,30,.1) 0%, transparent 45%),
        linear-gradient(135deg, #0C1B3A, #163A5C, #124491);
}
.about-stats__inner { position: relative; z-index: 2; }
.about-stats__grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 1rem; text-align: center;
}
.about-stat { padding: .75rem .5rem; }
.about-stat__num {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem; font-weight: 900; color: #fff;
    margin-bottom: .25rem; letter-spacing: 1px;
}
.about-stat__label {
    font-size: .75rem; font-weight: 600;
    color: rgba(255,255,255,.45);
    text-transform: uppercase; letter-spacing: 1.5px;
}

/* ──────────────────────────────────────────────────────────────────────────
   COMPETITIONS PAGE — Sport tiles, Competition rows
   ────────────────────────────────────────────────────────────────────────── */
/* Discipline grid — grouped tiles with dropdown links */
.disc-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.15rem;
}
.disc-tile {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: .4rem; padding: 1.5rem 1.25rem 1rem;
    border-radius: 14px; background: #fff; border: 2px solid #e8e8e8;
    text-align: center; transition: all .3s; overflow: hidden;
}
.disc-tile:hover {
    border-color: #124491; box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.disc-tile--exh { border-style: dashed; background: #f9faf9; }
.disc-tile__icon { font-size: 2.4rem; line-height: 1; }
.disc-tile__name { font-weight: 700; font-size: 1rem; color: #1a1a1a; }
.disc-tile__badge {
    font-size: .65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; padding: .2rem .6rem; border-radius: 50px;
}
.disc-tile__badge--muted { background: #9E9E9E; color: #fff; }
.disc-tile__links {
    display: flex; flex-direction: column; gap: 0;
    width: 100%; margin-top: .5rem;
    border-top: 1px solid #eee; padding-top: .5rem;
}
.disc-tile__link {
    display: flex; align-items: center; gap: .4rem;
    padding: .5rem .75rem; border-radius: 8px;
    font-size: .85rem; font-weight: 600; color: #124491;
    text-decoration: none; transition: all .2s;
}
.disc-tile__link:hover {
    background: rgba(26,111,181,.06); color: #0d3a10;
}
.disc-tile__link svg { opacity: .5; transition: transform .2s; }
.disc-tile__link:hover svg { opacity: 1; transform: translateX(3px); }

/* Sport filter bar on results page */
.sport-filter-bar {
    display: flex; align-items: center; gap: .65rem;
    justify-content: center; flex-wrap: wrap;
    padding: .65rem 1.25rem; margin-top: .75rem;
    border-radius: 10px; background: rgba(26,111,181,.05);
    border: 1px solid rgba(26,111,181,.12);
}
.sport-filter-bar__label { font-size: .82rem; color: #888; }
.sport-filter-bar__value {
    font-size: .88rem; font-weight: 700; color: #124491;
}
.sport-filter-bar__clear {
    display: inline-flex; align-items: center; gap: .25rem;
    font-size: .78rem; font-weight: 600; color: #C62828;
    text-decoration: none; padding: .25rem .6rem;
    border-radius: 6px; transition: all .2s;
}
.sport-filter-bar__clear:hover { background: rgba(198,40,40,.06); }

/* Competition cards — unified */
.comp-card {
    display: flex; align-items: stretch;
    background: #fff; border-radius: 14px;
    border: 1px solid #e8e8e8; overflow: hidden;
    margin-bottom: 1rem; transition: all .3s;
}
.comp-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.07);
    transform: translateY(-2px);
}
.comp-card__accent {
    width: 5px; flex-shrink: 0;
}
.comp-card--active .comp-card__accent { background: #124491; }
.comp-card--upcoming .comp-card__accent { background: #F9A825; }
.comp-card--completed .comp-card__accent { background: #BDBDBD; }
.comp-card--empty .comp-card__accent { background: #e0e0e0; }
.comp-card--completed { opacity: .78; }
.comp-card--completed:hover { opacity: 1; }
.comp-card__inner {
    flex: 1; padding: 1rem 1.15rem;
}
.comp-card__header {
    display: flex; align-items: flex-start; gap: .85rem;
    margin-bottom: .65rem;
}
.comp-card__icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.comp-card__icon--green { background: rgba(26,111,181,.08); color: #124491; }
.comp-card__icon--gold { background: rgba(249,168,37,.1); color: #F9A825; }
.comp-card__icon--muted { background: rgba(0,0,0,.04); color: #9E9E9E; }
.comp-card__title-group { flex: 1; min-width: 0; }
.comp-card__name {
    font-size: 1.1rem; font-weight: 700; color: #1a1a1a;
    margin: 0 0 .35rem; line-height: 1.3;
}
.comp-card__chips {
    display: flex; gap: .4rem; flex-wrap: wrap;
}
.comp-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .75rem; font-weight: 600;
    padding: .3rem .8rem; border-radius: 50px;
    background: #f5f5f5; color: #666;
    line-height: 1.3;
}
.comp-chip__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; flex-shrink: 0;
}
.comp-chip--green { background: #E8F5E9; color: #2E7D32; }
.comp-chip--gold { background: #FFF8E1; color: #EF6C00; }
.comp-chip--blue { background: #e8edf5; color: #124491; }
.comp-chip--muted { background: #ECEFF1; color: #78909C; }
.comp-chip--outline {
    background: transparent; border: 1px solid rgba(26,111,181,.25);
    color: #124491;
}
.comp-card__desc {
    font-size: .88rem; color: #666; line-height: 1.65;
    margin-bottom: .65rem;
}
.comp-card__meta {
    display: flex; flex-wrap: wrap; gap: 1.25rem;
    font-size: .82rem; color: #888; margin-bottom: .75rem;
}
.comp-card__meta span {
    display: inline-flex; align-items: center; gap: .35rem;
}
.comp-card__meta svg { color: #aaa; }
.comp-card__actions {
    display: flex; gap: .5rem; flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────────────────────────
   RESULTS PAGE — Tabs, Competition hub cards
   ────────────────────────────────────────────────────────────────────────── */
.results-tabs {
    display: flex; gap: .5rem; justify-content: center;
    flex-wrap: wrap; margin-bottom: 1.5rem;
}
.results-tab {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.3rem; border-radius: 50px;
    font-size: .85rem; font-weight: 600; color: #555;
    background: #f0f0f0; border: 1px solid transparent;
    transition: all .25s;
}
.results-tab:hover, .results-tab--active {
    background: #124491; color: #fff; border-color: #124491;
}
.results-tab svg { opacity: .7; }
.results-tab--active svg, .results-tab:hover svg { opacity: 1; }

/* Competition hub cards */
.comp-hub-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.comp-hub-card {
    position: relative; background: #fff; border-radius: 14px;
    padding: 1.25rem; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: all .3s; text-decoration: none; color: inherit;
}
.comp-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
.comp-hub-card--muted { opacity: .85; }
.comp-hub-card__accent {
    position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(180deg, #124491, #E8B91E); border-radius: 4px 0 0 4px;
}
.comp-hub-card__accent--muted {
    background: linear-gradient(180deg, #9E9E9E, #BDBDBD);
}
.comp-hub-card__title {
    font-size: .95rem; font-weight: 700; color: #1a1a1a; margin-bottom: .35rem;
}
.comp-hub-card__meta {
    display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
    font-size: .72rem; color: #757575; margin-bottom: .5rem;
}
.comp-hub-card__meta span {
    display: inline-flex; align-items: center; gap: .2rem;
}
.comp-hub-card__meta svg { opacity: .5; }
.comp-hub-card__status {
    padding: .1rem .45rem; border-radius: 4px;
    font-weight: 600; font-size: .62rem; text-transform: uppercase;
    background: #e8f0f8; color: #124491;
}
.comp-hub-card__status--muted { background: #ECEFF1; color: #78909C; }
.comp-hub-card__actions {
    display: flex; gap: .4rem;
}
.comp-hub-btn {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .3rem .65rem; border-radius: 6px;
    font-size: .7rem; font-weight: 600;
    color: #124491; background: #e8f0f8;
    transition: all .2s;
}
.comp-hub-card:hover .comp-hub-btn { background: #124491; color: #fff; }
.comp-hub-btn--blue { color: #124491; background: #e8edf5; }
.comp-hub-card:hover .comp-hub-btn--blue { background: #124491; color: #fff; }

/* Match card FT badge */
.match-card__ft {
    font-size: .62rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #124491;
    padding: .15rem .45rem; border-radius: 4px;
    background: #e8f0f8;
}

/* Badge variants */
.badge--green { border-color: rgba(46,125,50,.2); color: #2E7D32; background: rgba(46,125,50,.06); }
.badge--gold { border-color: rgba(249,168,37,.25); color: #F57F17; background: rgba(249,168,37,.06); }
.badge--muted { border-color: rgba(0,0,0,.1); color: #78909C; background: rgba(0,0,0,.03); }

/* ──────────────────────────────────────────────────────────────────────────
   CONTACT PAGE
   ────────────────────────────────────────────────────────────────────────── */
.contact-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
    align-items: flex-start;
}
.contact-info__title {
    font-size: 1.6rem; font-weight: 800; color: #1a1a1a;
    margin: .75rem 0 .5rem; line-height: 1.3;
}
.contact-info__desc {
    font-size: .92rem; color: #777; line-height: 1.7; margin-bottom: 1.5rem;
}
.contact-cards { display: flex; flex-direction: column; gap: .75rem; }
.contact-card {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem 1.15rem; border-radius: 12px;
    background: #fff; border: 1px solid #eee;
    transition: all .3s;
}
.contact-card:hover {
    border-color: rgba(26,111,181,.15);
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
}
.contact-card__icon {
    width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(26,111,181,.08); color: #124491;
}
.contact-card__icon--gold { background: rgba(249,168,37,.1); color: #F9A825; }
.contact-card__icon--accent { background: rgba(198,40,40,.07); color: #C62828; }
.contact-card__icon--dark { background: rgba(0,0,0,.05); color: #555; }
.contact-card__label {
    font-size: .82rem; font-weight: 700; color: #1a1a1a; margin-bottom: .15rem;
}
.contact-card__text { font-size: .84rem; color: #777; line-height: 1.6; margin: 0; }

.contact-socials { margin-top: 1.5rem; }
.contact-socials__label {
    display: block; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; color: #aaa;
    margin-bottom: .6rem;
}
.contact-socials__row { display: flex; gap: .5rem; }
.contact-social {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: #f5f5f5; color: #555; transition: all .25s;
    text-decoration: none;
}
.contact-social:hover { background: #124491; color: #fff; }

/* Contact form card */
.contact-form-wrap {
    background: #fff; border-radius: 14px; padding: 1.5rem;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.contact-form__heading {
    font-size: 1.25rem; font-weight: 800; color: #1a1a1a; margin-bottom: .25rem;
}
.contact-form__sub {
    font-size: .85rem; color: #999; margin-bottom: 1.5rem;
}
.contact-form__row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

/* Map embed */
.contact-map {
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    border: 1px solid #e8e8e8;
}
.contact-map iframe { display: block; }

/* ──────────────────────────────────────────────────────────────────────────
   RESPONSIVE — PUBLIC
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .hero--dark .hero-title { font-size: 2.5rem; }
    .fkf-footer-grid { grid-template-columns: repeat(2, 1fr); }

    /* Hero countdown responsive */
    .hero-right { width: 320px; }
    .cd-title { font-size: 1.5rem; }
    .cd-ring { width: 60px; height: 60px; }
    .cd-num { font-size: 1.25rem; }

    /* Match center */
    .mc-stats__row { grid-template-columns: repeat(4, 1fr); }

    /* Page hero */
    .page-hero__title { font-size: 1.8rem; }

    /* About stats */
    .about-stats__grid { grid-template-columns: repeat(3, 1fr); }
    .about-stat__num { font-size: 2.2rem; }

    /* Values */
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .fkf-nav-toggle { display: block; }
    .fkf-nav-links {
        display: none; position: fixed; inset: 0;
        background: rgba(255,255,255,.98); backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center;
        align-items: center; gap: .25rem; z-index: 10001;
        padding: 80px 2rem 2rem;
        list-style: none;
    }
    .fkf-nav-links.open { display: flex !important; }
    .fkf-nav-links li { width: 100%; max-width: 320px; text-align: center; }
    .fkf-nav-links a {
        font-size: 1.15rem; padding: .85rem 1rem; color: #333;
        display: block; border-radius: 8px; transition: background .2s;
    }
    .fkf-nav-links a:hover,
    .fkf-nav-links a.active { background: #e8edf5; color: #124491; }
    .fkf-nav-actions { display: none; }
    .nav-login-mobile { display: list-item !important; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
    .nav-login-mobile a {
        background: #124491; color: #fff !important;
        border-radius: 8px; padding: .75rem 2rem !important;
        font-weight: 700; font-size: 1.05rem !important;
        text-align: center; display: block;
        box-shadow: 0 4px 12px rgba(18,68,145,.25);
    }
    /* Mobile dropdown */
    .nav-dropdown .dropdown-menu {
        position: static; box-shadow: none;
        background: transparent; padding: 0;
        margin-top: 0;
    }
    .nav-dropdown.open .dropdown-menu { display: block; }
    .nav-dropdown .dropdown-menu a {
        font-size: 1.1rem !important; padding: .6rem 1.2rem;
        color: #555;
    }

    .hero--dark .hero-title { font-size: 2.4rem; }
    .hero-logo-img { width: 150px; height: auto; }
    .hero--dark .hero-tagline { font-size: .75rem; letter-spacing: 2px; }

    .hero-showcase { width: 220px; height: 220px; }
    .hero-showcase__logo { width: 200px; height: 200px; padding: 12px; }
    .hero-showcase__orbit { display: none; }
    .hero-showcase__text { font-size: 2.2rem; letter-spacing: 6px; }
    .hero-showcase__sub { font-size: .7rem; letter-spacing: 2px; }

    .kenya-flag { width: 340px; }
    .flag-quote { font-size: 1rem; max-width: 440px; }
    .flag-author { font-size: .75rem; }

    .sec { padding: 2.5rem 0; }
    .sec-title { font-size: 1.7rem; }

    .features-grid,
    .card-grid--3,
    .card-grid--2 { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-num { font-size: 2.5rem; }

    .fkf-footer-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 2rem 1.15rem; }
    .cta-box h2 { font-size: 1.5rem; }

    /* Page hero 768 */
    .page-hero { min-height: 280px; padding-top: 80px; padding-bottom: 2rem; }
    .page-hero__title { font-size: 1.6rem; }
    .page-hero__sub { font-size: .85rem; }

    /* About page 768 */
    .mv-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .about-stat__num { font-size: 2rem; }

    /* Competitions 768 */
    .disc-grid { grid-template-columns: repeat(2, 1fr); }
    .comp-card__header { flex-direction: column; gap: .5rem; }
    .comp-card__inner { padding: 1rem 1.15rem; }
    .comp-card__meta { gap: .75rem; }

    /* Results 768 */
    .comp-hub-grid { grid-template-columns: 1fr; }

    /* Hero split → stacked */
    .hero-split { flex-direction: column; gap: 1.5rem; }
    .hero-right {
        width: 100%; max-width: 380px; margin: 0 auto;
    }
    .hero-left { min-height: 360px; }
    .cd-title { font-size: 1.5rem; }
    .cd-timer { gap: .3rem; }
    .cd-ring { width: 60px; height: 60px; }
    .cd-num { font-size: 1.2rem; }

    /* Stories responsive */
    .stories-hero { height: 60vh; min-height: 400px; }
    .story-panel__content { padding: 2rem 1.5rem; }
    .story-panel__title { font-size: 1.4rem; }
    .stories-hero__counter { top: 1.5rem; right: 1.5rem; }

    /* Match center responsive */
    .mc-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .mc-stats__row { grid-template-columns: repeat(2, 1fr); }
    .mc-stat__num { font-size: 2rem; }
}
@media (max-width: 480px) {
    .hero--dark .hero-title { font-size: 1.65rem; }
    .stats-row { grid-template-columns: 1fr; }
    .stat-num { font-size: 2rem; }

    .hero-showcase { width: 180px; height: 180px; }
    .hero-showcase__logo { width: 160px; height: 160px; padding: 10px; }
    .hero-showcase__text { font-size: 1.8rem; letter-spacing: 4px; }
    .hero-showcase__sub { font-size: .6rem; letter-spacing: 1.5px; margin-bottom: 1rem; }

    .kenya-flag { width: 260px; }
    .flag-quote { font-size: .9rem; max-width: 320px; }
    .flag-author { font-size: .68rem; letter-spacing: 1px; }

    /* Countdown card 480 */
    .hero-right { width: 100%; }
    .cd-card__inner { padding: 1.5rem 1rem; }
    .cd-title { font-size: 1.3rem; }
    .cd-ring { width: 52px; height: 52px; }
    .cd-num { font-size: 1rem; }
    .cd-label { font-size: .75rem; letter-spacing: 1px; }

    /* Page hero 480 */
    .page-hero { min-height: 240px; padding-top: 75px; }
    .page-hero__title { font-size: 1.35rem; }
    .page-hero__badge { font-size: .75rem; }

    /* About 480 */
    .values-grid { grid-template-columns: 1fr; }
    .about-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .about-stat__num { font-size: 1.8rem; }
    .about-stat__label { font-size: .75rem; }

    /* Competitions 480 */
    .disc-grid { grid-template-columns: 1fr 1fr; }
    .disc-tile { padding: 1.15rem .75rem .75rem; }
    .disc-tile__icon { font-size: 2rem; }
    .disc-tile__name { font-size: .88rem; }
    .disc-tile__link { font-size: .78rem; padding: .4rem .5rem; }
    .comp-card__icon { width: 38px; height: 38px; border-radius: 10px; }
    .comp-card__name { font-size: .95rem; }
    .comp-chip { font-size: .75rem; padding: .22rem .6rem; }
    .comp-card__desc { font-size: .82rem; }
    .comp-card__meta { font-size: .76rem; gap: .6rem; }
    .comp-card__actions { flex-direction: column; }
    .comp-card__actions .btn { width: 100%; text-align: center; }

    /* Contact 480 */
    .contact-form-wrap { padding: 1.25rem; }
    .contact-form__row { grid-template-columns: 1fr; }
    .contact-card { padding: .75rem; gap: .75rem; }
    .contact-card__icon { width: 38px; height: 38px; }

    /* Stories 480 */
    .stories-hero { height: 50vh; min-height: 340px; }
    .story-panel__title { font-size: 1.1rem; }
    .story-panel__desc { font-size: .78rem; }
    .story-panel__content { padding: 1.5rem; }
    .stories-hero__watermark img { width: 180px; height: 180px; }

    /* Match center 480 */
    .mc-stats__row { grid-template-columns: repeat(2, 1fr); }
    .mc-stat__num { font-size: 1.6rem; }
    .mc-stat__label { font-size: .75rem; letter-spacing: 1px; }
}

/* Accessibility floor for small public text on compact screens. */
@media (max-width: 768px) {
    :is(.fkf-nav, .hero, .sec, .page-hero, .stories-hero, .contact-grid, .fkf-footer)
    :is(a, p, span, li, small, button, label) {
        font-size: clamp(.75rem, 1em, 1em);
    }

    .hero--dark .hero-tagline,
    .hero-showcase__sub,
    .story-panel__tag,
    .flag-author,
    .cd-label,
    .page-hero__badge,
    .about-stat__label,
    .comp-chip,
    .mc-stat__label,
    .brand-sub {
        font-size: .75rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 2 — CMS PORTAL (Authenticated) — MODERNIZED 2026
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CMS BODY ────────────────────────────────────────────────────────── */
.cms-body {
    background: #f1f5f9;
}

/* ── BRAND LOGOS (navbar) ────────────────────────────────────────────── */
.brand-logos {
    display: flex;
    align-items: center;
    gap: 0;
}
.brand-logo {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.3);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: transform .2s ease;
    margin-right: -7px;
    position: relative;
    z-index: 1;
}
.brand-logo:last-child { margin-right: 0; z-index: 2; }
.brand-logo:hover { transform: scale(1.1); z-index: 3; }
.brand-logo--county { border-radius: 9px; }

/* ── CMS NAVBAR ─────────────────────────────────────────────────────────── */
.navbar {
    background: linear-gradient(135deg, #003388 0%, #124491 60%, #1a5bb5 100%);
    padding: 0 1.25rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 52px;
}
.navbar-left {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-shrink: 1;
    min-width: 0;
    flex-direction: row;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--white);
    font-family: var(--font-display);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.navbar-brand::after {
    content: '';
    display: block;
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,.18);
    margin-left: .2rem;
}
.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    flex-direction: row;
}
.navbar-nav li { position: relative; }
.navbar-nav a {
    color: rgba(255,255,255,.75);
    padding: .32rem .65rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: .8rem;
    transition: background var(--transition), color var(--transition);
    display: flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
}
.navbar-nav a:hover,
.navbar-nav a.active {
    background: rgba(255,255,255,.15);
    color: var(--white);
}
/* Navbar dropdown — animated */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--white);
    min-width: 190px;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    padding: .4rem 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.navbar-nav li:hover > .nav-dropdown-menu,
.navbar-nav li.open > .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    color: var(--dark) !important;
    padding: .5rem .9rem !important;
    font-size: .82rem !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: background .15s, color .15s;
}
.nav-dropdown-menu a:hover {
    background: #e8edf5 !important;
    color: var(--primary) !important;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--white);
    font-size: .8rem;
    flex-shrink: 0;
}
.navbar-user-info {
    display: flex;
    align-items: center;
    gap: .45rem;
}
.navbar-user .role-badge {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,.1);
}
.navbar-user .user-name {
    font-size: .82rem;
    font-weight: 500;
}
.btn-logout {
    background: rgba(255,255,255,.08);
    color: var(--white);
    border: 1px solid rgba(255,255,255,.2);
    padding: .35rem .6rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: .82rem;
    transition: all .2s ease;
    display: flex;
    align-items: center;
}
.btn-logout:hover { background: rgba(239,68,68,.8); border-color: rgba(239,68,68,.8); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: .25rem;
}

/* ── SIDEBAR ────────────────────────────────────────────────────────────── */
.layout { display: flex; min-height: calc(100vh - 52px); }
.sidebar {
    width: 248px;
    background: #fff;
    border-right: 1px solid #e8edf2;
    padding: .5rem 0;
    flex-shrink: 0;
    overflow-y: auto;
    position: sticky;
    top: 52px;
    height: calc(100vh - 52px);
    display: flex;
    flex-direction: column;
    box-shadow: 1px 0 12px rgba(0,0,0,.03);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.08) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,.08); border-radius: 4px; }
.sidebar-section { padding: 0 .6rem; margin-bottom: .4rem; }
.sidebar-section h4 {
    font-size: .58rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #94a3b8;
    margin-bottom: .3rem;
    padding: 0 .7rem;
    font-weight: 700;
}
/* Sidebar collapsible sections */
.sidebar-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: .35rem .65rem;
    user-select: none;
    border-radius: 6px;
    transition: background var(--transition);
}
.sidebar-section-toggle:hover { background: var(--bg); }
.sidebar-section-toggle h4 { margin-bottom: 0; }
.sidebar-section-toggle .toggle-icon {
    font-size: .55rem;
    color: var(--gray);
    transition: transform .25s ease;
}
.sidebar-section.collapsed .sidebar-section-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}
.sidebar-section-body {
    max-height: 500px;
    overflow: hidden;
    opacity: 1;
    transition: max-height .3s ease, opacity .2s ease;
}
.sidebar-section.collapsed .toggle-icon { transform: rotate(-90deg); }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .65rem;
    border-radius: 7px;
    color: #475569;
    font-size: .8rem;
    font-weight: 450;
    transition: all .15s ease;
    margin-bottom: 1px;
    line-height: 1.3;
    position: relative;
}
.sidebar-link:hover { background: #f0f5ff; color: var(--primary); }
.sidebar-link.active {
    background: linear-gradient(135deg, #e8f0fe, #dae6fa);
    color: #124491;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #124491;
}
.sidebar-link .icon { font-size: .85rem; width: 20px; text-align: center; flex-shrink: 0; color: inherit; opacity: .55; }
.sidebar-link:hover .icon,
.sidebar-link.active .icon { opacity: 1; }

/* ── MAIN CONTENT ───────────────────────────────────────────────────────── */
.main-content {
    flex: 1;
    padding: 1.5rem 1.75rem;
    max-width: 1400px;
    overflow-x: hidden;
    background: #f1f5f9;
    animation: fadeInUp .3s ease-out;
}
.messages-container {
    margin-bottom: 1rem;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ripple {
    to { transform: scale(2.5); opacity: 0; }
}

.page-header { margin-bottom: 1.25rem; }
.page-header h1 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: .4rem;
    letter-spacing: -.3px;
}
.page-header h1 i { font-size: 1rem; opacity: .45; color: #124491; }
.page-header p { color: #64748b; font-size: .8rem; margin-top: .2rem; line-height: 1.5; }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    color: var(--gray);
    margin-bottom: .4rem;
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span::before { content: "›"; margin-right: .35rem; font-weight: 600; }

/* ── CARDS ──────────────────────────────────────────────────────────────── */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 6px rgba(0,0,0,.02);
    border: 1px solid #e5eaf0;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04); }
.card-header {
    padding: .7rem 1.1rem;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    background: #fafcfe;
}
.card-header h3 {
    font-size: .85rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.card-body { padding: 1rem 1.1rem; }

/* ── TOOLBAR / FILTER BAR ──────────────────────────────────────────────── */
.toolbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .85rem;
    padding: .55rem .75rem;
    background: #f9faf9;
    border-radius: 10px;
    border: 1px solid #ebebeb;
}
.toolbar-search {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: .4rem .65rem;
    flex: 0 1 240px;
    min-width: 150px;
    transition: border-color .2s, box-shadow .2s;
}
.toolbar-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(18,68,145,.08);
}
.toolbar-search i { color: #aaa; font-size: .8rem; flex-shrink: 0; }
.toolbar-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: .8rem;
    width: 100%;
    padding: .05rem 0;
    font-family: inherit;
    color: var(--dark);
}
.toolbar-search input::placeholder { color: #bbb; }
.toolbar-select {
    padding: .4rem .65rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: .8rem;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    font-family: inherit;
    min-width: 120px;
    max-width: 180px;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .5rem center;
    padding-right: 1.6rem;
}
.toolbar-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(18,68,145,.08);
    outline: none;
}
.toolbar-btn {
    padding: .4rem .7rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 500;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    font-family: inherit;
}
.toolbar-btn:hover { border-color: #124491; color: #124491; background: #eef4ff; }
.toolbar-btn.active { background: #124491; color: var(--white); border-color: #124491; }
.toolbar-spacer { flex: 1; }
.toolbar-count {
    font-size: .72rem;
    color: #999;
    white-space: nowrap;
    font-weight: 500;
}

/* ── STAT CARDS ─────────────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .85rem;
    margin-bottom: 1.25rem;
}
.stat-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 6px rgba(0,0,0,.02);
    border: 1px solid #e5eaf0;
    padding: .9rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: visible;
}
.stat-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    border-radius: 0 3px 3px 0;
}
.stat-card.green::before  { background: var(--primary); }
.stat-card.red::before    { background: #ef4444; }
.stat-card.blue::before   { background: #3b82f6; }
.stat-card.yellow::before { background: var(--warning); }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04); }
.stat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.stat-icon.green  { background: #ecfdf5; color: #129139; }
.stat-icon.red    { background: #fef2f2; color: #ef4444; }
.stat-icon.blue   { background: #eff6ff; color: #3b82f6; }
.stat-icon.yellow { background: #fffbeb; color: #d97706; }
.stat-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    word-break: break-word;
    overflow-wrap: break-word;
}
.stat-info p { font-size: .72rem; color: #64748b; font-weight: 500; margin-top: .1rem; }

/* ── TABLES ─────────────────────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
thead th {
    background: #f8fafc;
    padding: .55rem .75rem;
    text-align: left;
    font-weight: 600;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #8898aa;
    border-bottom: 2px solid #e8edf2;
    white-space: nowrap;
    position: relative;
}
thead th[data-sort] { cursor: pointer; user-select: none; }
thead th[data-sort]:hover { color: var(--primary); }
thead th.sort-asc::after,
thead th.sort-desc::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    margin-left: .35rem;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}
thead th.sort-asc::after { border-bottom: 5px solid var(--primary); }
thead th.sort-desc::after { border-top: 5px solid var(--primary); }
tbody td {
    padding: .5rem .75rem;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
    color: #444;
}
tbody tr { transition: background .12s; }
tbody tr:nth-child(even) { background: #fafbfc; }
tbody tr:hover { background: #eef4ff; }
tbody td strong { color: var(--dark); font-weight: 600; }

/* ── BADGES (CMS) ──────────────────────────────────────────────────────── */
.badge-success,
.badge-danger,
.badge-warning,
.badge-info,
.badge-gray {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .65rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}
.badge-success { background: #E8F5E9; color: var(--success); }
.badge-danger  { background: #FFEBEE; color: var(--accent); }
.badge-warning { background: #FFF8E1; color: #E65100; }
.badge-info    { background: #e8edf5; color: var(--info); }
.badge-gray    { background: #F0F0F0; color: #888; }

/* ── BUTTONS (CMS) ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .48rem 1.15rem; border-radius: 7px;
    font-size: .82rem; font-weight: 600; cursor: pointer;
    border: none;
    transition: background .2s, transform .15s, box-shadow .2s, color .2s;
    text-decoration: none;
    font-family: inherit;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: #124491; color: var(--white); }
.btn-primary:hover { background: #003388; color: var(--white); box-shadow: 0 3px 10px rgba(18,68,145,.25); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.btn-white { background: var(--white); color: #124491; font-weight: 600; }
.btn-white:hover { background: #f1f5f9; color: #003388; }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }
.btn-danger { background: #cf2e2e; color: var(--white); }
.btn-danger:hover { background: #b91c1c; color: var(--white); }
.btn-outline { background: transparent; border: 1px solid #d1d5db; color: #555; }
.btn-outline:hover { border-color: #124491; color: #124491; background: #eef4ff; }
.btn-sm { padding: .28rem .65rem; font-size: .74rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-xs { padding: .2rem .5rem; font-size: .68rem; border-radius: 5px; font-weight: 500; }

/* ── FORMS ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: .85rem; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: .76rem;
    margin-bottom: .25rem;
    color: #475569;
}
.form-control {
    width: 100%;
    padding: .45rem .7rem;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: .8rem;
    transition: border-color .2s, box-shadow .2s;
    background: var(--white);
    font-family: inherit;
    color: var(--dark);
}
textarea.form-control { resize: vertical; min-height: 80px; }
.form-control:focus {
    outline: none;
    border-color: #124491;
    box-shadow: 0 0 0 3px rgba(18,68,145,.1);
}
.form-control::placeholder { color: #94a3b8; }
.form-error { color: #cf2e2e; font-size: .7rem; margin-top: .2rem; }
/* Inline form row */
.form-row {
    display: flex;
    gap: .75rem;
    align-items: flex-end;
}
.form-row .form-group { flex: 1; margin-bottom: 0; }

/* ── LOGIN PAGE ─────────────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh; display: flex;
    background: linear-gradient(135deg, #002266, #003388, #124491);
}
.login-left {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; color: var(--white); padding: 3rem; text-align: center;
}
.login-left img { height: 120px; margin-bottom: 1.5rem; border-radius: 50%; }
.login-left h1 { font-size: 2rem; margin-bottom: .5rem; }
.login-left p { opacity: .85; font-size: 1.1rem; max-width: 400px; }
.login-right {
    flex: 1; display: flex; align-items: center; justify-content: center;
    background: var(--white); border-radius: 24px 0 0 24px;
}
.login-box { width: 100%; max-width: 400px; padding: 2rem; }
.login-box h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.login-box .subtitle { color: var(--gray); margin-bottom: 2rem; font-size: .9rem; }
.login-box .btn-primary { width: 100%; padding: .75rem; font-size: 1rem; justify-content: center; }

/* ── ALERTS ─────────────────────────────────────────────────────────────── */
.alert {
    padding: .65rem 1rem;
    border-radius: 8px;
    margin-bottom: .65rem;
    font-size: .82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .5rem;
    animation: slideDown .3s ease-out;
    position: relative;
}
.alert-close {
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: .5;
    font-size: .9rem;
    color: inherit;
    padding: .2rem;
    border-radius: 4px;
    transition: opacity .2s;
}
.alert-close:hover { opacity: 1; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger, .alert-error  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── GRID LAYOUTS ───────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ── QUICK ACTIONS ──────────────────────────────────────────────────────── */
.quick-actions {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: .75rem; margin-bottom: 1rem;
}
.action-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    border: 1px solid #e5eaf0;
    padding: .9rem .8rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    color: #0f172a;
    position: relative;
    overflow: hidden;
}
.action-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #124491, #3a7bd5);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.action-card:hover::after { transform: scaleX(1); }
.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
    border-color: rgba(18,68,145,.15);
}
.action-card:hover .action-icon { color: #124491; transform: scale(1.08); }
.action-card .action-icon {
    font-size: 1.4rem;
    margin-bottom: .4rem;
    color: #64748b;
    transition: color .2s, transform .2s;
}
.action-card h4 { font-size: .78rem; font-weight: 600; margin-bottom: .1rem; }
.action-card p { font-size: .68rem; color: #94a3b8; line-height: 1.4; }

/* ── EMPTY STATE ────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #94a3b8;
}
.empty-state .icon {
    font-size: 2.5rem;
    margin-bottom: .7rem;
    opacity: .4;
    color: #cbd5e1;
}
.empty-state h3 { font-size: .95rem; margin-bottom: .3rem; color: #64748b; font-weight: 600; }
.empty-state p { font-size: .8rem; color: #94a3b8; }

/* ── CMS FOOTER ─────────────────────────────────────────────────────────── */
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .7rem 1rem;
    color: #94a3b8;
    font-size: .7rem;
    border-top: 1px solid #e8edf2;
    background: #fff;
    letter-spacing: .2px;
}
.footer-sep { color: #cbd5e1; }


/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-nowrap { white-space: nowrap; }
.text-muted  { color: #999; font-size: .75rem; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }

/* Action link buttons used in tables */
.btn-action {
    display: inline-block; padding: .25rem .65rem; border-radius: 6px;
    text-decoration: none; font-size: .75rem; font-weight: 600;
    transition: opacity var(--transition), transform var(--transition);
}
.btn-action:hover { opacity: .88; transform: translateY(-1px); }
.btn-action-primary   { background: var(--primary); color: #fff; }
.btn-action-danger    { background: #c62828; color: #fff; }
.btn-action-warning   { background: #FF8F00; color: #fff; }
.btn-action-link      { background: none; color: var(--primary); text-decoration: underline; font-size: .8rem; padding: 0; }
.btn-action-link:hover { color: var(--primary-dark); }

/* Purple border variant for special action cards */
.action-card.accent-purple { border-left: 3px solid #6A1B9A; }

/* Button color variants */
.btn-outline.btn-blue    { color: #124491; border-color: #124491; }
.btn-outline.btn-blue:hover  { background: #124491; color: #fff; }
.btn-outline.btn-purple  { color: #6A1B9A; border-color: #6A1B9A; }
.btn-outline.btn-purple:hover { background: #6A1B9A; color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — CMS
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .about-grid, .contact-grid, .contact-layout { grid-template-columns: 1fr; }
    .main-content { padding: 1.25rem 1.25rem; }
}
@media (max-width: 768px) {
    .pub-nav-toggle { display: block; }
    .pub-nav-links {
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        background: var(--white); flex-direction: column; height: auto;
        padding: 1rem; box-shadow: var(--shadow-lg);
    }
    .pub-nav-links.show { display: flex; }
    .pub-nav-links a { height: auto; padding: .75rem 1rem; }
    .pub-nav-actions { display: none; }
    .nav-toggle { display: block; }
    .navbar { height: 50px; padding: 0 .75rem; }
    .brand-logo { height: 28px; width: 28px; margin-right: -5px; }
    .navbar-brand { font-size: .85rem; gap: .45rem; }
    .navbar-brand::after { display: none; }
    .navbar-nav {
        display: none; position: fixed; top: 50px; left: 0; right: 0;
        background: #003388; flex-direction: column; padding: .5rem;
        box-shadow: 0 8px 20px rgba(0,0,0,.2);
        border-radius: 0; z-index: 1001;
    }
    .navbar-nav.show { display: flex; }
    .navbar-nav a { padding: .55rem .85rem; }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,.08);
        border-radius: 6px;
        margin: .15rem 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    .nav-dropdown-menu a { color: rgba(255,255,255,.8) !important; font-size: .8rem !important; }
    .nav-dropdown-menu a:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }
    .navbar-nav li:hover > .nav-dropdown-menu { display: none; }
    .navbar-nav li.open > .nav-dropdown-menu { display: block !important; }
    .navbar-user .role-badge { display: none; }
    /* Sidebar — off-canvas drawer on mobile */
    .sidebar {
        position: fixed;
        top: 50px;
        left: 0;
        bottom: 0;
        width: 260px;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform .3s ease;
        display: flex;
        box-shadow: none;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,.18);
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        top: 50px;
        background: rgba(0,0,0,.4);
        z-index: 998;
    }
    .sidebar-overlay.open { display: block; }
    .main-content { padding: .85rem; }
    /* Breadcrumb — prominent on mobile since sidebar is hidden */
    .breadcrumb {
        flex-wrap: wrap;
        font-size: .82rem;
        gap: .3rem .45rem;
        padding: .5rem .75rem;
        background: #f5f7f5;
        border-radius: 8px;
        margin-bottom: .65rem;
    }
    .breadcrumb a {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
    }
    .toolbar { flex-wrap: wrap; }
    .toolbar-search { flex: 1 1 100%; }
    .toolbar-select { flex: 1; min-width: 0; }
    .hero { padding: 3rem 1.5rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero h2 { font-size: 1rem; }
    .hero-logo { height: 90px; }
    .login-page { flex-direction: column; }
    .login-left { padding: 2rem; }
    .login-left h1 { font-size: 1.5rem; }
    .login-right { border-radius: 24px 24px 0 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .counter-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 1.2rem; }
    .stat-card { padding: .75rem .85rem; }
}
@media (max-width: 480px) {
    .stats-grid, .counter-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
    .stat-card { flex-direction: row; }
    .breadcrumb { font-size: .78rem; padding: .45rem .65rem; }
    .page-header h1 { font-size: 1.05rem; }
    .navbar-user span[style] { display: none; }
    .navbar { padding: 0 .65rem; }
}

/* ── Mobile helper: sidebar toggle button ──────────────────────────── */
.sidebar-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.15rem;
    cursor: pointer;
    padding: .25rem .4rem;
    border-radius: 6px;
    transition: background .2s;
    margin-right: .25rem;
}
.sidebar-toggle-btn:hover { background: rgba(255,255,255,.15); }
@media (max-width: 768px) {
    .sidebar-toggle-btn { display: inline-flex; align-items: center; }
}

/* ── Mobile-friendly inline grids ──────────────────────────────────── */
@media (max-width: 768px) {
    [style*="grid-template-columns"][style*="minmax"] {
        grid-template-columns: 1fr !important;
    }
    [style*="display:flex"][style*="gap"],
    [style*="display: flex"][style*="gap"] {
        flex-wrap: wrap !important;
    }
    .card-header {
        flex-wrap: wrap;
        gap: .5rem;
    }
    .form-row {
        flex-direction: column;
    }
    .form-row .form-group {
        width: 100%;
    }
    /* Override inline min-width on filter form items */
    [style*="min-width:180px"],
    [style*="min-width:140px"],
    [style*="min-width: 180px"],
    [style*="min-width: 140px"] {
        min-width: 0 !important;
        flex: 1 1 100% !important;
    }
    /* Override inline fixed widths on search inputs */
    input[style*="width: 250px"],
    input[style*="width:250px"] {
        width: 100% !important;
    }
    /* Ensure page-header with inline flex stacks properly */
    .page-header[style*="display:flex"],
    .page-header[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    /* Allow form controls in filters to be full width */
    .card form[style*="display:flex"] .form-control,
    .card form[style*="display: flex"] .form-control {
        min-width: 0;
    }
    /* Button groups in admin panels */
    .btn-group {
        flex-wrap: wrap;
    }
}
@media (max-width: 480px) {
    /* Stack action buttons vertically on smallest screens */
    [style*="display:flex"][style*="gap:0.5rem"],
    [style*="display:flex"][style*="gap:.5rem"] {
        flex-direction: column !important;
        width: 100%;
    }
    [style*="display:flex"][style*="gap:0.5rem"] > .btn,
    [style*="display:flex"][style*="gap:.5rem"] > .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Input Group (phone prefix +254 etc.) ─────────────────────────── */
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.input-group .input-group-text {
    display: flex;
    align-items: center;
    padding: .5rem .75rem;
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    background: #124491;
    border: 1px solid #124491;
    border-radius: 8px 0 0 8px;
    white-space: nowrap;
    line-height: 1;
}
.input-group .form-control,
.input-group input[type="tel"],
.input-group input[type="text"] {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-radius: 0 8px 8px 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Table Responsive ─────────────────────────────────────────────── */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: .5rem;
}
.table-responsive table {
    min-width: 480px;
}

/* ── Touch Target Minimum ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .btn, .btn-action, a[style*="padding"][style*="border-radius"] {
        min-height: 44px;
        min-width: 44px;
    }
    .stat-icon {
        width: 44px;
        height: 44px;
    }
}

/* ── Responsive Images ────────────────────────────────────────────── */
img {
    max-width: 100%;
    height: auto;
}

/* ── Portal inline grid mobile overrides ──────────────────────────── */
@media (max-width: 480px) {
    [style*="grid-template-columns:1fr auto 1fr"] {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: .5rem !important;
    }
    .page-header h1 { font-size: 1.05rem; }
    .page-header p { font-size: .82rem; }
    .card-header h3 { font-size: .95rem; }
}

/* ── Touch-device focus equivalents ────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    .feature:active::before { opacity: 1; }
    .feature:active .feature-icon { background: #124491; color: #fff; }
    .story-sub:active { transform: translateY(-4px); }
    .match-card:active { border-color: var(--accent); transform: translateY(-2px); }
    .btn:active { transform: scale(.97); }
}
