/* --- Variables & Reset --- */
:root {
    --primary-purple: #6A0DAD;   
    --primary-purple-light: #f3e5f5;
    --secondary-green: #006400;  
    --accent-green: #90EE90;     
    --accent-green-light: #e8f5e9;
    --accent-orange: #FFAE42; /* Added for pop of color */
    --accent-blue: #4FB0C6;   /* Added for variety */
    --white: #ffffff;
    --text-color: #333;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
    position: relative;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Background Variations for "Colourful" look */

    
.bg-white {background-image: url("image_library/bg1.JPG"); }
.bg-green-tint { background-color: var(--accent-green-light); }
.bg-purple-tint { background-color: var(--primary-purple-light); }

.section-title {
    text-align: center;
    color: var(--primary-purple);
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--secondary-green), var(--accent-green));
    margin: 15px auto;
    border-radius: 5px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--secondary-green);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px; /* More rounded/friendly */
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,100,0,0.3);
}

.btn-primary:hover {
    background: var(--accent-green);
    color: var(--secondary-green);
    transform: translateY(-3px);
}

.btn-download {
    display: inline-block;
    background: var(--primary-purple);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-download:hover {
    background: #500a85;
    transform: translateY(-2px);
}

/* --- Header --- */
header {
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 70px; /* Slightly smaller for better sticky header */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-purple);
}

.btn-nav {
    background: var(--secondary-green);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-purple);
}

/* --- Hero Section --- */
.hero {
    /* Colorful gradient overlay */
    background-image: url("image_library/image.png");
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: black;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h3 {
    font-size: 3.5rem;
    margin: 20px 0;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 1.3rem;
    font-weight: 500;
}

/* --- Timeline Section (History) --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary-green);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 5px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container.left { left: 0; }
.timeline-container.right { left: 50%; }

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px; /* Adjust for line width */
    background-color: var(--white);
    border: 4px solid var(--primary-purple);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-container.right::after {
    left: -12px;
}

.date-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-purple);
}

/* --- About Grid --- */
.about-grid {
    display: flex;             /* Changed from grid to flex */
    flex-wrap: wrap;           /* Allows cards to move to the next line */
    justify-content: center;    /* This centers the cards in the bottom row */
    gap: 30px;
}

.about-card {
    flex: 0 1 calc(33.333% - 30px); 
    min-width: 300px;           /* Keeps your original size constraint */
    
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* Colorful tops for cards */
.about-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 10px;
    background: linear-gradient(to right, var(--primary-purple), var(--accent-blue));
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card i {
    font-size: 3rem;
    color: var(--secondary-green);
    margin-bottom: 20px;
    background: var(--accent-green-light);
    padding: 20px;
    border-radius: 50%;
}

/* --- Faculty Section --- */
/* --- Faculty Section Restructure --- */

/* 1. Founders Area (Top) */
.founders-wrapper {
    display: flex;
    justify-content: center;
    gap: 60px; /* Space between the two founders */
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.founder-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* Prominent shadow */
    border-top: 5px solid var(--primary-purple); /* Distinct top border */
    max-width: 350px;
    width: 100%;
    transition: transform 0.3s;
}

.founder-card:hover {
    transform: translateY(-5px);
}

.founder-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--accent-green); /* Green ring around photo */
    padding: 3px;
}

.founder-card h4 {
    font-size: 1.3rem;
    color: var(--primary-purple);
    margin-bottom: 5px;
    font-weight: 800;
}

