:root {
    --brand-purple: #6a1b9a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

header { display: flex; justify-content: space-between; padding: 20px 5%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.logo img { height: 60px; }

nav ul { display: flex; list-style: none; gap: 20px; }



/* Carousel Container */

.hero-slider { height: 80vh; width: 100%; position: relative; overflow: hidden; }

.slides-container { display: flex; height: 100%; width: 300%; transition: transform 0.5s ease-in-out; }



.slide { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; text-align: center; background-size: cover; background-position: center; }



/* Background Images */

.slide:nth-child(1) { background-image: url('images/slider1.jpg'); }

.slide:nth-child(2) { background-image: url('images/slider2.jpg'); }

.slide:nth-child(3) { background-image: url('images/slider3.jpg'); }



/* Buttons */

button { position: absolute; top: 50%; background: rgba(0,0,0,0.5); color: white; border: none; padding: 15px; cursor: pointer; z-index: 10; }

.prev-btn { left: 10px; }

.next-btn { right: 10px; }



* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }



/* Navbar Styling */

header {

    display: flex;

    justify-content: space-between;

    padding: 20px 5%;

    background: #fff;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

    align-items: center;

}



.logo img { height: 60px; }



nav ul { display: flex; list-style: none; gap: 25px; }



/* Bold Purple Links */

nav a {

    text-decoration: none;

    color: #6a1b9a; /* Deep Purple */

    font-weight: 800; /* Bold */

    font-size: 1.1rem;

    transition: color 0.3s;

}



nav a:hover { color: #4a148c; }



/* Hero Slider Styling */

.hero-slider { height: 80vh; width: 100%; position: relative; overflow: hidden; }

.slides-container { display: flex; height: 100%; width: 300%; transition: transform 0.5s ease-in-out; }



.slide {

    width: 100%; height: 100%;

    display: flex; flex-direction: column;

    justify-content: center; align-items: center;

    color: white; text-align: center;

    background-size: cover; background-position: center;

    background-color: rgba(0,0,0,0.5);

    background-blend-mode: darken;

    padding: 40px;

}



/* Bigger H1 Text */

.slide h1 {

    font-size: 4.5rem; /* Much larger */

    margin-bottom: 20px;

    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);

}



.slide p { font-size: 1.8rem; font-weight: 300; }



/* Buttons */

button { position: absolute; top: 50%; background: rgba(255,255,255,0.2); color: white; border: none; padding: 20px; cursor: pointer; z-index: 10; font-size: 2rem; border-radius: 5px; }

.prev-btn { left: 20px; }

.next-btn { right: 20px; }



.about-section { padding: 80px 10%; background: #f9f9f9; overflow: hidden; }



/* Section Title with Dashes */

.section-title {

    text-align: center; font-size: 2.5rem; margin-bottom: 50px;

    display: flex; align-items: center; justify-content: center;

}

.section-title::before, .section-title::after {

    content: ""; height: 2px; width: 50px; background: #6a1b9a; margin: 0 15px;

}



.about-container { display: flex; align-items: center; gap: 50px; }

.about-image, .about-text { flex: 1; }



.about-image img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.about-text h3 { font-size: 2rem; color: #6a1b9a; margin-bottom: 20px; }

.about-text p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 15px; color: #444; }



/* Entrance Animations */

.about-image { animation: slideInRight 1s ease-out forwards; }

.about-text { animation: slideUp 1s ease-out forwards; }



@keyframes slideInRight {

    from { transform: translateX(100%); opacity: 0; }

    to { transform: translateX(0); opacity: 1; }

}

@keyframes slideUp {

    from { transform: translateY(50px); opacity: 0; }

    to { transform: translateY(0); opacity: 1; }

}



/* --- Scroll Animation Styles --- */



/* About Section: Starts lower and moves up */

.about-container {

    opacity: 0;

    transform: translateY(50px);

    transition: all 1s ease-out;

}

.about-container.show {

    opacity: 1;

    transform: translateY(0);

}



/* Why Choose Us Grid: Fades in */

.why-us-grid {

    opacity: 0;

    transition: all 1s ease-out;

}

.why-us-grid.show {

    opacity: 1;

}



/* Why Choose Us Section & Grid Layout */

.why-us-section {

    padding: 80px 5%;

    background-color: #ffffff;

}



.why-us-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;

    margin-top: 40px;

}



.grid-item {

    padding: 30px;

    background: #ffffff;

    border-left: 5px solid #6a1b9a; /* Your Brand Purple */

    box-shadow: 0 5px 15px rgba(0,0,0,0.05);

    transition: all 0.3s ease;

}



.grid-item h3 {

    color: #6a1b9a;

    margin-bottom: 10px;

}



.grid-item:hover {

    transform: translateY(-10px);

    background: #f3e5f5; /* Light purple hover effect */

    box-shadow: 0 10px 20px rgba(106, 27, 154, 0.15);

}



.cta-banner {

    background: #6a1b9a;

    color: white;

    padding: 60px 5%;

    text-align: center;

    margin: 50px 0;

}

.cta-banner h2 { margin-bottom: 15px; }

.btn-cta {

    display: inline-block;

    margin-top: 20px;

    padding: 15px 40px;

    background: white;

    color: #6a1b9a;

    text-decoration: none;

    font-weight: bold;

    border-radius: 5px;

}



/* --- Homepage Gallery Styles --- */



.homepage-gallery {

    padding: 80px 5%;

    background-color: #ffffff;

    text-align: center;

}



/* Optional Subtitle Style */

.section-subtitle {

    font-size: 1.1rem;

    color: #555;

    margin-bottom: 50px;

    margin-top: -30px; /* Pulls it closer to the main section-title */

}



/* 3x4 Grid Layout */

.gallery-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr); /* 3 Columns */

    grid-template-rows: repeat(4, 1fr);    /* 4 Rows */

    gap: 15px; /* Minimal gap for a modern look */

}



