/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #50C878;
    --accent-color: #E74C3C;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    display: block;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link i {
    font-size: 0.7rem;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    margin-top: 1rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 2rem;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login {
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-signup {
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-signup:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content h1 span {
    display: block;
    color: #FFD700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border: 2px solid var(--white);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Course Categories */
.course-categories {
    padding: 5rem 0;
    background: var(--bg-light);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.course-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.course-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-explore:hover {
    gap: 1rem;
    color: var(--secondary-color);
}

/* Live Classes */
.live-classes {
    padding: 5rem 0;
    background: var(--white);
}

.subject-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.class-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.class-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.class-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.class-card:hover .class-thumbnail img {
    transform: scale(1.1);
}

.live-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}

.class-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-left: 3px;
}

.class-info {
    padding: 1.5rem;
}

.instructor {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.instructor-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-details h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.instructor-details p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.class-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.class-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.class-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.class-actions {
    display: flex;
    gap: 1rem;
}

.btn-watch {
    flex: 1;
    padding: 0.8rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-watch:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-download {
    padding: 0.8rem 1.2rem;
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Top Educators Section (Vision JRF Teachers) */
.top-educators {
    padding: 5rem 0;
    background: var(--white);
}

.top-educators-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--text-light);
}

.educator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.educator-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    max-width: 260px;
    width: 100%;
}

.educator-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.educator-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--primary-color);
}

.educator-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.educator-tag {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Testimonials Section - Slider */
.testimonials {
    padding: 4rem 0;
    background: var(--white);
}

.testimonials-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: -0.5rem auto 2.5rem;
}

.testimonials-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.testimonial-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-photo .testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-photo .testimonial-initial {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

/* When image is present, hide the initial */
.testimonial-photo:has(.testimonial-img) .testimonial-initial {
    display: none;
}

.testimonial-slide .testimonial-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.testimonial-slide .testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.testimonial-slider-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-hover);
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--text-light);
    opacity: 0.4;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s, background 0.2s;
}

.testimonial-dot:hover,
.testimonial-dot.active {
    opacity: 1;
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .testimonial-slide {
        padding: 1rem 3rem 2rem;
    }
    .testimonial-slider-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .testimonial-prev {
        left: -5px;
    }
    .testimonial-next {
        right: -5px;
    }
}

/* Gallery Section (Slider) */
.gallery-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.gallery-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 560px;
    margin: -0.5rem auto 2rem;
}

.gallery-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.gallery-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.gallery-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.gallery-slider-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-hover);
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--text-light);
    opacity: 0.4;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s, background 0.2s;
}

.gallery-dot:hover,
.gallery-dot.active {
    opacity: 1;
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .gallery-slider-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .gallery-prev {
        left: -5px;
    }
    .gallery-next {
        right: -5px;
    }
}

/* Latest Blogs Section (Index) */
.latest-blogs-section {
    padding: 4rem 0;
    background: var(--white);
}

.latest-blogs-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: -0.5rem auto 2rem;
}

.latest-blogs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.latest-blogs-grid .blog-card {
    margin: 0;
}

.latest-blogs-cta {
    text-align: center;
    margin-top: 2rem;
}

.latest-blogs-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 992px) {
    .latest-blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .latest-blogs-grid {
        grid-template-columns: 1fr;
    }
}

/* App Download Section */
.app-download {
    padding: 4rem 0;
    background: var(--bg-light);
}

.app-download-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.app-download-text h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.app-download-text p {
    color: var(--text-light);
    max-width: 500px;
}

.app-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-playstore {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    background: #000;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-playstore i {
    font-size: 1.4rem;
}

.btn-playstore span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 0.8rem;
}

.btn-playstore span strong {
    font-size: 1rem;
}

.btn-playstore:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Enquiry Section */
.enquiry-section {
    padding: 5rem 0;
    background: var(--white);
}

.enquiry-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

.enquiry-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.enquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.enquiry-form .form-group {
    margin-bottom: 1.5rem;
}

