/* 
   Infinity Classes Pune - Main Stylesheet
   Externalized from index.html
*/

/* CSS Variables & Theme */
:root {
    --primary-dark: #1A2E82;
    --primary-mid: #1E6FBE;
    --accent-cyan: #00C2D4;
    --accent-green: #56C277;
    --bg-light: #F6F8FA;
    /* Darker tinted white */
    --bg-tint: #EAF1F6;
    /* Noticeably deeper tint */
    --bg-surface: #FFFFFF;
    --text-dark: #0D1B3E;
    --text-body: #3D4A6B;
    --text-muted: #6B7A99;
    --cta-gradient: linear-gradient(135deg, #1E6FBE, #00C2D4);
    --shadow-soft: 0 12px 35px rgba(13, 27, 62, 0.09);
    /* Noticeably darker shadow but clean */
    --shadow-cyan: 0 12px 35px rgba(0, 194, 212, 0.35);
    /* Brighter hover glow */
    --border-radius: 20px;
    --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); line-height: 1.3; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    min-height: 52px;
}

.btn-primary {
    background: linear-gradient(135deg, #1E6FBE, #00C2D4);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 194, 212, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 194, 212, 0.35);
    color: white;
    filter: brightness(1.1);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-mid);
    border: 2px solid var(--primary-mid);
}

.btn-ghost:hover {
    background: rgba(30, 111, 190, 0.04);
    transform: translateY(-2px);
    color: var(--primary-dark);
}

/* Section Commons */
section {
    padding: clamp(50px, 6vw, 80px) 0;
    position: relative;
}

.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 10px;
}

.section-heading {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: transform 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    will-change: transform, background-color;
}

.navbar.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 max(1.5rem, calc((100% - 1200px) / 2 + 1.5rem));
}

.navbar-logo {
    height: clamp(55px, 9vw, 85px);
    width: auto;
    display: block;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    will-change: transform;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 0;
    background: var(--accent-cyan);
    transition: var(--transition);
}

.nav-links li a:hover::after { width: 100%; }

.nav-cta, .nav-links li a.nav-cta {
    padding: 0 2rem;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    min-height: 48px;
    color: white;
    white-space: nowrap;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    background: none;
    border: none;
    min-height: 44px;
    min-width: 44px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(120px, 15vh, 140px) clamp(20px, 8vw, 100px) 60px;
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
}

.hero-decor-dot-grid {
    position: absolute;
    width: clamp(200px, 30vw, 400px);
    height: clamp(200px, 40vh, 500px);
    background-image: radial-gradient(rgba(0, 194, 212, 0.15) 2px, transparent 2px);
    background-size: 28px 28px;
    z-index: 0;
    pointer-events: none;
}

.hero-decor-left {
    top: 15%;
    left: 0;
    mask-image: linear-gradient(to right, black, transparent);
    -webkit-mask-image: linear-gradient(to right, black, transparent);
}

.hero-decor-right {
    top: 30%;
    right: 0;
    mask-image: linear-gradient(to left, black, transparent);
    -webkit-mask-image: linear-gradient(to left, black, transparent);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content {
    text-align: center;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 194, 212, 0.10);
    border: 1px solid rgba(0, 194, 212, 0.35);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00C2D4;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.8rem, 6.5vw, 4.8rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center;
}

.hero-content h1 .line-1, .hero-content h1 .line-3 {
    color: #0D1B3E;
    font-weight: 800;
    display: block;
}

.hero-content h1 .line-2 {
    background: linear-gradient(90deg, #1E6FBE, #00C2D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: block;
}

.hero-subhead {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    color: #4A5578;
    max-width: 800px;
    margin-top: 20px;
    line-height: 1.7;
    text-align: center;
}

.trust-micro-line {
    border-top: 1px solid rgba(0, 194, 212, 0.3);
    margin-top: 20px;
    padding-top: 20px;
    display: inline-block;
}

.trust-items {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: #4A5578;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-icon {
    color: var(--accent-green);
}

.hero-btns-row {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #1A2E82, #00C2D4);
    color: white;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: 0 8px 30px rgba(0, 194, 212, 0.35);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    animation: pulseGlow 3s infinite alternate ease-in-out;
    text-align: center;
    will-change: filter, transform;
}

.btn-primary-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 194, 212, 0.5);
    color: white;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 8px 15px rgba(0, 194, 212, 0.35)); }
    100% { filter: drop-shadow(0 8px 25px rgba(0, 194, 212, 0.55)); }
}

