
:root {
    --dark-bg: #0A0C15;
    --dark-surface: #111827;
    --dark-surface-light: #1A1F2E;
    --accent-cyan: #06B6D4;
    --accent-purple: #8B5CF6;
    --accent-pink: #EC4899;
    --accent-orange: #F59E0B;
    --gradient-1: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 100%);
    --gradient-2: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    --text-white: #FFFFFF;
    --text-gray: #9CA3AF;
    --text-light: #E5E7EB;
}

body {
    background: var(--dark-bg);
    font-family: 'DM Sans', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-track {
    background: var(--dark-surface);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Breadcrumb Section */
.breadcrumb_area {
    background: linear-gradient(180deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
    position: relative;
    padding: 70px 0 30px 0 !important;
    height: auto !important;
    border-bottom: none;
    z-index: 1;
}

.breadcrumb_area::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
    top: -200px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
}

.breadcam_wrap {
    text-align: center;
    position: relative;
    z-index: 2;
}

.breadcrumb_area .breadcam_wrap h3 {
    font-size: 40px !important;
    font-weight: 800 !important;
    margin-top: 15px;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF 0%, #E5E7EB 40%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2 !important;
    position: relative;
    display: inline-block;
}

.breadcrumb_area .breadcam_wrap h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #06B6D4, #8B5CF6);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.breadcrumb_area .breadcam_wrap p {
    font-size: 16px;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.breadcam_wrap p a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcam_wrap p a:hover {
    color: #06B6D4;
}

/* Courses Area */
.courses_area {
    background: var(--dark-bg);
    position: relative;
    padding: 20px 0;
    z-index: 1;
}

.courses_area::before {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.03), transparent 70%);
    top: 10%;
    left: -200px;
    z-index: -1;
    pointer-events: none;
}

/* Sidebar Filters */
/* Sidebar Filters - Fixed Position */
.course_category_chose,
.dark-filter-sidebar {
    position: sticky !important;
    top: 150px !important;
    align-self: flex-start !important;
    z-index: 10;
}





.single_course_categry {
    background: var(--dark-surface);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-bottom: 15px;
}

.single_course_categry:first-child {
    padding-bottom: 20px !important;
}

.single_course_categry:last-child {
    margin-bottom: 0;
    padding-bottom: 15px !important;
}

.filter-list-wrapper {
    max-height: 170px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-list-wrapper::-webkit-scrollbar {
    width: 4px;
}

.filter-list-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.filter-list-wrapper::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
}

.single_course_categry:first-child {
    padding-bottom: 30px !important;
}

.single_course_categry:last-child {
    margin-bottom: 0;
    padding-bottom: 20px !important;
}

.single_course_categry h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

#search-input::-webkit-input-placeholder,
#mobile-search-input::-webkit-input-placeholder {
    color: white !important;
    opacity: 1 !important;
}

/* Filter Items */
.filter-item {
    margin-bottom: 12px;
}

.filter-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-item label:hover {
    color: var(--accent-cyan);
}

.filter-item input[type="checkbox"],
.filter-item input[type="radio"],
.rating-filter input[type="radio"],
.filter-checkbox-mobile,
.filter-radio-mobile {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    outline: none;
    background: linear-gradient(var(--dark-surface), var(--dark-surface)) padding-box,
        var(--gradient-1) border-box;
    flex-shrink: 0;
}

.filter-item input[type="checkbox"]:checked::after,
.filter-item input[type="radio"]:checked::after,
.rating-filter input[type="radio"]:checked::after,
.filter-checkbox-mobile:checked::after,
.filter-radio-mobile:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--gradient-1);
    border-radius: 50%;
}

.filter-item .count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-gray);
}

/* Price Range */
.price-range {
    margin-top: 15px;
}

.price-range .price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-range .price-inputs input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--text-white);
    font-size: 14px;
}

.price-range .price-inputs input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* Rating Filter */
.rating-filter {
    margin-bottom: 10px;
}

.rating-filter label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 14px;
    transition: all 0.3s ease;
}

.rating-filter label:hover {
    color: var(--accent-cyan);
}

.rating-filter .stars i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.rating-filter .stars {
    font-size: 14px;
    display: flex;
    gap: 2px;
}

