@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ═══════════════════════════════════════════
   MEGA CATEGORIES DROPDOWN — UI/UX Premium (Commented Out)
═══════════════════════════════════════════ 
.mega-trigger-btn {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    min-height: 60px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.mega-trigger-btn:hover {
    border-color: #ffc107;
    box-shadow: 0 2px 10px rgba(255,193,7,0.18);
}
.mega-trigger-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #fff8e1, #ffe082);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: #f59e0b;
}
.mega-trigger-label {
    font-size: 0.7rem; font-weight: 600; color: #94a3b8;
    letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px;
}
.mega-trigger-value {
    font-size: 0.95rem; font-weight: 600; color: #1e293b; line-height: 1.3;
}
.mega-trigger-chevron {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: #f8fafc; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    color: #64748b; font-size: 12px; transition: background 0.2s, color 0.2s;
}
.mega-trigger-btn:hover .mega-trigger-chevron {
    background: #fff8e1; color: #f59e0b; border-color: #fde68a;
}

.mega-dropdown-panel {
    display: none;
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    background: #fff; border-radius: 14px; z-index: 1050;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.mega-search-box {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
}
.mega-search-icon { color: #94a3b8; font-size: 14px; flex-shrink: 0; }
.mega-search-input {
    flex: 1; border: none; background: transparent;
    font-size: 0.9rem; color: #1e293b; outline: none;
    font-family: inherit;
}
.mega-search-input::placeholder { color: #b0bec5; }
.mega-search-hint {
    font-size: 0.68rem; color: #cbd5e1; white-space: nowrap;
    font-style: italic;
}

.mega-tree-scroll {
    max-height: 380px; overflow-y: auto; padding: 10px 12px;
}
.mega-tree-scroll::-webkit-scrollbar { width: 4px; }
.mega-tree-scroll::-webkit-scrollbar-track { background: transparent; }
.mega-tree-scroll::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.mega-node { margin-bottom: 2px; }
.mega-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; border-radius: 8px; cursor: pointer;
    transition: background 0.15s;
    gap: 8px;
}
.mega-header:hover { background: #f1f5f9; }
.mega-header .mega-title {
    font-size: 0.875rem; font-weight: 600; color: #1e293b; flex: 1;
}
.mega-header .mega-icon {
    font-size: 0.65rem; color: #94a3b8; transition: transform 0.2s; flex-shrink: 0;
}
.mega-cat-icon { font-size: 13px; color: #f59e0b; flex-shrink: 0; }

.mega-header--active {
    background: #fff8e1;
    border-left: 3px solid #f59e0b;
}
.mega-header--active .mega-title { color: #b45309; }

.mega-branch {
    margin-left: 18px;
    border-left: 2px solid #e2e8f0;
    padding-left: 10px;
    margin-top: 2px;
}
.mega-header--sub {
    padding: 6px 8px;
    background: transparent;
}
.mega-header--sub:hover { background: #f8fafc; }
.mega-header--sub .mega-title {
    font-size: 0.82rem; font-weight: 500; color: #475569;
}
.mega-sub-icon { font-size: 11px; color: #94a3b8; flex-shrink: 0; }

.mega-header--course {
    padding: 5px 8px;
    display: flex; align-items: flex-start; gap: 7px; border-radius: 6px;
}
.mega-header--course:hover { background: #f0fdf4; }
.mega-header--course .mega-title {
    font-size: 0.8rem; font-weight: 400; color: #334155;
    line-height: 1.35;
}
.mega-header--course:hover .mega-title { color: #16a34a; }
.mega-course-icon { font-size: 10px; color: #86efac; flex-shrink: 0; margin-top: 3px; }

mark.bg-warning { border-radius: 3px; padding: 0 2px; }
*/

#primary .course-panel .btn-light-yellow {
    background-color: #fffde7 !important;
    border: 1px solid #fbc02d;
    color: #424242 !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
#primary .course-panel .btn-light-yellow:hover, #primary .course-panel .btn-light-yellow:focus, #primary .course-panel .btn-light-yellow:active {
    background-color: #fff9c4 !important;
    border-color: #ffa000;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}
#primary .course-panel .btn-light-yellow::after {
    color: #000000;
	font-size: 20px;
}

#primary .course-panel .dropdown-menu {
    border: 1px solid #f9f4d4 !important;
    z-index: 1060 !important;
}

#primary .course-panel {
    font-family: "poppins", sans-serif!important;
}

#primary .course-panel h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6{
    font-family: "mulish", sans-serif !important;
	font-weight: 700;
}

.font-poppins {
    font-family: "poppins", sans-serif !important;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}
.font-mulish {
    font-family: "mulish", sans-serif !important;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

#courseCategoriesAcc .accordion-header {
    cursor: pointer;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#courseCategoriesAcc .accordion-body {
    display: none;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 10px;
}
#courseCategoriesAcc .accordion-body.show {
    display: block;
}

#courseCategories .list-unstyled li {
    transition: all 0.3s ease;
    padding: 8px 12px;
    cursor: pointer;
    position: relative;
    font-size: 14px;
}

#courseCategories .list-unstyled li .course-count {
    margin-right: 5px;
    height: 25px;
    width: 25px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffff;
    color: black;
    font-weight: 600;
}

#courseCategories .list-unstyled li.active i {
    transform: translateX(20px); 
    transition: all 0.5s ease;
    opacity: 0;
}


#courseCategories .list-unstyled li.active .i {
    display: none;
}
#courseCategories .list-unstyled li.active{
    transition: background 0s;
    background: #e6e6e6; 
}