.btn-secondary-hero {
    background: transparent;
    border: 2px solid #1A2E82;
    color: #1A2E82;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary-hero:hover {
    background: #1A2E82;
    color: white;
}

.hero-watch-link {
    color: #00C2D4;
    font-size: 0.9rem;
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.hero-watch-link:hover {
    color: #1E6FBE;
    text-decoration: underline;
}

/* Stats Strip */
.hero-stats-strip {
    background: #F8FAFF;
    border-top: 1px solid #EEF1F8;
    border-bottom: 1px solid #EEF1F8;
    padding: 28px clamp(20px, 8vw, 100px);
    width: 100%;
}

.hero-stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-stat-item { text-align: center; }

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1A2E82;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: #6B7A99;
    margin-top: 2px;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: #E0E5F0;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 4px solid transparent;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: left;
    contain: content;
    will-change: transform, box-shadow;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
    border-color: rgba(0, 194, 212, 0.2);
}

.feature-card:nth-child(1):hover { border-top-color: var(--primary-dark); }
.feature-card:nth-child(2):hover { border-top-color: var(--primary-mid); }
.feature-card:nth-child(3):hover { border-top-color: var(--accent-cyan); }
.feature-card:nth-child(4):hover { border-top-color: var(--accent-green); }

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 { color: var(--text-dark); margin-bottom: 1rem; }

/* Courses Section */
.courses-section { background: var(--bg-tint); }

.search-container {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.course-search {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-family: inherit;
    box-shadow: var(--shadow-soft);
    outline: none;
    transition: var(--transition);
}

.course-search:focus {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-cyan);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    contain: content;
    will-change: transform, box-shadow;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 194, 212, 0.15);
    border-top: 1px solid var(--accent-cyan);
}

.course-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-mid);
}

.course-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.course-tag {
    background: rgba(0, 194, 212, 0.1);
    color: var(--primary-mid);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-card > .course-tag {
    margin-bottom: 1rem;
}

.course-card h3 { color: var(--text-dark); margin-bottom: 1rem; }
.course-card p { margin-bottom: 2rem; flex-grow: 1; }

.course-link {
    color: var(--primary-mid);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.course-link:hover { color: var(--accent-cyan); gap: 10px; }

.no-results {
    text-align: center;
    padding: 2rem;
    display: none;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Results Section */
.results-section {
    background: var(--text-dark);
    color: var(--bg-light);
}

.results-section .section-heading { color: var(--bg-light); }

.carousel-wrapper {
    position: relative;
    padding: 0 30px;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2rem 0;
}

.carousel-track::-webkit-scrollbar { display: none; }

.topper-card {
    flex: 0 0 300px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    scroll-snap-align: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    contain: content;
    will-change: transform;
}

.topper-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--cta-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin: 0 auto 1rem auto;
    box-shadow: 0 8px 20px rgba(0, 194, 212, 0.3);
}

.topper-card h3 { color: var(--text-dark); margin-bottom: 0.5rem; }
.topper-details { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.score-badge {
    display: inline-block;
    background: rgba(0, 194, 212, 0.15);
    color: var(--primary-mid);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.4rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-dark);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.carousel-btn:hover { background: var(--accent-cyan); color: white; }

#prevBtn, #prevFacultyBtn, #prevUpdatesBtn { left: -10px; }
#nextBtn, #nextFacultyBtn, #nextUpdatesBtn { right: -10px; }

/* Faculty Section */
.faculty-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 2rem 0;
    scrollbar-width: none;
}

.faculty-grid::-webkit-scrollbar { display: none; }

.faculty-card {
    flex: 0 0 clamp(280px, 80vw, 360px);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    contain: content;
    will-change: transform;
}

.faculty-card:nth-child(even) { flex-direction: row-reverse; }

.faculty-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan);
}

