/* --- Variables & Reset --- */
:root {
    /* Logo-based Colors */
    --primary-blue: #3C5AA6;   /* Royal Blue */
    --dark-blue: #2a3e75;      
    --primary-green: #6CC24A;  /* Light Green */
    --dark-green: #57a03a;     
    
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f4f6f9;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-blue { background-color: var(--primary-blue); color: var(--white); }
.text-blue { color: var(--primary-blue); }
.text-green { color: var(--primary-green); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.line {
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: #f1f1f1;
    transform: translateY(-3px);
}

/* --- Navbar & Logo --- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}

.highlight { color: var(--primary-green); font-size: 0.9em; }

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s;
}

.nav-link:hover { color: var(--primary-blue); }
.nav-link:hover:after { width: 100%; }

.btn-nav {
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    margin-left: 30px;
    transition: background 0.3s, transform 0.3s;
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-dark); transition: all 0.3s ease; }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.cta-buttons { display: flex; gap: 20px; justify-content: center; }

/* --- Scroll Animations --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.delay-1 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; animation-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; animation-delay: 0.6s; }

/* --- About & Courses --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text { flex: 1; }
.about-image { flex: 1; }

.features-list { list-style: none; margin-top: 20px; }
.features-list li { margin-bottom: 12px; display: flex; align-items: center; font-weight: 500; font-size: 1.1rem; }
.features-list i { color: var(--primary-green); margin-right: 12px; font-size: 1.2rem; }

.img-placeholder {
    width: 100%;
    height: 350px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 4rem;
    color: #adb5bd;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s;
    border-top: 5px solid transparent;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-green);
}

.icon-box {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.course-card h3 { margin-bottom: 15px; color: var(--text-dark); }

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: 0.3s;
}

.feature-box:hover {
    border-color: var(--primary-blue);
    background: #fdfdfd;
}

.feature-box i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

/* --- Enquiry Form & Loading State --- */
.form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dark);
}

.form-header { text-align: center; margin-bottom: 30px; }

.input-group { margin-bottom: 20px; }
.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(60, 90, 166, 0.1);
}

.btn-submit { width: 100%; font-size: 1.1rem; padding: 14px; }

.btn-submit:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
    opacity: 0.8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.form-status { margin-top: 15px; text-align: center; font-weight: 600; }

/* --- Contact & Footer --- */
.contact-container { display: flex; gap: 50px; flex-wrap: wrap; }
.contact-info { flex: 1; }
.map-placeholder { flex: 1; height: 300px; }
.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info p { margin-bottom: 20px; font-size: 1.1rem; }
.contact-info i { color: var(--primary-blue); width: 30px; font-size: 1.2rem; }

footer {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 1.3rem;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-green);
    transform: translateY(-3px);
}
.copyright { text-align: center; font-size: 0.9rem; border-top: 1px solid #333; padding-top: 20px; opacity: 0.7; }

/* --- Floating Buttons --- */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.whatsapp-float { background-color: #25d366; }
.phone-float { background-color: var(--primary-blue); display: none; }


/* --- Flash Message Modal --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
}

.modal-box {
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-top: 5px solid var(--primary-green);
    animation: slideUp 0.5s ease-out;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover { color: red; }

.modal-header h3 { color: var(--primary-blue); margin-bottom: 15px; font-size: 1.5rem; }
.modal-body ul { list-style: none; margin: 15px 0; text-align: left; padding-left: 20px; }
.modal-body li { margin-bottom: 8px; font-weight: 500; }
.modal-cta { margin-top: 15px; width: 100%; display: inline-block; }

@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* --- Director Page Styles --- */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1524178232363-1fb2b075b955?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.page-header h1 { font-size: 3rem; margin-bottom: 10px; }
.page-header p { font-size: 1.2rem; opacity: 0.9; }

.director-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr; 
    gap: 50px;
    align-items: center;
    margin-top: 20px;
}

.director-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background-color: #ddd; 
    max-width: 400px; 
    width: 100%;
    margin: 0 auto; 
}

.director-photo {
    width: 100%;
    height: 500px; 
    display: block;
    object-fit: cover; 
    object-position: top center; 
    transition: transform 0.3s;
}

.director-image-wrapper:hover .director-photo { transform: scale(1.03); }

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-green);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.experience-badge .years { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.experience-badge .text { font-size: 0.8rem; }

.director-content h4 { font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.director-content h2 { font-size: 2.8rem; margin-bottom: 5px; color: var(--text-dark); }
.director-content h5 { font-size: 1.3rem; margin-bottom: 25px; font-weight: 500; }
.bio-text { margin-bottom: 20px; font-size: 1.05rem; color: var(--text-light); text-align: justify; }

.stats-row { display: flex; gap: 30px; margin-top: 30px; }
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 15px 25px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.stat-item i { font-size: 1.5rem; color: var(--primary-blue); margin-bottom: 5px; }
.stat-item strong { font-size: 1.1rem; color: var(--text-dark); }
.stat-item span { font-size: 0.9rem; color: var(--text-light); }

.message-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.quote-icon { font-size: 3rem; color: #eee; margin-bottom: 20px; }
.message-box h3 { margin-bottom: 20px; }
.message-box p { font-size: 1.1rem; font-style: italic; color: #555; margin-bottom: 20px; }
.signature { font-size: 1.2rem; color: var(--primary-blue); margin-top: 20px; }


/* --- FIX: Prevent Navbar Overlap on Sections --- */
#enquiry, #contact {
    /* 80px (Navbar) + 60px (Space) */
    padding-top: 140px !important; 
    padding-bottom: 80px !important;
    scroll-margin-top: 0; /* Reset since we use padding now */
}


/* --- RESPONSIVE / MOBILE MENU FIX --- */
@media (max-width: 768px) {
    /* Navbar & Menu Logic */
    .menu-toggle { display: block; z-index: 1001; }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    /* FORCE the menu to open when active class is added */
.nav-menu.active {
    left: 0 !important; 
    opacity: 1 !important;
    visibility: visible !important;
}
    
    .nav-link { margin: 20px 0; display: block; font-size: 1.2rem; }
    .btn-nav { margin: 20px 0; display: inline-block; }

    /* General Layout */
    .hero-content h1 { font-size: 2.2rem; }
    .about-content { flex-direction: column; }
    .phone-float { display: flex; }
    .cta-buttons { flex-direction: column; padding: 0 30px; }
    .logo-text { font-size: 1rem; }

    /* Director Page Mobile */
    .director-grid { 
        display: flex;             
        flex-direction: column;    
        gap: 40px; 
    }
    
    .director-image-wrapper { 
        max-width: 100%; 
        margin: 0 auto; 
        order: 2; /* Image Second */
    }
    
    .director-content { 
        text-align: center; 
        order: 1; /* Text First */
    }
    
    .director-photo { height: 450px; }
    .bio-text { text-align: left; } 
    .stats-row { justify-content: center; }
}