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

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== HEADER ===== */
.main-header {
    background: linear-gradient(135deg, #001f5c 0%, #0b5394 100%);
    padding: 15px 0;
    border-bottom: 4px solid #d4a017;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-section .school-icon {
    font-size: 36px;
}

.logo-section h1 {
    color: #ffeb99;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-section .subtitle {
    color: #d4a017;
    font-size: 14px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(212, 160, 23, 0.2);
    color: #d4a017;
}

.nav-links a.active {
    background: rgba(212, 160, 23, 0.15);
    color: #d4a017;
}

.nav-links a.portal-link {
    background: #d4a017;
    color: #001f5c;
    font-weight: bold;
}

.nav-links a.portal-link:hover {
    background: #ffeb99;
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0b5394 0%, #001f5c 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffeb99;
}

.hero p {
    font-size: 22px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: #d4a017;
    color: #001f5c;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* ===== FEATURES ===== */
.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    color: #001f5c;
    margin-bottom: 50px;
}

.features h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #d4a017;
    margin: 15px auto 0;
}

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

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: #d4a017;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #001f5c;
    font-size: 22px;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== STATS ===== */
.stats {
    background: linear-gradient(135deg, #001f5c 0%, #0b5394 100%);
    padding: 60px 0;
    color: white;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #ffeb99;
    display: block;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 5px;
    display: block;
}

/* ===== ABOUT PAGE ===== */
.about-section {
    padding: 60px 0;
    background: white;
}

.about-section h1 {
    color: #001f5c;
    font-size: 36px;
    margin-bottom: 20px;
}

.about-section .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.about-section .content p {
    line-height: 1.8;
    font-size: 18px;
    color: #555;
}

.about-section .content img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: 60px 0;
    background: white;
}

.contact-section h1 {
    color: #001f5c;
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info .info-item .icon {
    font-size: 24px;
}

.contact-info .info-item .text {
    font-size: 18px;
    color: #555;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0b5394;
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 15px 40px;
    background: #0b5394;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #001f5c;
    transform: scale(1.02);
}

/* ===== FOOTER ===== */
.main-footer {
    background: #001f5c;
    color: white;
    padding: 40px 0 20px;
    border-top: 4px solid #d4a017;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #d4a017;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-col p {
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #d4a017;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 14px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .about-section .content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 36px;
    }

    .features h2 {
        font-size: 28px;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

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

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .logo-section h1 {
        font-size: 20px;
    }

    .logo-section .school-icon {
        font-size: 28px;
    }

    .hero h1 {
        font-size: 24px;
    }
}