.faculty-avatar {
    width: clamp(120px, 15vw, 160px);
    height: clamp(120px, 15vw, 160px);
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-family: 'Poppins';
    color: var(--text-muted);
    flex-shrink: 0;
    overflow: hidden; /* Added to contain img */
    border: 3px solid rgba(0, 194, 212, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.faculty-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.faculty-avatar-img {
    width: clamp(120px, 15vw, 160px);
    height: clamp(120px, 15vw, 160px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.faculty-info { flex: 1; }
.faculty-card h3 { color: var(--primary-dark); margin-bottom: 0.3rem; }

.faculty-role {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: block;
}

/* Video Section */
.video-section { background: var(--bg-tint); }

.video-container {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 4rem;
    align-items: center;
}

.video-embed-iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: none;
}

.video-text-content h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
}

.video-bullets { margin-bottom: 2rem; }

.video-bullets li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.video-bullets li i { color: var(--accent-cyan); font-size: 1.2rem; }

/* Reviews Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.google-badge-row {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    justify-content: center;
}

.google-badge i.fa-google {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.google-badge-text {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.google-badge .stars-container {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    line-height: 1;
}

.google-badge .stars-container .star { font-size: 1.25rem; }

.review-card {
    background: var(--bg-light);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    position: relative;
    text-align: left;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.review-card::before {
    content: '"';
    position: absolute;
    font-family: serif;
    font-size: 8rem;
    opacity: 0.05;
    color: var(--accent-cyan);
    top: 10px;
    right: 20px;
    z-index: -1;
    line-height: 1;
}

.stars-container { margin-bottom: 1.5rem; color: #ccc; }
.star.filled { color: #F5A623; font-size: 1.2rem; }

.review-text {
    color: var(--text-body);
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.reviewer-info h4 { margin-bottom: 0.2rem; font-size: 1.1rem; }
.reviewer-info p { font-size: 0.85rem; color: var(--text-muted); }
.reviews-action-container { text-align: center; margin-top: 3rem; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 12px;
}

.gallery-tile {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-tile:nth-child(1) { background: linear-gradient(45deg, #1A2E82, #1E6FBE); }
.gallery-tile:nth-child(2) { background: linear-gradient(45deg, #00C2D4, #1E6FBE); }
.gallery-tile:nth-child(3) { background: linear-gradient(45deg, #56C277, #00C2D4); }
.gallery-tile:nth-child(4) { background: linear-gradient(45deg, #6B7A99, #1A2E82); }
.gallery-tile:nth-child(5) { background: linear-gradient(45deg, #1E6FBE, #00C2D4); }
.gallery-tile:nth-child(6) { background: linear-gradient(45deg, #00C2D4, #56C277); }

.gallery-tile .tile-content { text-align: center; color: white; z-index: 2; padding: 1rem; }
.gallery-tile i { font-size: 2.5rem; margin-bottom: 1rem; }
.gallery-tile h3 { margin: 0; color: white; }

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 62, 0.85);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-tile:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: var(--shadow-cyan);
}

.gallery-tile:hover .gallery-overlay { opacity: 1; }
.gallery-tile:hover .gallery-overlay span { transform: translateY(0); }
.gallery-tile:hover .tile-content { opacity: 0; }

/* Updates Section */
.updates-container {
    width: 100%;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 2rem 0;
    scrollbar-width: none;
}

.updates-container::-webkit-scrollbar { display: none; }

.update-card {
    flex: 0 0 clamp(280px, 80vw, 360px);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border-top: 5px solid var(--primary-mid);
    transition: var(--transition);
    text-align: left;
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}

.update-card.primary { border-top-color: var(--accent-cyan); }
.update-card.success { border-top-color: var(--accent-green); }

.update-icon { font-size: 2.2rem; color: var(--primary-mid); text-align: left; }
.update-card.primary .update-icon { color: var(--accent-cyan); }
.update-card.success .update-icon { color: var(--accent-green); }

.update-content { flex: 1; }
.update-content h3 { margin-bottom: 0.3rem; }
.update-date {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}
.update-content p { margin: 0; }

/* Enquiry Form */
.enquiry-section { background: var(--bg-tint); }

.enquiry-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    background: var(--bg-light);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    padding: clamp(2.5rem, 5vw, 4rem);
}

.form-wrapper { text-align: left; }
.form-group { margin-bottom: 1.5rem; }

.form-control {
    width: 100%;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(13, 27, 62, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #F9FAFB;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 194, 212, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.btn-submit {
    width: 100%;
    padding: 13px 24px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 194, 212, 0.1);
    color: var(--primary-mid);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item-content h4 { margin-bottom: 0.2rem; font-size: 1rem; }
.contact-item-content p, .contact-item-content a { font-size: 0.95rem; }

.contact-item-content a:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.map-placeholder {
    background: white;
    height: clamp(140px, 15vw, 180px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dark);
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.map-placeholder-icon {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.btn-directions { width: 100%; margin-top: -0.5rem; }

/* Modal System Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2.5rem 10px;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active { opacity: 1; visibility: visible; }

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    position: fixed;
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 2001;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

/* Specific fix for Video Modal to keep 16:9 */
#videoModal .modal-content {
    aspect-ratio: 16/9;
}

/* Specific fix for Enrollment Form Modal to be scrollable */
.enquiry-modal-content {
    background: #ffffff !important;
    height: auto !important;
    padding: 0 !important;
    -webkit-overflow-scrolling: touch;
    max-width: 1000px !important;
    aspect-ratio: auto !important;
    border-radius: 24px;
    margin: auto;
}

.modal.active .modal-content { transform: scale(1); }

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2002;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover { background: var(--accent-cyan); }

.modal iframe { width: 100%; height: 100%; border: none; }

/* ═══ PREMIUM GALLERY MODAL ═══ */
.gallery-modal-content {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 95vw !important;
    width: auto !important;
    height: auto !important;
    aspect-ratio: auto !important;
    padding: 60px 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-modal-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.gallery-scroller-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.gallery-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    width: 100%;
}

.gallery-scroller::-webkit-scrollbar { display: none; }

.gallery-slide {
    flex: 0 0 auto;
    width: clamp(280px, 70vw, 500px);
    height: clamp(200px, 50vw, 400px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #111;
}

.gallery-slide:hover { transform: scale(1.02); }

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

.gallery-nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.gallery-nav-btn:hover {
    background: var(--accent-cyan);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-cyan);
    border-color: transparent;
}

.gallery-nav-btn:active { transform: scale(0.9); }

.gallery-modal-counter {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Specific Enquiry Modal Overrides */


.enquiry-modal-close {
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    background: rgba(0,0,0,0.05) !important;
    color: var(--text-dark) !important;
}

.enquiry-container-modal {
    margin: 0 !important;
    box-shadow: none !important;
}

.enquiry-heading-modal {
    margin-bottom: 0.8rem;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
}

.enquiry-subtext-modal {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Footer Section */
.footer {
    background: var(--text-dark);
    color: white;
    padding: clamp(40px, 6vw, 60px) 0 40px 0;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    text-align: center;
}

.footer-logo {
    height: clamp(80px, 12vw, 140px);
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col { text-align: left; }
.footer-col h4 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-cyan);
}

.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); transition: var(--transition); }
.footer-links a:hover { color: var(--accent-cyan); padding-left: 5px; }

.social-links { display: flex; gap: 1rem; margin-bottom: 1.5rem; }

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover { background: var(--accent-cyan); transform: translateY(-3px); }

.footer-contact-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact-icon {
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-team-members {
    margin-left: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.footer-team-members a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-team-members a:hover {
    color: var(--accent-cyan);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .courses-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 250px); }
    .enquiry-container { padding: 3rem; gap: 3rem; grid-template-columns: 1fr; }
    .video-container { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .hero { padding-top: 140px; }
    .navbar-logo { height: 55px !important; }
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: block; }
    .navbar.mobile-open { background: white; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1.5rem 2rem 2.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        align-items: flex-start;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .nav-links.active li { width: 100%; }
    .nav-links.active li a { font-size: 1.1rem; padding: 0.8rem 0; display: block; width: 100%; }
    .nav-links.active .nav-cta { display: inline-flex; margin-top: 1rem; width: 100%; }
    .features-grid { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; width: 100%; }
    .courses-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 200px); }
    .faculty-card { flex-direction: column !important; text-align: left; padding: 2.5rem 1.5rem; }
    .faculty-avatar { margin-bottom: 1rem; align-self: flex-start; }
    .enquiry-container { padding: 2rem; }
    .video-text-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: left; }
    .video-container { display: flex; flex-direction: column-reverse; }
    .gallery-nav-btn { display: none !important; }
}

