/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* TOP HEADER BAR */
.top-bar {
    background-color: #dceefb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
    font-size: 13px;
    border-bottom: 1px solid #bce0fd;
    flex-wrap: wrap;
    gap: 10px;
}

.top-contact span {
    margin-right: 15px;
    color: #003366;
    font-weight: 600;
}

.top-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-orange {
    background-color: #e65100;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-orange:hover {
    background-color: #bf360c;
}

/* BRANDING MAIN HEADER */
.main-header {
    background: #ffffff;
    padding: 15px 20px;
    border-bottom: 3px solid #003366;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.school-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.school-info h1 {
    color: #003366;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
}

.school-info .tagline {
    color: #e65100;
    font-weight: bold;
    font-size: 14px;
}

.school-info .address,
.school-info .sub-info {
    font-size: 12px;
    color: #555;
    font-weight: 600;
}

/* NAVBAR & DROPDOWNS */
.navbar {
    background-color: #003366;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-links {
    list-style: none;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-links a:hover {
    background-color: #002244;
    color: #ffcc00;
}

/* Dropdown Submenus */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    list-style: none;
    z-index: 101;
}

.dropdown-menu li a {
    color: #333;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.dropdown-menu li a:hover {
    background-color: #f0f4f8;
    color: #003366;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* HERO SLIDER */
.hero-slider {
    position: relative;
    height: 380px;
    background-color: #111;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-1 {
    background-image: linear-gradient(rgba(0,51,102,0.7), rgba(0,51,102,0.7)), url('https://picsum.photos/1200/400?random=10');
}

.slide-2 {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://picsum.photos/1200/400?random=11');
}

.slide-overlay {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    color: #fff;
}

.badge-motto {
    background-color: rgba(255, 255, 255, 0.9);
    color: #003366;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #e65100;
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-motto i {
    font-size: 36px;
    color: #e65100;
}

.banner-title h2 {
    font-size: 38px;
    color: #ffcc00;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

/* MAIN CONTENT LAYOUT */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    min-height: 450px;
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.page-header {
    border-bottom: 2px solid #003366;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.page-header h2 {
    color: #003366;
}

/* HOMEPAGE CARDS GRID */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-blue { border-top: 4px solid #003366; }
.card-gold { border-top: 4px solid #ffcc00; }

.announcement-list {
    list-style: none;
}

.announcement-list li {
    padding: 8px 0;
    border-bottom: 1px stroke #eee;
    font-size: 13px;
}

.announcement-list i {
    color: #2e7d32;
    margin-right: 6px;
}

/* TABLES & GALLERIES */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background-color: #003366;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    border-radius: 6px;
    height: 160px;
    object-fit: cover;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* EDUNEXT LOGIN MODAL (EXACT RECREATION OF SCREENSHOT 1) */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    position: relative;
    max-width: 850px;
    width: 90%;
    overflow: hidden;
}

.portal-modal {
    max-width: 800px;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 480px;
}

.portal-left {
    background-color: #1976d2;
    color: white;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.user-manual-link {
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    font-size: 13px;
}

.portal-illustration {
    text-align: center;
    font-size: 70px;
    opacity: 0.8;
}

.social-links-side a {
    color: white;
    margin-right: 12px;
    font-size: 16px;
}

.portal-right {
    padding: 25px;
    background: #fff;
}

.portal-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-header h2 {
    font-size: 18px;
    color: #333;
}

.login-tabs {
    display: flex;
    margin: 15px 0;
    background: #f0f0f0;
    border-radius: 4px;
}

.login-tab {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.login-tab.active {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #1976d2;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.pass-wrapper {
    position: relative;
}

.pass-toggle {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    color: #888;
}

.forgot-wrapper {
    text-align: right;
    margin-bottom: 10px;
}

.forgot-link {
    font-size: 11px;
    color: #666;
    text-decoration: none;
}

.cloudflare-mock {
    border: 1px solid #e0e0e0;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: #fafafa;
}

.cf-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #2e7d32;
}

.cf-brand {
    font-size: 10px;
    color: #888;
    text-align: right;
}

.btn-portal-submit {
    width: 100%;
    background-color: #0288d1;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.divider {
    text-align: center;
    margin: 10px 0;
    font-size: 11px;
    color: #aaa;
}

.btn-google {
    width: 100%;
    border: 1px solid #ccc;
    background: white;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
}

.btn-google img {
    width: 16px;
}

.portal-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 11px;
    color: #777;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.store-badge {
    background: #000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 10px;
}

.standard-modal {
    padding: 30px;
}

/* FOOTER STYLES */
footer {
    background-color: #002244;
    color: white;
    padding: 30px 20px 10px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.footer-col h4 {
    color: #ffcc00;
    margin-bottom: 10px;
}

.footer-col ul { list-style: none; }
.footer-col a { color: #ccc; text-decoration: none; font-size: 13px; }
.footer-col p { font-size: 13px; color: #ccc; }

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #aaa;
}

/* RESPONSIVE DESIGN */
@responsive {
    @media (max-width: 768px) {
        .portal-grid {
            grid-template-columns: 1fr;
        }
        .portal-left {
            display: none;
        }
        .contact-container {
            grid-template-columns: 1fr;
        }
    }
}