/* style.css */
:root {
    --fgn-green: #008751;
    --fgn-dark: #005a36;
    --accent: #44ce7b;
    --white: #ffffff;
    --gray: #f4f7f6;
    --text: #2d3436;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* header & Navbar */
header {
    background: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--fgn-green); /* Adds that "official" stripe */
}

.logo {
    width: 50px;       /* Set your preferred size here */
    height: auto;
    flex: none;        /* This stops it from stretching! */
    object-fit: contain;
}

.brand {
    text-align: center;
    flex: 1;           /* Let the center take the most space */
}

.gov-text {
    font-weight: 800; /* Bolder as requested */
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--fgn-green);
}

.portal-text {
    font-weight: 700;
    font-size: 16px;
    color: #333;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.menu-toggle {
    display: none;     /* Hidden on desktop */
    cursor: pointer;
    flex: none;        /* Match the logo's behavior */
    width: 50px;       /* Match the logo's width for perfect centering */
    text-align: right;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.apply-btn {
    background: var(--fgn-green);
    color: white !important;
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: bold;
}

/* Hide Hamburger on Desktop */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--fgn-green);
    transition: 0.3s;
}

/* --- MOBILE RESPONSIVE LOGIC --- */
@media (max-width: 968px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    /* Transform the nav menu into a mobile sidebar/dropdown */
    .nav-menu {
        position: fixed;
        left: -100%; /* Hidden by default */
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 40px 0;
        height: auto;
        gap: 30px;
    }

    /* When menu is active */
    .nav-menu.active {
        left: 0;
    }

    .nav-button-desktop {
        display: none; /* Hide the extra button on mobile */
    }

    /* Animate Hamburger to an 'X' when active */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hero Section */
/* Hero Section */
.hero {
    /* Use a professional image like a modern Nigerian campus or focused students */
    background: linear-gradient(rgba(0, 8, 5, 0.8), rgba(0, 20, 10, 0.7)),
        url('hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* This adds a nice parallax effect when scrolling */
    padding: 120px 0;
    color: white;
    text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; margin-bottom: 20px; }
.green-glow { color: var(--accent); text-shadow: 0 0 10px rgba(68, 206, 123, 0.3); }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; opacity: 0.9; }

.action-group { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn-primary { background: var(--fgn-green); color: white; padding: 15px 30px; text-decoration: none; border-radius: 50px; font-weight: bold; transition: 0.3s; }
.btn-outline { border: 2px solid white; color: white; padding: 13px 30px; text-decoration: none; border-radius: 50px; font-weight: bold; transition: 0.3s; }
.btn-primary:hover { background: var(--fgn-dark); transform: translateY(-3px); }

/* Steps Section */
.steps-section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2rem; color: var(--fgn-dark); }

.grid-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--gray);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #eee;
}

.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); background: white; border-color: var(--fgn-green); }

.icon-circle {
    background: var(--fgn-green);
    color: white;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* --- MEDIA QUERIES (The Secret Sauce) --- */

@media (max-width: 768px) {
    
    .nav-menu { width: 100%; justify-content: center; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 1.8rem; }
    .action-group { flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; }
    .grid-steps { grid-template-columns: 1fr; }
}

/* Footer Styling */
.main-footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .footer-logo {
    width: 60px;
    margin-bottom: 15px;
}

.gov-text-white { display: block; font-size: 11px; color: var(--accent); font-weight: bold; }
.portal-text-white { font-size: 18px; font-weight: 700; color: white; }

.footer-desc { margin-top: 15px; font-size: 14px; line-height: 1.6; opacity: 0.8; }

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background: var(--fgn-green);
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: #aaa; text-decoration: none; transition: 0.3s; font-size: 14px; }
.footer-links ul li a:hover { color: var(--accent); padding-left: 5px; }

.footer-contact p { font-size: 14px; margin-bottom: 10px; opacity: 0.8; }

/* Bottom Bar */
.footer-bottom {
    background: #111;
    padding: 20px 0;
    border-top: 1px solid #333;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.7;
}

.flag-strip {
    display: flex;
    width: 60px;
    height: 10px;
    border-radius: 2px;
    overflow: hidden;
}
.flag-green { flex: 1; background: #008751; }
.flag-white { flex: 1; background: #ffffff; }

/* Mobile Footer Adjustment */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .bottom-flex {
        flex-direction: column;
        gap: 15px;
    }
}


.form-container { padding: 60px 0; max-width: 800px; }
.form-header { text-align: center; margin-bottom: 40px; }

fieldset {
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    background: #fff;
}

legend {
    font-weight: bold;
    color: var(--fgn-green);
    padding: 0 10px;
    font-size: 1.1rem;
}

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.input-group label span { font-weight: normal; font-style: italic; color: #888; font-size: 12px; }

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--fgn-green);
    box-shadow: 0 0 8px rgba(0, 135, 81, 0.1);
}

.grid-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-submit { width: 100%; margin-top: 20px; cursor: pointer; border: none; }

@media (max-width: 600px) {
    .grid-inputs { grid-template-columns: 1fr; }
}


.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-suggestions div {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f4f4f4;
}

.search-suggestions div:hover {
    background-color: #f0f9f4; /* Light green tint */
    color: #008751; /* Official FGN Green */
    border-left: 4px solid #008751;
}

.share-bonus-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.bonus-card {
    background: #f0fdf4; /* Very light green */
    border: 2px dashed #008751; /* Official green dashed border */
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bonus-content h3 {
    color: #008751;
    margin-bottom: 10px;
}

.btn-secondary {
    background-color: #008751;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: #005e38;
}

/* For Mobile */
@media (max-width: 768px) {
    .bonus-card {
        flex-direction: column;
        text-align: center;
    }
}


.share-btn.generic {
    background-color: #333; /* Dark/Neutral for other platforms */
    color: white;
}

.unlocked-card {
    background: #f0fdf4;
    border: 2px solid #008751;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    animation: slideIn 0.5s ease-out;
}

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

.btn-start {
    display: inline-block;
    background: #008751;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
}

/* Share Box Layout */
.share-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 40px auto;
    text-align: center;
}

.share-options {
    display: flex;
    flex-direction: column; /* Stack on mobile for better space */
    gap: 15px;
    margin-top: 25px;
}

.share-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    width: 100%; /* Full width on mobile */
}