@media (max-width: 480px) {
    .update-card { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
    .carousel-btn { width: 44px; height: 44px; }
    .google-badge { flex-direction: column; padding: 16px 20px; gap: 10px; }
}

/* ═══ AOS MOBILE FALLBACK ═══ */
/* Ensures elements are visible if AOS is disabled or fails on mobile */
@media (max-width: 768px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}


/* Custom Creative Intro Styles */
.intro-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.2s cubic-bezier(0.8, 0, 0.2, 1), visibility 1.2s, background 1.2s;
    perspective: 1000px;
}

.intro-overlay.hidden { opacity: 0; visibility: hidden; background: transparent; }
.intro-overlay.hidden .intro-content-wrapper { transform: scale(1.5) translateZ(200px); filter: blur(20px); opacity: 0; }

.intro-bg-patch {
    position: absolute;
    width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
    border-radius: 50%; filter: blur(100px); z-index: 1; opacity: 0;
    animation: fadeInPatch 2s ease forwards; animation-delay: 0.5s;
    pointer-events: none;
}

.patch-top-left { top: -15%; left: -10%; background: rgba(0, 194, 212, 0.35); }
.patch-bottom-right { bottom: -15%; right: -10%; background: rgba(86, 194, 119, 0.3); }

@keyframes fadeInPatch { to { opacity: 1; } }