.gallery-item {

    overflow: hidden;

    border-radius: 8px; /* Smooth corners */

    box-shadow: 0 4px 6px rgba(0,0,0,0.1);

    position: relative;

    cursor: pointer;

    transition: transform 0.3s ease;

}



.gallery-item img {

    width: 100%;

    height: 250px; /* Set a standard height for all grid images */

    object-fit: cover; /* Ensures images fill the square without stretching */

    display: block;

    transition: transform 0.3s ease;

}



/* Professional Hover Effects */

.gallery-item:hover {

    transform: translateY(-5px); /* Item moves up slightly */

    box-shadow: 0 8px 15px rgba(0,0,0,0.15);

}



.gallery-item:hover img {

    transform: scale(1.05); /* Image zooms in slightly */

}



/* Gallery CTA Styling */

.gallery-cta {

    margin-top: 50px;

}



.btn-gallery-cta {

    display: inline-block;

    padding: 15px 40px;

    background-color: transparent;

    color: #6a1b9a; /* Your Brand Purple */

    border: 2px solid #6a1b9a;

    font-weight: 800; /* Matching navbar style */

    text-decoration: none;

    text-transform: uppercase;

    font-size: 0.9rem;

    letter-spacing: 1px;

    border-radius: 5px;

    transition: all 0.3s ease;

}



.btn-gallery-cta:hover {

    background-color: #6a1b9a;

    color: #ffffff;

}



.news-blog-section {

    display: flex;

    padding: 80px 5%;

    gap: 50px;

    background: #f4f4f4;

}



.news-column { flex: 1; }

.blog-column { flex: 2; }



/* News List */

.news-item {

    background: white; padding: 20px; margin-bottom: 15px;

    border-radius: 5px; display: flex; align-items: center; gap: 20px;

}

