body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

nav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Styling */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
}

.course-card:hover {
    transform: translateY(-8px);
}

.pastpaper-card:hover {
    transform: translateY(-8px);
}

.testimonial-card:hover {
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.faq-question:hover {
    color: #4f46e5;
}

.faq-answer {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

.search-bar {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

.primary-btn {
    position: relative;
    z-index: 10;
    opacity: 1;
    border: 1px solid #4338ca;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.primary-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.filter-btn {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-btn.active {
    background-color: #4f46e5;
    color: white;
}

@media (max-width: 768px) {
    .feature-card, .course-card, .pricing-card, .testimonial-card, .pastpaper-card {
        margin-bottom: 1.5rem;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}