.enquiry-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.enquiry-form .form-group .required {
    color: var(--accent-color);
}

.enquiry-form .form-group input,
.enquiry-form .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.enquiry-form .form-group input:focus,
.enquiry-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.enquiry-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.enquiry-submit {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .enquiry-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Thank You Popup */
.thank-you-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.thank-you-overlay.active {
    opacity: 1;
    visibility: visible;
}

.thank-you-popup {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.thank-you-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s;
}

.thank-you-close:hover {
    color: var(--text-dark);
}

.thank-you-icon {
    color: var(--secondary-color);
    font-size: 4rem;
    margin-bottom: 1rem;
}

.thank-you-popup h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.thank-you-popup p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.thank-you-phone {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.thank-you-number {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.thank-you-number:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* YouTube Video Popup */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.video-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-popup-box {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 12px;
    z-index: 10;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.video-popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
    color: var(--secondary-color);
}

.video-popup-inner {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-popup-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-col h3 span {
    color: var(--secondary-color);
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    margin-top: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 15px;
        right: 15px;
    }
}

/* Chatway Widget Positioning - Left Side */
#chatway-widget,
.chatway-widget,
[class*="chatway"],
[id*="chatway"] {
    left: 20px !important;
    right: auto !important;
}

/* Target Chatway widget container */
div[id*="chatway"],
div[class*="chatway"] {
    left: 20px !important;
    right: auto !important;
}

/* Login Page Styles */
.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: var(--bg-light);
}

.login-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 450px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.login-links {
    text-align: center;
    margin-top: 1.5rem;
}

.login-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.about-content {
    padding: 4rem 0;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-intro {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.about-emoji {
    margin-right: 0.25rem;
}

.about-list {
    margin: 1rem 0 0 1.5rem;
    color: var(--text-light);
    line-height: 2;
}

.about-list li {
    margin-bottom: 0.5rem;
}

.about-tagline {
    text-align: center;
    margin-bottom: 0;
    padding: 2rem 0;
    background: var(--bg-light);
    border-radius: 12px;
}

.about-tagline-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem !important;
}

.about-mission {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0 !important;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--primary-color);
}

.team-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-card p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Blog Pages */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.blog-content {
    padding: 4rem 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-light);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Default blog image (website logo) - contain to avoid cropping */
.blog-card-image .blog-card-default-img {
    object-fit: contain;
    padding: 1.5rem;
    box-sizing: border-box;
}

.blog-card-body {
    padding: 1.5rem 1.75rem;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.blog-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.blog-read-more:hover {
    color: var(--secondary-color);
}

.blog-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 0.75rem;
}

.related-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.related-list a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.blog-detail-image {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-detail-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.blog-detail-body h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.blog-detail-body p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.blog-detail-body ul {
    margin-left: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.blog-detail-body li {
    margin-bottom: 0.4rem;
}

/* Book Poster Section (Books page) */
.book-poster-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.book-poster-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
}

.book-poster-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.book-poster-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.book-poster-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.book-poster-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.book-poster-highlight {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
}

.book-poster-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.book-poster-features li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.book-poster-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .book-poster-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-poster-image {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Popular Books – card with cover image */
.book-card-with-cover .book-card-cover {
    width: 100%;
    height: 200px;
    margin: -2rem -2rem 1.25rem -2rem;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    background: var(--bg-light);
}

.book-card-with-cover .book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-card-with-cover .course-icon {
    display: none;
}

/* Course Details Page */
.course-detail-list {
    margin-left: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.course-detail-list li {
    margin-bottom: 0.5rem;
}

.curriculum-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.curriculum-block {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.curriculum-block h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.curriculum-block ul {
    margin-left: 1rem;
    color: var(--text-light);
}

.curriculum-block li {
    margin-bottom: 0.4rem;
}

.course-cta-box {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    color: var(--white);
}

.course-cta-box h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.course-cta-box p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 0;
}

.course-cta-box .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.course-cta-box .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-actions {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}