.intro-content-wrapper {
    position: relative; z-index: 2; display: flex; flex-direction: column;
    align-items: center; gap: 4rem; width: 100%; max-width: 1000px;
    transition: all 1.2s cubic-bezier(0.8, 0, 0.2, 1);
}

.custom-intro-container {
    position: relative; width: 400px; height: 400px;
    display: flex; align-items: center; justify-content: center; margin-top: -50px;
}

.custom-intro-logo {
    width: 280px; height: auto; position: relative; z-index: 10;
    animation: introLogoPulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate, introFadeInScale 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0; transform: scale(0.5);
}

.intro-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid transparent; }
.intro-ring-1 { width: 420px; height: 420px; border-top: 3px solid var(--primary-mid); border-right: 3px solid var(--accent-cyan); filter: drop-shadow(0 0 10px var(--accent-cyan)); animation: spinRing1 2s linear infinite; }
.intro-ring-2 { width: 370px; height: 370px; border-bottom: 3px solid var(--accent-green); border-left: 3px solid var(--primary-dark); filter: drop-shadow(0 0 10px var(--accent-green)); animation: spinRing2 3s linear infinite reverse; }

.intro-skip-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    border: none; color: white; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem;
    padding: 14px 36px; border-radius: 100px; cursor: pointer;
    box-shadow: 0 10px 30px rgba(30, 111, 190, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; gap: 12px;
    animation: introFadeInUp 1s ease forwards; opacity: 0; transform: translateY(20px); animation-delay: 1s;
}

.intro-skip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 194, 212, 0.4);
    background: linear-gradient(135deg, var(--primary-mid), var(--accent-cyan));
}

@keyframes introLogoPulse {
    0% { filter: drop-shadow(0 0 8px rgba(0, 194, 212, 0.15)); }
    100% { filter: drop-shadow(0 0 20px rgba(0, 194, 212, 0.4)) drop-shadow(0 0 10px rgba(86, 194, 119, 0.25)); transform: scale(1.04); }
}

@keyframes introFadeInScale { to { opacity: 1; transform: scale(1); } }
@keyframes spinRing1 { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinRing2 { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes introFadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Utility & Specific Component Classes */

.trust-icon {
    color: var(--accent-green);
    margin-right: 4px;
}

.results-label-white {
    border-color: white !important;
    color: white !important;
}

.gallery-bg-tint {
    background: var(--bg-tint) !important;
}



.enquiry-modal-close {
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    background: rgba(0,0,0,0.05) !important;
    color: var(--text-dark) !important;
}

.enquiry-container-embedded {
    margin: 0 !important;
    box-shadow: none !important;
}

.footer-contact-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

/* Last Mile Utility & Component Refinements */

.hero-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-btn-group-alt {
    display: flex;
    align-items: flex-start;
}

.hero-seats-text {
    font-size: 0.72rem;
    color: #6B7A99;
    margin-top: 8px;
    text-align: center;
}

.feature-icon i.fa-bullseye { color: var(--primary-dark) !important; }
.feature-icon i.fa-chalkboard-teacher { color: var(--primary-mid) !important; }
.feature-icon i.fa-chart-line { color: var(--accent-cyan) !important; }
.feature-icon i.fa-book { color: var(--accent-green) !important; }

.carousel-wrapper-padded {
    padding: 0 30px !important;
}

.enquiry-heading-compact {
    margin-bottom: 0.8rem !important;
    font-size: clamp(1.8rem, 4vw, 2.2rem) !important;
}

.enquiry-subtext-spaced {
    color: var(--text-muted) !important;
    margin-bottom: 2.5rem !important;
}
