/* Responsive & Modern School Website Styling */
:root {
    --primary-color: #0f4c81;
    --primary-dark: #0a3357;
    --secondary-color: #2ab7ca;
    --accent-color: #fe4a49;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: var(--header-height);
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.15rem;
    z-index: 1001;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

nav.nav-menu {
    display: flex;
    align-items: center;
}

nav.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

nav.nav-menu a:hover, nav.nav-menu a.active {
    color: var(--primary-color);
    background-color: #e0f2fe;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    padding: 40px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.hero-banner h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Card Grids & Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.card-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

/* Responsive Table & Mobile Cards */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

table.data-table th, table.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table.data-table th {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

/* SEO Link Section */
.seo-partner-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
    border: 1px solid var(--border-color);
}

.partner-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.partner-links-container a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.partner-links-container a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 25px 20px;
    text-align: center;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* Mobile Media Queries */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    nav.nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #ffffff;
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    nav.nav-menu.active {
        left: 0;
    }

    nav.nav-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    nav.nav-menu a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    /* Transform Tables into Mobile Cards */
    .mobile-card-table {
        display: block;
    }

    .mobile-card-table thead {
        display: none;
    }

    .mobile-card-table tbody, .mobile-card-table tr, .mobile-card-table td {
        display: block;
        width: 100%;
    }

    .mobile-card-table tr {
        margin-bottom: 15px;
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }

    .mobile-card-table td {
        text-align: right;
        padding: 8px 5px;
        position: relative;
        border-bottom: 1px dashed var(--border-color);
    }

    .mobile-card-table td:last-child {
        border-bottom: none;
    }

    .mobile-card-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 5px;
        font-weight: 600;
        color: var(--primary-color);
        text-align: left;
    }
}
