/* assets/css/style.css */
/* Premium, High-Fidelity Light Theme Styling for Balaji Academy Public Portal */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #f58220;
    --primary-grad: linear-gradient(135deg, #f58220, #e07216);
    --accent: #e07216;
    --bg-light: #f8fafc; /* clean light gray background */
    --bg-card: #ffffff; /* solid clean white cards */
    --border-light: #e2e8f0; /* light border */
    --text-dark: #0f172a; /* dark charcoal text */
    --text-muted: #475569; /* slate gray secondary text */
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation - Glassmorphism Light */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.logo-wrapper-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.logo-b-symbol {
    font-size: 2.2rem;
    font-weight: 900;
    color: #f58220;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
    text-decoration: none !important;
    display: inline-block;
}

.logo-brand-subtext {
    font-size: 0.58rem;
    font-weight: 850;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.15;
    font-family: 'Outfit', sans-serif;
    text-decoration: none !important;
    display: inline-block;
}

.logo-subtext-light {
    font-weight: 500;
    color: #475569;
    text-decoration: none !important;
}

.btn-franchise-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.75rem;
    background: #f58220;
    color: #ffffff !important;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(245, 130, 32, 0.2);
}

.btn-franchise-login:hover {
    background: #e07216;
    box-shadow: 0 6px 15px rgba(245, 130, 32, 0.35);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.nav-container {
    padding: 0.75rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-grad);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.logo-text span {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: #f58220;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.75rem;
    background: var(--primary-grad);
    color: var(--white);
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(245, 130, 32, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(245, 130, 32, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.75rem;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-grad);
    color: var(--white) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(245, 130, 32, 0.3);
    border-color: transparent;
}

.menu-toggle {
    display: none;
    font-size: 1.35rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section - Keeps Blue/Teal Classroom Overlay Theme */
.hero {
    position: relative;
    background: url('../images/classroom_hero.jpg') no-repeat center center/cover;
    min-height: 85vh;
    padding: 10rem 2rem 12rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.88), rgba(30, 64, 175, 0.88));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 0.35rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--white);
    animation: fadeInUp 0.8s ease;
}

.hero-title span {
    text-decoration: underline;
    text-decoration-color: #b58d3d;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin-bottom: 3rem;
    line-height: 1.75;
    animation: fadeInUp 1s ease;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    animation: fadeInUp 1.2s ease;
}

.hero-actions .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Floating Enquiry Card - Light Glassmorphism */
.enquiry-container {
    max-width: 1100px;
    margin: -4.5rem auto 4rem auto;
    position: relative;
    z-index: 10;
    padding: 0 1.5rem;
}

.enquiry-card {
    background: linear-gradient(135deg, #0b0f19 0%, #151b2c 100%);
    border-radius: 24px;
    padding: 2.25rem 3rem;
    border: 1px solid rgba(245, 130, 32, 0.18);
    box-shadow: 0 25px 55px -10px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.enquiry-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8%;
    right: 8%;
    height: 3px;
    background: linear-gradient(to right, transparent, #f58220, #e07216, transparent);
    opacity: 0.85;
    border-radius: 9999px;
}

.enquiry-card:hover {
    box-shadow: 0 35px 70px -15px rgba(245, 130, 32, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: rgba(245, 130, 32, 0.4);
}

.enquiry-info-wrapper {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    text-align: left;
}

.enquiry-icon {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #f58220, #e07216);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    border: none;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(245, 130, 32, 0.4);
    position: relative;
    animation: pulseOrange 2.5s infinite alternate ease-in-out;
}

@keyframes pulseOrange {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(245, 130, 32, 0.4);
    }
    100% {
        transform: scale(1.06);
        box-shadow: 0 8px 35px rgba(245, 130, 32, 0.65);
    }
}

.enquiry-details h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.enquiry-details p {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 450;
    line-height: 1.5;
}

/* Statistics Grid - Premium Border Glows */
.stats-section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01), 0 2px 4px -1px rgba(0,0,0,0.01);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 130, 32, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
}

.stat-icon {
    font-size: 2rem;
    color: #f58220;
    margin-bottom: 0.75rem;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Popular Courses Section */
.courses-section {
    padding: 7rem 2rem;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-grad);
    border-radius: 2px;
}

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

