/* --- Course Listing Page Styles --- */

/* Modern Breadcrumb / Hero for Listing */
.vb-listing-hero {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.vb-listing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 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");
    opacity: 1;
}

.vb-page-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 2;
    color: #fff;
}

.vb-breadcrumb-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #cbd5e1;
    position: relative;
    z-index: 2;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vb-breadcrumb-list li a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}

.vb-breadcrumb-list li a:hover {
    color: #fff;
    text-decoration: underline;
}

.vb-breadcrumb-list li.active {
    color: var(--vb-badge-yellow);
}

.vb-breadcrumb-divider {
    font-size: 12px;
    opacity: 0.5;
}

/* Filter / Search Bar */
.vb-filter-bar {
    background: #fff;
    border-radius: var(--vb-radius-md);
    padding: 20px 30px;
    border: 1px solid var(--vb-border-light);
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--vb-shadow-soft);
}

.vb-filter-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.vb-filter-search input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #f8fafc;
}

.vb-filter-search input:focus {
    border-color: var(--vb-primary-btn);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.vb-filter-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.vb-results-count {
    font-weight: 600;
    color: var(--vb-text-muted);
}

.vb-results-count span {
    color: var(--vb-primary-btn);
}

/* Grid Layout */
.vb-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Course Card */
.vb-course-card {
    background: #fff;
    border-radius: var(--vb-radius-lg);
    overflow: hidden;
    border: 1px solid var(--vb-border-light);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--vb-shadow-card);
}

.vb-course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--vb-shadow-hover);
    border-color: #cbd5e1;
}

.vb-course-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.vb-course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vb-course-card:hover .vb-course-img-wrapper img {
    transform: scale(1.1);
}

.vb-course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--vb-text-main);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vb-course-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vb-course-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.vb-course-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--vb-text-main);
}

.vb-course-rating i {
    color: #fbbf24; /* Star color */
}

.vb-course-reviews {
    color: var(--vb-text-muted);
    font-weight: 500;
    font-size: 12px;
}

.vb-course-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--vb-text-main);
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vb-course-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.vb-course-title a:hover {
    color: var(--vb-primary-btn);
}

.vb-course-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: var(--vb-text-muted);
    font-weight: 500;
}

.vb-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vb-stat-item i {
    color: #94a3b8;
}

.vb-course-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vb-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--vb-primary-btn);
}

.vb-enroll-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--vb-text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.vb-enroll-link:hover {
    color: var(--vb-primary-btn);
}

.vb-enroll-link i {
    font-size: 12px;
    transition: transform 0.2s;
}

.vb-enroll-link:hover i {
    transform: translateX(3px);
}

/* Pagination */
.vb-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.vb-page-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--vb-text-main);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.vb-page-link:hover,
.vb-page-link.active {
    background: var(--vb-primary-btn);
    color: #fff;
    border-color: var(--vb-primary-btn);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .vb-course-grid {
        grid-template-columns: 1fr;
    }

    .vb-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .vb-filter-search {
        max-width: 100%;
    }
}
