/* --- TOP OF FILE --- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents tiny gaps under images */
}



/* ==========================================
1. GLOBAL STYLES
   ========================================== */

body {
    background-color: rgb(255 255 255 / 94%);
    color: #31548b;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    /* --- STICKY FOOTER CORE --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex: 1;
    width: 100%;
    overflow: hidden;
}

/* ==========================================
2. HEADER & NAVIGATION (Final Settings)
   ========================================== */
header {
    background-color: #162b48;
    width: 100%;
    border-bottom: 2px solid rgba(4, 4, 40, 0.593);

}

nav {
    display: flex;
    justify-content: space-around;
    /* CHANGE THIS from flex-end to center */
    align-items: center; 
    height: 110px;
    width: 100%;
    /* Remove or adjust padding-bottom if you want true centering */
    padding-bottom: 0; 
}

.left img {
    max-width: 400px;
    width: 100%;
    height: auto;
    /* This will now work as expected */
    padding-top: 10px; 
}

/* Rest of your CSS remains the same */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    margin: 0 20px;
    font-size: 22px;
    transition: 0.3s;
    cursor: pointer;
}

nav ul li a {
    text-decoration: none;
    color: #dcc18c;
}

nav ul li:hover>a {
    color: #ffffff;
}

/* --- Dropdown Logic --- */
.dropdown ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #162b48;
    padding: 10px 0;
    min-width: 200px;
    z-index: 100;
    border: 1px solid #dcc18c;
}

nav ul li:hover .dropdown ul {
    display: block;
    overflow: hidden;
}

.dropdown ul li {
    margin: 0;
    padding: 10px 20px;
    font-size: 18px;
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(220, 193, 140, 0.1);
    overflow: hidden;
}

.dropdown ul li:last-child {
    border-bottom: none;
}

.dropdown ul li:hover {
    background-color: #1c355a;
    border-left: 4px solid #dcc18c;
    padding-left: 16px;
    color: #ffffff;
    transition: 0.2s ease-in-out;
}