.course-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02);
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 130, 32, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.course-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #f58220, #ff9f43);
    color: white;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(245, 130, 32, 0.3);
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-img {
    transform: scale(1.05);
}

.course-body {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.course-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
    margin-top: auto;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.courses-footer {
    text-align: center;
}

/* About Section Split Grid */
.about-section {
    padding: 7rem 2rem;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid var(--border-light);
    border-radius: 28px;
    z-index: 0;
}

.about-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-light);
}

.about-details {
    text-align: left;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Footer Section */
footer {
    position: relative;
    overflow: hidden;
    background-color: #111625;
    border-top: 1px solid rgba(255,255,255,0.03);
    color: #cbd5e1;
    padding: 4rem 2rem 2.5rem 2rem;
    font-size: 0.88rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.45rem;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: #f58220;
    border-radius: 1px;
}

.footer-desc {
    line-height: 1.6;
    margin-top: 0.75rem;
    color: #94a3b8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #f58220;
    padding-left: 3px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

.contact-item i {
    color: #f58220;
    font-size: 1rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.75rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    display: inline;
}

.footer-bottom-divider {
    margin: 0 0.50rem;
    color: #64748b;
}

.admin-login-link {
    color: #64748b;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.admin-login-link:hover {
    color: #f58220;
}

.footer-accent-svg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 280px;
    height: 180px;
    pointer-events: none;
    z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0.75rem 1.5rem;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .enquiry-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 2.5rem;
    }
    .enquiry-info-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: 1px solid var(--border-light);
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .enquiry-container {
        margin: -3.5rem auto 3rem auto;
        padding: 0 1rem;
    }

    .enquiry-card {
        padding: 1.75rem 1.25rem;
        gap: 1.25rem;
        border-radius: 20px;
    }

    .enquiry-card::after {
        left: 20%;
        right: 20%;
    }

    .enquiry-info-wrapper {
        gap: 1rem;
    }

    .enquiry-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .enquiry-details h3 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .enquiry-details p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* ==========================================================================
   Modal Dialog & Form Styling (Academic Inquiry Form Fix)
   ========================================================================== */

/* Zoom In Animation */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Overlay backdrop */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    display: none; /* Controlled via JS */
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

/* Modal Card */
.modal-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}

.modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f1f5f9;
    color: var(--text-dark);
}

/* Modal Body */
.modal-body {
    padding: 2.25rem 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 150px);
}

/* Modal Footer */
.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #f8fafc;
}

/* Form Styles & Layout Alignment */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Select Form Element styling overrides */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.1em;
    padding-right: 2.75rem;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   Contact Section Styling
   ========================================================================== */
.contact-section {
    padding: 7rem 2rem;
    background: var(--white);
    border-top: 1px solid var(--border-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.contact-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-details {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: center;
    width: 100%;
}

.contact-details.align-left {
    text-align: left;
}

.contact-details p {
    margin-bottom: 1.25rem;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details strong {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    text-decoration: underline;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    height: 450px;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.split-hero {
    position: relative;
    width: 100%;
    height: 520px;
    margin-top: 70px; /* Offset fixed header */
    overflow: hidden;
    background: #0b1523;
}

.split-hero-inner {
    display: flex;
    width: 100%;
    height: 100%;
}

.split-hero-left {
    width: 45%;
    background: #0b1523; /* Dark Navy matching mock image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    position: relative;
    color: #ffffff;
    z-index: 5;
}

.split-hero-content {
    max-width: 460px;
}

.split-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.split-hero-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-explore-courses {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.5rem;
    background: #f58220; /* Bright orange matching Explore Courses button */
    color: #ffffff !important;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(245, 130, 32, 0.3);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn-explore-courses:hover {
    background: #e07216;
    box-shadow: 0 8px 24px rgba(245, 130, 32, 0.45);
    transform: translateY(-3px) scale(1.02);
}

.split-hero-right {
    width: 55%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dot Indicators */
.split-hero-dots {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 2.5rem;
    left: 4rem;
}

.split-hero-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.split-hero-dots .dot.active {
    background: #f58220;
    transform: scale(1.25);
}

/* Navigation Arrows */
.split-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.split-hero-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}

.prev-arrow {
    left: 1.5rem;
}

.next-arrow {
    right: 1.5rem;
}

/* Responsiveness for Split Hero */
@media (max-width: 991px) {
    .split-hero {
        height: auto;
        min-height: 500px;
    }
    .split-hero-inner {
        flex-direction: column-reverse;
    }
    .split-hero-left {
        width: 100%;
        padding: 4rem 2rem;
    }
    .split-hero-right {
        width: 100%;
        height: 250px;
    }
    .split-hero-dots {
        left: 2rem;
        bottom: 2rem;
    }
}

/* ==========================================================================
   Global Header & Navigation Custom Overrides
   ========================================================================== */
header.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04) !important;
    z-index: 1000 !important;
    margin: 0 !important;
}

.nav-container {
    padding: 0.5rem 3rem !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper-custom {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    margin-left: 6rem !important; /* Move logo closer to center navmenu */
}

.nav-logo-img {
    height: 52px !important;
    width: auto !important;
    object-fit: contain !important;
}

@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        list-style: none !important;
        align-items: center !important;
        justify-content: flex-end !important; /* Shift the links to the right */
        gap: 2rem !important;
        margin: 0 0 0 auto !important; /* Push block to the right */
        padding: 0 !important;
        flex: 1 !important;
        margin-right: 3rem !important; /* Space before action buttons */
    }
}

.nav-link {
    text-decoration: none !important;
    color: #475569 !important;
    font-weight: 550 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}

.nav-link:hover, .nav-link.active {
    color: #f58220 !important;
}

.nav-btn-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-left: auto !important; /* Align actions right */
    padding-right: 0 !important; /* Remove excessive right offset */
}

