/* ========================================================
   MISSION GEOGRAPHY - STUDENT-ATTRACTIVE MODERN STYLESHEET
   Style: Energetic, Playful, Colorful, Animated & Youth-Oriented
   Brand: Deep Navy, Electric Blue, Emerald Teal & Radiant Gold
   ======================================================== */

:root {
    --mg-primary: #071629;
    --mg-primary-light: #0c2340;
    --mg-secondary: #1e3a8a;
    --mg-blue-electric: #2563eb;
    --mg-teal-vibrant: #0d9488;
    --mg-cyan: #06b6d4;
    --mg-gold: #f59e0b;
    --mg-gold-bright: #fbbf24;
    --mg-orange: #ea580c;
    --mg-purple: #7c3aed;
    --mg-pink: #ec4899;
    --mg-light-bg: #f8fafc;
    --mg-text-main: #0f172a;
    --mg-text-muted: #475569;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-badge: 'Space Grotesk', monospace;
}

/* Base Document Styling */
body.mg-site-body {
    font-family: var(--font-body);
    font-size: 1.0625rem; /* ~17px - Big, friendly and readable */
    color: var(--mg-text-main);
    background-color: var(--mg-light-bg);
    line-height: 1.65;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Bold Playful Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--mg-primary);
    letter-spacing: -0.02em;
}

/* ========================================================
   KEYFRAME ANIMATIONS (Playful & Eye-Catching)
   ======================================================== */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6), 0 4px 15px rgba(245, 158, 11, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0), 0 8px 25px rgba(245, 158, 11, 0.6);
        transform: scale(1.03);
    }
}

@keyframes shimmerSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-float {
    animation: floatSlow 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatSlow 4.5s ease-in-out 1.5s infinite;
}

/* ========================================================
   TOP ANNOUNCEMENT RIBBON & NAVBAR
   ======================================================== */
.top-announcement-ribbon {
    background: linear-gradient(90deg, #071629 0%, #0c2340 50%, #1e3a8a 100%);
    border-bottom: 2px solid rgba(245, 158, 11, 0.5);
    font-size: 0.88rem;
}

.hover-glow:hover {
    color: var(--mg-gold-bright) !important;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

/* Main Navbar - Solid, High-Contrast & Impossible to Miss */
.navbar-mg {
    background-color: #071629 !important;
    border-bottom: 3px solid var(--mg-gold);
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
}

.navbar-mg .nav-link,
.navbar-mg .navbar-brand,
.navbar-brand-mg,
.navbar-nav .nav-item,
.btn-student-login,
.btn-register-pulse {
    white-space: nowrap !important;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand-mg:hover .brand-logo-img {
    transform: scale(1.08) rotate(-3deg);
}

.brand-title-main {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap !important;
}

.brand-subtitle-tag {
    font-family: var(--font-badge);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--mg-gold-bright);
    letter-spacing: 1.5px;
    white-space: nowrap !important;
}

.navbar-mg .nav-link {
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff !important;
    padding: 8px 10px !important;
    border-radius: 8px;
    white-space: nowrap !important;
    transition: all 0.2s ease-in-out;
}

.navbar-mg .nav-link:hover,
.navbar-mg .nav-link.active {
    color: var(--mg-gold-bright) !important;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

/* Prevent sticky cards from overlapping the navbar */
.card.sticky-top,
.sticky-top {
    z-index: 10 !important;
    top: 110px !important;
}
.navbar.sticky-top {
    z-index: 99999 !important;
    top: 0 !important;
}

.btn-student-login {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.2s ease-in-out;
}

.btn-student-login:hover {
    background: #ffffff !important;
    color: var(--mg-primary) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-register-pulse {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    font-size: 1.02rem;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px;
    animation: pulseGlow 2.5s infinite;
    transition: all 0.25s ease-in-out;
}

.btn-register-pulse:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%) !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

/* ========================================================
   HERO SECTION (High-Energy, Student Attraction)
   ======================================================== */
.hero-section {
    background: linear-gradient(135deg, #071629 0%, #0c2340 40%, #1e3a8a 100%);
    color: #ffffff;
    padding: 85px 0 95px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.35) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px; width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: var(--mg-gold-bright);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 20px;
}

.text-gold-gradient {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #fef08a, #f59e0b);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 6s ease infinite;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Feature Pill Badges */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pill-teal {
    background: rgba(13, 148, 136, 0.2);
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.5);
}

.pill-blue {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.5);
}

.pill-purple {
    background: rgba(124, 58, 237, 0.2);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.5);
}

.pill-gold {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.5);
}

/* Hero Action Buttons */
.btn-hero-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 16px 36px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease-in-out;
}

