/* ========================================
   Courses Page Styles - Clean & Organized
   ======================================== */

/* CSS Variables for consistency */
:root {
    --courses-primary: var(--primary-color, #2563eb);
    --courses-secondary: var(--secondary-color, #1e40af);
    --courses-accent: #1a73e8;
    --courses-dark: #1f2937;
    --courses-light: #f8f9fa;
    --courses-gray: #6b7280;
    --courses-border: #e5e7eb;
    --courses-success: #4caf50;
    --courses-warning: #ff9800;
    --courses-danger: #dc3545;
}

/* ========================================
   Hero Section
   ======================================== */
.courses-hero {
    background: linear-gradient(135deg, var(--courses-accent) 0%, #0d47a1 50%, #1565c0 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.courses-hero .hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

.courses-hero .hero-title {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.courses-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 35px;
}

/* ========================================
   Search Box (Courses-specific)
   ======================================== */
.courses-hero .search-box {
    max-width: 700px;
    margin: 0 auto 30px;
}

.courses-hero .search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 8px 8px 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.courses-hero .search-input-wrapper i {
    color: #666;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.courses-hero .search-input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    min-width: 0;
}

.courses-hero .search-btn {
    background: linear-gradient(135deg, var(--courses-accent), #0d47a1);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.courses-hero .search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(26,115,232,0.4);
}

/* ========================================
   Quick Filters
   ======================================== */
.quick-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.quick-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

.quick-filter:hover,
.quick-filter.active {
    background: white;
    color: var(--courses-accent);
    transform: translateY(-2px);
}

/* ========================================
   Hero Stats (Courses-specific)
   ======================================== */
.courses-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.courses-hero .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-align: inherit;
}

.courses-hero .stat-icon {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.courses-hero .stat-info {
    text-align: right;
}

.courses-hero .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.courses-hero .stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ========================================
   Courses Section
   ======================================== */
.courses-section {
    padding: 50px 0;
    background: var(--courses-light);
}

/* ========================================
   Filters Sidebar
   ======================================== */
.filters-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.filters-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.reset-filters {
    color: var(--courses-danger);
    font-size: 0.85rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.reset-filters:hover {
    opacity: 0.8;
}

.filter-group {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.filter-option:hover {
    background: #f5f7fa;
}

.filter-option input[type="radio"] {
    accent-color: var(--courses-accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.filter-label {
    flex: 1;
    font-size: 0.9rem;
    min-width: 0;
}

.filter-count {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #666;
    flex-shrink: 0;
}

.filter-select {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    width: 100%;
    font-size: 0.9rem;
}

/* Level & Price Badges */
.level-badge,
.price-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.level-badge.beginner { background: #e3f2fd; color: #1976d2; }
.level-badge.intermediate { background: #fff3e0; color: #f57c00; }
.level-badge.advanced { background: #fce4ec; color: #c2185b; }
.price-badge.free { background: #e8f5e9; color: #388e3c; }
.price-badge.paid { background: #fff3e0; color: #f57c00; }

/* ========================================
   Courses Header
   ======================================== */
.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 12px;
}

.results-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.results-count {
    font-weight: 600;
    color: #333;
}

.search-term {
    color: #666;
    font-size: 0.9rem;
}

/* View Options (Courses-specific) */
.courses-section .view-options {
    display: flex;
    gap: 5px;
}

.courses-section .view-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.courses-section .view-btn:hover,
.courses-section .view-btn.active {
    background: var(--courses-accent);
    color: white;
}

/* ========================================
   Courses Grid
   ======================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.courses-grid.list-view {
    grid-template-columns: 1fr;
}

.courses-grid.list-view .course-card {
    display: flex;
    flex-direction: row;
}

.courses-grid.list-view .card-image {
    width: 240px;
    flex-shrink: 0;
    aspect-ratio: auto;
    max-height: none;
    height: 100%;
}

.courses-grid.list-view .course-card .card-content {
    flex: 1;
}

/* ========================================
   Course Card
   ======================================== */
.course-card-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
    min-width: 0;
}

.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.11);
}

/* Card Image */
.course-card .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    max-height: 158px;
}

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

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

/* Card Badges */
.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 2;
}

.card-badge.free {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.card-badge.discount {
    background: linear-gradient(135deg, #ff5722, #d84315);
    color: white;
}

.card-badge.featured {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: #333;
    left: 10px;
    right: auto;
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.25s ease;
}

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

.preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    color: var(--courses-accent);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.preview-btn:hover {
    transform: scale(1.04);
    color: var(--courses-accent);
}

/* Card Content (Courses-specific) */
.course-card .card-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.level-tag,
.category-tag {
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.level-tag {
    background: #e3f2fd;
    color: #1976d2;
}

.level-tag.intermediate {
    background: #fff3e0;
    color: #f57c00;
}

.level-tag.advanced {
    background: #fce4ec;
    color: #c2185b;
}

.category-tag {
    background: #f5f5f5;
    color: #666;
}

/* Card Title (Courses-specific) */
.course-card .card-title {
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.38;
}

.course-card .card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-card .card-title a:hover {
    color: var(--courses-accent);
}

.card-description {
    color: #666;
    font-size: 0.81rem;
    margin-bottom: 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Instructor */
.card-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.instructor-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.instructor-name {
    font-size: 0.8rem;
    color: #666;
}

/* Card Stats */
.card-stats {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.card-stats .stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.77rem;
    color: #666;
}

.card-stats .stat i {
    color: var(--courses-accent);
}

/* Card Footer */
.course-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 0;
    background: transparent;
    border: none;
}

.card-price .price {
    font-weight: 700;
}

.card-price .price.free {
    color: var(--courses-success);
    font-size: 0.95rem;
}

.card-price .price.current {
    color: var(--courses-accent);
    font-size: 1rem;
}

.card-price .price.old {
    color: #999;
    text-decoration: line-through;
    font-size: 0.8rem;
    margin-right: 6px;
    font-weight: 400;
}

.enroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--courses-accent), #0d47a1);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.25s ease;
}

.enroll-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(26,115,232,0.4);
    color: white;
}

/* ========================================
   Pagination (Courses-specific)
   ======================================== */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.courses-section .modern-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.courses-section .modern-pagination .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #666;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.courses-section .modern-pagination .page-link:hover,
.courses-section .modern-pagination .page-link.active {
    background: var(--courses-accent);
    color: white;
    transform: translateY(-2px);
}

.courses-section .page-dots {
    padding: 0 10px;
    color: #999;
    display: flex;
    align-items: center;
}

/* ========================================
   Empty State (Courses-specific)
   ======================================== */
.courses-section .empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.courses-section .empty-icon {
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: #ccc;
}

.courses-section .empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.courses-section .empty-state p {
    color: #666;
    margin-bottom: 25px;
}

/* ========================================
   Mobile Filter Toggle & Sidebar
   ======================================== */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--courses-accent), #0d47a1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(26,115,232,0.3);
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,115,232,0.4);
}

.mobile-filter-toggle i {
    font-size: 1.1rem;
}

.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.filter-close-btn {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #1f2937;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-close-btn:hover {
    background: #ef4444;
    color: white;
}

/* ========================================
   Responsive Styles - Tablet (992px)
   ======================================== */
@media (max-width: 992px) {
    .courses-hero .hero-title {
        font-size: 2rem;
    }
    
    .courses-hero .hero-stats {
        gap: 30px;
    }
    
    .mobile-filter-toggle {
        display: flex;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        z-index: 1000;
        border-radius: 0;
        overflow-y: auto;
        transition: right 0.3s ease;
        margin-bottom: 0;
    }
    
    .filters-sidebar.active {
        right: 0;
    }
    
    .filter-overlay.active {
        display: block;
    }
    
    .filters-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        padding: 20px;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .filter-close-btn {
        display: flex;
    }
    
    /* Hide view toggle buttons on tablet/mobile and keep a predictable grid */
    .courses-section .view-options {
        display: none !important;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    
    .courses-grid .course-card {
        display: flex;
        flex-direction: column;
    }
    
    .courses-grid .card-image {
        width: 100%;
        flex-shrink: 0;
        aspect-ratio: 16 / 10;
        height: auto;
    }
    
    .courses-grid .course-card .card-content {
        flex: 1;
    }
    
    .quick-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        margin-bottom: 30px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .quick-filters::-webkit-scrollbar {
        display: none;
    }
    
    .quick-filter {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* ========================================
   Responsive Styles - Mobile (768px)
   ======================================== */
@media (max-width: 768px) {
    .courses-hero {
        padding: 40px 0 50px;
    }
    
    .courses-hero .hero-title {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .courses-hero .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .courses-hero .search-box {
        max-width: 100%;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .courses-hero .search-input-wrapper {
        padding: 6px 6px 6px 15px;
    }
    
    .courses-hero .search-input {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .courses-hero .search-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .courses-hero .hero-stats {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .courses-hero .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        min-width: 120px;
        padding: 12px;
        background: rgba(255,255,255,0.1);
        border-radius: 12px;
    }
    
    .courses-hero .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        border-radius: 12px;
    }
    
    .courses-hero .stat-number {
        font-size: 1.2rem;
    }
    
    .courses-hero .stat-label {
        font-size: 0.75rem;
    }
    
    .courses-hero .stat-info {
        text-align: center;
    }
    
    .quick-filters {
        gap: 8px;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .quick-filter {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .courses-section {
        padding: 30px 0;
    }
    
    .courses-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .courses-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
        border-radius: 10px;
    }
    
    .results-info {
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    
    .search-term {
        display: block;
        margin-top: 5px;
    }
    
    /* View options already hidden from 992px media query */
    
    /* On mobile, cards have clean padding and robust shadow */
    .courses-grid .course-card {
        flex-direction: column;
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        border: 1px solid #f1f5f9;
        overflow: hidden;
    }
    
    .courses-grid .card-image {
        width: 100%;
        aspect-ratio: 16/9;
        height: auto;
        max-height: 220px;
        position: relative;
    }

    /* Disable hover overlay on mobile touch */
    .card-overlay {
        display: none !important;
    }

    .card-badge {
        top: 12px;
        right: 12px;
        font-size: 0.76rem;
        padding: 5px 12px;
        border-radius: 20px;
        max-width: 45%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        z-index: 5;
    }

    .card-badge.featured {
        left: 12px;
        right: auto;
    }
    
    .course-card .card-content {
        padding: 18px;
    }
    
    .course-card .card-title {
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.45;
        margin-bottom: 8px;
    }
    
    .card-description {
        font-size: 0.86rem;
        margin-bottom: 12px;
        line-height: 1.5;
        color: #64748b;
    }

    .card-instructor {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .instructor-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
        border: 1.5px solid #e2e8f0;
    }
    
    .instructor-name {
        font-size: 0.88rem;
        font-weight: 600;
        color: #334155;
        unicode-bidi: plaintext;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .card-stats {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 0;
        border-top: 1px solid #f1f5f9;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 14px;
        flex-wrap: nowrap;
    }
    
    .card-stats .stat {
        font-size: 0.82rem;
        color: #64748b;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    .card-stats .stat i {
        color: var(--courses-accent, #2563eb);
        font-size: 0.9rem;
    }
    
    .course-card .card-footer {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: auto;
        padding-top: 10px;
        gap: 12px;
    }
    
    .card-price {
        text-align: right;
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .card-price .price.free {
        font-size: 1.2rem;
        font-weight: 800;
        color: #16a34a;
    }

    .card-price .price.current {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--courses-accent, #2563eb);
    }

    .card-price .price.old {
        font-size: 0.85rem;
        color: #94a3b8;
        text-decoration: line-through;
    }
    
    .enroll-btn {
        width: auto !important;
        padding: 9px 20px !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        background: var(--courses-accent, #2563eb);
        color: #ffffff !important;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    }
    
    .pagination-wrapper {
        margin-top: 30px;
    }
    
    .courses-section .modern-pagination {
        gap: 6px;
    }
    
    .courses-section .modern-pagination .page-link {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .courses-section .empty-state {
        padding: 50px 20px;
    }
    
    .courses-section .empty-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* ========================================
   Responsive Styles - Small Mobile (480px)
   ======================================== */
@media (max-width: 480px) {
    .courses-hero {
        padding: 30px 0 40px;
    }
    
    .courses-hero .hero-title {
        font-size: 1.3rem;
    }
    
    .courses-hero .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .courses-hero .hero-stats {
        gap: 10px;
    }
    
    .courses-hero .stat-item {
        min-width: calc(50% - 10px);
        padding: 10px;
    }
    
    .courses-hero .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .courses-hero .stat-number {
        font-size: 1.1rem;
    }
    
    .courses-hero .stat-label {
        font-size: 0.7rem;
    }
    
    .quick-filter {
        padding: 7px 12px;
        font-size: 0.75rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }
    
    .course-card .card-content {
        padding: 14px;
    }
    
    .card-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
        top: 10px;
        right: 10px;
    }
    
    .card-badge.featured {
        left: 10px;
    }
    
    .level-tag,
    .category-tag {
        padding: 3px 10px;
        font-size: 0.7rem;
    }
    
    .mobile-filter-toggle {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .filters-sidebar {
        width: 280px;
        right: -290px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .courses-hero {
        background: #f5f5f5 !important;
        color: #333 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .mobile-filter-toggle,
    .filter-overlay,
    .card-overlay,
    .preview-btn {
        display: none !important;
    }
}