.btn-nav-apply {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.6rem 1.5rem !important;
    background: transparent !important;
    color: #f58220 !important;
    border: 1.5px solid #f58220 !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    transition: all 0.2s ease !important;
}

.btn-nav-apply:hover {
    background: var(--primary-grad) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 5px 15px rgba(245, 130, 32, 0.25) !important;
    border-color: transparent !important;
}

.btn-franchise-login {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.6rem 1.5rem !important;
    background: #f58220 !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(245, 130, 32, 0.2) !important;
}

.btn-franchise-login:hover {
    background: #e07216 !important;
    box-shadow: 0 6px 18px rgba(245, 130, 32, 0.4) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

.mobile-only-btn-group {
    display: none !important;
}

@media (max-width: 991px) {
    .logo-wrapper-custom {
        margin-left: 0 !important; /* Remove margin-left on mobile */
    }
    .nav-container {
        padding: 0.5rem 1.5rem !important;
    }
    .desktop-only-btn-group {
        display: none !important; /* Hide floating buttons */
    }
    .nav-menu {
        display: none !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 2rem !important;
        gap: 1.5rem !important;
        text-align: center !important;
        z-index: 9999 !important;
        margin: 0 !important;
    }
    .nav-menu.active {
        display: flex !important;
    }
    .mobile-only-btn-group {
        display: flex !important; /* Show dropdown buttons */
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
        align-items: center !important;
    }
    .mobile-only-btn-group a {
        width: 90% !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* ABOUT & LANDING PAGE INTEGRATED SECTIONS (PHILOSOPHY, LEADERSHIP, TEAM, WHY CHOOSE US) */
:root {
    --primary-accent: #f58220;
    --secondary-accent: #e07216;
    --card-glow: rgba(245, 130, 32, 0.06);
    --glass-border: rgba(226, 232, 240, 0.8);
}

.about-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.about-section-container.journey-sec {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-grad);
    border-radius: 2px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Core Philosophy Section */
.philosophy-section {
    background: #0f172a;
    color: white;
    padding: 6rem 2rem;
}
.philosophy-section .section-title {
    color: white;
}
.philosophy-section .section-subtitle {
    color: #94a3b8;
}
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 4rem auto 0 auto;
}
.philosophy-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
}
.philosophy-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-accent);
    box-shadow: 0 15px 30px rgba(245, 130, 32, 0.1);
}
.philosophy-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(245, 130, 32, 0.15);
    color: var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.philosophy-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}
.philosophy-card p {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Leadership Card Grid */
.leader-floating-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 6.5rem;
}

.leader-premium-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--primary-accent);
    border-radius: 24px;
    padding: 7rem 2.5rem 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
}
.leader-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(245, 130, 32, 0.1);
    border-color: rgba(245, 130, 32, 0.25);
}

