.search-filter-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-filter-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #f97316;
}

.pagination-custom .page-link {
    color: #64748b;
    border-color: #e2e8f0;
    padding: 0.5rem 1rem;
    margin: 0 2px;
    border-radius: 8px;
}

.pagination-custom .page-link:hover {
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    border-color: #f97316;
}

.pagination-custom .page-item.active .page-link {
    background: #f97316;
    border-color: #f97316;
    color: white !important;
}

.pagination-custom .page-item.disabled .page-link {
    color: #cbd5e1;
}

/* List View Styles */
.course-list-view {
    display: none;
}

.course-list-view.active {
    display: block;
}

.course-grid-view.active {
    display: flex;
}

.course-list-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #f97316;
}

.course-list-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.course-list-image {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.course-list-info {
    flex-grow: 1;
}

.course-list-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.view-toggle.active {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    border-color: #f97316 !important;
    color: white !important;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    height: 100%;
}

.skeleton-image {
    width: 100%;
    height: 140px;
    margin-bottom: 0.5rem;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 0.4rem;
}

.skeleton-text.title {
    height: 18px;
    width: 80%;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-button {
    height: 28px;
    width: 80px;
    border-radius: 14px;
}

/* Text Truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 36px;
}

/* Don't force 100% width on select2 - use element width */

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Course Detail Page Styles */
.course-detail-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.course-price-display {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enroll-button {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.enroll-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}

.course-feature-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.course-feature-item:last-child {
    border-bottom: none;
}

.course-feature-item:hover {
    padding-left: 0.5rem;
    background: rgba(34, 197, 94, 0.05);
    margin: 0 -0.5rem;
    padding-right: 0.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #94a3b8;
}

.course-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.course-image-container img {
    transition: transform 0.3s ease;
}

.course-image-container:hover img {
    transform: scale(1.02);
}

.course-description-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
}

.course-description-content h1,
.course-description-content h2,
.course-description-content h3,
.course-description-content h4,
.course-description-content h5,
.course-description-content h6 {
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.course-description-content p {
    margin-bottom: 1rem;
}

.course-description-content ul,
.course-description-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.course-description-content li {
    margin-bottom: 0.5rem;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.loading-spinner {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border: 3px solid #f1f5f9;
    border-radius: 50%;
    border-top-color: #f97316;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Course Detail Page Styles */
.course-video-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.course-video-container img {
    transition: transform 0.3s ease;
}

.play-button-overlay {
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-button-overlay:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4);
}

.course-stats-card {
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.course-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tab-navigation {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0;
}

.tab-button-custom {
    border-radius: 12px 12px 0 0;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.tab-button-custom:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.tab-button-custom.active {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: white !important;
    border: none;
}

.price-display-original {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.price-display-current {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.course-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    transition: all 0.3s ease;
}

.course-feature-item:hover .course-feature-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
    transform: scale(1.05);
}

.share-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-button:hover {
    background: #f8fafc;
    border-color: #f97316;
    transform: translateY(-2px);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.25);
}

.accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-button {
    border-radius: 12px !important;
    font-weight: 500;
}

.what-you-learn-item {
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.what-you-learn-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructor-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.instructor-stat:hover {
    background: #e2e8f0;
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
