:root {
    --primary: #061A33;
    --accent: #eb1c24;
    --bg: #ffffff;
    --secondary: #136733;
    --text-dark: #333333;
    --text-light: #f4f4f4;
}

html {
    scroll-behavior: smooth; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Nav */
.header {
    background-color: var(--bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo Link styling */
.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo img {
    height: 80px; 
    max-width: 100%;
    object-fit: contain;
}

.navbar {
    display: flex;
    gap: 25px;
}

.navbar a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: var(--primary);
    color: var(--bg);
}

.enroll-btn, .cta-btn, .submit-btn {
    background-color: var(--accent);
    color: var(--bg);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.enroll-btn:hover, .cta-btn:hover, .submit-btn:hover {
    background-color: #c4121a;
}

.menu-icon {
    display: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    background-color: var(--primary);
    color: var(--bg);
    min-height: 80vh;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

/* Hero Text & Curved Line Container */
.hero-text-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
}

/* Modern Curved Line Styling */
.curve-line {
    width: 100%;
    max-width: 350px; 
    height: auto;
    display: block;
    margin-top: -10px; 
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
}

/* Made Hero Image Smaller */
.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px; 
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Sections General */
section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Instructors Grid */
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.instructor-card {
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    text-align: center;
    padding-bottom: 20px;
}

.instructor-card:hover {
    transform: translateY(-10px);
}

.instructor-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.instructor-card h3 {
    margin: 15px 0 10px;
    color: var(--secondary);
}

/* About & Contact */
.about {
    background-color: #f9f9f9;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--accent);
    font-size: 1.5rem;
}

.info-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: var(--primary);
    font-size: 2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--bg);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 26, 51, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
}

#enrollForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#enrollForm input, #enrollForm select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

#enrollForm input:focus, #enrollForm select:focus {
    outline: none;
    border-color: var(--accent);
}

#formStatus {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero { flex-direction: column; text-align: center; padding: 40px 5%; }
    .hero-content { padding-right: 0; margin-bottom: 40px; }
    .hero-text-container { display: block; } /* Ensures SVG centers properly */
    .curve-line { margin: -5px auto 0 auto; } /* Centers the curve on mobile */
}

@media (max-width: 768px) {
    .logo img {
        height: 50px; 
    }

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
    }
    
    .navbar.active {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    .enroll-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}