/* ========================================
   CSS Variables - School Colors
   ======================================== */
:root {
    --primary-color: #162c43;      /* Main dark blue */
    --secondary-color: #fcce33;    /* Yellow/Gold accents */
    --accent-color: #d83a3b;       /* Red for highlights */
    --text-dark: #222222;
    --text-gray: #666666;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================
   Typography
   ======================================== */
h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--primary-color);
}

p {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-gray);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e5ba2d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 206, 51, 0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #c23334;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(216, 58, 59, 0.3);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 25px;
}

.contact-info i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.social-links a {
    color: var(--text-light);
    margin-left: 15px;
    font-size: 16px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

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

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.mobile-close {
    display: none;
}

/* ========================================
   Hero Slider
   ======================================== */
.hero-slider {
    margin-top: 66px;
    position: relative;
    height: 700px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    animation: zoomIn 8s ease-out forwards;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(22, 44, 67, 0.85), rgba(22, 44, 67, 0.4));
}

.slide-content .container {
    color: var(--text-light);
}

.slide-content h1 {
    color: var(--text-light);
    max-width: 600px;
}

.slide-content p {
    color: var(--text-light);
    font-size: 20px;
    max-width: 550px;
    margin-bottom: 30px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(252, 206, 51, 0.9);
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--secondary-color);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--secondary-color);
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
}

/* ========================================
   Welcome Section
   ======================================== */
.welcome-section {
    background-color: var(--bg-white);
}

.welcome-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.welcome-content h2 {
    margin-bottom: 30px;
}

.welcome-content p {
    font-size: 18px;
    line-height: 1.8;
}

/* ========================================
   Values Section
   ======================================== */
.values-section {
    background-color: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--primary-color);
}

.value-card:nth-child(even) .value-icon {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* ========================================
   Mission & Vision Section
   ======================================== */
.mission-vision-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a56 100%);
    color: var(--text-light);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
}

.mission-card,
.vision-card {
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.mission-card h2,
.vision-card h2 {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.mission-card p,
.vision-card p {
    color: var(--text-light);
    font-size: 17px;
}

.mission-card ul {
    margin-top: 25px;
}

.mission-card li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
}

.mission-card li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--secondary-color);
    font-size: 18px;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    font-size: 17px;
    line-height: 1.8;
}

/* ========================================
   Curriculum Section
   ======================================== */
.curriculum-section {
    background-color: var(--bg-light);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.curriculum-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.curriculum-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.curriculum-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: var(--secondary-color);
}

.cocurricular-section {
    margin-top: 60px;
    text-align: center;
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cocurricular-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* ========================================
   Welfare Section
   ======================================== */
.welfare-section {
    background-color: var(--bg-white);
}

.welfare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.welfare-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.welfare-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welfare-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--text-light);
}

/* ========================================
   Admissions Section
   ======================================== */
.admissions-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c23334 100%);
    color: var(--text-light);
    text-align: center;
}

.admissions-content h2 {
    color: var(--text-light);
    margin-bottom: 25px;
}

.admissions-content p {
    color: var(--text-light);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ========================================
   News Section
   ======================================== */
.news-section {
    background-color: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 30px;
}

.news-date {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-content h3 {
    margin-bottom: 15px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a56 100%);
    color: var(--text-light);
    text-align: center;
}

.cta-content h2 {
    color: var(--text-light);
    margin-bottom: 25px;
}

.cta-content p {
    color: var(--text-light);
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ========================================
   Quick Links Section
   ======================================== */
.quick-links-section {
    background-color: var(--bg-white);
    padding: 60px 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.quick-link-card {
    background-color: var(--bg-light);
    padding: 50px 35px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 3px solid transparent;
}

.quick-link-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quick-link-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.quick-link-card h3 {
    margin-bottom: 15px;
}

.quick-link-card p {
    margin-bottom: 20px;
    font-size: 15px;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--accent-color);
    gap: 12px;
}

.btn-link i {
    font-size: 14px;
}

/* ========================================
   Page Header (for inner pages)
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a56 100%);
    color: var(--text-light);
    padding: 120px 0 80px;
    margin-top: 130px;
    text-align: center;
}

.page-header h1 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 15px;
}

.breadcrumb a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--text-light);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   About Features Grid
   ======================================== */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--secondary-color);
}

.feature-item h3 {
    margin-bottom: 15px;
}

/* ========================================
   Two Column Content
   ======================================== */
.two-column-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.content-column h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-column h3:first-child {
    margin-top: 0;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background-color: var(--bg-white);
}

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

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 28px;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    padding: 15px;
    border-radius: 10px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-item p,
.contact-item a {
    color: var(--text-gray);
    font-size: 16px;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form button {
    width: 100%;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 0;
}

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

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablets (1024px and below) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 32px;
    }

    .hero-slider {
        height: 500px;
    }

    .about-grid,
    .contact-grid,
    .two-column-content {
        grid-template-columns: 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices (778px and below) */
@media screen and (max-width: 778px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 130px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 130px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

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

    .mobile-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--secondary-color);
        color: var(--primary-color);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    .mobile-close:hover {
        background: var(--accent-color);
        color: var(--text-light);
        transform: rotate(90deg);
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .contact-info span {
        display: block;
        margin: 5px 0;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    .hero-slider {
        height: 400px;
        margin-top: 120px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    section {
        padding: 50px 0;
    }

    .values-grid,
    .curriculum-grid,
    .welfare-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Small mobile (480px and below) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .logo-text {
        font-size: 18px;
    }

    .hero-slider {
        height: 350px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .mission-card,
    .vision-card {
        padding: 25px;
    }

    .cocurricular-section {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 25px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Hero Slider Zoom Animation */
@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}