.founder-card .role {
    color: var(--secondary-green);
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 2. Team Grid Area (Bottom) */
.team-heading {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.team-grid {
    display: grid;
    /* Auto-fit: Creates as many columns as fit (min 200px wide) */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px;
}

.team-card {
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid var(--accent-orange); /* Small color accent */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.team-card:hover {
    background: var(--accent-green-light); /* Highlights on hover */
    transform: translateY(-3px);
}

.team-card h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.team-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* --- Updates for Clickable Clouds --- */

/* Force the anchor tag to behave like a block and remove link styles */
/* --- Curriculum Cloud Styles --- */

/* --- Curriculum Container --- */
.curriculum-tabs {
    display: flex;
    justify-content: center; /* Centers items in the middle */
    flex-wrap: wrap;         /* Allows them to wrap to the next line */
    gap: 40px;               /* Consistent spacing between bubbles */
    margin-top: 30px;
}

/* --- Base Bubble Style --- */
a.curriculum-item {
    /* 1. FORCE UNIFORM SIZE */
    width: 300px;  
    height: 220px; 
    
    /* 2. ALIGN TEXT */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* 3. BASE STYLING */
    background: var(--white);
    padding: 20px;
    border: 4px solid;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

/* Hover Effect */
a.curriculum-item:hover {
    transform: translateY(-10px);
}

/* --- REPEATING PATTERNS (The Fix) --- */

/* Pattern A: Items 1, 4, 7... (Green) */
a.curriculum-item:nth-child(3n+1) {
    border-color: var(--secondary-green);
    border-radius: 55% 45% 43% 57% / 53% 44% 56% 47%;
}
/* Style the "View Full" text for Green items */
a.curriculum-item:nth-child(3n+1) .read-more {
    color: var(--secondary-green);
}

/* Pattern B: Items 2, 5, 8... (Purple) */
a.curriculum-item:nth-child(3n+2) { 
    border-color: var(--primary-purple); 
    border-radius: 43% 57% 62% 38% / 46% 58% 42% 54%;
}
/* Style the "View Full" text for Purple items */
a.curriculum-item:nth-child(3n+2) .read-more {
    color: var(--primary-purple);
}

/* Pattern C: Items 3, 6, 9... (Orange) */
a.curriculum-item:nth-child(3n+3) { 
    border-color: var(--accent-orange); 
    border-radius: 61% 39% 51% 49% / 52% 45% 55% 48%;
}
/* Style the "View Full" text for Orange items */
a.curriculum-item:nth-child(3n+3) .read-more {
    color: var(--accent-orange);
}

/* --- Typography --- */
a.curriculum-item h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.read-more {
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 10px;
}
/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* --- Admission --- */
.admission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.enquiry-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--accent-orange);
}

.enquiry-form input, 
.enquiry-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.enquiry-form input:focus, .enquiry-form textarea:focus {
    border-color: var(--primary-purple);
    outline: none;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-card i {
    color: var(--primary-purple);
    font-size: 2rem;
    margin-bottom: 15px;
}

.testimonial-card h4 {
    margin-top: 20px;
    color: var(--secondary-green);
    font-weight: bold;
}

/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--white);
    background: var(--secondary-green);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-email {
    background: var(--primary-purple);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* --- Footer --- */
footer {
    background: var(--secondary-green);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; cursor: pointer; }
    .admission-content, .contact-wrapper { grid-template-columns: 1fr; }
    
    /* Timeline Mobile Fix */
    .timeline::after { left: 31px; }
    .timeline-container { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-container::after { left: 19px; }
    .timeline-container.right { left: 0%; }
    
    .hero-content h3 { font-size: 2.5rem; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        right: 0;
        background: var(--white);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
}
/* --- Tie-Up Schools Section --- */

.tie-up {
    width: 100%;              /* Ensures it spans the full width */
    text-align: center;       /* Centers the text */
    margin-top: 60px;         /* Adds space between the cards and this list */
    padding-top: 40px;
    border-top: 2px dashed rgba(0,0,0,0.1); /* Optional: Adds a subtle separator line */
    background: transparent;  /* Removes the white box! */
}

.tie-up h1 {
    color: var(--primary-purple);
    font-size: 2rem;
    margin-bottom: 30px;
    display: inline-block;
    position: relative;
}

/* Underline for the title */
.tie-up h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-green);
    margin: 10px auto;
    border-radius: 5px;
}

.tie-up ul {
    padding: 0;
    list-style: none;
}

.tie-up li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333; /* Darker text for better contrast on green background */
    font-weight: 600;
}
/* =============================
   Syllabus Detail Pages Layout
============================= */

/* The main white box container */
.syllabus-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden; /* Ensures child elements don't spill out */
}

/* The grid that splits content into two columns */
.syllabus-content-grid {
    display: grid;
    /* The text gets 1.5 parts space, image gets 1 part space */
    grid-template-columns: 1.5fr 1fr; 
    gap: 50px; /* Spacing between text and image */
    align-items: start; /* Aligns them at the top */
    margin-bottom: 40px; /* Space before the back button */
}