.swami {
    background: linear-gradient(to right, #162b486e, #27354c);
    border-bottom: 3px solid #dcc18c;
    /* Adds that nice golden line */
    width: 100%;

}

.swami img {
    width: 100vw;
}

/* .swami img {
    align-items: center;
    width: 100%;
} */

/* ==========================================
3. CAROUSEL
   ========================================== */
/* The Outer Frame */
.carousel-frame {
    width: 80vw;
    margin: 30px auto;
    border-radius: 30px;
    padding: 8px;

    /* --- THE SHADOWS --- */
    /* Shadow 1: A soft golden outer glow */
    /* Shadow 2: A deep dark drop shadow for depth */
    box-shadow:
        0 0 20px rgba(191, 149, 63, 0.4),
        0 15px 35px rgba(0, 0, 0, 0.5);

    overflow: hidden;
}

/* Optional: Add a subtle inner shadow to the container for a "beveled" look */
.carousel-container {
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.carousel-slide {
    display: flex;
    width: 300%;
    /* Since you have 3 images, width is 3 x 100% */
    animation: slide 12s infinite ease-in-out;
}

.carousel-slide img {
    width: 80vw;
    /* Match the frame width */
    height: 400px;
    /* Adjusted height, or use 'auto' */
    object-fit: cover;
    /* Prevents stretching */
    flex-shrink: 0;

}


.coevrvideo {
    display: flex;
    flex-direction: column; /* Stack image and video vertically on mobile */
    align-items: center;    /* Center items horizontally */
    justify-content: center; /* Center items vertically if the container has height */
    width: 100%;            /* Fill the screen width */
    max-width: 100vw;       /* Prevent horizontal scrolling */
    overflow: hidden;       /* Ensure no overflow issues */
}

.coevrvideo img, 
.coevrvideo video {
    width: 100%;            /* Make media fill the container width */
    height: auto;           /* Maintain aspect ratio */
    display: block;         /* Remove bottom whitespace/gap */
    object-fit: cover;      /* Ensures the content fills the area nicely */
}

/* Mobile Specific Tweaks */
@media (max-width: 768px) {
    .coevrvideo {
        padding: 0;         /* Remove any default padding on small screens */
    }
}

/* Simple Animation Logic */
@keyframes slide {
    0% {
        transform: translateX(0);
    }

    30% {
        transform: translateX(0);
    }

    33% {
        transform: translateX(-80vw);
    }

    63% {
        transform: translateX(-80vw);
    }

    66% {
        transform: translateX(-160vw);
    }

    96% {
        transform: translateX(-160vw);
    }

    100% {
        transform: translateX(0);
    }
}

.Why {
    margin-top: 40px;
    /* Combined your two margin-top values */
    width: 100%;
    /* Changed from 100vw to 100% to prevent horizontal scrolling */
    min-height: 100px;
    display: flex;
    /* Use flex to properly align items */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.Why h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 36px;
    /* Slightly increased for a heading */
    color: #1a1a1a;
    /* Or your preferred dark color */

    /* This is your shadow logic applied directly to the text */
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.4);

    margin: 10px 0;
    /* Adds space between the lines (hr) and the text */
}

.Why hr {
    width: 60%;
    /* Makes the lines shorter than the screen width */
    border: 0;
    height: 2px;
    background-color: #333;
    opacity: 0.2;
}

/* Container adjustments */
.content {
    display: flex;
    align-items: flex-start;
    /* Better for varying text lengths */
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Poppins', sans-serif;
    gap: 40px;
    /* Modern way to add space between columns */
}

/* Individual Column Styling */
.content-left,
.content-right {
    width: 40%;
    /* Slightly wider for readability */
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Space between the two cards in a column */
}

/* THE CARD DESIGN: Grouping h3 and content-in */
.content-left-top,
.content-left-down,
.content-right-top,
.content-right-down {
    background-color: #fffaf0;
    /* Light cream background */
    border-radius: 12px;
    overflow: hidden;
    /* Keeps background colors inside borders */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft professional shadow */
    transition: transform 0.3s ease;
    /* Hover effect */
}

.content-left-top:hover,
.content-right-top:hover,
.content-left-down:hover,
.content-right-down:hover {
    transform: translateY(-5px);
    /* Lift card on hover */
}

/* Header Styling within the card */
.content h3 {
    background-color: #dcc18c;
    color: #142338;
    margin: 0;
    /* Remove default margins */
    padding: 15px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

/* Inner Text Styling */
.content-in {
    padding: 25px;
    color: #444;
    line-height: 1.6;
    font-size: 16px;
    text-align: center;
}

/*women Empowerment*/


.womenemp {
    background-color: #fffaf0;
    color: #142338;
    border-left: 5px solid rgba(191, 149, 63, 0.4);
    padding: 20px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    
    /* 1. Limit Width & Center */
    max-width: 800px;      /* Adjust this value (e.g., 600px or 1000px) as needed */
    margin: 20px auto;     /* 'auto' keeps it centered horizontally */
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* 2. Prepare for Hover Effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;       /* Optional: makes it look clickable */
}

.womenemp:hover {
    transform: translateY(-5px); /* Lifts the block up slightly */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Deepens the shadow */
}

.womenemp strong {
    color:  #dcc18c;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Mobile responsiveness: Stack columns */
@media (max-width: 768px) {
  .emptext {
    flex-direction: column;
    padding: 20px;
  }
}

/*notice strip*/






/* ==========================================
4. FOOTER (Optimized Height)
   ========================================== */

footer {
    background-color: #27354c;
    width: 100%;
    position: relative;
    color: #dcc18c;
    z-index: 10;
    /* This is a backup "push" for the sticky effect */
    border-top: 4px solid rgba(255, 255, 255, 0.255);

}

footer hr {
    color: #dcc18c;
    height: 1px;

}

.footer {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 20px 0;
}

footer>div {
    height: auto;
    padding: 20px;
}

.footer-first img {
    max-width: 400px;
    width: 80%;
    height: auto;
}

footer ul {
    margin: 0;
    padding: 0;
}

footer ul li {
    list-style: none;
    font-size: 18px;
    margin-bottom: 8px;
}

footer ul li a {
    text-decoration: none;
    color: inherit;
}

footer .footer-copyright {
    text-align: center;
    color: grey;
    padding: 15px 0;
    font-size: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bgimg {
    background-image: url(images/footer.png);
    background-size: cover;
    /* Fill the screen */
    background-position: center;
    /* Keep focus in the middle */
    background-repeat: no-repeat;
    /* Don't tile */
    height: 100vh;
    
}


/* page name */

.pageName {
    padding-top: 40px;
    width: 100vw;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 50px;
    align-items: center;
    text-align: center;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.3);
    min-height: 100px;
    background-color: #ffbc3743;
}

.pageName hr {
    color: #dcc18c;
}

/*about us*/

.aboutwrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}

.welcome {
    color: rgb(9, 29, 51);
    padding: 15px;
    margin: 5px;
    font-size: large;
    text-align: justify;
    font-family: 'Poppins', sans-serif;
}

.ourvis>p {
    color: rgb(9, 29, 51);
    padding: 15px;
    margin: 5px;
    text-align: justify;
    font-size: large;
    font-family: 'Poppins', sans-serif;
}

.ourvis>h2 {
    color: #1a1a1a;
    padding: 15px;
    margin: 5px;
    font-family: 'Poppins', sans-serif;
    text-decoration: underline;
}

.faci>h2 {
    color: #1a1a1a;
    padding: 15px;
    margin: 5px;
    font-family: 'Poppins', sans-serif;
    text-decoration: underline;

}

.facilities-list {
    list-style: none;
    /* Removes default bullets for custom styling */
    padding: 0;
}

.facilities-list li {
    color: rgb(9, 29, 51);
    padding: 15px;
    margin-left: 5px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-left: 5px solid #31548b;
    transition: all 0.3s ease;
    /* Smooth transition for hover */
    cursor: pointer;
    text-align: justify;
    font-family: 'Poppins', sans-serif;
}

/* Hover Effect */
.facilities-list li:hover {
    background-color: #e3f2fd;
    transform: translateX(10px);
    /* Moves the text slightly to the right */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Adds depth on hover */
}


#Schedule {
    scroll-margin-top: 120px;
    /* Adjust this based on your navbar height */
}


.side-img {
    width: 300px;
    /* Adjust as needed */
    height: auto;
}

.schedule>h2 {
    color: #1a1a1a;
    padding: 15px;
    margin: 5px;
    font-family: 'Poppins', sans-serif;
    text-decoration: underline;
}

.schedule>p {
    color: rgb(9, 29, 51);
    padding: 15px;
    margin: 5px;
    text-align: justify;
    font-size: large;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

/*achievements*/

.achievements>h2 {
    color: #1a1a1a;
    padding: 15px;
    margin: 5px;
    font-family: 'Poppins', sans-serif;
    text-decoration: underline;
}


.achieve {
    display: flex;               /* Aligns video and text side-by-side */
    align-items: flex-start;     /* Aligns them to the top. Use 'center' if you prefer vertical centering */
    gap: 20px;                   /* Adds space between the video and text */
    
    background-color: #f9f9f9;
    color: rgb(9, 29, 51);
    border-left: 5px solid #31548b;
    /* GT Gold accent */
    padding: 20px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;       /* Moved transition here for smoother animations */
}

/* Make sure the paragraph takes up the remaining horizontal space */
/* Mobile Optimization */
@media (max-width: 768px) {
    .achieve {
        flex-direction: column; /* Stacks the video and text vertically */
        align-items: center;    /* Centers the items horizontally */
        padding: 15px;          /* Slightly reduces padding for small screens */
    }

    .achieve video {
        width: 100%;            /* Makes the video fill the container width */
        max-width: 400px;       /* Prevents the video from getting too massive on tablets */
    }

    .achieve p {
        font-size: 16px;        /* Slightly scales down text for mobile readability */
        text-align: left;       /* Keeps text left-aligned, or change to 'center' if you prefer */
    }
}
.achieve p {
    flex: 1;
    margin: 0;
    
    /* New properties for text size and readability */
    font-size: 18px;      /* Adjust this number up or down as needed */
    line-height: 1.6;     /* Adds comfortable spacing between the lines */
}

.achieve video{
    width: 30%;
    /* Removed height: 30% as percentage heights require the parent to have a fixed height.
       If you need a specific height, use px, or let the aspect ratio handle it naturally. */
    object-fit: cover;    /* Crops the portrait video to fit landscape */
    border-radius: 4px;   /* Optional: adds a slight rounding to the video corners */
}

.achieve strong {
    color: #b8975d;
    /* Highlighting "Gujarat Titans" in Gold */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fixed the selector (removed the space) so the whole card hovers together */
.achieve:hover {
    transform: translateY(-5px);
    border-left-color: #d4af37;
    /* Brighter gold on hover */
}

/* Single Coach Styling */
.coach-section h2 {
    color: #1a1a1a;
    padding: 15px;
    margin: 5px;
    font-family: 'Poppins', sans-serif;
    text-decoration: underline;
}

.coach-card-single {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #f9f9f9;
    color: rgb(9, 29, 51);
    border-left: 5px solid #31548b; /* Matching your theme navy */
    padding: 25px;
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
}

.coach-card-single:hover {
    transform: translateY(-5px);
    border-left-color: #b8975d; /* Turns gold on hover like achievements */
}

.coach-img {
    flex: 0 0 25%; /* Takes up 1/4 of the card */
}

.coach-img img {
    width: 100%;
    border-radius: 6px;
    display: block;
    object-fit: cover;
}

.coach-info {
    flex: 1;
}

.coach-info h3 {
    margin: 0;
    font-size: 24px;
    color: #142338;
}

.designation {
    display: block;
    color: #b8975d; /* Matching your gold highlight */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    margin-bottom: 10px;
}

.coach-info p {
    font-size: 17px;
    line-height: 1.6;
    text-align: justify;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .coach-card-single {
        flex-direction: column; /* Stacks image on top of text */
        text-align: center;
    }
    .coach-img {
        width: 60%; /* Slightly smaller image on mobile */
        margin-bottom: 15px;
    }
    .coach-info p {
        text-align: center;
    }
}

/* Styling for the bullets inside the Impact box */
.impact-list {
    list-style: none; /* Removes default bullets */
    padding: 0;
    text-align: left; /* Better readability for lists */
    max-width: 90%;
    margin: 0 auto;
}

.impact-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #444;
    line-height: 1.5;
}

/* Custom Gold Bullet using your color palette */
.impact-list li::before {
    content: "•";
    color: #dcc18c; 
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
    font-size: 1.2rem;
}

.impact-list li strong {
    color: #142338; /* Dark navy for the point headers */
    text-transform: none; /* Keeps it readable in list format */
}




/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ep-wrapper {
        margin: 30px auto;
    }

    .ep-section-title {
        font-size: 18px;
    }
}



/* --- Terms & Conditions Specific Styles --- */
.ep-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 25px;
    font-family: 'Poppins', sans-serif;
}