/* Reset Button */
.btn-reset-filters {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 30px;
    padding: 10px;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-reset-filters:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.course-card {
    position: relative;
    background: var(--dark-surface);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, #06B6D4, #8B5CF6, #EC4899);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.course-card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.course-card:hover::after {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: transparent !important;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5) !important;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1f2e, #111827);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    width: max-content;
    display: inline-block;
    margin-left: 20px;
    background: var(--accent-cyan);
    padding: 6px 18px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    color: white;
    z-index: 2;
}


.course-content {
    padding: 20px;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 45px;
}

.course-meta-rating {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.rating-box i,
.students-box i {
    margin-right: 5px;
}

.course-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.course-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
    opacity: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: none !important;
}

.course-price .current-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.course-price .old-price {
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 8px;
}

.cart-icon {
    position: relative;
    z-index: 2;
    color: var(--accent-cyan);
    font-size: 20px;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

/* Top Bar with Sorting */
.course-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--dark-surface);
    border-radius: 24px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.course-result-count {
    color: var(--text-gray);
    font-size: 14px;
}

.course-sort {
    display: flex;
    align-items: center;
    gap: 15px;
}

.course-sort label {
    color: var(--text-gray);
    font-size: 14px;
}

.course-sort select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 8px 15px;
    color: var(--text-white);
    font-size: 14px;
    cursor: pointer;
}

.course-sort select:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* Pagination Styles - Dark Theme */
.pagination-area {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.pagination,
.paginations {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--dark-surface);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.pagination li a:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.pagination li.active span {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Filter Button */
.filter-toggle-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 999;
    background: var(--gradient-1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-toggle-btn:hover {
    transform: scale(1.05);
}

/* Mobile Sidebar Overlay */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
}

.filter-sidebar-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: var(--dark-surface);
    z-index: 1001;
    padding: 30px;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(6, 182, 212, 0.2);
}

.filter-sidebar-mobile.active {
    right: 0;
}

.filter-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-close:hover {
    background: var(--accent-cyan);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    background: radial-gradient(circle at top center, rgba(6, 182, 212, 0.05) 0%, var(--dark-surface) 100%);
    border-radius: 24px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.empty-state-content {
    position: relative;
    z-index: 1;
}

.empty-state i {
    font-size: 72px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: inline-block;
    animation: floatEmpty 3s ease-in-out infinite;
}

@keyframes floatEmpty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-state h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.empty-state p {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-btn {
    background: var(--gradient-1);
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.empty-state-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.5);
    color: white;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 50px;
}

.loading-spinner i {
    font-size: 40px;
    color: var(--accent-cyan);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .breadcam_wrap h3 {
        font-size: 36px;
    }

    .filter-toggle-btn {
        display: flex;
    }

    .course_category_chose {
        display: none;
    }
}

@media (max-width: 768px) {
    .breadcrumb_area {
        padding: 30px 0 !important;
        height: auto !important;
    }

    .breadcrumb_area .breadcam_wrap h3 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .courses_area {
        padding: 15px 0;
    }

    .course-top-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .empty-state {
        padding: 40px;
    }

    .pagination li a,
    .pagination li span {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 12px;
    }
}

/* Custom Premium Dropdown Styling */
.custom-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
}

.custom-dropdown-wrapper label {
    color: #9CA3AF;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.custom-select-trigger {
    background: rgba(17, 24, 39, 0.6);
    border: 1.5px solid rgba(6, 182, 212, 0.35);
    border-radius: 40px;
    padding: 10px 24px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    font-weight: 500;
}

.custom-select-trigger:hover,
.custom-dropdown-wrapper.open .custom-select-trigger {
    border-color: #06B6D4;
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25), inset 0 0 10px rgba(6, 182, 212, 0.1);
}

.custom-select-trigger i {
    color: #06B6D4;
    font-size: 13px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-dropdown-wrapper.open .custom-select-trigger i {
    transform: rotate(180deg);
}

.custom-options-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 100%;
    min-width: 180px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 18px;
    padding: 8px;
    margin: 0;
    list-style: none;
    z-index: 999;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
}

.custom-dropdown-wrapper.open .custom-options-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.custom-option {
    padding: 12px 16px;
    border-radius: 12px;
    color: #E5E7EB;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.custom-option:last-child {
    margin-bottom: 0;
}

.custom-option:hover {
    background: rgba(6, 182, 212, 0.12);
    color: #06B6D4;
    transform: translateX(5px);
}

.custom-option.selected {
    background: linear-gradient(135deg, #06B6D4, #8B5CF6);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}