.news-item span { color: #d32f2f; font-weight: bold; min-width: 80px; }



/* Blog Cards */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.blog-card { background: white; padding: 20px; border-radius: 8px; }

.blog-card h3 { color: #6a1b9a; margin-bottom: 10px; }



/* Button */

.btn-blog {

    display: inline-block; margin-top: 30px; padding: 12px 30px;

    background: #6a1b9a; color: white; text-decoration: none; border-radius: 5px;

}



footer {

    background: #2c3e50;

    color: white;

    padding: 60px 5% 20px;

    margin-top: 50px;

}



.footer-container {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 40px;

}



.footer-col h3 { margin-bottom: 20px; color: #fff; }

.footer-col ul { list-style: none; }

.footer-col a { color: #bdc3c7; text-decoration: none; display: block; margin-bottom: 10px; }

.footer-col a:hover { color: white; }



.footer-bottom {

    text-align: center;

    margin-top: 40px;

    padding-top: 20px;

    border-top: 1px solid #3e4f5f;

    font-size: 0.8rem; color: #7f8c8d;

}



footer input { padding: 10px; border: none; border-radius: 4px; width: 100%; margin-top: 5px; }



.testimonials { padding: 80px 5%; background: #fdfdfd; text-align: center; }



.testimonial-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;

    margin-top: 40px;

}



.t-card {

    background: white;

    padding: 30px;

    border-radius: 8px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.05);

    border-top: 5px solid #6a1b9a;

}



.t-card p { font-style: italic; color: #555; margin-bottom: 15px; line-height: 1.6; }

.t-card h3 { color: #6a1b9a; font-size: 1rem; }



.testimonials { padding: 80px 5%; background: #fdfdfd; text-align: center; }



.testimonial-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 20px;

    margin-top: 40px;

    opacity: 0; /* Hidden initially */

    transform: translateY(50px);

    transition: all 0.8s ease-out;

}



/* The class we add via JavaScript */

.testimonial-grid.visible {

    opacity: 1;

    transform: translateY(0);

}



.t-card {

    background: white;

    padding: 25px;

    border-radius: 8px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.05);

    border-top: 5px solid #6a1b9a;

    text-align: left;

}



.t-card p { font-style: italic; color: #555; margin-bottom: 15px; }

.t-card h3 { color: #6a1b9a; font-size: 0.9rem; font-weight: bold; }



/* Testimonial Section CSS */

.testimonial-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 20px;

    margin-top: 40px;

   

    /* These three lines are key for the animation */

    opacity: 0;

    transform: translateY(50px);

    transition: all 0.8s ease-out;

}



/* This is the class the JS adds when you scroll to it */

.testimonial-grid.show {

    opacity: 1;

    transform: translateY(0);

}

.page-banner {
    padding: 80px 5%;
    background: #6a1b9a; /* Use your school's brand color */
    color: white;
    text-align: center;
}

.page-banner {
    background-color: #6a1b9a; /* Your Academy's Purple */
    padding: 60px 5%;
    text-align: center;
    color: #ffffff;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.about-page-hero {
    width: 100%;
    height: 400px; /* Adjust height as you like */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('images/slider1.jpg'); /* Make sure this path is correct */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}   

.about-details {
    padding: 60px 5%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #666;
}

.about-image-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Stacks columns on mobile */
    }
}

.about-gallery-section {
    padding: 60px 5%;
    display: flex;
    justify-content: center;
}

.gallery-wrapper {
    position: relative;
    width: 600px; /* Adjust based on your preference */
    height: 400px;
}

.shape-img {
    position: absolute;
    overflow: hidden;
    /* Create the rounded shape effect */
    border-radius: 50px 0 50px 50px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.shape-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Positioning the three images to overlap */
.img-1 { width: 250px; height: 300px; top: 0; left: 0; z-index: 1; }
.img-2 { width: 200px; height: 200px; top: 150px; right: 50px; z-index: 2; }
.img-3 { width: 180px; height: 250px; bottom: 0; left: 100px; z-index: 3; }

.about-education-system { padding: 80px 5%; }

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Image shapes on left, Text on right */
    gap: 60px;
    align-items: center;
}

.education-text h3 { color: #f39c12; letter-spacing: 2px; font-size: 0.9rem; }
.education-text h2 { font-size: 2.5rem; margin: 15px 0; }

.feature-list { display: flex; gap: 20px; margin: 30px 0; }
.feature h4 { margin-bottom: 5px; color: #6a1b9a; }

.btn-discover {
    display: inline-block;
    padding: 12px 25px;
    background: #f39c12;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* 1. Ensure the grid items stack on mobile */
@media (max-width: 900px) {
    .education-grid {
        grid-template-columns: 1fr !important; /* Forces single column */
        text-align: center;
    }

    .gallery-wrapper {
        width: 100% !important; /* Prevents the container from being too wide */
        margin: 0 auto;
    }
}

/* 2. Prevent images and containers from breaking the viewport width */
img, .about-details, .about-education-system {
    max-width: 100%;
}

/* 3. The most important line for stopping the horizontal scroll */
body, html {
    overflow-x: hidden;
    width: 100%;
}

/* Update the Education System section colors */
.education-text h3 { 
    color: #6a1b9a; /* Your school's primary Purple */
    letter-spacing: 2px; 
    font-size: 0.9rem; 
    font-weight: bold;
}

.education-text h2 { 
    font-size: 2.5rem; 
    margin: 15px 0; 
    color: #2c3e50; 
}

.feature h4 { 
    margin-bottom: 5px; 
    color: #6a1b9a; /* Using Purple for the feature titles */
}

.btn-discover {
    display: inline-block;
    padding: 12px 25px;
    background: #6a1b9a; /* Button now matches your school theme */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-discover:hover {
    background: #4a126d; /* Slightly darker purple on hover for a premium feel */
}

.stats-section {
    position: relative;
    padding: 80px 5%;
    /* The purple overlay + background image */
    background: linear-gradient(rgba(106, 27, 154, 0.85), rgba(106, 27, 154, 0.85)), 
                url('images/school-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a cool parallax effect */
    color: white;
    text-align: center;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin: 10px 0;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr 1fr; /* 2x2 grid on tablets/phones */
    }
}

.stat-item p {
    font-size: 0.9rem; /* Slightly smaller text for longer labels */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonials-slider { overflow: hidden; padding: 60px 0; background: #f4f4f9; }

.marquee-wrapper { display: flex; overflow: hidden; margin-bottom: 30px; }

.marquee-content {
    display: flex;
    gap: 20px;
    animation: scroll 20s linear infinite;
}

/* Directional Animations */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.right .marquee-content { animation-direction: reverse; }

.card { 
    background: white; width: 300px; padding: 25px; border-radius: 15px;
    text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    flex-shrink: 0;
}
.card img { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 10px; }

.teachers-section {
    padding: 80px 5%;
    text-align: center;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 teachers in a row */
    gap: 30px;
    margin-top: 50px;
}

.teacher-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-10px); /* Subtle hover effect */
}

.teacher-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #6a1b9a; /* Using your signature purple */
}

.teacher-card h3 { margin: 10px 0 5px; color: #333; }
.teacher-card p { color: #6a1b9a; font-weight: bold; }

/* Make it responsive for mobile */
@media (max-width: 900px) {
    .teachers-grid { grid-template-columns: 1fr 1fr; }
}
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* This targets the 9th and 10th card */
.teacher-card:nth-last-child(2) {
    grid-column: 2; /* Forces it to start at the 2nd column line */
}

.teacher-card:nth-last-child(1) {
    grid-column: 3; /* Forces it to start at the 3rd column line */
}

/* Mobile responsive override */
@media (max-width: 900px) {
    .teachers-grid { grid-template-columns: 1fr 1fr; }
    
    /* Reset centering on mobile so they stack normally */
    .teacher-card:nth-last-child(2), 
    .teacher-card:nth-last-child(1) {
        grid-column: auto;
    }
}

/* Mission & Vision Section */
.mission-vision-grid-section {
    padding: 60px 5%;
    background-color: #ffffff;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.mv-card {
    display: flex;
    align-items: flex-start;
    padding: 40px;
    background: #fbfaff; /* Very light purple tint */
    border-radius: 20px;
    border: 1px solid #eee;
    border-left: 8px solid #6a1b9a; /* Thick purple accent on the left */
    transition: all 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(106, 27, 154, 0.1);
    background: #ffffff;
}

.mv-icon {
    font-size: 2.5rem;
    color: #6a1b9a;
    margin-right: 25px;
    margin-top: 5px;
}

.mv-text h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mv-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.mv-text em {
    color: #6a1b9a;
    font-weight: bold;
    font-style: normal;
}

/* Mobile Responsiveness */
@media (max-width: 850px) {
    .grid-container {
        grid-template-columns: 1fr; /* Stack them on smaller screens */
    }
    
    .mv-card {
        padding: 30px;
    }
}   

/* Dark/Purple Themed Card Section */
.contact-card-section {
    padding: 80px 5%;
    background: linear-gradient(180deg, #6a1b9a 50%, #f4f4f9 50%);
}

.form-card {
    background: #1a1a2e; /* Deep dark purple/black */
    color: white;
    padding: 60px;
    border-radius: 20px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.form-card h2 { text-align: center; margin-bottom: 40px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-card input, .form-card textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: #2a2a40;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #6a1b9a;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 50px auto;
    text-align: center;
}

.info-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-item i { font-size: 2rem; color: #6a1b9a; margin-bottom: 15px; }

/* Hero consistent with your About page */
.page-hero { padding: 60px 0; text-align: center; background: #f9f9f9; }

/* Contact Section Styling */
.contact-main { padding: 80px 5%; background: linear-gradient(180deg, #6a1b9a 50%, #f4f4f9 50%); }

.form-container { 
    background: #1a1a2e; 
    padding: 60px; 
    border-radius: 20px; 
    max-width: 800px; 
    margin: 0 auto; 
    color: white; 
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-container input, .form-container textarea { 
    width: 100%; padding: 15px; border-radius: 8px; border: none; background: #2a2a40; color: white; 
}

.submit-btn { 
    width: 100%; padding: 15px; background: #6a1b9a; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; 
}

/* Details Section */
.contact-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 900px; margin: 50px auto; }
.info-card { background: white; padding: 30px; border-radius: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.info-card i {
    display: block;
    font-size: 2rem;
    color: #6a1b9a; /* Your brand purple */
    margin-bottom: 15px;
}

