/* ================================
   OAKOKHO BOOKS - MASTER STYLESHEET
   CONSOLIDATED & OPTIMIZED
   ================================ */

/* ================================
   CSS VARIABLES & RESET
   ================================ */
:root {
    /* COLOR SCHEME - CHILD-FRIENDLY BRIGHT COLORS */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ec4899;
    --dark-bg: #1e293b;
    --light-bg: #f1f5f9;
    --white: #ffffff;
    --border-color: #e2e8f0;

    /* CHILD-FRIENDLY COLORS */
    --green-bright: #10b981;
    --blue-bright: #3b82f6;
    --yellow-bright: #fbbf24;
    --orange-bright: #f97316;
    --purple-bright: #8b5cf6;
    --pink-bright: #ec4899;
    --red-bright: #ef4444;

    /* TEXT COLORS */
    --text-dark: #1e293b;
    --text-light: #64748b;

    /* EFFECTS */
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --border-radius-lg: 12px;

    /* GRADIENTS */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Baloo 2', 'Noto Serif Bengali', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

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

/* ================================
   HEADER & NAVIGATION
   ================================ */
.main-header {
    background: var(--gradient-primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo i {
    font-size: 2rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.nav-menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* DROPDOWN MENU FOR LEVELS */
.nav-menu .has-dropdown {
    position: relative;
}

.nav-menu .has-dropdown>a {
    cursor: pointer;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

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

.nav-menu .dropdown-menu li {
    margin: 0;
}

.nav-menu .dropdown-menu li a {
    color: var(--text-dark);
    padding: 12px 20px;
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-menu .dropdown-menu li:first-child a {
    border-radius: 8px 8px 0 0;
}

.nav-menu .dropdown-menu li:last-child a {
    border-radius: 0 0 8px 8px;
}

.nav-menu .dropdown-menu li a i {
    margin-right: 8px;
}

.nav-menu .dropdown-menu li a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    transform: none;
}

.nav-menu .dropdown-menu li a i {
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* USER MENU DROPDOWN */
.user-menu {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

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

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-bottom: 1px solid #f3f4f6;
}

.user-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #f9fafb;
    color: white;
}

.user-dropdown a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* LOGIN & ADMIN BUTTONS */
.btn-login {
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 8px !important;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.btn-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8e 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    z-index: 100;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
    color: var(--white);
}

/* ================================
   SEARCH COMPONENTS
   ================================ */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

.search-input-wrapper input,
.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 55px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    box-shadow: var(--shadow-lg);
    font-family: 'Baloo 2', 'Noto Serif Bengali', sans-serif;
}

.search-btn {
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #db2777;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Baloo 2', 'Noto Serif Bengali', sans-serif;
}

.search-box button {
    padding: 0.8rem 1.2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--secondary-color);
}

/* ================================
   SECTION STYLES
   ================================ */
.categories-section,
.featured-section,
.recent-section,
.browse-section {
    padding: 60px 0;
}

.browse-section {
    min-height: 60vh;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ================================
   BROWSE PAGE HEADER
   ================================ */
.browse-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.browse-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.browse-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ================================
   LAYOUT GRIDS
   ================================ */
.browse-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.browse-content {
    overflow: visible;
    width: 100%;
}

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

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

/* ================================
   CATEGORY CARDS
   ================================ */
.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ================================
   BOOK CARDS
   ================================ */
.book-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

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

/* BOOK COVER */
.book-cover {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--light-bg);
    overflow: hidden;
}

.book-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-cover-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
}

.book-cover-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-overlay i {
    font-size: 3rem;
}

.book-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* BOOK INFO */
.book-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.book-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.book-author i {
    margin-right: 5px;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: auto;
}

.book-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-badge {
    background: var(--light-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ================================
   BOOK DETAILS PAGE
   ================================ */
.book-details-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.book-details-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.book-cover-large {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.book-cover-large img {
    width: 100%;
    height: auto;
    display: block;
}

.book-cover-placeholder-large {
    width: 100%;
    aspect-ratio: 5/7;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
}

.book-cover-placeholder-large i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.7);
}

.book-details-info h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.book-title-bn {
    font-size: 2rem;
    color: var(--primary-color);
    font-family: 'Noto Serif Bengali', serif;
    margin-bottom: 1rem;
}

.book-author-large {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.book-meta-large {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.book-meta-large span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-light);
}

.book-meta-large i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.book-description {
    margin-bottom: 2rem;
}

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

.book-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

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

/* ================================
   SIDEBAR
   ================================ */
.sidebar {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    height: auto;
    min-height: unset;
    flex: 0 0 auto;
    width: 100%;
}

.sidebar-widget h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-widget h3 i {
    color: var(--primary-color);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.category-item:hover {
    background: var(--light-bg);
    transform: translateX(5px);
}

.category-item.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.category-item i {
    width: 20px;
    text-align: center;
}

.sort-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.sort-option:hover {
    background: var(--light-bg);
}

.sort-option.active {
    background: var(--light-bg);
    color: var(--primary-color);
    font-weight: 600;
}

/* ================================
   PAGINATION
   ================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-btn,
.page-num {
    padding: 0.8rem 1.2rem;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-btn:hover,
.page-num:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
}

.page-num.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

/* ================================
   NO RESULTS
   ================================ */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results i {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-results h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ================================
   STATS SECTION
   ================================ */
.stats-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 60px 0;
}

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

.stat-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ================================
   FOOTER
   ================================ */
.main-footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a,
.footer-section ul li {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    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: var(--transition);
}

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

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

/* ================================
   SCROLL TO TOP BUTTON
   ================================ */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ================================
   BUTTONS
   ================================ */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-weight: 600;
    cursor: pointer;
    border: none;
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

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

.btn-icon {
    width: 56px;
    height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.btn-icon i {
    font-size: 1.5rem;
}

.btn-icon .fa-heart {
    color: #e91e63;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 992px) {

    .browse-layout,
    .book-details-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-details-layout {
        padding: 2rem;
    }

    .book-cover-large {
        max-width: 350px;
        margin: 0 auto;
        position: static;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        align-items: start;
        grid-auto-rows: auto;
        width: 100%;
    }

    .sidebar-widget {
        margin-bottom: 0;
        height: auto;
        width: 100%;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

/* TABLET/IPAD SPECIFIC FIX FOR SIDEBAR STRETCHING */
@media (min-width: 768px) and (max-width: 1024px) {
    .browse-layout {
        align-items: start;
    }

    .sidebar {
        align-items: start;
        width: 100%;
    }

    .sidebar-widget {
        height: fit-content;
        max-height: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

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

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

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    /* MOBILE DROPDOWN MENU */
    .nav-menu .has-dropdown>a {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu .has-dropdown:hover .dropdown-menu,
    .nav-menu .has-dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .nav-menu .dropdown-menu li a {
        color: var(--white);
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .nav-menu .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: none;
    }

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

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

    .search-form {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

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

    .browse-header h1 {
        font-size: 2rem;
    }

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

    .pagination {
        gap: 0.3rem;
    }

    .page-btn,
    .page-num {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .book-details-info h1 {
        font-size: 1.8rem;
    }

    .book-title-bn {
        font-size: 1.5rem;
    }

    .book-meta-large {
        gap: 1rem;
    }

    .book-actions {
        flex-direction: column;
    }

    .book-actions .btn {
        width: 100%;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 50px 0;
    }

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

    .stat-card h3 {
        font-size: 2rem;
    }

    .browse-header h1 {
        font-size: 1.8rem;
    }

    .browse-header p {
        font-size: 0.9rem;
    }

    .page-btn,
    .page-num {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }

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

    .book-details-layout {
        padding: 1.5rem;
    }
}

/* ================================
   WELCOME POPUP STYLES
   ================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 15px;
    overflow-y: auto;
}

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

.popup-content {
    background: white;
    border-radius: 16px;
    max-width: 550px;
    width: 100%;
    padding: 25px 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease;
    max-height: 95vh;
    overflow-y: auto;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.popup-header {
    text-align: center;
    margin-bottom: 15px;
}

.popup-header h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 6px;
    font-family: 'Baloo 2', sans-serif;
    line-height: 1.2;
}

.popup-header .assamese-title {
    color: var(--secondary-color);
    font-size: 24px;
    font-family: 'Noto Serif Bengali', serif;
    margin-bottom: 8px;
    line-height: 1.2;
}

.popup-body {
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

.popup-body p {
    margin-bottom: 10px;
}

.popup-body strong {
    color: var(--primary-color);
}

.popup-body ul {
    list-style: none;
    padding-left: 0;
}

.popup-body ul li {
    margin-bottom: 6px;
}

.popup-body ul li i {
    color: var(--primary-color);
    margin-right: 6px;
}

.popup-objective {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    padding: 12px 15px;
    border-radius: 10px;
    margin: 12px 0;
    border-left: 3px solid var(--primary-color);
}

.popup-objective h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 16px;
}

.popup-objective p {
    margin-bottom: 0;
    font-size: 13px;
}

.popup-donation {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.popup-donation h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.popup-donation p {
    font-size: 13px;
    margin-bottom: 12px;
}

.donate-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.donate-btn i {
    margin-right: 6px;
}

.popup-footer {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 12px;
}

.popup-footer label {
    cursor: pointer;
    user-select: none;
}

.popup-footer input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
}

/* ================================
   SCROLL TO TOP BUTTON
   ================================ */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ================================
   WELCOME POPUP BUTTON
   ================================ */
#welcomeBtn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#welcomeBtn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#welcomeBtn:active {
    transform: translateY(-3px) scale(1);
}

/* ================================
   SEARCH AUTOCOMPLETE
   ================================ */
.search-container {
    position: relative;
    z-index: 100;
}

.search-input-wrapper {
    position: relative;
    z-index: 100;
}

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
    margin-top: -1px;
}

.search-autocomplete.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--light-bg);
}

.autocomplete-item .book-title {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.autocomplete-item .book-author {
    font-size: 12px;
    color: var(--text-light);
}

.autocomplete-item .book-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-top: 4px;
}

.autocomplete-loading {
    padding: 12px 15px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

.autocomplete-no-results {
    padding: 12px 15px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ================================
   KEYBOARD LAYOUT HELPER
   ================================ */
.keyboard-helper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.keyboard-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    font-family: 'Baloo 2', 'Noto Serif Bengali', sans-serif;
}

.keyboard-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.keyboard-toggle-btn i {
    font-size: 1.1rem;
}

.keyboard-layout {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.keyboard-layout h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.keyboard-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.keyboard-info p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.keyboard-info strong {
    color: var(--primary-color);
}

.phonetic-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-family: 'Noto Serif Bengali', serif;
}

.phonetic-table:last-child {
    margin-bottom: 0;
}

.phonetic-table tr:first-child {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
}

.phonetic-table tr:nth-child(2) {
    background: var(--light-bg);
    color: var(--text-dark);
}

.phonetic-table td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    transition: var(--transition);
}

.phonetic-table tr:first-child td {
    font-size: 1.2rem;
    border-color: rgba(255, 255, 255, 0.3);
}

.phonetic-table tr:nth-child(2) td {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-dark);
}

.phonetic-table tr:nth-child(2) td:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    cursor: pointer;
}

/* ================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ================================ */
@media (max-width: 768px) {

    /* FIX POPUP POSITIONING ON MOBILE */
    .popup-overlay {
        align-items: flex-start;
        padding-top: 20px;
    }

    .popup-content {
        padding: 20px 18px;
        border-radius: 12px;
        max-height: 92vh;
        margin-top: 0;
    }

    .popup-header h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .popup-header .assamese-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .popup-body {
        font-size: 13px;
        line-height: 1.4;
    }

    .popup-body p {
        margin-bottom: 8px;
    }

    .popup-body ul li {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .popup-objective {
        padding: 10px 12px;
        margin: 10px 0;
    }

    .popup-objective h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .popup-objective p {
        font-size: 12px;
    }

    .popup-donation {
        margin-top: 12px;
        padding-top: 12px;
    }

    .popup-donation h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .popup-donation p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .donate-btn {
        padding: 8px 24px;
        font-size: 13px;
    }

    .popup-footer {
        margin-top: 12px;
        font-size: 11px;
    }

    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    #welcomeBtn {
        bottom: 80px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* SEARCH BOX FIX - STACK ON SMALL SCREENS */
    .search-box {
        flex-direction: column;
    }

    .search-box input {
        width: 100%;
    }

    .search-box button {
        width: 100%;
    }

    /* KEYBOARD LAYOUT MOBILE STYLES */
    .keyboard-helper {
        padding: 0 10px;
    }

    .keyboard-toggle-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .keyboard-layout {
        padding: 1.5rem 1rem;
        overflow-x: auto;
    }

    .keyboard-layout h3 {
        font-size: 1.2rem;
    }

    .keyboard-info {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .phonetic-table {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .phonetic-table td {
        padding: 8px 4px;
        font-size: 0.85rem;
    }

    .phonetic-table tr:first-child td {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {

    /* ENSURE POPUP STARTS AT TOP ON SMALL SCREENS */
    .popup-overlay {
        align-items: flex-start;
        padding-top: 15px;
    }

    .popup-content {
        padding: 15px 15px;
        max-height: 90vh;
        margin-top: 0;
    }

    .popup-header h2 {
        font-size: 16px;
    }

    .popup-header .assamese-title {
        font-size: 18px;
    }

    .popup-body {
        font-size: 12px;
    }

    .popup-objective h3 {
        font-size: 13px;
    }

    .popup-objective p,
    .popup-donation p {
        font-size: 11px;
    }

    /* EXTRA SMALL SCREEN KEYBOARD LAYOUT */
    .keyboard-layout {
        padding: 1rem 0.5rem;
    }

    .keyboard-layout h3 {
        font-size: 1.1rem;
    }

    .keyboard-info {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .phonetic-table td {
        padding: 6px 2px;
        font-size: 0.75rem;
    }

    .phonetic-table tr:first-child td {
        font-size: 0.9rem;
        padding: 8px 3px;
    }
}

/* ================================
   CRITICAL FIX - PREVENT SIDEBAR WIDGET STRETCHING
   ================================ */
.sidebar-widget {
    max-height: fit-content !important;
    width: 100% !important;
}

.sidebar-widget .search-box,
.sidebar-widget .category-list,
.sidebar-widget .sort-options {
    height: auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    width: 100%;
}

/* ENSURE SEARCH WIDGET DOESN'T STRETCH */
.sidebar-widget form {
    height: auto !important;
    flex: none !important;
    width: 100%;
}

/* ================================
   AP SITE SPECIFIC STYLES
   ================================ */

/* OPERATION DETAILS SECTION */
.operation-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.operation-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    text-align: center;
    position: relative;
}

.operation-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.operation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.operation-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.operation-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.operation-card ul {
    list-style: none;
    padding-left: 0;
}

.operation-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.operation-card li:last-child {
    border-bottom: none;
}

/* ABOUT SECTION */
.about-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 2px solid var(--border-color);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.about-card .card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* AUTH SECTION */
.auth-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 0 auto;
}

.cta-box,
.login-box,
.user-welcome {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-info {
    margin: 20px 0;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-info p {
    margin: 10px 0;
}

/* AUTH BUTTONS - CONSISTENT RECTANGULAR LAYOUT */
.auth-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-buttons a {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.auth-buttons a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* PRIMARY AUTH BUTTON - FILLED STYLE */
.auth-buttons .auth-btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.auth-buttons .auth-btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* SYLLABUS TABLE */
.syllabus-section {
    padding: 60px 0;
}

.syllabus-table {
    width: 100%;
    margin: 30px auto;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.syllabus-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.syllabus-table tr:last-child td {
    border-bottom: none;
}

.syllabus-table strong {
    color: var(--primary-color);
}

/* LEVEL PAGES */
.level-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.level-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.level-nav-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.level-nav-btn:hover,
.level-nav-btn.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.level-description {
    font-size: 1.2em;
    margin-top: 15px;
    opacity: 0.95;
}

/* CLASS ACCORDION SECTION */
.classes-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.class-accordion {
    width: 100%;
    margin: 0;
}

.class-item {
    width: 100%;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.class-item.active {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.class-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--gradient-primary);
    cursor: pointer;
    transition: var(--transition);
}

.class-header:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.class-header h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.class-header h3 i {
    font-size: 1.1rem;
}

.toggle-icon {
    color: var(--white);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.class-item.active .toggle-icon {
    transform: rotate(180deg);
}

.class-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--light-bg);
}

.class-item.active .class-content {
    max-height: 5000px;
}

.class-title-assamese {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    padding: 20px 30px 0 30px;
    background: var(--white);
    margin: 0;
}

.class-description {
    color: var(--text-light);
    padding: 10px 30px 20px 30px;
    font-size: 1rem;
    line-height: 1.6;
    background: var(--white);
    margin: 0;
}

.slides-container,
.homework-container {
    padding: 30px;
    background: var(--white);
}

.slides-container h4,
.homework-container h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SLIDES HEADER WITH CONTROLS */
.slides-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.slides-header h4 {
    margin-bottom: 0;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.slides-controls-top {
    display: flex;
    gap: 10px;
}

.slides-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid;
    cursor: pointer;
}

.slides-btn-fullscreen {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

.slides-btn-present {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

.slides-btn-open {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.slides-btn-open:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.slides-btn i {
    font-size: 0.95rem;
}

/* IMAGE SLIDESHOW */
.image-slideshow {
    background: #f5f5f5;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.slideshow-viewer {
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.slide-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.slideshow-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.slide-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.slide-nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.slide-counter {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 80px;
    text-align: center;
}

.slideshow-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--light-bg);
    overflow-x: auto;
    scroll-behavior: smooth;
}

.thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 60px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}

.thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-number {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
}

/* FULLSCREEN MODE */
.image-slideshow.fullscreen-mode {
    background: #000;
}

/* FULLSCREEN MODE - FULL SCREEN IMAGE */
.image-slideshow.fullscreen-mode {
    background: #000;
}

.image-slideshow.fullscreen-mode .slideshow-viewer {
    height: 100vh;
    min-height: auto;
}

.image-slideshow.fullscreen-mode .slide-image {
    max-height: 100vh;
    max-width: 100vw;
    width: auto;
    height: auto;
}

.image-slideshow.fullscreen-mode .slideshow-controls {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 30px 30px 30px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-slideshow.fullscreen-mode .slideshow-controls>* {
    pointer-events: auto;
}

.image-slideshow.fullscreen-mode .slide-counter {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-slideshow.fullscreen-mode .slideshow-thumbnails {
    display: none;
}

.image-slideshow.fullscreen-mode .slide-nav-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border: 3px solid var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.image-slideshow.fullscreen-mode .prev-btn {
    margin-right: auto;
}

.image-slideshow.fullscreen-mode .next-btn {
    margin-left: auto;


    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-color: var(--white);
}

.image-slideshow.fullscreen-mode .slide-nav-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.slides-controls-top {
    display: flex;
    gap: 10px;
}

.placeholder-note {
    margin-top: 15px;
    padding: 12px 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 0.9rem;
}

.placeholder-note i {
    margin-right: 8px;
}

/* HOMEWORK TABLE */
.homework-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.homework-table thead {
    background: var(--gradient-primary);
}

.homework-table thead th {
    color: var(--white);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
}

.homework-table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.homework-table tbody tr:last-child td {
    border-bottom: none;
}

.homework-table tbody tr:hover {
    background: var(--light-bg);
}

.hw-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.hw-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.hw-link i {
    font-size: 0.9rem;
}

.slides-section {
    padding: 60px 0;
}

.slide-container {
    margin-bottom: 60px;
}

.slide-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
}

.google-slides-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.google-slides-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.placeholder-slide {
    background: var(--light-bg);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
}

.placeholder-slide p {
    margin: 10px 0;
    font-size: 1.1em;
    color: var(--text-dark);
}

.help-text {
    color: var(--text-light) !important;
    font-size: 0.9em !important;
}

/* RESOURCES SECTION */
.resources-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.resource-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.resource-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.resource-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* SYLLABUS PAGE SPECIFIC */
.page-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.syllabus-intro {
    padding: 60px 0;
}

.intro-content {
    margin: 0 auto;
}

.program-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 16px;
}

.feature-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

/* SYLLABUS DETAILS SECTION */
.syllabus-details {
    padding: 60px 0;
}

.syllabus-details h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    text-align: center;
    position: relative;
}

.syllabus-details h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.level-accordion {
    margin: 0 auto;
}

.level-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.level-header-accordion {
    background: var(--light-bg);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.level-header-accordion h3 {
    margin: 0;
    color: var(--primary-color);
}

.level-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.level-content {
    padding: 30px;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.topic-section h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.topic-section ul {
    list-style: none;
    padding-left: 0;
}

.topic-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.topic-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* COURSE STRUCTURE SECTION */
.course-structure {
    padding: 60px 0;
    background: var(--light-bg);
}

.course-structure h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    text-align: center;
    position: relative;
}

.course-structure h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 100%;
    margin: 30px auto 0;
}

.structure-item {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.structure-item h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    font-weight: 600;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #db2777;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* CENTER IMAGE */
.center-image {
    text-align: center;
    margin: 40px 0;
}

.center-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* MOBILE RESPONSIVE */
/* TABLET - 2 COLUMNS */
@media (max-width: 1024px) and (min-width: 769px) {
    .operation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

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

/* MOBILE - 1 COLUMN */
@media (max-width: 768px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

    .level-navigation {
        gap: 5px;
    }

    .level-nav-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    /* CLASS ACCORDION MOBILE */
    .class-header {
        padding: 15px 20px;
    }

    .class-header h3 {
        font-size: 1.1rem;
    }

    .slides-container,
    .homework-container {
        padding: 20px;
    }

    .slides-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .slides-controls-top {
        width: 100%;
    }

    .slides-btn-fullscreen {
        width: 100%;
        justify-content: center;
    }

    .slideshow-viewer {
        min-height: 300px;
    }

    .thumbnail {
        width: 80px;
        height: 48px;
    }

    .slide-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .homework-table {
        font-size: 0.9rem;
    }

    .homework-table thead th,
    .homework-table tbody td {
        padding: 10px 15px;
    }

    .page-header h1 {
        font-size: 2em;
    }

    .level-header-accordion {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

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

    .operation-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   USER ICON STYLES (FROM MENU.PHP)
   ================================ */
.user-icon-container {
    position: relative;
    display: flex;
    align-items: center;
}

.user-icon {
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-icon.logged-in {
    color: #00B050;
}

.user-icon.logged-out {
    color: rgba(255, 255, 255, 0.7);
}

.user-icon:hover {
    transform: scale(1.1);
}

.user-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #333;
}

.user-icon-container:hover .user-tooltip {
    opacity: 1;
    visibility: visible;
}

.user-icon-container .user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 8px;
    overflow: hidden;
}

.user-icon-container:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
}

.user-icon-container:hover .user-tooltip {
    opacity: 0;
    visibility: hidden;
}

.user-icon-container .user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.user-icon-container .user-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-icon-container .user-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.user-icon-container .user-dropdown a:hover {
    background: #f9fafb;
}

.user-icon-container .user-dropdown a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.user-icon-container .user-dropdown .user-name {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #00B050;
}

/* ================================
   HERO IMAGE SIZING FIX
   ================================ */
.hero-decoration {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-logo {
    max-width: 150px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   HOMEPAGE HERO BUTTONS
   ================================ */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ================================
   STATS SECTION (HOMEPAGE)
   ================================ */
.stats-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-box {
    background: var(--white);
    color: var(--text-dark);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ================================
   LEARNING LEVELS SECTION (HOMEPAGE)
   ================================ */
.levels-section {
    padding: 60px 0;
    background: var(--white);
}

.levels-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.level-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.level-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.level-card h3 {
    font-size: 1.6rem;
    color: #1e293b;
    margin: 15px 0 10px 0;
    font-weight: 700;
}

.level-assamese {
    font-size: 1.3rem;
    color: #667eea;
    margin: 10px 0;
    font-weight: 600;
    line-height: 1.6;
}

.level-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 15px 0 25px 0;
    min-height: 50px;
}

.level-card .btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.level-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.level-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.level-card .btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.level-card .btn-secondary:hover {
    background: #cbd5e1;
}

/* ================================
   LEVEL PAGE NAVIGATION
   ================================ */
.container-full {
    max-width: 100%;
    padding: 0 40px;
    margin: 0 auto;
}

.level-page-content {
    background: var(--light-bg);
}

.level-header-clean {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.level-header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.level-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 700;
}

.level-description-main {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 10px;
}

.level-subtitle-main {
    font-size: 1.1rem;
    opacity: 0.9;
}

.level-navigation-clean {
    padding: 25px 0;
    background: var(--white);
    border-bottom: 3px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.level-navigation {
    padding: 20px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.level-nav-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.level-nav-btn {
    padding: 12px 24px;
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.level-nav-btn i {
    font-size: 0.9rem;
}

.level-nav-btn:hover {
    background: var(--light-bg);
    border-color: var(--blue-bright);
    color: var(--blue-bright);
    transform: translateY(-2px);
}

.level-nav-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.classes-section-full {
    padding: 40px 0;
    background: var(--light-bg);
}

.classes-section-full h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* ================================
   CLASS TITLE DISPLAY IN LEVEL PAGE
   ================================ */
.level-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 10px;
}

.no-classes {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.no-classes p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* MOBILE ADJUSTMENT FOR HERO IMAGES */
@media (max-width: 768px) {
    .hero-decoration {
        max-width: 150px;
    }

    .hero-logo {
        max-width: 120px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

    .level-nav-buttons {
        gap: 10px;
    }

    .level-nav-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}


/* ================================
   TOOLS PAGE STYLES
   ================================ */
.tools-section {
    padding: 60px 0;
    background: var(--light-bg);
}

/* TOOLS TABS */
.tools-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.tools-tab {
    padding: 12px 28px;
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tools-tab i {
    font-size: 0.95rem;
    color: #667eea;
}

.tools-tab:hover {
    background: #fdf2f8;
    border-color: #ec4899;
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(236, 72, 153, 0.1);
}

.tools-tab.active {
    background: #ec4899;
    color: var(--white);
    border-color: #ec4899;
    box-shadow: 0 4px 6px rgba(236, 72, 153, 0.2);
    transform: translateY(0);
}

.tools-tab.active i {
    color: var(--white);
}

/* TAB CONTENT */
.tools-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tools-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.level-section {
    margin-bottom: 50px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}

.level-header {
    background: transparent;
    padding: 0 0 20px 0;
    margin-bottom: 30px;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 2px solid #ec4899;
}

.level-header h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.level-header .level-title-assamese {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1.4rem;
    color: #ec4899;
    margin-top: 5px;
    opacity: 1;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 0;
    padding: 0;
}

.tool-card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
    border-color: #ec4899;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.1);
}

.tool-type-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.tool-type-pdf {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.tool-type-video {
    background: #f0fdfa;
    color: #0d9488;
    border: 1px solid #ccfbf1;
}

.tool-type-url {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

.tool-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.tool-title-assamese {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tool-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
}

.tool-action {
    display: inline-block;
    padding: 10px 20px;
    background: #ec4899;
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.tool-action:hover {
    background: #db2777;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(236, 72, 153, 0.2);
}

.tool-action i {
    margin-right: 5px;
}

.no-tools {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-tools i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--border-color);
}

.no-tools p {
    font-size: 1.1rem;
}

/* RESPONSIVE - TOOLS */
@media (max-width: 768px) {
    .tools-tabs {
        gap: 10px;
    }

    .tools-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

    .level-section {
        margin-bottom: 40px;
    }

    .level-header h2 {
        font-size: 1.6rem;
    }

    .level-header .level-title-assamese {
        font-size: 1.2rem;
    }
}

/* ================================
   HOMEWORK PAGE STYLES
   ================================ */
.homework-section {
    padding: 60px 0;
    background: var(--light-bg);
}

/* HOMEWORK TABS */
.homework-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.homework-tab {
    padding: 12px 28px;
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.homework-tab i {
    font-size: 0.95rem;
    color: #667eea;
}

.homework-tab:hover {
    background: #fdf2f8;
    border-color: #ec4899;
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(236, 72, 153, 0.1);
}

.homework-tab.active {
    background: #ec4899;
    color: var(--white);
    border-color: #ec4899;
    box-shadow: 0 4px 6px rgba(236, 72, 153, 0.2);
    transform: translateY(0);
}

.homework-tab.active i {
    color: var(--white);
}

/* HOMEWORK TAB CONTENT */
.homework-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.homework-tab-content.active {
    display: block;
}

/* HOMEWORK GRID */
.homework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 0;
    padding: 0;
}

.homework-card {
    background: var(--white);
    border-radius: 8px;
    padding: 0;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.homework-card:hover {
    border-color: #ec4899;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.1);
}

.homework-header {
    background: #fafafa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.homework-type-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.homework-type-pdf {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.homework-type-audio {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.homework-type-video {
    background: #f0fdfa;
    color: #0d9488;
    border: 1px solid #ccfbf1;
}

.homework-type-link {
    background: #faf5ff;
    color: #9333ea;
    border: 1px solid #f3e8ff;
}

.exercise-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.homework-content {
    padding: 20px;
}

.class-info {
    font-size: 0.85rem;
    color: #ec4899;
    font-weight: 600;
    margin-bottom: 8px;
}

.homework-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.homework-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
}

.homework-action {
    display: block;
    padding: 14px 20px;
    background: #ec4899;
    color: var(--white);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border-radius: 0;
}

.homework-action:hover {
    background: #db2777;
    transform: scale(1);
}

.homework-action i {
    margin-right: 5px;
}

.no-homework {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-homework i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--border-color);
}

.no-homework p {
    font-size: 1.1rem;
}

/* RESPONSIVE - HOMEWORK */
@media (max-width: 768px) {
    .homework-tabs {
        gap: 10px;
    }

    .homework-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

    .level-header h2 {
        font-size: 1.6rem;
    }

    .level-header .level-title-assamese {
        font-size: 1.2rem;
    }
}

/* ================================
   LEVELS SECTION (HOME PAGE)
   ================================ */
.levels-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.levels-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.level-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 0.07), 0 10px 20px rgb(0 0 0 / 0.10);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.level-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgb(0 0 0 / 0.15);
}

.level-number {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.level-card h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin: 15px 0 10px;
    font-weight: 700;
}

.level-assamese {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 10px 0;
    font-weight: 600;
    line-height: 1.6;
}

.level-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 15px 0 25px;
    min-height: 50px;
}

.level-card .btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.level-card .btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.level-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(102 126 234 / 0.4);
}

.level-card .btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.level-card .btn-secondary:hover {
    background: #cbd5e1;
}