#courseCategoriesAcc a,
#onlineCategoryCourses a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
#courseCategoriesAcc .course-img,
#onlineCategoryCourses .course-img {
    width: 101px;
    height: 101px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    position: relative;
}
#courseCategoriesAcc .course-img img,
#onlineCategoryCourses .course-img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    transition: 0.3s ease;
    object-fit: cover;
}
#onlineCategoryCourses .course-menu-card .course-title a,
#courseCategoriesAcc .course-menu-card .course-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.25;
    height: 2.5em; /* Approximately 2 lines */
    white-space: normal;
}

#courseCategoriesAcc .course-menu-card,
#onlineCategoryCourses .course-menu-card {
    background: white;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 3px, rgba(0, 0, 0, 0.15) 0px -2px 4px inset;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

#courseCategoriesAcc .course-menu-card:hover,
#onlineCategoryCourses .course-menu-card:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 8px, rgba(0, 0, 0, 0.1) 0px -3px 6px inset;
    transform: translateY(-2px);
}
#courseCategoriesAcc, .course-title a,
#onlineCategoryCourses .course-title a{
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    align-items: start;
}
#courseCategoriesAcc, .course-hour,
#onlineCategoryCourses .course-hour {
    font-size: 1rem;
    color: #6c757d;
}
#courseCategoriesAcc .course-menu-card:hover .course-title a,
#onlineCategoryCourses .course-menu-card:hover .course-title a{
    color: #6c757d;
}
#courseCategoriesAcc .course-info-btn .btn,
#onlineCategoryCourses .course-info-btn .btn {
    font-size: 12px;
    color: #494747;
    margin-top: 0px !important;
    background: #ffc400;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}
#courseCategoriesAcc .course-info-btn .btn:hover,
#onlineCategoryCourses .course-info-btn .btn:hover {
    background: #ffc400a9;
    color: #6b6b6b;
}
#courseCategoriesAcc, .category.slide-in,
#onlineCategoryCourses .category.slide-in {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #fff6de !important;
    color: #000 !important;
	font-weight: 600;
}

/* ── Course card highlight blink after navigation from dropdown ── */
@keyframes courseHighlightBlink {
    0%   { box-shadow: 0 0 0 4px rgba(255, 193, 7, 0); background-color: transparent; }
    15%  { box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.7); background-color: #fff8d6; }
    30%  { box-shadow: 0 0 0 4px rgba(255, 193, 7, 0);   background-color: transparent; }
    50%  { box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.7); background-color: #fff8d6; }
    70%  { box-shadow: 0 0 0 4px rgba(255, 193, 7, 0);   background-color: transparent; }
    85%  { box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.7); background-color: #fff8d6; }
    100% { box-shadow: 0 0 0 4px rgba(255, 193, 7, 0);   background-color: transparent; }
}

.course-highlight-blink {
    animation: courseHighlightBlink 3s ease-in-out forwards;
    border-radius: 8px;
}

@keyframes courseTitleBlink {
    0%, 100% { color: inherit; }
    25%       { color: #d4a000; }
    75%       { color: #d4a000; }
}

.course-menu-card.course-highlight-blink .course-title a,
.course-menu-card.course-highlight-blink .course-title span,
.course-menu-card.course-highlight-blink h3,
.course-menu-card.course-highlight-blink h4,
.course-menu-card.course-highlight-blink h5 {
    animation: courseTitleBlink 3s ease-in-out forwards;
    font-weight: 700 !important;
}