@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-blue: #4580c2;
    --primary-red: #fb4b52;
    --grad-brand: linear-gradient(135deg, #4580c2 0%, #fb4b52 100%);
    --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f8fafc;
    scroll-behavior: smooth;
    color: #1e293b;
}

/* ========================================= */
/* NAVBAR & HEADER (FIXED ALIGNMENT)         */
/* ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.31);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img { height: 50px; }
.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Forcing the row layout and removing bullets */
ul.nav-links {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    list-style: none !important;
    align-items: center;
    margin: 0;
    padding: 0;
}

ul.nav-links li {
    list-style: none !important;
}

ul.nav-links li a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
}

ul.nav-links li a:hover { color: var(--primary-red); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1e293b;
    z-index: 2100;
}

/* ========================================= */
/* HERO SECTION                              */
/* ========================================= */

/* Base styles for the Hero Content */
.urgency-badge {
    background: #fb4b52;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-content h1 {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    /* Note: Your existing CSS already has font-size & font-weight for h1 */
}

.hero-subtext {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.hero-wrapper {
    position: relative;
    height: 90vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 75px; /* Offset for fixed header */
    overflow: hidden;
}

.cover-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: 1s ease-in-out;
    filter: brightness(0.75);
}

.cover-slide:nth-child(4){
    background-position: top center !important;
}

.cover-slide.active { opacity: 1; }

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 15px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--grad-brand);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(251, 75, 82, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(251, 75, 82, 0.6);
}

/* ========================================= */
/* HERO SLIDESHOW IMAGES (DESKTOP)           */
/* ========================================= */
/* Adjust the path depending on where your CSS folder is relative to your images */
.slide-1 { background-image: url('cover1.webp'); }
.slide-2 { background-image: url('cover2.webp'); }
.slide-3 { background-image: url('cover3.webp'); }
.slide-4 { background-image: url('cover4.webp'); }

/* ========================================= */
/* FACULTY CAROUSEL (SWIPE-ENABLED FIX)      */
/* ========================================= */
.faculty-section {
    padding: 80px 5%;
    text-align: center;
    background: #ffffff;
}

.faculty-carousel-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    position: relative;
}

.faculty-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hides scrollbar in Firefox */
}

/* Hides scrollbar in Chrome/Safari/Edge */
.faculty-track::-webkit-scrollbar {
    display: none;
}

.faculty-card {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 10px;
    scroll-snap-align: start; /* Snaps perfectly into place */
}

.faculty-inner {
    height: 420px;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: top center;
    position: relative;
}

.faculty-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(15,23,42,0.95));
    color: white;
    text-align: left;
}

.faculty-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.faculty-info p {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1rem;
}

