/* ===================================
   AFRICAN HISTORY PLATFORM - STYLES
   Theme: Shiny Black & Gold
   =================================== */

:root {
    --gold: #D4AF37;
    --gold-light: #F0CC5A;
    --gold-dark: #A88B2A;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F5E27A 50%, #D4AF37 100%);
    --black: #0A0A0A;
    --black-2: #111111;
    --black-3: #1A1A1A;
    --black-4: #222222;
    --black-5: #2A2A2A;
    --white: #FFFFFF;
    --gray: #888888;
    --gray-light: #BBBBBB;
    --font-display: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-ui: 'Raleway', sans-serif;
    --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    --shadow-gold: 0 0 30px rgba(212,175,55,0.3);
    --shadow-dark: 0 10px 40px rgba(0,0,0,0.8);
    --border-gold: 1px solid rgba(212,175,55,0.3);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--gray-light);
    font-size: 18px;
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--white);
    font-weight: 600;
    line-height: 1.2;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }

.gold { color: var(--gold); }
.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.font-display { font-family: var(--font-display); }
.font-ui { font-family: var(--font-ui); }
.section-pad { padding: 100px 0; }

/* ===== PRELOADER ===== */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--black);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner { text-align: center; }
.preloader-logo {
    font-size: 4rem; color: var(--gold);
    animation: spin 2s linear infinite;
    display: inline-block;
}
.preloader-text {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 2rem;
    letter-spacing: 0.5em;
    margin: 10px 0;
}
.preloader-bar {
    width: 200px; height: 3px;
    background: var(--black-4);
    border-radius: 3px;
    margin: 20px auto 0;
    overflow: hidden;
}
.preloader-fill {
    height: 100%;
    background: var(--gold-gradient);
    animation: loadBar 1.5s ease forwards;
}
@keyframes loadBar { from { width: 0 } to { width: 100% } }
@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }

/* ===== NAVBAR ===== */
#mainNav {
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
}
#mainNav.scrolled {
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.navbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { font-size: 1.8rem; }
.brand-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav-link {
    font-family: var(--font-ui);
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 8px 16px !important;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { left: 16px; right: 16px; }
.nav-link:hover, .nav-link.active { color: var(--gold) !important; }

.btn-admin {
    font-family: var(--font-ui);
    background: var(--gold-gradient);
    color: var(--black) !important;
    border: none;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 3px;
    transition: var(--transition);
}
.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212,175,55,0.5);
    color: var(--black) !important;
}

.navbar-toggler {
    border: var(--border-gold);
    color: var(--gold);
}
.navbar-toggler-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(5deg);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0A0A0A 0%, #1a0a00 40%, #0A0A0A 100%);
}
.hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212,175,55,0.08) 0%, transparent 50%),
        linear-gradient(rgba(10,10,10,0.6), rgba(10,10,10,0.6)),
        url("/assets/images/africa.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-particles {
    position: absolute; inset: 0;
    overflow: hidden;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.30rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    line-height: 1.05;
    margin-bottom: 25px;
}
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-light);
    max-width: 500px;
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-divider {
    width: 80px; height: 3px;
    background: var(--gold-gradient);
    margin: 25px 0;
}
.hero-stats { display: flex; gap: 40px; margin-top: 50px; }
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--gold);
    font-weight: 700;
    display: block;
}
.stat-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
}
.hero-image-col { position: relative; }
.hero-img-frame {
    position: relative;
    display: inline-block;
}
.hero-img-frame::before {
    content: '';
    position: absolute;
    top: -15px; right: -15px;
    bottom: 15px; left: 15px;
    border: 2px solid var(--gold);
    opacity: 0.4;
    z-index: 0;
}
.hero-img-frame img {
    position: relative; z-index: 1;
    border-radius: 4px;
    box-shadow: var(--shadow-dark);
    max-height: 2000px;
    object-fit: cover;
    width: 100%;
}
.hero-scroll {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; color: var(--gray);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}
.hero-scroll i { font-size: 1.5rem; color: var(--gold); }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== BUTTONS ===== */
.btn-gold {
    background: var(--gold-gradient);
    color: var(--black);
    border: none;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 35px;
    border-radius: 3px;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.4);
    color: var(--black);
}
.btn-gold-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 33px;
    border-radius: 3px;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-gold-outline:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.4);
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 15px;
    position: relative;
}
.section-subtitle {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}
.title-line {
    width: 60px; height: 3px;
    background: var(--gold-gradient);
    margin: 15px auto;
}
.title-line.left { margin: 15px 0; }