.ep-intro {
    text-align: center;
    color: #162b48;
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.ep-section-card {
    background-color: #fffaf0;
    /* Cream background */
    border-radius: 12px;
    margin-bottom: 35px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.ep-section-card:hover {
    transform: translateY(-5px);
}

.ep-section-title {
    background-color: #dcc18c;
    /* Golden header */
    color: #162b48;
    margin: 0;
    padding: 18px 25px;
    font-size: 20px;
    font-weight: 700;
}

.ep-section-body {
    padding: 30px;
    color: #31548b;
    /* Navy text color */
    line-height: 1.8;
    font-size: 16px;
}

.ep-data-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.ep-data-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
}

.ep-data-list li::before {
    content: "•";
    color: #dcc18c;
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* --- Contact Page Specific Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Info takes 40%, Map takes 60% */
    gap: 30px;
    margin-top: 20px;
}

.contact-sep {
    border: 0;
    border-top: 1px dashed rgba(22, 43, 72, 0.2);
    margin: 15px 0;
}

.map-container {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 4px solid #fffaf0;
    /* Matches card background */
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* --- Social Media Grid - 2 per row --- */
.social-grid {
    display: grid;
    /* This forces exactly two columns on desktop/tablet */
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    margin: 40px 0;
    width: 100%;
}

.social-card {
    background: #ffffff;
    border-radius: 20px; /* Matching your image's rounded look */
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.social-icon {
    width: 70px; /* Adjust size based on your logo files */
    height: auto;
}

.social-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-info h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
}

.social-btn {
    display: inline-block;
    width: 100%; /* Makes button stretch like in your image */
    background-color: #d71a2a; /* Red color from image */
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    padding: 8px 0;
    border-radius: 25px;
    font-size: 14px;
    transition: 0.3s ease;
}

.social-btn:hover {
    background-color: #b31421;
    transform: scale(1.02);
}

/* Responsive: Stack to 1 column on smaller mobile screens */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        /* Stack elements on small screens */
    }

    .map-container iframe {
        min-height: 300px;
    }
}

