:root {
    --primary: #2563eb;       
    --primary-dark: #1d4ed8;
    --secondary: #1e293b;     
    --accent: #f59e0b;        
    --light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on body */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a:hover { color: var(--primary); }

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}
.btn-nav:hover { background: var(--primary-dark); transform: translateY(-2px); }

.hamburger { display: none; font-size: 1.8rem; cursor: pointer; color: var(--secondary); }

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh; /* Changed to min-height for better mobile scaling */
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(37, 99, 235, 0.85)),
                url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 80px 20px;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; opacity: 0.95; }

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-hero {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-block;
}
.btn-primary { background: var(--accent); color: var(--secondary); border: none; }
.btn-outline { border: 2px solid white; color: white; background: transparent; }
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- STATS BAR --- */
.stats {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 2rem 5%;
    margin-top: -3rem;
    position: relative;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    z-index: 10;
    flex-wrap: wrap;
    gap: 20px;
}
.stat-item { text-align: center; flex: 1; min-width: 150px; }
.stat-item h3 { font-size: 2rem; color: var(--primary); margin-bottom: 0; }
.stat-item p { color: #64748b; font-size: 0.9rem; font-weight: 600; }

/* --- SECTIONS GENERAL --- */
.section { padding: 5rem 5%; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 0.5rem; }
.section-title p { color: #64748b; max-width: 600px; margin: 0 auto; }

/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    text-align: center;
    border-top: 4px solid transparent;
}
.feature-card:hover { transform: translateY(-10px); border-top: 4px solid var(--accent); }
.feature-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }

/* --- HORIZONTAL SCROLL REVIEWS (Improved) --- */
.testimonials-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px; /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Hide scrollbar by default */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.testimonials-wrapper::-webkit-scrollbar { display: none; }

.testimonials {
    display: flex;
    gap: 2rem;
    width: max-content; /* Ensure container expands */
    padding: 10px 5px;  /* Padding for shadows */
}

.testi-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    width: 300px;       /* Fixed width for uniformity */
    min-width: 300px;   /* Prevent shrinking */
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.doc-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    background-color: #f1f5f9;
}

.user-info { display: flex; align-items: center; margin-top: 1rem; }
.user-avatar {
    width: 40px; height: 40px; background: var(--primary);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: white; font-weight: bold; margin-right: 10px;
    flex-shrink: 0;
}

/* --- FORMS (ADMISSION & CAREERS) --- */
.page-header {
    padding: 6rem 5% 3rem;
    text-align: center;
    background: #eef2ff;
    border-bottom: 1px solid var(--border);
}
.standalone-form-container {
    max-width: 600px;
    margin: -3rem auto 5rem;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 5;
}

input, select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
}
input:focus, select:focus { outline: 2px solid var(--primary); background: white; }

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 6px;
}
.checkbox-label input { width: auto; margin: 0 10px 0 0; transform: scale(1.2); }

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: background 0.3s;
}
.btn-submit:hover { background: #1ebc57; }

/* --- FOOTER --- */
footer { background: var(--secondary); color: #94a3b8; padding: 4rem 5% 1rem; }
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; margin-bottom: 3rem;
}
.footer-col h4 { color: white; margin-bottom: 1.5rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a:hover { color: var(--accent); }

.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25d366; color: white; width: 60px; height: 60px;
    border-radius: 50%; display: flex; justify-content: center;
    align-items: center; font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000; transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- MOBILE RESPONSIVE FIXES --- */
@media (max-width: 768px) {
    /* Navbar Logic */
    .hamburger { display: block; }
    
    .navbar .nav-links {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border);
    }
    
    /* When active class is added by JS */
    .navbar .nav-links.active { display: flex; }
    .nav-links li { width: 100%; text-align: center; margin: 10px 0; }
    .btn-nav { display: inline-block; margin-top: 10px; }

    /* Hero & Stats */
    .hero-content h1 { font-size: 2.2rem; }
    .stats { flex-direction: column; width: 95%; gap: 10px; padding: 1.5rem; }
    
    /* Forms */
    .standalone-form-container { padding: 1.5rem; margin-top: -2rem; width: 95%; }
    .checkbox-group { grid-template-columns: 1fr; }
    
    /* Horizontal Scroll Hint */
    .testimonials-wrapper { padding-left: 5%; }
    .testi-card { width: 85vw; min-width: 85vw; } /* Slightly peeking next card */
}