.btn-hero-secondary:hover {
    background: #ffffff !important;
    color: var(--mg-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Hero Right Stats Card */
.hero-stats-card {
    background: rgba(7, 22, 41, 0.85);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-stats-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, #f59e0b, #0d9488, #2563eb, #f59e0b);
}

.hero-stat-row {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-row:last-child {
    border-bottom: none;
}

/* ========================================================
   VIBRANT AWARDS & MEDALS SECTION (Playful & Colorful)
   ======================================================== */
.award-card {
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid transparent;
}

.award-card:hover {
    transform: translateY(-12px) scale(1.02);
}

/* Gold Medal Card */
.award-gold {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 40%, #fde68a 100%);
    border-color: #f59e0b;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.25);
}

.award-gold:hover {
    box-shadow: 0 20px 45px rgba(245, 158, 11, 0.45);
}

.award-gold .award-badge {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #ffffff;
}

/* Silver Medal Card */
.award-silver {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
    border-color: #94a3b8;
    box-shadow: 0 15px 35px rgba(100, 116, 139, 0.2);
}

.award-silver:hover {
    box-shadow: 0 20px 45px rgba(100, 116, 139, 0.35);
}

.award-silver .award-badge {
    background: linear-gradient(135deg, #64748b, #334155);
    color: #ffffff;
}

/* Bronze Medal Card */
.award-bronze {
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
    border-color: #ea580c;
    box-shadow: 0 15px 35px rgba(234, 88, 12, 0.2);
}

.award-bronze:hover {
    box-shadow: 0 20px 45px rgba(234, 88, 12, 0.35);
}

.award-bronze .award-badge {
    background: linear-gradient(135deg, #c2410c, #7c2d12);
    color: #ffffff;
}

/* Merit Medals Card */
.award-merit {
    background: linear-gradient(145deg, #f0fdfa 0%, #ccfbf1 50%, #99f6e4 100%);
    border-color: #0d9488;
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.2);
}

.award-merit:hover {
    box-shadow: 0 20px 45px rgba(13, 148, 136, 0.35);
}

.award-merit .award-badge {
    background: linear-gradient(135deg, #0d9488, #115e59);
    color: #ffffff;
}

.award-icon-wrapper {
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.award-card:hover .award-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
}

.award-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* ========================================================
   COMPETITION HIGHLIGHT CARDS (Playful Grid)
   ======================================================== */
.feature-card-playful {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 24px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    height: 100%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.feature-card-playful:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(12, 35, 64, 0.12);
    border-color: var(--mg-gold);
}

.feature-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-card-playful:hover .feature-icon-circle {
    transform: scale(1.1) rotate(-5deg);
}

.icon-yellow { background: #fef3c7; color: #d97706; }
.icon-blue { background: #dbeafe; color: #2563eb; }
.icon-teal { background: #ccfbf1; color: #0d9488; }
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-green { background: #dcfce7; color: #16a34a; }
.icon-orange { background: #ffedd5; color: #ea580c; }
.icon-pink { background: #fce7f3; color: #db2777; }
.icon-cyan { background: #cffafe; color: #0891b2; }

/* ========================================================
   HOW TO PARTICIPATE STEPS (Numbered Colorful Timeline)
   ======================================================== */
.step-card-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.step-card-box:hover {
    transform: translateY(-6px);
    border-color: #2563eb;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.step-number-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    color: #ffffff;
    font-family: var(--font-badge);
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ========================================================
   SECTION TITLES & BADGES
   ======================================================== */
.section-badge-pill {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-family: var(--font-badge);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-title-large {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--mg-primary);
    margin-bottom: 14px;
}

.section-subtitle-large {
    font-size: 1.18rem;
    color: var(--mg-text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* ========================================================
   TABLES & ACCORDIONS
   ======================================================== */
.table-mg {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.table-mg thead th {
    background-color: var(--mg-primary) !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 16px;
    font-size: 1.02rem;
}

.table-mg tbody td {
    padding: 14px 16px;
    font-size: 1rem;
}

.accordion-mg .accordion-item {
    border: 2px solid #e2e8f0;
    border-radius: 16px !important;
    margin-bottom: 14px;
    overflow: hidden;
}

.accordion-mg .accordion-button {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--mg-primary);
    padding: 20px 24px;
}

.accordion-mg .accordion-button:not(.collapsed) {
    background-color: #f1f5f9;
    color: #2563eb;
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer-mg {
    background: #071629;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--mg-gold-bright);
    padding-left: 6px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: var(--mg-gold);
    color: #000;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-headline {
        font-size: 2.4rem;
    }
    .section-title-large {
        font-size: 2rem;
    }
}
