/* CSS Variables */
:root {
    --primary-color: teal;
    --primary-dark: #176512;
    --primary-light: #e6f3e5;
    --secondary-color: #b3bd04;
    --secondary-dark: #777d06;
    --accent-color: #e74c3c;
    --light-color: #f5f7fa;
    --dark-color: #1a2a44;
    --dark-light: #2c3a5a;
    --text-color: #2d3436;
    --text-light: #636e72;
    --white: beige;
    --black: #000000;
    --gray: #ecf0f1;
    --heading-font: "Saira", sans-serif;
    --body-font: "Saira", sans-serif;
    --spacing-unit: 1rem;
    --max-width: 1280px;
    --transition-fast: 0.25s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
    --transition-slow: 0.6s ease-in-out;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --nav-height: 60px;
    --top-bar-height: 40px;
}
/* Scrollbar */
*::-webkit-scrollbar {
    width: 2px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: none !important;
    box-shadow: none !important;
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 8px;
    transition: background var(--transition-fast);
}

    *::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }
/* Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    background: var(--primary-color);
    overflow-x: hidden;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

    body.loaded {
        opacity: 1;
    }

    body.menu-open {
        overflow: hidden;
    }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

    a:hover {
        color: var(--secondary-color);
    }

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}
/* Preloader - Optimized */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.preloader-logo {
    margin-bottom: 2rem;
    position: relative;
}

    .preloader-logo img {
        width: 100px;
        height: auto;
        border-radius: 20%;
        animation: logoPulse 2s ease-in-out infinite;
    }

.preloader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 4px;
    animation: progressFill 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}
/* Utility Classes */
.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
/* Top Bar */
.top-bar {
    background: transparent;
    color: var(--white);
    font-size: 0.9rem;
    padding: 0.75rem 0;
    position: relative;
    z-index: 1000;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left {
    display: flex;
    gap: 1.5rem;
}

    .top-bar-left span a {
        display: inline-flex;
        align-items: center;
        font-size: 0.8rem;
        color: #333;
        padding: 0.2rem 0.5rem;
        background: linear-gradient(145deg, #e6e6e6, #e6e6e6);
        border-radius: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: default;
    }

    .top-bar-left a:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        border: dashed 1px var(--secondary-color);
        background: none;
        color: var(--white);
    }

    .top-bar-left i {
        margin-right: 0.5rem;
        font-size: 1rem;
        color: var(--primary-color);
    }

    .top-bar-left span:hover i {
        color: var(--white) !important;
    }

.social-icon {
    margin-left: 1rem;
    height: 28px;
    width: 28px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 50%;
    padding: 0;
    color: beige;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15), 2px 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .social-icon:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25), 2px 8px 16px rgba(0, 0, 0, 0.2);
        background: linear-gradient(145deg, #f0f0f0, #ffffff);
        color: beige !important;
    }
/* Main Navigation */
.main-nav {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
    height: var(--nav-height);
}

    .main-nav.scrolled {
        box-shadow: var(--shadow-md);
        background: rgba(0, 128, 128, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform var(--transition-medium);
}

    .logo:hover {
        transform: translateX(5px);
    }

.logo-img {
    height: 60px;
    width: auto;
    transition: transform var(--transition-medium);
    border-radius: 20%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.school-name {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
    line-height: 1.2;
}

.school-motto {
    font-size: 0.8rem;
    color: beige;
    font-style: italic;
}
/* Mobile Menu Toggle - Redesigned */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1003;
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-toggle.active .toggle-bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
        width: 30px;
    }

    .mobile-menu-toggle.active .toggle-bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .mobile-menu-toggle.active .toggle-bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
        width: 30px;
    }

.toggle-bar {
    display: block;
    width: 30px;
    height: 3px;
    background: beige;
    margin: 6px auto;
    border-radius: 2px;
    transition: all var(--transition-medium);
    transform-origin: center;
}
/* Full-screen Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 128, 128, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 1002;
}

    .mobile-menu-close:hover {
        background: var(--secondary-color);
        border-color: var(--secondary-color);
        transform: rotate(90deg);
    }

    .mobile-menu-close i {
        color: var(--white);
        font-size: 1.5rem;
    }

.mobile-nav-menu {
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-item {
    width: 100%;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

    .mobile-nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .mobile-nav-link:hover::before {
        left: 100%;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--secondary-color);
        transform: translateX(10px);
    }

    .mobile-nav-link .dropdown-arrow {
        transition: transform var(--transition-medium);
        font-size: 0.8rem;
        margin-left: 1rem;
    }

    .mobile-nav-link.active .dropdown-arrow {
        transform: rotate(180deg);
    }

.mobile-dropdown-menu {
    display: none; /* Hidden by default, since now using modal */
}
/* Sub Menu Modal */
.sub-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .sub-menu-modal.active {
        opacity: 1;
        visibility: visible;
    }

