
.nav-follow {
    font-size: 14px;
}
.navbar {
    background: linear-gradient(90deg, #ffffff, #f8fafc);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}
.navbar-brand img {
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.1);
}
.nav-pad {
    padding: 0.75rem 66px;
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border: none;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn-outline-primary {
    border-color: #3b82f6;
    color: #3b82f6;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.btn-outline-primary:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
}
.mega-menu {
    position: fixed;
    top: 113px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    width: 95%;
    max-width: 1200px;
    z-index: 1050;
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}
.show-menu .mega-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu {
  z-index: 1050; /* Ensure it’s above other elements */
  display: none; /* Bootstrap handles toggling */
}

.dropdown-menu.show {
  display: block; /* Ensure it shows when toggled */
}
@media (max-width: 991px) {
    .nav-pad {
        padding: 0.75rem 16px;
    }
    .mega-menu {
        position: static;
        width: 100%;
        transform: none;
        border-radius: 0;
        box-shadow: none;
        padding: 1rem;
        top: 0;
    }
    .show-menu .mega-menu {
        transform: unset;
    }
    .simple-courses-container {
        grid-template-columns: 1fr;
    }
    .search-form input {
        min-width: 100%;
    }
    .nav-follow {
        font-size: 12px;
        height: 40px;
    }
}
#category-list .nav-link,
#mobile-category-list .nav-link {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    color: #2d3748;
    border-radius: 8px;
    transition: all 0.2s ease;
}
#category-list .nav-link:hover,
#category-list .nav-link.active,
#mobile-category-list .nav-link:hover,
#mobile-category-list .nav-link.active {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    font-weight: 500;
}
.simple-courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}
.simple-course {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    background: #f8fafc;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.simple-course:hover {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.course-card {
    min-height: 390px;
}
.course-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    color: #1e40af;
    border-radius: 8px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}
.promo-box {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.2s ease;
}
.promo-box:hover {
    transform: translateY(-4px);
}
.search-form input {
    height: 42px;
    min-width: 300px;
    padding-left: 1rem;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.search-form input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.nav-link {
    font-weight: 500;
    color: #2d3748;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-link:hover {
    background: #f0f4ff;
    color: #1e40af;
}
.nav-link i {
    font-size: 1.2rem;
}
.text-primary {
    color: #2563eb !important;
}
@media (max-width: 991px) {
    .nav-pad {
        padding: 0.75rem;
    }
    .nav-follow {
        font-size: 10px;
    }
    .mega-menu {
        position: static;
        width: 100%;
        transform: none;
        border-radius: 0;
        box-shadow: none;
        padding: 1rem;
    }
    .simple-courses-container {
        grid-template-columns: 1fr;
    }
    .search-form input {
        min-width: 100%;
    }
}
@media (max-width: 576px) {
    .navbar-nav {
        gap: 0.5rem;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .navbar-brand img {
        height: 30px;
    }
    .nav-link i {
        font-size: 1.1rem;
    }
}
