@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary-color: #0D47A1;
    --primary-dark: #08306b;
    --primary-light: #e3f2fd;
    --secondary-color: #00796B;
    --secondary-light: #e0f2f1;
    --accent-color: #B71C1C;
    --accent-hover: #8f1212;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #FFFFFF;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --card-shadow: 0 10px 30px rgba(13, 71, 161, 0.05);
    --card-shadow-hover: 0 20px 40px rgba(13, 71, 161, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #0f172a;
}

/* Custom Utilities & Spacing */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-secondary-light { background-color: var(--secondary-light) !important; }

.section-padding {
    padding: 90px 0;
}

/* Navigation */
.navbar-brand img {
    height: 55px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(13, 71, 161, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(13, 71, 161, 0.05);
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #334155 !important;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Premium Buttons */
.btn-cta-primary {
    background-color: var(--accent-color);
    color: var(--bg-white) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 6px 20px rgba(183, 28, 28, 0.35);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-cta-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(183, 28, 28, 0.45);
}

.btn-cta-secondary {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.25);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-cta-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.35);
}

.btn-whatsapp-outline {
    background-color: transparent;
    color: #25D366 !important;
    border: 2px solid #25D366;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.1);
}

.btn-whatsapp-outline:hover {
    background-color: #25D366;
    color: var(--bg-white) !important;
    border-color: #25D366;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-outline.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(3, 22, 53, 0.97) 0%, rgba(13, 71, 161, 0.92) 100%), 
                url('../images/classroom_students.png') no-repeat center center/cover;
    color: var(--bg-white);
    position: relative;
    padding: 110px 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.4rem;
    line-height: 1.25;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-weight: 800;
    color: var(--bg-white) !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 660px;
    color: #e2e8f0;
}

.trust-badge-container {
    display: flex;
    gap: 12px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 22px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: #ffffff;
    width: auto; /* Prevent full width stretching */
}

/* Form Container */
.glass-form-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-dark);
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 14px 18px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.12);
}

/* Features Grid - Centered Icons & Content */
.feature-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid rgba(13, 71, 161, 0.05);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(13, 71, 161, 0.1);
}

.feature-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.65rem;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Program Details Section & Timeline */
.program-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    background: var(--bg-white);
    padding: 30px 25px;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(13, 71, 161, 0.05);
    transition: var(--transition-smooth);
    height: 100%;
}
.program-info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(13, 71, 161, 0.1);
}
.program-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.08);
    transition: var(--transition-smooth);
}
.program-info-icon.sec-bg {
    background-color: var(--secondary-light);
    color: var(--secondary-color);
}
.timeline-card {
    background: var(--bg-white);
    border-radius: 20px;
    border-left: 6px solid var(--primary-color);
    padding: 35px 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    margin-bottom: 30px;
}

.timeline-card:hover {
    transform: translateX(8px);
    box-shadow: var(--card-shadow-hover);
}

.timeline-phase-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* Testimonials & Success Stories */
.testimonial-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: var(--card-shadow);
    position: relative;
    border: 1px solid rgba(13, 71, 161, 0.05);
    transition: var(--transition-smooth);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-light);
}

.testimonial-quote-icon {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2.8rem;
    color: rgba(13, 71, 161, 0.06);
}

.testimonial-img-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary-light);
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.08);
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Leadership Card Styling */
.leadership-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(13, 71, 161, 0.05);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.leadership-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.leadership-img-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.08);
    transition: var(--transition-smooth);
}

.leadership-card:hover .leadership-img-wrapper {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(13, 71, 161, 0.15);
}

.leadership-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Statistics Counter Section & Glassmorphic Cards */
.stats-section-wrapper {
    background: linear-gradient(135deg, #031635 0%, #0d47a1 100%);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.stats-section-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 180%;
    background: radial-gradient(circle, rgba(0, 121, 107, 0.18) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.stats-section-wrapper .container {
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(3, 22, 53, 0.15);
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.stat-icon {
    font-size: 2.2rem;
    color: #ffd700;
    margin-bottom: 18px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.35);
    transition: var(--transition-smooth);
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(8deg);
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--bg-white);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stat-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Curriculum Highlights */
.curriculum-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 35px 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: var(--transition-smooth);
    text-align: center;
}

.curriculum-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

/* Pricing and Enrollment Card */
.price-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 50px 45px;
    border: 2px solid var(--primary-light);
    box-shadow: var(--card-shadow-hover);
}

/* Branches Section */
.branch-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    border: 1.5px solid #f1f5f9;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: var(--transition-smooth);
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-light);
}

.branch-map-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    margin-top: 15px;
    border: 1px solid rgba(13, 71, 161, 0.08);
}

.branch-map-wrapper iframe {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: rgba(13, 71, 161, 0);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.map-link-overlay::after {
    content: '\f224   Get Directions';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffffff;
    background-color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.25);
}

.branch-card:hover .map-link-overlay {
    background: rgba(13, 71, 161, 0.15);
}

.branch-card:hover .map-link-overlay::after {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Accordion Styling */
.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 18px;
    border-radius: 16px !important;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 22px 30px;
    color: var(--text-dark);
    background-color: var(--bg-white);
    box-shadow: none !important;
    transition: var(--transition-smooth);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.faq-accordion .accordion-body {
    padding: 30px;
    background-color: var(--bg-white);
    font-size: 1rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(13, 71, 161, 0.05);
}

/* Premium Footer (Fully legibility fixed) */
.site-footer {
    background-color: #0b1329; /* Dark Navy for extreme legibility */
    color: #cbd5e1; /* Light Slate text */
    padding: 80px 0 30px;
    border-top: 4px solid var(--primary-color);
}

.site-footer h5 {
    color: var(--bg-white) !important;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.15rem;
}

.site-footer p {
    color: #94a3b8 !important; /* Extremely high contrast light slate */
    font-size: 0.95rem;
    line-height: 1.75;
}

.site-footer ul li {
    margin-bottom: 12px;
}

.site-footer a {
    color: #94a3b8 !important; /* High contrast link text color override */
    transition: var(--transition-smooth);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
}

.site-footer a:hover {
    color: var(--bg-white) !important;
    transform: translateX(5px);
}

.site-footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.site-footer .text-muted {
    color: #64748b !important; /* Higher contrast fallback */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Testimonials Carousel Custom Styling */
#studentCarousel {
    position: relative;
    padding: 0 70px;
}

#studentCarousel .carousel-control-prev {
    left: 10px;
    width: 50px;
    opacity: 0.8;
}

#studentCarousel .carousel-control-next {
    right: 10px;
    width: 50px;
    opacity: 0.8;
}

#studentCarousel .carousel-control-prev:hover,
#studentCarousel .carousel-control-next:hover {
    opacity: 1;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-section {
        padding: 80px 0;
    }
    .glass-form-card {
        margin-top: 50px;
    }
    .section-padding {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .trust-badge-container {
        justify-content: flex-start;
    }
    .trust-badge {
        width: 100%; /* Make them stacks cleaner on small mobile */
        justify-content: center;
    }
    #studentCarousel {
        padding: 0 45px;
    }
    #studentCarousel .carousel-control-prev {
        left: 0;
    }
    #studentCarousel .carousel-control-next {
        right: 0;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .testimonial-card {
        padding: 30px 20px;
    }
    .section-padding {
        padding: 60px 0;
    }
    #studentCarousel {
        padding: 0 35px;
    }
}
