/* --- General Setup & Base Styles --- */
:root { /* Fallbacks */ --primary-color: #00aaff; --secondary-color: #0077b3; }
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Hind Siliguri', sans-serif; line-height: 1.6; transition: background-color 0.5s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Reusable Components (Buttons) --- */
.btn { display: inline-block; padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: 2px solid transparent; }
.btn-lg { padding: 15px 30px; font-size: 1.1rem; }
.btn-cta { padding: 15px 35px; font-size: 1.2rem; }

/* Base Card Styles */
.glass-card, .content-card, .stat-card, .mentor-card, .course-card, .contact-card { padding: 2rem; overflow: hidden; border-radius: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.glass-card:hover, .content-card:hover { transform: translateY(-5px); }

/* --- Header & Navigation (UPDATED WITH BLUR EFFECT) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; text-decoration: none; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 25px; }
.nav-links a { text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
/* --- Hero Section --- */
.hero-section { position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; background-repeat: no-repeat; background-size: cover; background-position: center; z-index: 1; }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--hero-overlay-color); z-index: -1; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.4; }
.hero-content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2.5rem; }

/* --- All Content Sections --- */
.content-section { padding: 80px 0; }
.content-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* --- Specific Section Styles --- */
.course-card { padding: 0; display: flex; flex-direction: column; }
.card-thumbnail { width: 100%; height: 180px; object-fit: cover; border-radius: 20px 20px 0 0; }
.course-card .card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-size: 1.2rem; font-weight: 600; color: var(--primary-color); }
.mentor-card { text-align: center; }
.mentor-photo { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--primary-color); margin-bottom: 1rem; }
.features-section { background: transparent; }
.success-banner { text-align: center; margin-bottom: 3rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 3rem; }
.feature-card { padding: 2.5rem 2rem; border-radius: 15px; text-align: center; transition: transform 0.3s ease; }
.feature-card:hover { transform: translateY(-10px); }
.feature-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 600; }
.feature-red { background-color: #a71d2a; }
.feature-orange { background-color: #f36c00; }
.feature-blue { background-color: #006ac2; }
.stats-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; }
.stat-card { flex: 1; min-width: 200px; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); }

/* --- NEW SUCCESS STORIES SLIDER STYLES (for Swiper.js) --- */
.slider-section { padding-bottom: 80px; position: relative; }
.swiper { width: 100%; padding-top: 20px; padding-bottom: 40px; }
.swiper-slide {
    text-align: center;
    width: 250px; /* Fixed width for each slide */
    transition: transform 0.3s ease;
}
.swiper-slide:hover {
    transform: scale(1.05);
}
.swiper-slide img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Contact Form Styles (Added for Consistency) --- */
.contact-form-card {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-card .form-group {
    margin-bottom: 1.5rem;
}

.contact-form-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form-card .form-group input,
.contact-form-card .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Hind Siliguri', sans-serif;
    transition: all 0.3s ease;
    /* Styles will be applied from theme_styles.php */
}

.contact-form-card .form-group input:focus,
.contact-form-card .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color) !important;
}

.contact-form-card .form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-card .alert {
    margin-bottom: 1rem;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}
.contact-form-card .alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}
.contact-form-card .alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.swiper-slide h4 { font-size: 1.2rem; margin-bottom: 0.25rem; }

.main-footer { padding: 20px 0; margin-top: 40px; text-align: center; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-nav {
        position: absolute;
        top: 100%; /* Position it right below the header */
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;

        /* This adds the background and blur to the drawer */
        background: rgba(30, 30, 50, 0.85); /* A slightly darker, less transparent background */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    .main-nav.active {
        max-height: 350px; /* Adjust height as needed */
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
    }
    .nav-links .btn {
        width: 90%;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}