.sub-menu-inner {
    background: rgba(0, 128, 128, 0.98);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform var(--transition-fast);
}

.sub-menu-modal.active .sub-menu-inner {
    transform: scale(1);
}

.sub-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

    .sub-menu-close:hover {
        background: var(--secondary-color);
        border-color: var(--secondary-color);
        transform: rotate(90deg);
    }

    .sub-menu-close i {
        color: var(--white);
        font-size: 1.2rem;
    }

.sub-menu-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
}

    .sub-menu-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 2px;
        background: var(--white);
        margin: 0.5rem auto 0;
        opacity: 0.5;
    }

.sub-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .sub-menu-links .mobile-dropdown-link {
        display: block;
        color: var(--white);
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        transition: all var(--transition-fast);
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
    }

        .sub-menu-links .mobile-dropdown-link:hover {
            background: rgba(255, 255, 255, 0.15);
            color: var(--secondary-color);
            transform: translateY(-2px);
        }
/* Desktop Navigation */
.nav-menu {
    display: flex;
    height: 100%;
}

.nav-list {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    color: white;
    padding: 0 1.25rem;
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    height: 100%;
    position: relative;
}

    .nav-link:hover {
        color: var(--secondary-color);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background: var(--secondary-color);
        transition: all var(--transition-fast);
        transform: translateX(-50%);
    }

    .nav-link:hover::after,
    .nav-item.active .nav-link::after {
        width: 80%;
    }

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-icon {
    margin-left: 0.5rem;
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-medium);
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

    .dropdown-link:hover {
        background: var(--primary-light);
        color: var(--secondary-color);
        border-left-color: var(--secondary-color);
        padding-left: 1.75rem;
    }
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium);
    z-index: 99;
    box-shadow: var(--shadow-md);
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: var(--secondary-color);
        transform: translateY(-5px);
    }
/* Footer */
.main-footer {
    background: none;
    position: relative;
    color: var(--white);
    padding-top: 4rem;
    overflow: hidden;
    border-top: 4px dashed var(--secondary-color);
}

    .main-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(360deg, #185757 0%, #227373 100%);
        z-index: 1;
    }

.footer-top {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--white);
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--secondary-color);
    }

.footer-about p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

    .footer-social .social-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: all var(--transition-fast);
        margin: 0;
    }

        .footer-social .social-icon:hover {
            background: var(--secondary-color);
            transform: translateY(-3px);
        }

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

    .footer-links a:hover {
        color: var(--secondary-color);
        transform: translateX(5px);
    }

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-map {
    position: relative;
}

.map-container {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

    .map-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
    border-radius: 6px;
    overflow: hidden;
    max-width: 300px;
}

    .newsletter-form input {
        flex: 1;
        padding: 0.85rem;
        border: none;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.95);
    }

    .newsletter-form button {
        background: var(--secondary-color);
        color: var(--white);
        border: none;
        padding: 0 1.5rem;
        cursor: pointer;
        transition: background var(--transition-fast);
    }

        .newsletter-form button:hover {
            background: var(--secondary-dark);
        }

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.powered-by {
    margin-left: 1rem;
}

    .powered-by a {
        color: var(--secondary-color);
        font-weight: 600;
    }

        .powered-by a:hover {
            color: var(--white);
            text-decoration: underline;
        }

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

    .footer-legal a {
        color: rgba(255, 255, 255, 0.7);
        transition: all var(--transition-fast);
    }

        .footer-legal a:hover {
            color: var(--secondary-color);
        }
/* Responsive Styles */
@media (max-width: 992px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        height: auto;
    }

    .top-bar {
        height: auto;
        padding: 0.5rem 0;
    }

    .top-bar-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .school-name {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .top-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-overlay {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .logo {
        flex-direction: row;
    }

    .logo-text {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        display: flex;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }

    .footer-title::after {
        left: 40%;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .contact-info li {
        justify-content: center;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }

    .mobile-nav-menu {
        padding: 1rem;
        max-height: 85vh;
    }

    .mobile-nav-link {
        padding: 1rem;
        font-size: 1rem;
    }

    .mobile-dropdown-link {
        padding: 0.8rem 1.5rem;
    }
}
