/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #10b981;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}
/* Ensure Bengali font is used for appropriate elements */
[lang="bn"] {
    font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Announcement Bar */
.announcement {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.9rem;
}
.announcement a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

/* Navigation Bar */
.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}
.logo img {
    height: 40px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-light);
}
.btn-large {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
}
.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.language-switcher {
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
}
.language-switcher .active {
    color: var(--primary);
    font-weight: 600;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}
.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}
.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 90%;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
}
.hero-image img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}

/* Stats Bar */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: var(--primary);
    color: white;
}
.stat-item h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

/* Sections Common */
section {
    padding: 4rem 0;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.see-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Categories Section */
.categories {
    background-color: var(--bg-light);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.category-card {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.icon-wrapper {
    background-color: var(--bg-light);
    color: var(--primary);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
}
.category-card h4 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}
.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Live Classes & Courses Grid */
.class-grid, .course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

/* Class Card */
.class-card, .course-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}
.class-card:hover, .course-card:hover {
    transform: translateY(-5px);
}
.class-banner {
    position: relative;
}
.class-banner img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.live-now, .upcoming {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.live-now {
    background: #ef4444;
    color: white;
}
.upcoming {
    background: #f59e0b;
    color: white;
}
.class-details, .course-info {
    padding: 1.2rem;
}
.class-details h4 {
    margin-bottom: 0.6rem;
}
.teacher {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.class-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Course Card */
.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.course-info h4 {
    margin-bottom: 0.6rem;
}
.course-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}
.rating {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}
.price-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}
.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}
.price-free {
    font-weight: 700;
    color: var(--accent);
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-light);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.testimonial-text p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-author h4 {
    margin-bottom: 0.2rem;
}
.testimonial-author p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* CTA Footer */
.cta-footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 5rem 1.5rem;
}
.cta-footer h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}
.cta-footer p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-content p {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Will be a hamburger menu */
    }
    .nav-actions {
        display: none; /* Simplified for mobile */
    }
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .class-grid, .course-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
}