/* Mobile Scaling */
@media (max-width: 992px) {
    .faculty-card { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 768px) {
    .faculty-card { flex: 0 0 100%; max-width: 100%; }
}

/* ========================================= */
/* FOOTER & MAP                              */
/* ========================================= */
footer {
    background: var(--grad-dark);
    color: white;
    padding: 70px 5% 40px;
    width: 100%;
}

.footer-content {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-map, .contact-form { flex: 1; width: 100%; }

.map-container {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Brighter Form Inputs */
.contact-form input, .contact-form select {
    width: 100%;
    padding: 16px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.contact-form input:focus, .contact-form select:focus {
    border-color: var(--primary-red);
    background: rgba(255,255,255,0.15);
}

.contact-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.contact-form select option { color: #000; }

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(251, 75, 82, 0.3);
    transition: transform 0.2s;
}

.submit-btn:active { transform: scale(0.98); }

/* ========================================= */
/* SOCIAL ICONS (DESKTOP FLOATING)           */
/* ========================================= */
.social-float {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1500;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    font-size: 1.4rem;
    transition: transform 0.3s, background 0.3s, color 0.3s;
}

.social-icon:hover {
    background: var(--grad-brand);
    color: white;
    transform: scale(1.1);
}

/* ========================================= */
/* MOBILE RESPONSIVE FIXES                   */
/* ========================================= */
@media (max-width: 992px) {
    /* Faculty scales to 2 on tablet */
    .faculty-card { flex: 0 0 50%; max-width: 50%; }
    
    /* Footer stacks */
    .footer-content { flex-direction: column; gap: 40px; }

    /* SOCIAL ICONS MOBILE FIX: Dock to bottom, no overlapping! */
    .social-float {
        position: fixed !important; 
        top: 85% !important;
        right: 3px !important; /* Hugs the right edge tightly */
        transform: translateY(-50%) !important;
        flex-direction: column !important; /* Stacks them vertically */
        margin-top: 0 !important;
        z-index: 9999 !important; /* Keeps them on top of everything */
        
    }

    /* Make the icons slightly smaller so they don't block the screen */
    .social-icon {
        width: 32px !important; 
        height: 32px !important;
        font-size: 0.9rem !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile Fix */
    .nav-toggle { display: block; }
    ul.nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 75%;
        height: 100vh;
        background: white;
        flex-direction: column; /* Stack menu items on mobile */
        justify-content: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
    }
    ul.nav-links.open { right: 0; } /* Slides in */
    
    ul.nav-links li a { font-size: 1.2rem; }

    /* Faculty scales to 1 on phone (prevents text cut-off!) */
    .faculty-card { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 768px) {
    /* Header layout fixes */
    nav {
        flex-wrap: nowrap !important;
        gap: 8px;
        padding: 0.8rem 4%;
    }
    
    .logo-container {
        flex: 1;
        min-width: 0; /* Critical: allows the text to wrap without breaking the layout */
    }

    .logo-text {
        font-size: 1rem !important; /* Shrunk from desktop size to fit phones perfectly */
        line-height: 1.1;
        white-space: normal;
    }

    .nav-toggle {
        flex-shrink: 0 !important; /* Tells the browser NEVER to squish the hamburger */
        margin-left: auto;
    }
}

/* ========================================= */
/* TESTIMONIAL SECTION                       */
/* ========================================= */
.testimonial-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.testimonial-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.testimonial-content {
    flex: 1;
}

.testimonial-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 20px;
    color: #1e293b;
    letter-spacing: -1px;
}

.testimonial-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 30px;
}

.quote-icon {
    font-size: 3.5rem;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
    margin-bottom: -15px;
    display: block;
}

.testimonial-video-wrapper {
    flex: 1;
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Perfect 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    border: 6px solid white;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Success Stats Box */
.success-stat {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stat-number {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Mobile Layout */
@media (max-width: 992px) {
    .testimonial-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .quote-icon {
        margin: 0 auto -15px auto;
    }
    .success-stat {
        text-align: left; /* Keep stat text aligned inside its box */
    }
}

/* ========================================= */
/* PROGRAMS SECTION                          */
/* ========================================= */

.programs-section {
    padding: 80px 5%;
    background: #f1f5f9;
}

.programs-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #1e293b;
}

/* Symmetric Grid Layout */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns on Desktop */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Program Card Styling */
.program-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: rgba(69, 128, 194, 0.2);
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.program-card p {
    color: #64748b;
}

/* Modal Internal Styling (Hidden by default) */
.program-details h2 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.program-details p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #475569;
}

.program-btn {
    padding: 12px 28px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.program-btn:hover {
    background: #e03e45; /* Darker red on hover */
}

/* ========================================= */
/* MOBILE RESPONSIVE RULES (PROGRAMS)        */
/* ========================================= */

/* Tablet Layout */
@media (max-width: 992px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns on Tablet */
    }
}

/* Mobile Phone Layout */
@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 Columns on Mobile */
        gap: 12px;
    }
    
    .program-card {
        padding: 20px 10px;
        border-radius: 15px;
    }

    .program-card h3 {
        font-size: 1.15rem;
        margin-bottom: 5px;
    }

    .program-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    /* HERO SLIDESHOW IMAGES (MOBILE SPECIFIC) */
    .slide-1 { background-image: url('cover1-mobile.webp'); }
    .slide-2 { background-image: url('cover2-mobile.webp'); }
    .slide-3 { background-image: url('cover3-mobile.webp'); }
    .slide-4 { background-image: url('cover4-mobile.webp'); }
    
    /* Optional: Ensure the background shows the best part of your mobile portrait image */
    .cover-slide {
        background-position: contain;
        filter: brightness(0.85) 
    }

    

    /* 2. Make the fonts smaller */
    .hero-content h1 {
        font-size: 2.2rem !important; /* Smaller main title */
        margin-bottom: 5px;
    }

    .hero-subtext {
        font-size: 0.95rem; /* Smaller paragraph text */
        margin-bottom: 5px;
    }

    .urgency-badge {
        font-size: 0.7rem; /* Smaller badge text */
        padding: 6px 16px;
    }

    .cta-btn {
        font-size: 0.95rem; /* Slightly smaller button */
        padding: 12px 28px;
    }

}

/* ========================================= */
/* PREMIUM MODAL STYLING                     */
/* ========================================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(15, 23, 42, 0.6); /* Sleek, dark blue-tinted overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 40px; /* Generous breathing room */
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalPopUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Smooth pop-in animation */
@keyframes modalPopUp {
    0% { transform: scale(0.95) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Modern Circular Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #fb4b52; /* Turns red to indicate close/cancel */
    transform: rotate(90deg); /* Nice interactive detail */
}

/* Modal Typography */
.modal-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
    padding-right: 30px; /* Prevents long titles from hiding under the X */
    line-height: 1.3;
}

.modal-card h2 b {
    font-weight: 800;
}

.modal-card p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Premium "Enquire Now" Button */
.modal-card .enroll-btn, 
.modal-card .program-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--grad-brand);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 20px -5px rgba(251, 75, 82, 0.4);
    transition: all 0.3s ease;
    margin: 0;
}

.modal-card .enroll-btn:hover, 
.modal-card .program-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(251, 75, 82, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .modal-card {
        padding: 35px 25px 30px 25px;
        border-radius: 20px;
    }
    .modal-card h2 {
        font-size: 1.5rem;
    }
    .modal-card p {
        font-size: 0.95rem;
    }
}


/* ========================================= */
/* GOOGLE REVIEWS SECTION                    */
/* ========================================= */

.google-reviews-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

