@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* --- Base & Typography --- */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #1a1a1a;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

.section-title {
    color: #e60023;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* --- Header & Navigation --- */
#header {
    background: #000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.logo-text {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}
.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-menu li {
    margin-left: 30px;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.main-menu a:hover, .main-menu a.active {
    color: #e60023;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e60023;
    transition: width 0.3s;
}

.main-menu a:hover::after, .main-menu a.active::after {
    width: 100%;
}

/* --- Grid System --- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-lg-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7 {
    box-sizing: border-box; /* Ensures padding is included in width calculation */
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
    width: 100%; /* Default for mobile */
}

/* --- Hero Section --- */
.hero-v3 {
    position: relative;
    height: 50vh;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content { position: relative; z-index: 2; }
.hero-title-v3 { font-size: 3.5rem; margin-bottom: 1rem; color: #fff; text-transform: uppercase; }
.hero-subtitle-v3 { font-size: 1.5rem; font-weight: 400; }

/* --- Content & Cards --- */
.content {
    padding: 4rem 0;
}

.card {
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.card-body { padding: 1.5rem; }
.card h3 { color: #e60023; margin-top: 0; margin-bottom: 1rem; }
.card p { color: #ccc; flex-grow: 1; }
.card .blockquote-footer { margin-top: 1rem; color: #aaa; }

.card img.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* --- Section-Specific Layouts & Styles --- */

/* 11 Phases */
#home .features .card {
    height: 250px; /* A fixed height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    align-items: center;     /* Horizontally center content */
    padding: 1.5rem;
}
#home .features h3 {
    font-size: 1.2rem;
}
#home .features p {
    font-size: 0.9rem;
}

/* Facilities */
.facility-card img.card-img-top { height: 220px; }
#facilities .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}
.facility-item-v2 {
    background-color: #222;
    border: 1px solid #444;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

@media (max-width: 767.98px) {
    #facilities .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
.facility-item-v2 .facility-description {
    margin: 1rem 0;
    color: #ccc;
}

.facility-item-v2 .facility-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.facility-item-v2 .facility-location {
    background-color: #e60023;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
}

.facility-item-v2 .facility-location:hover {
    background-color: #c0001d;
}
.facility-item-v2 h4 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

/* Batches & Coaches */
#batches .card, #coaches .card { text-align: center; }
#coaches .card img.card-img-top { border-radius: 50%; width: 150px; height: 150px; margin: 1.5rem auto 1rem; border: 4px solid #444; }
#coaches .card h3 { font-size: 1.3rem; }
#coaches .card p { font-size: 0.9rem; font-style: italic; }

/* About Page */
.about-section h3 { text-align: left; }
.about-section .row { align-items: center; }
.coach-img-about { width: 100%; max-width: 250px; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; border: 5px solid #444; margin: 0 auto 1rem; }
.about-section h4 { color: #fff; font-weight: 400; margin-top: 0; margin-bottom: 1rem; }
.why-choose-us { list-style: none; padding: 0; }
.why-choose-us li { font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; }
.why-choose-us .fas { color: #e60023; font-size: 1.5rem; margin-right: 15px; width: 30px; text-align: center; }

#community-footprint-container.content {
    padding-top: 0;
}

/* Achievements */
#achievements-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}
.achievement-item {
    background: #222;
    margin-bottom: 1rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #e60023;
    border-radius: 5px;
}
.achievement-item span {
    font-size: 1.2rem;
}
.achievement-img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-left: 1rem;
}
/* --- Contact Form --- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 700;
}

.contact-form .form-control {
    width: 100%;
    padding: .75rem;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.contact-form .btn {
    background: #e60023;
    color: #fff;
    padding: .75rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.3s;
}

.contact-form .btn:hover {
    background: #c0001d;
}
/* --- Ticker & Modal --- */
.announcements-ticker { background-color: #e60023; padding: 1rem 0; color: #fff; font-weight: 700; position: relative; z-index: 5; }
.ticker-wrap { width: 100%; overflow: hidden; white-space: nowrap; }
.ticker-content { display: inline-block; padding-left: 100%; animation: ticker-animation 60s linear infinite; }
.ticker-content span { display: inline-block; padding: 0 2rem; cursor: pointer; }
.ticker-content span:hover { text-decoration: underline; }
@keyframes ticker-animation { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.8); animation: fadeIn 0.3s; }
.modal-content { background-color: #111; margin: 15% auto; padding: 3rem; border: 1px solid #888; width: 80%; max-width: 600px; border-radius: 10px; position: relative; color: #fff; border-left: 5px solid #e60023; }
.close-button { color: #aaa; position: absolute; top: 1rem; right: 1.5rem; font-size: 2rem; font-weight: bold; cursor: pointer; }
.close-button:hover, .close-button:focus { color: #fff; }
#modal-title { color: #e60023; }

/* --- Footer --- */
#footer { background: #000; padding: 2rem 0; text-align: center; border-top: 1px solid #333; }
.social-links { margin-bottom: 1rem; }
.social-links a { color: #fff; font-size: 1.5rem; margin: 0 10px; transition: color 0.3s; }
.social-links a:hover { color: #e60023; }

/* --- Responsive Design --- */
.tab-content .tab-pane { display: none; }
.tab-content .tab-pane.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; position: relative; z-index: 1001; }

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; } /* 4 columns */
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.33%; max-width: 33.33%; } /* 3 columns */
    .col-md-5 { flex: 0 0 41.66%; max-width: 41.66%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }     /* 2 columns */
.hero-title-v3 {
        font-size: 2.5rem;
    }
    .hero-subtitle-v3 {
        font-size: 1.2rem;
    }
    .col-md-7 { flex: 0 0 58.33%; max-width: 58.33%; }
}

/* Small devices (landscape phones, 576px and up) */
/* --- Gallery Section --- */
.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 3rem;
}

.gallery-item-v2 {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: #222;
}

.gallery-item-v2 img,
.gallery-item-v2 video,
.gallery-item-v2 iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 767.98px) {
.announcements-ticker {
        margin-top: 2rem;
    }
.hero-v3 {
        margin-bottom: 2rem;
    }
    .main-menu { display: none; }
    .menu-toggle { display: block; }
    .main-menu.is-active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #000; }
    .main-menu.is-active li { margin: 0; text-align: center; padding: 1rem; border-top: 1px solid #333; }
    .col-md-6 { flex: 0 0 100%; max-width: 100%; } /* Force single column on smaller screens */
}
/* --- Community Gallery --- */
.community-gallery {
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    text-align: center;
    font-weight: 700;
    padding: 2rem 1rem 1rem;
    box-sizing: border-box;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 0;
}
/* --- Gallery Section --- */
.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 3rem;
    /* For smoother scrolling on touch devices */
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.gallery-scroll-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.gallery-item-v2 {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    margin-right: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: #222;
    border: 1px solid #444;
}

.gallery-item-v2 img,
.gallery-item-v2 video,
.gallery-item-v2 iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}