/* Reusing your base ep- styles for cards */
.ep-wrapper {
    max-width: 1100px;
    /* Slightly wider for the grid */
    margin: 40px auto;
    padding: 0 25px;
    font-family: 'Poppins', sans-serif;
}

.ep-section-card {
    background-color: #fffaf0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ep-section-title {
    background-color: #dcc18c;
    color: #162b48;
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
}

.ep-section-body {
    padding: 20px;
    color: #31548b;
    line-height: 1.6;
    font-size: 15px;
}


/* --- Gallery Specific Styles (GL) --- */

/* Container to keep everything centered and safe from global styles */
/* Container - Scoped to avoid messing up Header/Footer */
.gl-wrapper {
    max-width: 1300px; /* Increased to fit 4 items comfortably */
    margin: 40px auto;
    padding: 20px;
}

.gl-title {
    font-family: 'Poppins', sans-serif;
    color: #162b48;
    margin: 30px 0 15px 0;
    border-left: 5px solid #dcc18c;
    padding-left: 15px;
}

/* FORCE 4 COLUMNS */
.gl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    /* This ensures rows adjust automatically to the spanning items */
    grid-auto-rows: 220px; 
    gap: 15px;
    margin-bottom: 50px;
}

.gl-item {
    /* Remove the fixed height here so the span can work */
    border-radius: 8px;
    overflow: hidden;
    background-color: #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* This class makes the newspaper photos take up 2 rows of height */
.gl-item-tall {
    grid-row: span 2;
}

.gl-item img {
    width: 100%;
    height: 100%;
    /* Use 'contain' if you want to see the full newspaper text, 
       or 'cover' to fill the box entirely */
    object-fit: cover; 
    display: block;
    transition: transform 0.4s ease; /* Adjust 0.4s for speed */
}

.gl-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Prevents user from right-clicking/pausing manually */
    background-color: #000;
}