/* Styling the image container and the image itself */
/* Styling the container for right-side images */
.syllabus-image {
    display: flex;           /* Enables flexible layout */
    flex-direction: column;  /* Stacks images one below the other */
    gap: 20px;               /* Adds uniform space between every image */
    justify-content: start;  /* Aligns images to the top */
}

/* Styling the images themselves */
.syllabus-image img {
    width: 100%;
    height: auto;            /* Keeps natural shape, prevents stretching */
    max-height: 500px;       /* Prevents any single image from being too huge */
    object-fit: contain;     /* Ensures image isn't cropped */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--accent-green-light);
    display: block;
}

/* Responsive Design: Stack them on tablets and phones */
@media (max-width: 900px) {
    .syllabus-content-grid {
        grid-template-columns: 1fr; /* Switch to single column */
        gap: 30px;
    }

    .syllabus-image {
        height: 300px; /* Fixed height for banner view on mobile */
        order: -1; /* Optional: Makes image appear ABOVE text on mobile */
    }
}
/* =============================
   Syllabus Detail Pages Layout - Row Based
============================= */

/* The main white box container */
.syllabus-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    /* No overflow: hidden here, let content flow */
}

/* A single row containing a text block and an image block */
.syllabus-row {
    display: grid;
    /* The text gets 1.5 parts space, image gets 1 part space */
    grid-template-columns: 1.5fr 1fr;
    gap: 50px; /* Spacing between text and image columns */
    align-items: start; /* Aligns them at the top of the row */
    margin-bottom: 60px; /* Large space between different sections */
    padding-bottom: 40px;
    border-bottom: 2px dashed #eee; /* Optional separator line */
}

/* Remove border from the last row */
.syllabus-row:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
}

/* Column for text content */


/* Column for image content */
.syllabus-image-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky; /* Optional: keeps image in view while scrolling long text */
    top: 100px;
}

/* Styling the images */
.syllabus-image-col img {
    width: 100%;
    height: auto;            /* Keeps natural shape, prevents stretching */
    max-height: 500px;       /* Limits height */
    object-fit: contain;     /* Ensures the WHOLE image is visible */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--accent-green-light);
    display: block;
}

/* Responsive Design: Stack them on tablets and phones */
@media (max-width: 900px) {
    .syllabus-row {
        grid-template-columns: 1fr; /* Switch to single column */
        gap: 30px;
        margin-bottom: 40px;
    }

    /* Place image above text on mobile for each section */
    .syllabus-image-col {
        order: -1; 
        position: static; /* Remove sticky on mobile */
    }
    
    .syllabus-image-col img {
        max-height: 350px; /* Smaller max height for mobile */
    }
}
/* --- About Section Image --- */
.about-image-container {
    text-align: center; /* Centers the image */
    margin-bottom: 50px; /* Adds space between the image and the cards below */
}

.about-image-container img {
    max-width: 100%; /* Ensures the image doesn't overflow on smaller screens */
    height: auto;    /* Maintains the image's aspect ratio */
    width: 600px;    /* Sets a good default size for larger screens. Adjust as needed. */
    border-radius: 15px; /* Optional: Adds rounded corners to match your site's style */
    box-shadow: var(--shadow); /* Optional: Adds a shadow for a nice effect */
}

.read-more-wrapper {
    text-align: center;
    margin-top: 50px; /* Space between the tiles and the link */
    width: 100%;
}

.section-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    transition: 0.3s;
}

/* Optional: Underline animation */
.section-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--secondary-green);
    transition: width .3s;
    margin: 5px auto 0;
}

.section-link:hover::after {
    width: 100%;
}

.section-link i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.quote-container {
    text-align: center;
    padding: 20px 20px;
    background: transparent; /* Or a very light lavender to match your theme */
}

.educational-quote {
    /* Font change happens here */
    font-family: 'Dancing Script', cursive; 
    
    font-size: 2.2rem;
    color: var(--primary-purple); /* Using your purple brand color */
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    position: relative;
}

/* Optional: Add decorative quote marks */
.educational-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-green);
    opacity: 0.3;
    display: block;
    margin-bottom: -20px;
}