/* Custom styles for Quizyall navbar */

.navbar {
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: white;
}

body {
    padding-top: 76px;
}

@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 65px;
    }
}

.navbar-brand {
    font-size: 1.75rem !important;
    color: #1a56db !important;
    font-weight: 700;
}

.nav-link {
    color: #333 !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: #1a56db !important;
}

/* Search bar styling */
.search-container {
    max-width: 400px;
    width: 100%;
    margin: 0 2rem;
}

.search-container .input-group {
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.search-container .input-group-text {
    background-color: transparent !important;
    border: none !important;
    padding: 0.75rem 1rem;
}

.search-container .form-control {
    background-color: transparent;
    border: none !important;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.search-container .form-control:focus {
    box-shadow: none;
    background-color: transparent;
}

.search-container .form-control::placeholder {
    color: #999;
}

/* Create button styling */
.navbar .btn-primary {
    background-color: #1a56db;
    border: none;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.navbar .btn-primary:hover {
    background-color: #1e40af;
}

/* Mobile Nav Buttons (outside collapse) */
.mobile-nav-buttons {
    gap: 0.75rem;
    margin-left: auto;
    margin-right: 0.5rem;
}

.mobile-nav-buttons a {
    white-space: nowrap;
}

@media (max-width: 991px) {
    .mobile-nav-buttons {
        order: 2;
    }
    
    .navbar-toggler {
        order: 3;
    }
    
    /* Mobile navbar layout improvements */
    .navbar {
        padding: 0.75rem 1rem !important;
    }
    
    .navbar-brand {
        font-size: 1.25rem !important;
        margin-right: 0.5rem;
    }
    
    .navbar-brand img {
        height: 24px !important;
    }
    
    .mobile-nav-buttons {
        gap: 0.5rem;
        margin-right: 0.25rem;
    }
    
    .mobile-nav-buttons a {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .mobile-nav-buttons .btn {
        padding: 0.375rem 0.875rem !important;
        font-size: 0.875rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        border: 1px solid #dee2e6;
    }
    
    /* Hide search bar on mobile or make it smaller */
    .search-container {
        max-width: 100%;
        margin: 0.75rem 0 !important;
        width: 100%;
    }
    
    /* Make dropdown menu full width on mobile */
    .dropdown-menu {
        width: 100%;
        max-width: 100%;
    }
    
    /* Adjust navbar collapse for mobile */
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e0e0e0;
    }
    
    /* Stack navbar items on mobile */
    .navbar-nav {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .navbar {
        padding: 0.5rem 0.75rem !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .mobile-nav-buttons a {
        font-size: 0.8rem;
    }
    
    .mobile-nav-buttons .btn {
        padding: 0.3rem 0.7rem !important;
        font-size: 0.8rem;
    }
    
    .mobile-nav-buttons .text-decoration-none {
        font-size: 0.8rem;
    }
}

/* Dropdown menu styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #1a56db;
}

/* Subjects Mega Menu */
.subjects-mega-menu {
    padding: 0 !important;
    min-width: 400px;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.subjects-menu-content {
    display: flex;
    max-height: 500px;
    overflow: hidden;
}

.subjects-categories-column {
    width: 200px;
    background: white;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    max-height: 500px;
}

.subjects-items-column {
    flex: 1;
    background: white;
    overflow-y: auto;
    max-height: 500px;
    padding: 1rem;
}

.subject-category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.subject-category-item:hover {
    background-color: #f5f5f5;
}

.subject-category-item.active {
    background-color: #f0f0f0;
}

.subject-category-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subject-category-icon svg {
    width: 100%;
    height: 100%;
}

.exams-icon {
    color: #3b82f6;
}

.literature-icon {
    color: #a855f7;
}

.arts-icon {
    color: #ef4444;
}

.languages-icon {
    color: #a855f7;
}

.math-icon {
    color: #f59e0b;
}

.science-icon {
    color: #06b6d4;
}

.social-icon {
    color: #14b8a6;
}

.other-icon {
    color: #06b6d4;
}

.subject-category-name {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.subject-category-item i.bi-chevron-right {
    color: #9ca3af;
    font-size: 0.75rem;
}

.subject-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subject-item-link {
    padding: 0.625rem 0.75rem;
    color: #1e3a8a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: block;
}

.subject-item-link:hover {
    background-color: #f5f5f5;
    color: #1a56db;
}

/* Scrollbar styling for subjects columns */
.subjects-categories-column::-webkit-scrollbar,
.subjects-items-column::-webkit-scrollbar {
    width: 8px;
}

.subjects-categories-column::-webkit-scrollbar-track,
.subjects-items-column::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.subjects-categories-column::-webkit-scrollbar-thumb,
.subjects-items-column::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.subjects-categories-column::-webkit-scrollbar-thumb:hover,
.subjects-items-column::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .subjects-mega-menu {
        min-width: 100%;
        max-width: 100%;
    }

    .subjects-menu-content {
        flex-direction: column;
        max-height: 600px;
        min-height: 500px;
    }

    .subjects-categories-column {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        max-height: 400px;
    }

    .subjects-items-column {
        max-height: 400px;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    /* Hide search bar on mobile */
    .search-container {
        display: none !important;
    }

    .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        right: -100%;
        width: 320px !important;
        max-width: 85vw;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 999;
        padding: 0 !important;
        padding-top: 20 !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-bottom: 1.5rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        /* Hide scrollbar - multiple methods for maximum compatibility */
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE and Edge */
        scrollbar-color: transparent transparent !important; /* Firefox */
    }

    .navbar-collapse::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera */
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }

    .navbar-collapse::-webkit-scrollbar-track {
        display: none !important;
        background: transparent !important;
    }

    .navbar-collapse::-webkit-scrollbar-thumb {
        display: none !important;
        background: transparent !important;
    }

    /* Also hide scrollbar on navbar-nav */
    .navbar-collapse .navbar-nav {
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE and Edge */
        scrollbar-color: transparent transparent !important; /* Firefox */
    }

    .navbar-collapse .navbar-nav::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera */
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }

    .navbar-collapse .navbar-nav::-webkit-scrollbar-track {
        display: none !important;
        background: transparent !important;
    }

    .navbar-collapse .navbar-nav::-webkit-scrollbar-thumb {
        display: none !important;
        background: transparent !important;
    }

    .navbar-collapse.show {
        right: 0;
    }

    /* Overlay for mobile menu */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        margin-top: 10 !important;
        padding-top: 0 !important;
    }

    .nav-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-link:hover {
        background-color: #f5f5f5;
    }

    .d-flex.align-items-center.ms-auto {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-between;
    }

    /* Hide search bar on mobile */
    .search-container {
        display: none !important;
    }

    /* Subjects on mobile - show as dropdown field */
    .subjects-dropdown-wrapper {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .subjects-dropdown-wrapper .nav-link {
        display: flex !important;
        align-items: center;
        justify-content: flex-start !important;
        padding: 0.75rem 1rem !important;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        color: #333 !important;
        font-weight: 500;
        width: 100%;
        margin-top: 10px !important;
        margin-bottom: 0.5rem;
        text-align: left !important;
    }

    .subjects-dropdown-wrapper .nav-link::after {
        content: '';
        border: none;
        width: 0;
        height: 0;
    }

    .subjects-dropdown-wrapper .nav-link i,
    .subjects-dropdown-wrapper .nav-link::after {
        display: none;
    }

    /* Add dropdown arrow */
    .subjects-dropdown-wrapper .nav-link::before {
        content: '▼';
        font-size: 0.75rem;
        color: #666;
        margin-left: auto;
        order: 2;
    }

    /* Ensure text is at the start */
    .subjects-dropdown-wrapper .nav-link {
        text-align: left !important;
    }

    .subjects-dropdown-wrapper .nav-link::after {
        order: 2;
    }

    .subjects-dropdown-wrapper .nav-link[aria-expanded="true"]::before {
        content: '▲';
    }

    .subjects-dropdown-wrapper .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 0.5rem;
        background: transparent;
        display: none !important;
        width: 100%;
    }

    .subjects-dropdown-wrapper .dropdown-menu.show {
        display: block !important;
    }

    .subjects-menu-content {
        flex-direction: column;
        height: 100%;
        display: flex;
        flex-direction: column;
        min-height: 500px;
        max-height: 600px;
    }

    /* Make navbar nav use full available height */
    .navbar-collapse .navbar-nav {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        margin-top: 10 !important;
        padding-top: 0 !important;
    }

    .subjects-categories-column {
        width: 100%;
        margin-bottom: 0;
    }

    .subject-category-item {
        padding: 0.75rem 1rem;
        border-radius: 0;
        margin-bottom: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        background: transparent;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        transition: background 0.2s ease;
        width: 100%;
        position: relative;
    }

    /* Remove hover on mobile - only use click/tap */
    .subject-category-item:active {
        background: #f5f5f5;
    }

    .subject-category-item.active {
        background: transparent;
    }

    /* Remove hover effect on mobile */
    .subject-category-item:hover {
        background: transparent !important;
    }

    .subject-category-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .subject-category-name {
        font-weight: 500;
        color: #333;
        white-space: nowrap;
    }

    .subject-category-item i {
        color: #666;
        font-size: 0.875rem;
        transition: transform 0.2s ease;
        margin-left: auto;
    }

    .subjects-items-column {
        width: 100%;
        padding-left: 0;
        display: none !important;
    }

    /* Show sub-items inline with category name on mobile */
    .subject-items-list {
        display: none !important;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    /* Show items in column layout (vertical list) when inserted on mobile */
    .subject-items-list.mobile-inserted {
        display: block !important;
        padding-left: 3rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .subject-items-list.mobile-inserted .subject-item-link {
        display: block;
        padding: 0.5rem 0;
        margin: 0;
        color: #333;
        text-decoration: none;
        border: none;
        background: transparent;
        font-size: 0.95rem;
    }

    .subject-item-link {
        display: block;
        padding: 0.5rem 0;
        margin: 0;
        color: #333;
        text-decoration: none;
        border: none;
        background: transparent;
        font-size: 0.95rem;
    }

    /* Remove hover on mobile */
    .subject-item-link:hover {
        background: transparent !important;
        color: #333 !important;
        text-decoration: none !important;
    }

    .subject-item-link:active {
        color: #1a56db;
    }
}

/* Hero Section */
.hero-section {
    background-color: #f8f9fa;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    font-weight: 400;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-signup {
    background-color: #1a56db;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-signup:hover {
    background-color: #1e40af;
    color: white;
}

.teacher-link {
    color: #1a56db;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.teacher-link:hover {
    color: #1e40af;
    text-decoration: none;
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 3rem 0;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .btn-signup {
        padding: 0.625rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Study Cards Section */
.study-cards-section {
    background: #f8f9fa;
    padding: 3rem 0 0 0;
}

.cards-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem 0 4rem;
}

.cards-wrapper {
    overflow: hidden;
}

.cards-slider {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.study-card-link {
    text-decoration: none;
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 280px;
}

@media (max-width: 767px) {
    .study-card-link {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

.study-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 1rem 0 1rem;
}

.study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-title {
    margin: 0 0 1rem 0;
    font-size: 1.435rem;
    font-weight: 700;
    text-align: center;
}

.study-card img {
    width: calc(100% + 2rem);
    height: auto;
    display: block;

}

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    color: #333;
    font-size: 1.25rem;
    pointer-events: auto;
    user-select: none;
}

.arrow-btn:hover:not(.disabled) {
    background: #f8f9fa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.arrow-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.left-arrow {
    left: 0;
}

.right-arrow {
    right: 0;
}

@media (max-width: 1200px) {
    .study-card-link {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (max-width: 991px) {
    .study-card-link {
        flex: 0 0 calc(50% - 0.75rem);
    }

    .arrow-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .study-card-link {
        flex: 0 0 100%;
    }

    .cards-container {
        padding: 0 2.5rem;
    }

    .arrow-btn {
        width: 2.25rem;
        height: 2.25rem;
    }
}

/* Section Container - 90% width */
.section-container {
    max-width: 90%;
    margin: 0 auto;
}

/* Responsive button adjustments */
@media (max-width: 768px) {
    .align-self-start {
        align-self: stretch !important;
    }
}

/* App Download Section */
.app-download-img {
    height: 50px;
}

.app-mockup-img {
    max-width: 80%;
    max-height: 400px;
}

/* Study Guides Section */
.study-guides-img {
    max-width: 80%;
    max-height: 400px;
}

/* Test Prep Section */
.test-prep-img {
    max-width: 80%;
    max-height: 400px;
}

/* Teachers Section */
.teachers-img {
    max-width: 80%;
    max-height: 400px;
}

@media (max-width: 768px) {
    .app-download-img {
        height: 45px;
    }

    .app-mockup-img {
        max-width: 100%;
        max-height: 300px;
    }

    .study-guides-img {
        max-width: 100%;
        max-height: 300px;
    }

    .study-guides-btn {
        width: auto;
        padding: 0.5rem 1.5rem !important;
    }

    .test-prep-img {
        max-width: 100%;
        max-height: 300px;
    }

    .test-prep-btn {
        width: auto;
        padding: 0.5rem 1.5rem !important;
    }

    .teachers-img {
        max-width: 100%;
        max-height: 300px;
    }

    .teachers-btn {
        width: auto;
        padding: 0.5rem 1.5rem !important;
    }
}

/* Popular Flashcard Sets Section */
.flashcard-sets-section {
    background: #f5f7fa;
}

.flashcard-sets-container {
    max-width: 70%;
    margin: 0 auto;
}

.flashcard-card {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.flashcard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.flashcard-card.fade-out {
    animation: fadeOutDown 0.3s ease forwards;
}

@keyframes fadeOutDown {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.flashcard-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.flashcard-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.flashcard-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: #83a2f2;
    color: white;
    border: none;
    align-self: flex-start;
}

.flashcard-small-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.flashcard-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-name {
    font-size: 0.875rem;
    color: #6b7280;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    background: white;
    color: #6b7280;
    padding: 0;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: #f8f9fa;
    border-color: #d0d0d0;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-text {
    font-size: 0.875rem;
    color: #6b7280;
    min-width: 40px;
    text-align: center;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .flashcard-sets-container {
        max-width: 90%;
    }

    .flashcard-title {
        font-size: 0.9rem;
    }

    .flashcard-small-image {
        width: 50px;
        height: 50px;
    }
}

/* Footer Section */
.footer-section {
    background: #f5f7fa;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.footer-section .container-fluid {
    max-width: 90%;
    margin: 0 auto;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.footer-links {
    margin: 0;
    padding: 0;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #1a56db;
}

.footer-divider {
    border-color: #e0e0e0;
    margin: 1.5rem 0;
    opacity: 1;
}

.country-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.country-link {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.country-link:hover {
    color: #1a56db;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: #1a56db;
}

.copyright-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.coppa-badge {
    height: 60px;
    width: auto;
}

.qr-code-section {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 2rem 0 1rem;
    }

    .country-list {
        gap: 0.75rem;
    }

    .country-link {
        font-size: 0.8rem;
    }

    .coppa-badge {
        height: 50px;
    }
}

/* Login Page */
.login-page-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

.login-left-section {
    width: 51%;
    /* Background image - uses CSS variable for base path */
    background-image: var(--auth-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 3rem;
    overflow: hidden;
}

.login-left-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.login-left-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.login-promo-text {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-top: 2rem;
}

.login-logo-bottom {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
}

.quizlet-logo-white {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.login-right-section {
    width: 49%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100vh;
}

.login-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
    z-index: 1000;
    pointer-events: auto;
}

.login-close-btn i {
    pointer-events: none;
}

.login-close-btn:hover {
    color: #1a1a1a;
}

.login-form-container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 0 3rem 0;
    min-height: fit-content;
}

.login-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.login-tab {
    background: none;
    border: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.login-tab:hover {
    color: #1a1a1a;
}

.login-tab.active {
    color: #1a56db;
    font-weight: 600;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #1a56db;
    border-radius: 3px 3px 0 0;
    animation: wave 0.3s ease;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleX(1);
    }

    50% {
        transform: scaleX(1.1);
    }
}

.social-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #1a1a1a;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.social-btn i {
    font-size: 1.25rem;
}

.divider-with-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider-with-text hr {
    flex: 1;
    border-color: #e0e0e0;
    margin: 0;
}

.divider-with-text span {
    font-size: 0.875rem;
    color: #6b7280;
}

.login-form .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.login-form .form-control {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.875rem;
}

.login-form .form-control:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
}

.password-toggle-btn:hover {
    color: #1a1a1a;
}

.forgot-password-link {
    font-size: 0.875rem;
    color: #1a56db;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.terms-text {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
}

.terms-text a {
    color: #1a56db;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.login-submit-btn {
    background: #1a56db;
    border: none;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.login-submit-btn:hover {
    background: #1548b8;
}

.create-account-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.create-account-text a {
    color: #1a56db;
    text-decoration: none;
    font-weight: 600;
}

.create-account-text a:hover {
    text-decoration: underline;
}

.terms-checkbox-label {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.terms-checkbox-label a {
    color: #1a56db;
    text-decoration: none;
}

.terms-checkbox-label a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .login-container {
        flex-direction: column;
    }

    .login-left-section {
        display: none !important;
    }

    .login-right-section {
        width: 100% !important;
        padding: 1.5rem;
        min-height: 100vh;
    }

    .login-promo-text {
        font-size: 2rem;
    }

    .login-logo-bottom {
        position: static;
        margin-top: 2rem;
    }
}

/* Teachers Page Styles */
.teachers-page {
    background: white;
    min-height: 100vh;
    padding: 4rem 0;
}

.teachers-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.teachers-hero p {
    font-size: 1.25rem;
    color: #4a5568;
    max-width: 600px;
}

.activity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.activity-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.activity-card-header {
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1a1a1a;
}

.activity-card-header.study-guides {
    background: #e8d9f8;
}

.activity-card-header.flashcards {
    background: #d0e8ff;
}

.activity-card-header.practice-tests {
    background: #ffe4cc;
}

.activity-card-header.games {
    background: #e8d9f8;
}

.activity-card-content {
    padding: 1.5rem;
    border: 2px solid;
    border-top: none;
    border-radius: 0 0 12px 12px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.activity-card-content.study-guides {
    border-color: #e8d9f8;
    background: white;
}

.activity-card-content.flashcards {
    border-color: #d0e8ff;
    background: white;
}

.activity-card-content.practice-tests {
    border-color: #ffe4cc;
    background: white;
}

.activity-card-content.games {
    border-color: #e8d9f8;
    background: #1a1a2e;
}

.study-guides-preview {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.study-guides-icon {
    width: 60px;
    height: 60px;
    background: #a855f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.study-guides-vase {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 8px;
    position: relative;
}

.study-guides-vase::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 3px solid white;
    border-radius: 50%;
}

.study-guides-lines {
    flex: 1;
}

.study-guides-line {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    position: relative;
}

.study-guides-line:nth-child(1) {
    width: 100%;
}

.study-guides-line:nth-child(2) {
    width: 80%;
}

.study-guides-line:nth-child(3) {
    width: 90%;
}

.study-guides-line:nth-child(4) {
    width: 70%;
}

.study-guides-cursor {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #1a56db;
    border-radius: 4px;
}

.flashcards-preview {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.flashcard {
    width: 200px;
    height: 250px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.flashcard-heart {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.heart-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    position: relative;
}

.heart-icon::before,
.heart-icon::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50% 50% 50% 0;
}

.heart-icon::before {
    top: -20px;
    left: 20px;
    transform: rotate(-45deg);
}

.heart-icon::after {
    top: -20px;
    right: 20px;
    transform: rotate(45deg);
}

.flashcard-earth {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    position: relative;
    transform: translateX(-20px) translateY(10px);
}

.earth-layers {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
}

.earth-layer {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.earth-layer-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.earth-layer-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
}

.earth-layer-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
}

.practice-tests-preview {
    padding: 1rem;
}

.practice-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #4a5568;
}

.practice-stat {
    font-weight: 600;
}

.practice-question {
    margin-bottom: 1rem;
}

.practice-question-number {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.practice-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

.practice-option.correct {
    background: #d1fae5;
}

.practice-option.incorrect {
    background: #fee2e2;
}

.practice-option-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.practice-option.correct .practice-option-icon {
    background: #10b981;
    color: white;
}

.practice-option.incorrect .practice-option-icon {
    background: #ef4444;
    color: white;
}

.practice-option.neutral .practice-option-icon {
    background: #e0e0e0;
    color: #4a5568;
}

.games-preview {
    position: relative;
    height: 100%;
    min-height: 300px;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
}

.star-1 {
    top: 10%;
    left: 20%;
}

.star-2 {
    top: 30%;
    left: 60%;
}

.star-3 {
    top: 50%;
    left: 40%;
}

.star-4 {
    top: 70%;
    left: 80%;
}

.star-5 {
    top: 20%;
    left: 80%;
}

.star-6 {
    top: 60%;
    left: 10%;
}

.spaceship {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 60px;
    background: #a855f7;
    border-radius: 12px 12px 4px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spaceship::before {
    content: '99';
    position: absolute;
    top: -15px;
    right: -10px;
    background: #3b82f6;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.target {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background: #991b1b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .teachers-hero h1 {
        font-size: 2rem;
    }

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

    .activity-cards {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* Lesson Materials Section */
.lesson-materials-section {
    background: white;
}

.interface-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.mockup-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    max-width: 500px;
    width: 100%;
}

.progress-bar-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.progress-segment {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
}

.progress-segment-active {
    background: #a855f7;
    position: relative;
}

.progress-segment-active::after {
    content: '';
    position: absolute;
    top: -4px;
    right: 0;
    width: 16px;
    height: 16px;
    background: #a855f7;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.document-icon-wrapper {
    position: absolute;
    top: 3rem;
    right: 3rem;
}

.document-icon {
    position: relative;
}

.document-star {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fbbf24;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

.toolbar {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toolbar-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.125rem;
}

.lesson-materials-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {
    .lesson-materials-heading {
        font-size: 2rem;
    }

    .mockup-card {
        min-height: 300px;
        padding: 1.5rem;
    }

    .document-icon-wrapper {
        top: 2rem;
        right: 2rem;
    }
}

@media (max-width: 768px) {
    .lesson-materials-heading {
        font-size: 1.75rem;
    }

    .feature-item {
        gap: 1rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-title {
        font-size: 1.125rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }
}

/* Classroom Games Section */
.classroom-games-section {
    background: white;
}

.games-section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.game-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.game-card-categories {
    background: #10b981;
}

.game-card-live {
    background: #fbbf24;
}

.game-card-blast {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
}

.game-card-match {
    background: #f87171;
}

.game-icon {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: white;
}

.game-preview {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 200px;
    position: relative;
}

.game-board {
    width: 100%;
    height: 100%;
    position: relative;
}

.board-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.board-question-mark,
.board-icon-live,
.board-icon-blast,
.board-icon-match {
    display: inline-flex;
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 50%;
    color: white;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.board-cell {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell-blue {
    background: #bfdbfe;
}

.cell-purple {
    background: #e9d5ff;
}

.cell-grey {
    background: #9ca3af;
}

.cell-score {
    background: #f3f4f6;
    color: #1a1a1a;
}

.board-character {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 50px;
    height: 50px;
}

.character-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid #86efac;
    border-radius: 50%;
    top: -5px;
    left: -5px;
}

.character-ring::before {
    content: '???';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    color: #86efac;
    font-weight: 700;
}

.character-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
}

.live-progress-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-bar-item {
    width: 100%;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 12px;
    position: relative;
}

.progress-green {
    background: #10b981;
}

.progress-red {
    background: #ef4444;
}

.progress-yellow {
    background: #fbbf24;
}

.progress-blue {
    background: #3b82f6;
}

.progress-handle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blast-board {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 1rem;
    min-height: 200px;
}

.blast-game-scene {
    position: relative;
    width: 100%;
    height: 160px;
}

.blast-stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.blast-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
}

.blast-star:nth-child(1) {
    top: 20%;
    left: 30%;
}

.blast-star:nth-child(2) {
    top: 60%;
    left: 70%;
}

.blast-star:nth-child(3) {
    top: 40%;
    left: 50%;
}

.blast-spaceship {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #ec4899;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blast-number {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.blast-beam {
    position: absolute;
    left: 20%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.blast-asteroid {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #991b1b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asteroid-minus {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.blast-small-asteroids {
    position: absolute;
    width: 100%;
    height: 100%;
}

.small-asteroid {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #6b21a8;
    border-radius: 50%;
}

.small-asteroid:nth-child(1) {
    top: 30%;
    left: 50%;
}

.small-asteroid:nth-child(2) {
    top: 70%;
    left: 60%;
}

.small-asteroid:nth-child(3) {
    top: 50%;
    left: 80%;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.match-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 60px;
}

.match-empty {
    background: white;
    border: 1px solid #e5e7eb;
}

.match-line {
    width: 80%;
    height: 2px;
    background: #d1d5db;
}

.match-green {
    background: #10b981;
}

.match-line-green {
    width: 80%;
    height: 2px;
    background: white;
}

.match-image {
    background: white;
    border: 1px solid #e5e7eb;
}

.match-lungs,
.match-digestive {
    font-size: 1.5rem;
}

.match-correct::before {
    content: '✓';
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    background: #10b981;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.match-checkmark {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    background: #10b981;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.game-description {
    font-size: 1rem;
    color: white;
    text-align: center;
    margin: 0;
    opacity: 0.95;
}

@media (max-width: 991px) {
    .games-section-heading {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .games-section-heading {
        font-size: 1.75rem;
    }

    .game-title {
        font-size: 1.25rem;
    }

    .game-description {
        font-size: 0.9rem;
    }
}

/* Assign Activities Section */
.assign-activities-section {
    background: white;
}

.assign-activities-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.activity-feature-card {
    padding: 2rem 1rem;
}

.activity-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.activity-icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flashcards Icon */
.activity-icon-flashcards {
    width: 100px;
    height: 100px;
}

.flashcard-icon-card {
    position: absolute;
    width: 70px;
    height: 90px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-back {
    background: #1e40af;
    transform: rotate(-8deg);
    z-index: 1;
}

.card-front {
    background: #60a5fa;
    transform: rotate(8deg) translateX(20px);
    z-index: 2;
}

/* Learn Icon */
.activity-icon-learn {
    width: 80px;
    height: 80px;
}

.activity-icon-learn svg {
    width: 100%;
    height: 100%;
}

/* Test Icon */
.activity-icon-test {
    width: 100px;
    height: 100px;
}

.test-icon-doc {
    position: absolute;
    width: 70px;
    height: 90px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.doc-back {
    background: #1e40af;
    transform: rotate(-5deg);
    z-index: 1;
}

.doc-front {
    background: #60a5fa;
    transform: rotate(5deg) translateX(15px) translateY(-5px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.doc-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.doc-line:nth-child(1) {
    width: 100%;
}

.doc-line:nth-child(2) {
    width: 80%;
}

.doc-line:nth-child(3) {
    width: 90%;
}

.activity-feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.activity-feature-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {
    .assign-activities-heading {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .assign-activities-heading {
        font-size: 1.75rem;
    }

    .activity-feature-title {
        font-size: 1.25rem;
    }

    .activity-feature-description {
        font-size: 0.9rem;
    }

    .activity-icon-wrapper {
        min-height: 100px;
    }
}

/* Quizyall Plus Section */
.quizlet-plus-section {
    background: #1a56db;
    position: relative;
    overflow: hidden;
}

.quizlet-plus-heading {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.quizlet-plus-description {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 500px;
}

.class-progress-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 12px 12px 32px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    margin-left: auto;
    transform: rotate(-1.5deg);
    position: relative;
}

.progress-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.progress-card-icon {
    font-size: 2rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.progress-card-divider {
    height: 1px;
    background: #e5e7eb;
    width: 100%;
}

.student-rows {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.student-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.avatar-owl,
.avatar-rabbit,
.avatar-cat {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #f3f4f6;
}

.activity-icons {
    display: flex;
    gap: 0.75rem;
    flex: 1;
}

.activity-icon-item {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1rem;
    position: relative;
    flex-shrink: 0;
}

.activity-icon-item.completed {
    background: #1e40af;
    color: white;
}

.checkmark {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: white;
    font-weight: 700;
    border: 2px solid white;
}

.quizlet-plus-logo {
    margin-top: 2rem;
}

.quizlet-plus-text {
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 991px) {
    .quizlet-plus-heading {
        font-size: 2.5rem;
    }

    .quizlet-plus-description {
        font-size: 1rem;
    }

    .class-progress-card {
        transform: none;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .quizlet-plus-heading {
        font-size: 2rem;
    }

    .quizlet-plus-description {
        font-size: 0.9rem;
    }

    .class-progress-card {
        padding: 1.5rem;
    }

    .student-avatar {
        width: 40px;
        height: 40px;
    }

    .avatar-owl,
    .avatar-rabbit,
    .avatar-cat {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .activity-icon-item {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .quizlet-plus-text {
        font-size: 1.25rem;
    }
}

/* Teachers Usage Section */
.teachers-usage-section {
    background: white;
}

.teachers-usage-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.teachers-usage-subtitle {
    font-size: 1.125rem;
    color: #4a5568;
}

.subject-card {
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.subject-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.subject-card-active {
    border-bottom-color: #a855f7;
}

.subject-card-active:hover {
    border-bottom-color: #9333ea;
}

@media (max-width: 991px) {
    .teachers-usage-heading {
        font-size: 2rem;
    }

    .teachers-usage-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .teachers-usage-heading {
        font-size: 1.75rem;
    }

    .teachers-usage-subtitle {
        font-size: 0.9rem;
    }

    .subject-card {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
}

/* Book Flashcards Page Styles */
.book-flashcards-page {
    background: #ffffff;
    min-height: 100vh;
}

.book-flashcards-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.book-flashcards-breadcrumb {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.book-flashcards-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.book-flashcards-header-top-left {
    color: #6b7280;
    font-size: 0.875rem;
}

.book-flashcards-header-top-right {
    background: #2563eb;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.book-flashcards-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.book-flashcards-icon {
    width: 32px;
    height: 32px;
}

.book-flashcards-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.book-flashcards-nav-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.book-flashcards-nav-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s ease;
    display: inline-block;
}

.book-flashcards-nav-link:hover {
    background: #f3f4f6;
}

.book-flashcards-nav-link.active {
    background: #f3f4f6;
}

.book-flashcards-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.book-flashcards-tab {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.book-flashcards-tab:hover {
    color: #1f2937;
}

.book-flashcards-tab.active {
    color: #1f2937;
    font-weight: 600;
}

.book-flashcards-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
}

.book-flashcards-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.book-flashcards-filter-group {
    display: flex;
    gap: 1rem;
}

.book-flashcards-filter-dropdown {
    position: relative;
}

.book-flashcards-filter-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #1f2937;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-flashcards-filter-btn:hover {
    background: #f9fafb;
}

.book-flashcards-results-count {
    color: #6b7280;
    font-size: 0.875rem;
}

.book-flashcards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.book-flashcard-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}

.book-flashcard-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.book-flashcard-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.book-flashcard-badge {
    background: #2563eb;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.book-flashcard-badge.terms {
    background: #dbeafe;
    color: #2563eb;
}

.book-flashcard-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.book-flashcard-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.book-flashcard-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-flashcard-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
}

.book-flashcard-username {
    font-size: 0.875rem;
    color: #6b7280;
}

.book-flashcard-preview-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.book-flashcard-preview-btn:hover {
    background: #e5e7eb;
}

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

@media (max-width: 768px) {
    .book-flashcards-grid {
        grid-template-columns: 1fr;
    }

    .book-flashcards-filters {
        flex-direction: column;
        align-items: flex-start;
    }

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

/* Subjects dropdown hover functionality - CSS only */
.subjects-items-column .subject-items-list {
    display: none;
}

/* Show exams by default */
.subjects-items-column #examsItems {
    display: flex;
}

/* When hovering over a category, hide all lists first, then show the matching one */
.subjects-menu-content:has(.subject-category-item[data-category="exams"]:hover) .subjects-items-column .subject-items-list {
    display: none;
}

.subjects-menu-content:has(.subject-category-item[data-category="exams"]:hover) #examsItems {
    display: flex !important;
}

.subjects-menu-content:has(.subject-category-item[data-category="literature"]:hover) .subjects-items-column .subject-items-list {
    display: none;
}

.subjects-menu-content:has(.subject-category-item[data-category="literature"]:hover) #literatureItems {
    display: flex !important;
}

.subjects-menu-content:has(.subject-category-item[data-category="arts"]:hover) .subjects-items-column .subject-items-list {
    display: none;
}

.subjects-menu-content:has(.subject-category-item[data-category="arts"]:hover) #artsItems {
    display: flex !important;
}

.subjects-menu-content:has(.subject-category-item[data-category="languages"]:hover) .subjects-items-column .subject-items-list {
    display: none;
}

.subjects-menu-content:has(.subject-category-item[data-category="languages"]:hover) #languagesItems {
    display: flex !important;
}

.subjects-menu-content:has(.subject-category-item[data-category="math"]:hover) .subjects-items-column .subject-items-list {
    display: none;
}

.subjects-menu-content:has(.subject-category-item[data-category="math"]:hover) #mathItems {
    display: flex !important;
}

.subjects-menu-content:has(.subject-category-item[data-category="science"]:hover) .subjects-items-column .subject-items-list {
    display: none;
}

.subjects-menu-content:has(.subject-category-item[data-category="science"]:hover) #scienceItems {
    display: flex !important;
}

.subjects-menu-content:has(.subject-category-item[data-category="social"]:hover) .subjects-items-column .subject-items-list {
    display: none;
}

.subjects-menu-content:has(.subject-category-item[data-category="social"]:hover) #socialItems {
    display: flex !important;
}

.subjects-menu-content:has(.subject-category-item[data-category="other"]:hover) .subjects-items-column .subject-items-list {
    display: none;
}

.subjects-menu-content:has(.subject-category-item[data-category="other"]:hover) #otherItems {
    display: flex !important;
}

/* Exam Prep Page Styles */
.exam-prep-page {
    background: #ffffff;
    min-height: 100vh;
}

.exam-prep-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
}

.exam-prep-logo {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.exam-prep-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

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

.exam-prep-action-btn {
    background: transparent;
    border: none;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.exam-prep-action-btn:hover {
    background: #f3f4f6;
}

.exam-prep-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.exam-prep-recommended {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.exam-prep-description {
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.exam-prep-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.exam-prep-filter-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exam-prep-filter-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.exam-prep-filter-btn.active {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff;
}

.exam-prep-section-title {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.exam-prep-set-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exam-prep-set-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s ease;
}

.exam-prep-set-item:hover {
    background: #f9fafb;
}

.exam-prep-set-icon {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.exam-prep-set-content {
    flex: 1;
}

.exam-prep-set-title {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.exam-prep-set-meta {
    color: #6b7280;
    font-size: 0.875rem;
}

.exam-prep-signup-banner {
    background: #3b82f6;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    color: #ffffff;
    margin-top: 3rem;
}

.exam-prep-signup-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.exam-prep-signup-text {
    font-size: 0.875rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.exam-prep-signup-links {
    color: #ffffff;
    text-decoration: underline;
}

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

.exam-prep-signup-btn {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: #1f2937;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.exam-prep-signup-btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.exam-prep-signup-btn-google {
    background: #ffffff;
}

.exam-prep-signup-btn-email {
    background: #ffffff;
}

/* Literature Page Styles */
.literature-page {
    background: #ffffff;
    min-height: 100vh;
}

.literature-breadcrumb {
    padding: 1rem 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.literature-breadcrumb-text {
    color: #4b5563;
    font-size: 0.875rem;
    margin: 0;
}

.literature-hero-wrapper {
    width: 100%;
    display: flex;
    min-height: 500px;
}

.literature-hero {
    width: 100%;
    display: flex;
    min-height: 500px;
}

.literature-hero-left {
    flex: 2;
    background: #a7f3d0;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.literature-hero-right {
    flex: 1;
    background: #fce7f3;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.literature-verified-badge {
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.literature-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.literature-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.literature-description {
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.6;
    max-width: 600px;
}

.literature-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.literature-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 2;
}

.literature-shape {
    position: absolute;
    border-radius: 50%;
}

.literature-shape-1 {
    width: 200px;
    height: 200px;
    background: #fbcfe8;
    top: 10%;
    right: 10%;
    z-index: 1;
}

.literature-shape-2 {
    width: 150px;
    height: 150px;
    background: #f9a8d4;
    bottom: 15%;
    right: 5%;
    z-index: 1;
}

.literature-shape-3 {
    width: 100px;
    height: 100px;
    background: #a7f3d0;
    top: 5%;
    left: 5%;
    z-index: 1;
}

.literature-sparkle {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 40px;
    height: 40px;
    z-index: 3;
}

.literature-sparkle svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .literature-hero {
        flex-direction: column;
    }

    .literature-hero-left {
        padding: 2rem 1.5rem;
    }

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

    .literature-subtitle {
        font-size: 1.25rem;
    }
}

/* Books Section */
.literature-books-section {
    padding: 4rem 0;
    background: #ffffff;
}

.literature-books-content {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 1rem;
}

.literature-books-header {
    text-align: center;
    margin-bottom: 3rem;
}

.literature-books-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.literature-books-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a8a;
}

.literature-books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.literature-book-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.literature-book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.literature-book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.literature-book-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 2rem 1.5rem 1.5rem;
}

.literature-book-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.literature-book-author {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

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

@media (max-width: 768px) {
    .literature-books-grid {
        grid-template-columns: 1fr;
    }

    .literature-books-title {
        font-size: 1.5rem;
    }

    .literature-books-subtitle {
        font-size: 1rem;
    }
}

/* 19th Century Section */
.literature-19th-section {
    padding: 4rem 0;
    background: #ffffff;
}

.literature-19th-content {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 1rem;
}

.literature-19th-header {
    text-align: center;
    margin-bottom: 3rem;
}

.literature-19th-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
}

.literature-19th-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

@media (max-width: 768px) {
    .literature-19th-grid {
        grid-template-columns: 1fr;
    }

    .literature-19th-title {
        font-size: 1.5rem;
    }
}