/* ===== CARDS ===== */
.glass-card {
    background: rgba(255,255,255,0.03);
    border: var(--border-gold);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.glass-card:hover {
    border-color: rgba(212,175,55,0.6);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold), var(--shadow-dark);
}

/* ===== FEATURES / ABOUT SECTION ===== */
.features-section { background: var(--black-2); }
.feature-icon {
    width: 70px; height: 70px;
    background: rgba(212,175,55,0.1);
    border: var(--border-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--gold);
    margin-bottom: 20px;
    transition: var(--transition);
}
.glass-card:hover .feature-icon {
    background: rgba(212,175,55,0.2);
    box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

/* ===== BLOG CARDS ===== */
.blog-section { background: var(--black-3); }
.blog-card { height: 100%; }
.blog-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.blog-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.08); }
.blog-card-img .category-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--gold-gradient);
    color: var(--black);
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 2px;
}
.blog-card-body { padding: 25px; }
.blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: var(--transition);
}
.blog-card:hover .blog-card-title { color: var(--gold); }
.blog-card-meta {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.05em;
}
.blog-card-media-type {
    font-size: 0.7rem;
    background: rgba(212,175,55,0.1);
    color: var(--gold);
    border: var(--border-gold);
    padding: 2px 8px;
    border-radius: 2px;
    font-family: var(--font-ui);
}
.media-placeholder {
    height: 220px;
    background: linear-gradient(135deg, var(--black-4), var(--black-5));
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--gray);
}
.media-placeholder i { font-size: 3rem; color: var(--gold); opacity: 0.5; }

/* ===== COMPETITIONS ===== */
.comp-section { background: var(--black-2); }
.comp-card .comp-banner {
    height: 180px;
    background: linear-gradient(135deg, #1a0a00, #2a1500);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.comp-card .comp-banner img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
}
.comp-card .comp-banner .comp-status {
    position: absolute; top: 15px; right: 15px;
}
.badge-upcoming { background: rgba(212,175,55,0.2); color: var(--gold); border: var(--border-gold); }
.badge-active { background: rgba(0,200,100,0.2); color: #00c864; border: 1px solid rgba(0,200,100,0.3); }
.badge-closed { background: rgba(200,0,0,0.2); color: #ff5555; border: 1px solid rgba(200,0,0,0.3); }
.comp-fee {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.3rem;
}

/* ===== TEAM SECTION ===== */
.team-section { background: var(--black-3); }
.team-card .team-img {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px rgba(212,175,55,0.3);
    margin: 0 auto 20px;
    display: block;
    object-position: top;
}
.team-card .team-initials {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--black-4), var(--black-5));
    border: 3px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
}
.team-card { text-align: center; padding: 35px 25px; }
.team-name { font-size: 1.15rem; margin-bottom: 5px; }
.team-position { color: var(--gold); font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 15px; }
.team-bio { font-size: 0.95rem; color: var(--gray); margin-bottom: 20px; }
.team-socials a { color: var(--gray); margin: 0 6px; font-size: 1.1rem; }
.team-socials a:hover { color: var(--gold); }

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--black) 0%, #1a0a00 50%, var(--black) 100%);
    position: relative;
    overflow: hidden;
    border-bottom: var(--border-gold);
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(212,175,55,0.08) 0%, transparent 70%);
}
.page-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
}
.breadcrumb-item, .breadcrumb-item a { font-family: var(--font-ui); font-size: 0.8rem; }
.breadcrumb-item a { color: var(--gold); }
.breadcrumb-item.active { color: var(--gray); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray); }

