/* ============================================
   HEADER CSS
   ZebLearn Two-Column Simplilearn-Style Header
   ============================================ */

/* ----- TRANSITIONS & ANIMATIONS ----- */
.zl-top-bar a {
    transition: text-decoration 0.2s;
}
.zl-top-bar a:hover {
    text-decoration: underline;
}
.zl-nav-link {
    transition: color 0.3s ease;
}
.zl-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #f44a25, #df340f);
    transition: width 0.3s ease;
}
.zl-nav-link:hover {
    color: #f44a25;
}
.zl-nav-link:hover::after {
    width: 100%;
}

/* ----- NAV ITEMS ----- */
.zl-nav-item {
    position: relative;
}
.zl-nav-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s;
}
.zl-nav-item.active .zl-nav-icon {
    transform: rotate(180deg);
}

/* ----- DROPDOWN MENUS ----- */
.zl-dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.zl-nav-item.active .zl-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.zl-mega-menu {
    width: 100%;
    max-width: 72rem;
}
.zl-simple-dropdown {
    width: 16rem;
    left: 0;
    transform: none;
}
.zl-dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.zl-dropdown-item {
    color: #4b5563;
    padding: 0.375rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    display: block;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 400;
}
.zl-dropdown-item:hover {
    color: #f44a25;
    background: #f3f4f6;
    padding-left: 0.75rem;
    text-decoration: none;
}

/* ----- TWO COLUMN COURSES DROPDOWN ----- */
.zl-two-column-courses {
    max-width: 950px;
    min-width: 850px;
    padding: 0;
    border-radius: 0.75rem;
    overflow: hidden;
}
.zl-two-column-container {
    display: flex;
    min-height: 450px;
    max-height: 550px;
}

/* Left Sidebar */
.zl-categories-sidebar {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    overflow-y: auto;
}
.zl-sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.05em;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}
.zl-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.zl-category-list li {
    margin: 0;
}
.zl-category-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    font-size: 0.9375rem;
    color: #374151;
    transition: all 0.2s;
}
.zl-category-btn:hover {
    background: #ffffff;
    color: #f44a25;
}
.zl-category-btn.active {
    background: #ffffff;
    border-left-color: #f44a25;
    color: #f44a25;
    font-weight: 600;
}
.zl-category-btn svg {
    width: 1rem;
    height: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.zl-category-btn.active svg {
    opacity: 1;
}

/* Right Content */
.zl-courses-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: white;
}
.zl-course-category {
    display: none;
}
.zl-course-category.active {
    display: block;
}
.zl-content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}
.zl-content-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Course Cards Grid */
.zl-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.zl-course-card {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.zl-course-card:hover {
    border-color: #f44a25;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background: #f44a25;
}
.zl-course-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.zl-course-card p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
}
.zl-course-card:hover h4,
.zl-course-card:hover p {
    color: #ffffff;
}
.zl-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f44a25;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}
.zl-view-all-btn:hover {
    gap: 0.75rem;
    text-decoration: none;
    color: #f44a25;
}

/* Scrollbar Styling */
.zl-categories-sidebar::-webkit-scrollbar,
.zl-courses-content::-webkit-scrollbar {
    width: 6px;
}
.zl-categories-sidebar::-webkit-scrollbar-track,
.zl-courses-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.zl-categories-sidebar::-webkit-scrollbar-thumb,
.zl-courses-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}
.zl-categories-sidebar::-webkit-scrollbar-thumb:hover,
.zl-courses-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ----- SEARCH ----- */
.zl-search-wrapper {
    position: relative;
}
.zl-search-input {
    width: 16rem;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    transition: border-color 0.3s;
}
.zl-search-input:focus {
    border-color: #f44a25;
}
.zl-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 0.625rem;
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    pointer-events: none;
}
#suggestions,
#mobileSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    z-index: 1000;
    display: none;
}
#suggestions.active,
#mobileSuggestions.active {
    display: block;
}
.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    color: #ff5722;
    border-radius: 4px;
    background: #fff;
    box-shadow: inset 0 0 20px #fff;
    margin-bottom: 2px;
    display: inline;
}
.suggestion-item:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}
.suggestion-link {
    text-decoration: none;
    color: inherit;
}