.share-btn:active { transform: scale(0.98); }

/* Brand Colors */
.wa { background-color: #25D366; color: white; }
.fb { background-color: #1877F2; color: white; }
.generic { background-color: #000000; color: white; } /* X/Twitter Black */

/* Success Card */
.unlocked-card {
    margin-top: 30px;
    background: #f0fdf4;
    border: 2px solid #008751;
    padding: 25px;
    border-radius: 12px;
    animation: fadeIn 0.6s ease-in-out;
}

.btn-start {
    display: inline-block;
    margin-top: 15px;
    background: #008751;
    color: white !important;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
}

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

/* Desktop spacing */
@media (min-width: 768px) {
    .share-options {
        flex-direction: row;
        justify-content: center;
    }
    .share-btn { width: auto; }
}


.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 20px;
    margin: 20px 0 10px 0;
    height: 15px;
    overflow: hidden;
    border: 1px solid #ccc;
}

.progress-bar {
    width: 0%; /* Starts at 0 */
    height: 100%;
    background-color: #008751; /* Official Green */
    transition: width 0.5s ease-in-out;
}

#progress-text {
    font-weight: bold;
    color: #555;
    margin-bottom: 20px;
}


/* Apply the fix to BOTH the privacy and terms pages */
.privacy-container, 
.terms-container,
.institutions-container,
.eligibility-container,
.faq-container,
.contact-container {
    padding-top: 140px !important; 
    margin-top: 20px;
    position: relative;
    z-index: 1; 
}

/* Fix the internal header for both containers */
.privacy-container header,
.terms-container header, .eligibility-container header,
.faq-container header,
.contact-container header, .institutions-container header {
    border-left: 5px solid #008751;
    padding-left: 20px;
    margin-top: 0 !important; 
    margin-bottom: 40px;
    position: static; 
}

/* --- LEADERSHIP SPOTLIGHT (CLEAN & CENTERED) --- */
.leadership-spotlight {
    padding: 60px 20px;
    background: #fdfdfd; /* Off-white to separate it from the section above */
    text-align: center; /* Centers everything for a clean mobile look */
}

.spotlight-minimal {
    max-width: 800px; /* Prevents text from stretching too wide */
    margin: 0 auto;
}

.sub-heading {
    color: #008751; /* Nigerian Flag Green */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.leadership-spotlight h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #1a1a1a;
}

.leadership-spotlight p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Professional View Button */
.view-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #008751;
    color: #fff;
    text-decoration: none;
    border-radius: 50px; /* Rounded for a more modern, friendly feel */
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 135, 81, 0.2);
}

.view-btn:hover {
    background: #005f39;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 135, 81, 0.3);
}

.green-glow {
    color: #008751;
    font-weight: bold;
}


/* --- LEADERSHIP GALLERY STYLES --- */
.leadership-gallery {
    background-color: #f9fbf9; /* Very light green tint for professionalism */
    border-radius: 20px;
}

.gallery-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

/* Tier 1: Presidential (2 columns) */
.presidential-tier {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

/* Tier 2: Ministry (3 columns) */
.ministry-tier {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Tier 3: Technical (2 columns, smaller) */
.technical-tier {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 800px;
    margin: 0 auto;
}

/* --- LEADER CARDS --- */
.leader-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid #008751;
    display: flex;
    flex-direction: column;
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 87, 81, 0.15);
}

.image-box {
    width: 100%;
    height: 320px; /* Fixed height for consistency */
    background: #eee; /* Placeholder color */
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is CRITICAL to prevent stretching */
    display: block;
}

.leader-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.leader-info h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.position-tag {
    display: inline-block;
    background: #e6f3ed;
    color: #008751;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .presidential-tier, .technical-tier {
        grid-template-columns: 1fr;
    }
    
    .image-box {
        height: 300px;
    }
}