/* Optional: Add a slight zoom effect on the container when hovering */
.gl-item {
    transition: transform 0.3s ease;
}

.gl-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.gl-item:hover img {
    transform: scale(1.1); /* 1.1 = 10% zoom. Use 1.2 for more */
}

.img-modal {
    /* These 4 lines ensure it stays centered regardless of scroll */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Cleaning up the box */
    border: none;
    border-radius: 12px;
    padding: 0;
    margin: 0; /* Important: removes default dialog offsets */
    max-width: 90vw;
    background: transparent; /* Makes the image feel like it's floating */
}

/* Dim the entire screen behind the image */
.img-modal::backdrop {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.img-modal img {
    max-height: 85vh; /* Prevents image from being taller than the screen */
    max-width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Optional: Hide the default close button and allow clicking backdrop to close */
/* (Requires a small JS tweak or just use the button below) */
.img-modal form {
    text-align: center;
    margin-top: 10px;
}

.img-modal button {
    background: white;
    color: black;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}
/* RESPONSIVE DESIGN */

/* 2 columns on tablets */
@media (max-width: 1024px) {
    .gl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 column on mobile */
@media (max-width: 600px) {
    .gl-grid {
        grid-template-columns: 1fr;
    }
    .gl-item {
        height: 250px;
    }
}


/* --- Age Group Specific Styles (AG) --- */

.ag-wrapper {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}

.ag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.ag-card {
    background-color: #fffaf0;
    /* Your cream background */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 193, 140, 0.3);
}

.ag-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.ag-header {
    background-color: #162b48;
    /* Navy header */
    padding: 20px;
    text-align: center;
}

.ag-header h3 {
    color: #dcc18c;
    /* Golden text */
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.ag-range {
    display: block;
    color: #ffffff;
    font-size: 0.85rem;
    margin-top: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ag-body {
    padding: 25px;
    text-align: center;
    color: #31548b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Optional Highlight for Senior group */
.ag-senior {
    border: 2px solid #dcc18c;
}

/* Responsive adjustment */
@media (max-width: 600px) {
    .ag-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Charity/Scholarship Page Styles (CH) --- */

.ch-wrapper {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}

.ch-intro {
    text-align: center;
    margin-bottom: 50px;
}

.ch-intro h2 {
    color: #162b48;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.ch-intro p {
    color: #31548b;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Benefits Grid */
.ch-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.ch-benefit-card {
    background: #fffaf0;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    border-bottom: 4px solid #dcc18c;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ch-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.ch-benefit-card h4 {
    color: #162b48;
    margin-bottom: 10px;
}

/* Selection Notice */
.ch-notice {
    background: #162b48;
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 60px;
}

.ch-notice h3 {
    color: #dcc18c;
    margin-bottom: 15px;
}

/* Students Gallery */
.ch-sub-heading {
    text-align: center;
    color: #162b48;
    font-size: 2rem;
    margin-bottom: 40px;
}

.ch-students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ch-student-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.ch-student-card:hover {
    transform: translateY(-10px);
}

.ch-student-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.ch-student-info {
    padding: 20px;
    text-align: center;
    background: #fffaf0;
}

.ch-student-info h4 {
    margin: 0;
    color: #162b48;
    font-size: 1.2rem;
}

.ch-student-info span {
    color: #dcc18c;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ch-notice {
        padding: 20px;
    }
}

html {
    scroll-behavior: smooth;
}



.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Higher than your carousels/footers */
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
}


/* ==========================================
5. RESPONSIVE MEDIA QUERIES
   ========================================== */

@media (max-width: 768px) {
    
    /* Navigation - Stack vertically or hide for a burger menu */
    nav {
        flex-direction: column;
        height: auto;
        padding-bottom: 20px;
        align-items: center;
    }

    .left img {
        width: 250px; /* Smaller logo for mobile */
        margin-bottom: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav ul li {
        margin: 5px 10px;
        font-size: 16px;
    }

    /* Carousel - Adjust width to fit screen */
    .carousel-frame {
        width: 95vw;
    }

    .carousel-slide img {
        width: 95vw;
        height: 250px; /* Shorter height for mobile */
    }

    @keyframes slide {
        0%, 30% { transform: translateX(0); }
        33%, 63% { transform: translateX(-95vw); }
        66%, 96% { transform: translateX(-190vw); }
        100% { transform: translateX(0); }
    }

    /* Main Content Columns - Stack them! */
    .content {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }

    .content-left, .content-right {
        width: 100%;
    }

    /* Page Titles */
    .pageName {
        font-size: 30px;
        padding-top: 20px;
    }

    /* Coaches Grid - Switch to 1 or 2 columns */
    .coaches-lst {
        grid-template-columns: repeat(2, 1fr); 
        padding: 10px;
    }

    /* Footer - Stack sections */
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-first img {
        width: 200px;
    }

    /* Scholarship/Charity Cards */
    .ch-students-grid {
        grid-template-columns: 1fr;
    }
}

/* Very Small Screens (Phones) */
@media (max-width: 480px) {
    .coaches-lst {
        grid-template-columns: 1fr; /* One coach per row */
    }
    
    .Why h1 {
        font-size: 24px;
    }
}