/* ===== FORMS ===== */
.form-control, .form-select {
    background: var(--black-4);
    border: var(--border-gold);
    color: var(--white);
    border-radius: 4px;
    padding: 12px 16px;
    font-family: var(--font-ui);
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    background: var(--black-5);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
    color: var(--white);
}
.form-control::placeholder { color: var(--gray); }
.form-label {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 8px;
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* ===== CONTACT SECTION ===== */
.contact-info-item {
    display: flex; gap: 20px; align-items: flex-start;
    margin-bottom: 30px;
}
.contact-icon {
    width: 50px; height: 50px; flex-shrink: 0;
    background: rgba(212,175,55,0.1);
    border: var(--border-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1.2rem;
}

/* ===== SCHOOL REGISTRATION ===== */
.school-reg-section { background: var(--black-2); }
.reg-steps { counter-reset: step; }
.reg-step { 
    display: flex; gap: 20px; align-items: flex-start;
    margin-bottom: 30px;
}
.reg-step-num {
    counter-increment: step;
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--gold-gradient);
    color: var(--black);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
}
.reg-step-num::before { content: counter(step); }

/* ===== ABOUT PAGE ===== */
.about-quote {
    border-left: 4px solid var(--gold);
    padding-left: 25px;
    margin: 30px 0;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--gold-light);
}
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
    content: '';
    position: absolute; left: 14px; top: 0; bottom: 0;
    width: 2px; background: var(--border-gold);
}
.timeline-item { position: relative; margin-bottom: 35px; }
.timeline-dot {
    position: absolute; left: -33px; top: 5px;
    width: 14px; height: 14px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
}
.timeline-year {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* ===== BLOG POST DETAIL ===== */
.post-content {
    font-size: 1.1rem;
    line-height: 1.9;
}
.post-content h2, .post-content h3 { color: var(--gold); margin: 30px 0 15px; }
.post-content p { margin-bottom: 20px; }
.post-content img { border-radius: 4px; border: var(--border-gold); }
.post-content audio, .post-content video {
    width: 100%;
    background: var(--black-4);
    border-radius: 4px;
    border: var(--border-gold);
}
.pdf-embed { border: var(--border-gold); border-radius: 4px; overflow: hidden; }

/* ===== ALERTS ===== */
.alert-gold {
    background: rgba(212,175,55,0.1);
    border: var(--border-gold);
    color: var(--gold-light);
    border-radius: 4px;
}
.alert-dark {
    background: var(--black-4);
    border: var(--border-gold);
    color: var(--gray-light);
}

/* ===== FOOTER ===== */
.site-footer { background: var(--black-2); border-top: var(--border-gold); }
.footer-top { padding: 70px 0 40px; }
.footer-bottom {
    padding: 20px 0;
    border-top: var(--border-gold);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--gray);
}
.footer-title {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--gray);
    transition: var(--transition);
}
.footer-links a i { font-size: 0.7rem; margin-right: 5px; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: rgba(212,175,55,0.1);
    border: var(--border-gold);
    border-radius: 50%;
    color: var(--gold);
    margin-right: 8px;
    font-size: 1rem;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

/* ===== SCROLL TOP ===== */
.scroll-top-btn {
    position: fixed; bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: var(--gold-gradient);
    color: var(--black);
    border: none; border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0; pointer-events: none;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(212,175,55,0.4);
}
.scroll-top-btn.show { opacity: 1; pointer-events: all; }
.scroll-top-btn:hover { transform: translateY(-3px); }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #1a0a00, var(--black-2), #0a0a0a);
    position: relative;
    overflow: hidden;
    border-top: var(--border-gold);
    border-bottom: var(--border-gold);
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(212,175,55,0.06) 0%, transparent 70%);
}
.cta-section .section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* ===== SHIMMER EFFECT ===== */
.shimmer {
    position: relative;
    overflow: hidden;
}
.shimmer::after {
    content: '';
    position: absolute;
    top: -50%; left: -75%;
    width: 50%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.15), transparent);
    transform: skewX(-20deg);
    animation: shimmerAnim 3s infinite;
}
@keyframes shimmerAnim { 100% { left: 125%; } }

/* ===== MAP / AFRICA DECORATION ===== */
.africa-bg-text {
    position: absolute;
    font-family: var(--font-display);
    font-size: clamp(8rem, 20vw, 18rem);
    color: rgba(212,175,55,0.03);
    user-select: none;
    pointer-events: none;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    background: var(--black-4);
    border: var(--border-gold);
    color: var(--gray-light);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    transition: var(--transition);
}
.pagination .page-link:hover, .pagination .page-item.active .page-link {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 991px) {
    .navbar-collapse { background: rgba(10,10,10,0.98); padding: 20px; border: var(--border-gold); border-radius: 4px; margin-top: 10px; }
    .hero-section { padding: 120px 0 80px; text-align: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-divider { margin: 25px auto; }
    .hero-stats { justify-content: center; }
    .hero-image-col { margin-top: 40px; }
    .section-pad { padding: 70px 0; }
}
@media (max-width: 767px) {
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .stat-number { font-size: 1.8rem; }
    .page-hero { padding: 130px 0 60px; }
}
@media (max-width: 576px) {
    .btn-gold, .btn-gold-outline { padding: 12px 24px; font-size: 0.75rem; }
}

/* ===== PARTICLES (CSS-only dots) ===== */
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) rotate(0deg); }
    10% { opacity: 0.6; }
    90% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-10px) rotate(360deg); }
}

