/* Design System Variables */
:root {
    --primary-color: #003366;
    /* Deep Blue - Official */
    --primary-dark: #002244;
    --secondary-color: #D4AF37;
    /* Gold - Accent */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.title-center {
    text-align: center;
}

.title-center::after {
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 1rem;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-warning {
    background-color: #f39c12;
    color: var(--white);
}

.btn-warning:hover {
    background-color: #e67e22;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-socials {
    display: flex;
    gap: 15px;
}

.top-socials a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.top-socials a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.top-login-btn {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.top-login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.header-main {
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

/* Main Navigation */
nav {
    display: flex;
    align-items: center;
}

/* Seasonal Effect (Snow/Flower) */
.seasonal-item {
    position: fixed;
    top: -20px;
    pointer-events: none;
    z-index: 9999;
    user-select: none;
    animation-name: falling;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.seasonal-item.winter {
    color: #aed9e0;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.seasonal-item.spring {
    color: #ffc0cb;
    /* Pink */
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.6);
}

@keyframes falling {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) translateX(var(--travel-x, 20px)) rotate(360deg);
    }
}

.seasonal-item.spring {
    color: #ffd1dc;
    /* More natural almond flower pink */
    text-shadow: 0 0 5px rgba(255, 182, 193, 0.4);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}


/* Logo Refresh */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img-wrapper {
    width: 65px;
    height: 65px;
    overflow: hidden;
    /* Removed border and background for cleaner look */
    flex-shrink: 0;
    position: relative;
}

.logo-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show full image */
    object-position: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-title {
    font-size: 1.1rem;
    font-weight: 800;
    /* Extra bold */
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.logo-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    /* Bold */
    color: var(--primary-color);
    /* Same blue color */
    text-transform: uppercase;
    max-width: 300px;
    display: block;
}

nav ul.nav-menu {
    display: flex;
    gap: 20px;
}

nav ul.nav-menu>li {
    position: relative;
}

nav ul.nav-menu>li>a {
    font-weight: 600;
    padding: 10px 12px;
    /* Reduced padding from 10px to fit */
    display: block;
    white-space: nowrap;
    /* Force single line */
}

nav ul.nav-menu>li>a:hover {
    color: var(--secondary-color);
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    top: 100%;
    left: 0;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    color: var(--text-color);
    border-bottom: 1px solid var(--bg-color);
}

.dropdown-content a:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.4), rgba(0, 51, 102, 0.4)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Stats Section - Redesigned */
.stats-modern-section {
    padding: 60px 0 10px 0;
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    border-radius: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: -60px;
    /* Pull up to overlap hero slightly */
    position: relative;
    z-index: 20;
}

/* ... existing grid styles ... */

.stats-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

/* Specific grid for teacher stats to force 1 row */
.teacher-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* ... existing teacher grid styles ... */
.teacher-stats-grid .stat-item {
    padding: 20px 15px;
}

.teacher-stats-grid .stat-icon {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
}

.teacher-stats-grid .stat-number {
    font-size: 1.8rem;
}

@media (max-width: 992px) {
    .teacher-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

.stat-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-bottom: 4px solid var(--secondary-color);
}

/* ... existing stat item styles ... */
.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: rgba(0, 51, 102, 0.05);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transition: background 0.3s, color 0.3s;
}

.stat-item:hover .stat-icon {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* News Section */
.news-section {
    padding: 10px 0 60px 0;
    background-color: var(--bg-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.news-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
}

.article-body a,
.article-body a * {
    color: #007bff !important;
    text-decoration: underline !important;
    font-weight: 500;
}

.news-content a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Links Section */
.links-section {
    padding: 60px 0;
    background-color: var(--white);
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: 0.3s;
}

.link-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.link-card img {
    height: 60px;
    margin-bottom: 15px;
}

.link-card span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    nav ul.nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: var(--header-height);
        left: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
    }

    nav ul.nav-menu.active {
        display: flex;
    }

    nav ul.nav-menu>li {
        text-align: center;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Slogan Adjustment */
.hero h1 {
    white-space: nowrap;
    font-size: 1.8rem;
    max-width: 100%;
}

@media (max-width: 992px) {
    .hero h1 {
        white-space: normal;
        font-size: 1.5rem;
    }
}

/* Shiny Button Style */
.btn-shiny {
    background: linear-gradient(45deg, #FFD700, #FDB931, #FFFFE0, #FFD700);
    background-size: 300% 300%;
    color: #003366 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    border: 2px solid #DAA520;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: gradientShine 4s ease infinite;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
}

.btn-shiny:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.9);
    background-position: 100% 50%;
}

@keyframes gradientShine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Login Button in Header */
/* Login Button in Header */
.btn-login {
    background: transparent;
    color: var(--primary-color) !important;
    padding: 8px 24px !important;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-login:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.25);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-login:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 2px 5px rgba(0, 51, 102, 0.2);
    text-decoration: none;
}





/* --- Slogan Bar (Thin Top Bar) --- */
.slogan-bar {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--secondary-color);
}

.slogan-bar h1 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    color: white;
    display: inline-block;
    vertical-align: middle;
}

.slogan-bar p {
    display: inline-block;
    margin: 0 0 0 15px;
    font-size: 0.9rem;
    opacity: 0.8;
    vertical-align: middle;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
}

@media (max-width: 768px) {
    .slogan-bar {
        padding: 10px 0;
        display: none;
        /* Hide on mobile if too crowded, or stack */
    }

    .slogan-bar p {
        display: none;
    }
}

/* --- Dynamic Hero Banner --- */
.hero-banner {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: white;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}



.banner-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
}

.banner-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Extra Text for Banner */
.banner-extra-text {
    font-size: 1.1rem !important;
    font-style: italic;
    opacity: 0.85;
    margin-bottom: 40px !important;
}

/* Animations */


.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out 0.5s forwards;
}

.animate-fade-down {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeDown 1s ease-out forwards;
}

.animate-bounce-up {
    opacity: 0;
    animation: bounceUp 1s ease-out 1s forwards;
}

.delay-100 {
    animation-delay: 1.2s;
}



@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    70% {
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}





/* Mobile Responsive */
@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2.2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }
}

/* --- Advanced Banner Styles --- */


.banner-btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {

    .banner-btn-custom {
        position: static !important;
        transform: none !important;
        display: inline-block;
        margin: 10px 5px;
    }

    .hero-banner .banner-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 400px;
    }
}