:root {
    --primary: #1a237e;       /* Deep Navy Blue */
    --primary-dark: #000051;
    --accent: #ffc107;        /* Golden Yellow (GCE Style) */
    --success: #2e7d32;
    --text-dark: #333333;
    --text-light: #f4f6f8;
    --white: #ffffff;
    --gray: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif; line-height: 1.6; color: var(--text-dark); background-color: #f9f9f9; }

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}
.top-info span { margin-right: 20px; }

/* --- Main Navigation --- */
.main-header {
    background: var(--white);
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo span { color: var(--accent); }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: 600; transition: 0.3s; }
.nav-menu a:hover { color: var(--primary); }

.btn-login {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}
.btn-school { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-school:hover { background: var(--primary-dark); }
.btn-admin { background: transparent; color: var(--primary); border: 2px solid var(--primary); margin-left: 10px; }
.btn-admin:hover { background: var(--primary); color: white; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(26, 35, 126, 0.9), rgba(26, 35, 126, 0.8)), url('../images/hero-bg.jpg'); /* Ensure you have an image or remove url part */
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 700; line-height: 1.2; }
.hero-content p { font-size: 1.3rem; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; opacity: 0.9; }
.hero-btn {
    padding: 15px 40px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s;
    display: inline-block;
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- Features Section --- */
.section { padding: 80px 5%; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.section-title .line { width: 80px; height: 4px; background: var(--accent); margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}
.feature-card:hover { transform: translateY(-10px); border-bottom-color: var(--accent); }
.icon-box { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* --- Stats Section --- */
.stats-section { background: var(--primary); color: white; padding: 60px 5%; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.stat-number { font-size: 3rem; font-weight: bold; color: var(--accent); }

/* --- Footer --- */
.footer { background: #111; color: #ccc; padding: 70px 5% 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer h3 { color: white; margin-bottom: 20px; border-left: 3px solid var(--accent); padding-left: 10px; }
.footer-links a { display: block; color: #ccc; text-decoration: none; margin-bottom: 10px; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 0.9rem; }

/* --- Forms (Login/Signup) --- */
.auth-wrapper { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px; background: #eee; }
.auth-card { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); width: 100%; max-width: 450px; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; margin-bottom: 20px; font-size: 1rem; }
.btn-block { display: block; width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 5px; font-size: 1.1rem; cursor: pointer; font-weight: bold; }
.btn-block:hover { background: var(--primary-dark); }
.error-msg { background: #ffebee; color: #c62828; padding: 10px; border-radius: 4px; margin-bottom: 20px; text-align: center; border: 1px solid #ffcdd2; }

/* Responsive */
@media(max-width: 768px) {
    .nav-menu { display: none; } /* Simplified for mobile example */
    .hero-content h1 { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* Keep your previous root variables */
:root {
    --primary: #1a237e;       
    --primary-dark: #000051;
    --accent: #ffc107;        
    --text-dark: #333333;
    --white: #ffffff;
    --light-bg: #f4f7f6;
}

/* Flexbox Layout to keep footer at bottom */
.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--light-bg);
}
.page-content {
    flex: 1; /* Pushes footer down */
    display: flex;
    flex-direction: column;
}

/* --- Improved Form Styling --- */
.auth-section {
    background: url('../images/cameroon-edu-bg.jpg') no-repeat center center/cover; /* Add a subtle background image if available, else standard color */
    background-color: #e8eaf6;
    padding: 60px 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-form-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px; /* Default for login */
    border-top: 5px solid var(--primary);
    animation: slideUp 0.5s ease-out;
}

/* Wider card for Signup */
.card-wide {
    max-width: 900px;
}

.form-header { text-align: center; margin-bottom: 30px; }
.form-header h2 { color: var(--primary); font-size: 1.8rem; margin-bottom: 10px; }
.form-header p { color: #666; font-size: 0.95rem; }

/* Grid for Signup Form */
.signup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #444; font-size: 0.9rem; }
.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: 0.3s;
    background: #f9f9f9;
}
.input-group input:focus {
    border-color: var(--primary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Animation */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media(max-width: 768px) {
    .signup-grid { grid-template-columns: 1fr; }
    .card-wide { padding: 25px; }
}

/* Footer Fixes */
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; color: #ccc; }