/* Mega Menu Typography & Spacing Fixes */

.mega-menu h3 {
    font-size: 10px !important;
    letter-spacing: 0.2em !important;
    margin-bottom: 1.5rem !important;
}

.mega-menu h4 {
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.mega-menu p {
    font-size: 11px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

.mega-menu .badge,
.mega-menu span[class*="bg-primary/10"] {
    font-size: 11px !important;
    font-weight: 900 !important;
}

/* Ensure descriptions don't wrap too early or look too small */
.mega-menu .left-column-desc {
    min-height: 40px;
    display: block;
}

/* Custom spacing for cards */
.mega-menu .programme-type-card {
    padding: 1.25rem !important;
    gap: 0.5rem !important;
    display: flex;
    flex-direction: column;
}

/* Featured Card Image Fix */
.mega-menu .featured-card img {
    height: 140px !important;
    border-radius: 1rem !important;
}

/* Middle Grid Spacing */
.mega-menu .category-grid {
    gap: 1rem !important;
}

.mega-menu .category-card {
    padding: 1.25rem !important;
}

/* Responsive fixes */
@media (max-width: 1280px) {
    .mega-menu h4 {
        font-size: 13px !important;
    }

    .mega-menu p {
        font-size: 12px !important;
    }
}

/* Custom Scrollbar Styles */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Firefox Support */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}