/* ===== GOLD SEPARATOR ===== */
.gold-separator {
    display: flex; align-items: center; gap: 15px;
    margin: 20px 0;
}
.gold-separator::before, .gold-separator::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4));
}
.gold-separator::after {
    background: linear-gradient(90deg, rgba(212,175,55,0.4), transparent);
}
.gold-separator span { color: var(--gold); font-size: 0.9rem; }

/* ===== MOBILE RESPONSIVENESS FIXES ===== */

/* Hero Section */
@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 120px 0 60px;
    text-align: center;
  }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { margin: 0 auto 30px; font-size: 1.1rem; }
  .hero-divider { margin: 20px auto; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .hero-image-col { margin-top: 40px; }
  .hero-img-frame::before { display: none; }
  .hero-scroll { display: none; }
  .africa-bg-text { display: none; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 1.9rem; }
  .hero-subtitle { font-size: 1rem; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.65rem; }
  .d-flex.gap-3 { flex-wrap: wrap; }
  .btn-gold, .btn-gold-outline { width: 100%; justify-content: center; }
}

/* Navbar Mobile */
@media (max-width: 991px) {
  #mainNav { padding: 12px 0; background: rgba(10,10,10,0.97) !important; }
  .navbar-collapse {
    background: rgba(10,10,10,0.98);
    padding: 20px;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 6px;
    margin-top: 10px;
  }
  .nav-link { padding: 12px 10px !important; font-size: 0.85rem; }
  .btn-admin { margin-top: 10px; width: 100%; text-align: center; justify-content: center; display: flex; }
  .navbar-toggler { border-color: rgba(212,175,55,0.5); padding: 6px 10px; }
  .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(212,175,55,0.2); }
}

/* Section Padding */
@media (max-width: 767px) {
  .section-pad { padding: 60px 0; }
  .page-hero { padding: 110px 0 50px; }
  .page-hero-title { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .section-pad { padding: 50px 0; }
  .page-hero-title { font-size: 1.6rem; }
  .section-title { font-size: 1.4rem; }
}

/* Blog Cards */
@media (max-width: 575px) {
  .blog-card-body { padding: 18px; }
  .blog-card-title { font-size: 1.05rem; }
}

/* Team Cards */
@media (max-width: 575px) {
  .team-card { padding: 25px 15px; }
  .team-img, .team-initials { width: 90px; height: 90px; }
  .team-initials { font-size: 2rem; }
}

/* Contact Page */
@media (max-width: 767px) {
  .contact-info-item { flex-direction: column; gap: 10px; }
  .contact-icon { width: 40px; height: 40px; font-size: 1rem; }
}

/* Competition Cards */
@media (max-width: 575px) {
  .comp-banner { height: 140px; }
  .comp-fee { font-size: 1.1rem; }
}

/* Footer */
@media (max-width: 767px) {
  .footer-top { padding: 50px 0 30px; }
  .footer-bottom { text-align: center; }
  .footer-bottom .col-md-6:last-child { margin-top: 8px; }
  .social-links { display: flex; flex-wrap: wrap; gap: 5px; }
}

/* About Page Timeline */
@media (max-width: 575px) {
  .timeline { padding-left: 25px; }
  .timeline::before { left: 8px; }
  .timeline-dot { left: -20px; width: 12px; height: 12px; }
}

/* Glass Cards */
@media (max-width: 575px) {
  .glass-card { border-radius: 6px; }
  .login-box { padding: 30px 20px; margin: 0 10px; }
}

/* Forms */
@media (max-width: 575px) {
  .form-control, .form-select { font-size: 16px; } /* Prevents iOS zoom on focus */
}

/* CTA Section */
@media (max-width: 767px) {
  .cta-section .d-flex { flex-direction: column; align-items: center; }
  .cta-section .btn-gold,
  .cta-section .btn-gold-outline { width: 100%; max-width: 300px; justify-content: center; }
}

/* Scroll Top Button */
@media (max-width: 575px) {
  .scroll-top-btn { bottom: 20px; right: 15px; width: 38px; height: 38px; font-size: 0.9rem; }
}

/* Stats Section (About page) */
@media (max-width: 575px) {
  .stat-card { padding: 20px 15px; }
}

/* Hero stats wrapping */
@media (max-width: 400px) {
  .hero-stats { gap: 15px; }
  .stat-item { min-width: 70px; }
}

/* Fix overflow on all screens */
body, html { overflow-x: hidden; }
.container-fluid, .container { max-width: 100%; }

/* Navbar brand on very small screens */
@media (max-width: 360px) {
  .brand-text { font-size: 1.1rem; }
  .brand-icon { font-size: 1.4rem; }
}