.leader-avatar-wrapper {
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(245, 130, 32, 0.15);
    overflow: hidden;
    background: var(--white);
}
.leader-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.leader-avatar-img.hoc-img {
    object-position: center 15%;
}
.leader-premium-card:hover .leader-avatar-img {
    transform: scale(1.08);
}

.leader-role-badge {
    font-size: 0.75rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.leader-premium-name {
    font-size: 1.75rem;
    font-weight: 850;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}
.leader-vision {
    font-size: 1rem;
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.5;
    background: #f8fafc;
    border-left: 3px solid var(--primary-accent);
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: inline-block;
    max-width: 100%;
}
.leader-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* Team Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}
.profile-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    border-color: rgba(245, 130, 32, 0.25);
}
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-grad);
    opacity: 0;
    transition: var(--transition);
}
.profile-card:hover::before {
    opacity: 1;
}
.profile-img-wrapper {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.profile-card:hover .profile-img {
    transform: scale(1.08);
}
.profile-info {
    flex-grow: 1;
}
.profile-role {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}
.profile-bio {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.profile-socials {
    display: flex;
    gap: 0.75rem;
}
.profile-social-link, .leader-social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}
.profile-social-link:hover, .leader-social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}
.leader-socials {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Why Choose Balaji Academy */
.why-section-premium {
    background: var(--white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 6rem 2rem;
}
.why-premium-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}
.why-image-side {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}
.why-image-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 65%, rgba(15, 23, 42, 0.2) 100%);
}
.why-side-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}
.why-image-side:hover .why-side-img {
    transform: scale(1.03);
}
.why-features-side h2 {
    font-size: 2.3rem;
    font-weight: 850;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.75px;
}
.why-features-side p.why-lead-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}
.why-premium-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.why-premium-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.why-premium-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245, 130, 32, 0.08);
    color: var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: var(--transition);
    border: 1px solid rgba(245, 130, 32, 0.1);
}
.why-premium-item:hover .why-premium-icon-wrap {
    background: var(--primary-grad);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.25);
}
.why-premium-info h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.why-premium-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 991px) {
    .leader-premium-card {
        margin-top: 5rem;
        padding-top: 6.5rem;
    }
    .leader-avatar-wrapper {
        width: 150px;
        height: 150px;
        top: -75px;
    }
    .why-premium-container {
        grid-template-columns: 1fr !important;
        gap: 4rem;
    }
    .why-side-img {
        height: 300px !important;
    }
}
@media (max-width: 768px) {
    .journey-grid, .profile-grid, .leader-floating-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    .profile-card {
        flex-direction: column !important;
        text-align: center;
    }
    .profile-socials, .leader-socials {
        justify-content: center;
    }
}

/* ==========================================================================
   GLOBAL FADE-UP SCROLL ANIMATION SYSTEM
   ========================================================================== */
.fade-up-card {
    opacity: 0 !important;
    transform: translateY(40px) scale(0.97) !important;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: opacity, transform;
}

.fade-up-card.fade-up-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Staggered Delay for grid items */
.courses-grid .course-card:nth-child(1), .philosophy-grid .philosophy-card:nth-child(1) { transition-delay: 0.05s !important; }
.courses-grid .course-card:nth-child(2), .philosophy-grid .philosophy-card:nth-child(2) { transition-delay: 0.18s !important; }
.courses-grid .course-card:nth-child(3), .philosophy-grid .philosophy-card:nth-child(3) { transition-delay: 0.30s !important; }
.courses-grid .course-card:nth-child(4), .philosophy-grid .philosophy-card:nth-child(4) { transition-delay: 0.42s !important; }
.courses-grid .course-card:nth-child(5), .philosophy-grid .philosophy-card:nth-child(5) { transition-delay: 0.54s !important; }
.courses-grid .course-card:nth-child(6), .philosophy-grid .philosophy-card:nth-child(6) { transition-delay: 0.66s !important; }
.courses-grid .course-card:nth-child(7), .philosophy-grid .philosophy-card:nth-child(7) { transition-delay: 0.78s !important; }
.courses-grid .course-card:nth-child(8), .philosophy-grid .philosophy-card:nth-child(8) { transition-delay: 0.90s !important; }