/* ----- BUTTONS ----- */
.zl-btn-primary {
    background: #374151;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.zl-btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}
.zl-btn-outline {
    border: 1px solid #f44a25;
    color: #f44a25;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: background 0.3s;
}
.zl-btn-outline:hover {
    background: #eff6ff;
    color: #f44a25;
    text-decoration: none;
}

/* ----- HEADER WRAPPER ----- */
.zl-header-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    z-index: 9999;
}
.zl-top-bar {
    background: #0c1a1e;
    color: white;
    padding: 0.5rem 0;
}
.zl-top-bar-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}
.zl-top-bar-left,
.zl-top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.zl-top-bar a {
    color: white;
    text-decoration: none;
}
.zl-main-nav {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 9998;
}
.zl-main-nav-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}
.zl-logo {
    flex-shrink: 0;
}
.zl-logo img {
    height: 3rem;
    width: auto;
}
.zl-desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}
.zl-nav-link {
    position: relative;
    padding: 0.5rem 0;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.zl-desktop-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}
.zl-mobile-toggle {
    display: block;
    color: #374151;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.zl-mobile-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}
.zl-mobile-toggle .zl-icon-close {
    display: none;
}

/* ----- MOBILE MENU ----- */
.zl-mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #e5e7eb;
}
.zl-mobile-menu.active {
    display: block;
}
.zl-mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.zl-mobile-search {
    position: relative;
    margin-bottom: 1rem;
}
.zl-mobile-search input {
    width: 100%;
}
.zl-mobile-nav-link {
    padding: 0.5rem 0;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    display: block;
}
.zl-mobile-nav-link:hover {
    color: #f44a25;
    text-decoration: none;
}
.zl-mobile-dropdown {
    border-bottom: 1px solid #f3f4f6;
}
.zl-mobile-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}
.zl-mobile-dropdown-toggle svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s;
}
.zl-mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0 0 1rem;
}
.zl-mobile-dropdown-content.active {
    max-height: 1000px;
    padding: 0.5rem 0 1rem 1rem;
}
.zl-mobile-dropdown.active .zl-mobile-dropdown-toggle svg {
    transform: rotate(180deg);
}
.zl-mobile-category-section {
    margin-bottom: 1rem;
}
.zl-mobile-main-category {
    font-weight: 600;
    color: #1f2937;
    display: block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    text-decoration: none;
}
.zl-mobile-category-link {
    display: block;
    padding: 0.25rem 0 0.25rem 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
}
.zl-mobile-category-link:hover,
.zl-mobile-main-category:hover {
    color: #f44a25;
    text-decoration: none;
}
.zl-mobile-cert-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #6b7280;
    text-decoration: none;
}
.zl-mobile-cert-link:hover {
    color: #f44a25;
    text-decoration: none;
}
.zl-mobile-view-all {
    margin-top: 0.5rem;
}
.zl-mobile-actions {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 767px) {
    .zl-top-bar-left span {
        font-size: 0.75rem;
    }
    .zl-top-bar-right {
        gap: 0.5rem;
    }
    .hide {
        display: none;
    }
}

@media (max-width: 1280px) {
    .zl-two-column-courses {
        min-width: 750px;
        max-width: 800px;
    }
    .zl-categories-sidebar {
        width: 250px;
    }
}

@media (max-width: 1280px) {
    .zl-courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .zl-two-column-courses {
        min-width: 700px;
        max-width: 750px;
    }
    .zl-two-column-container {
        min-height: 400px;
        max-height: 500px;
    }
}

@media (min-width: 1024px) {
    .zl-desktop-nav {
        display: flex;
    }
    .zl-desktop-actions {
        display: flex;
    }
    .zl-mobile-toggle {
        display: none;
    }
}