/* --- Global Resets & Body --- */
/* GLOBAL */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
}

/* Page title */
h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* FILTER BAR */
.filter-bar {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-select {
    padding: 0.55rem 1rem;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    background: #fff;
    color: #444;
    min-width: 140px;
    font-size: 0.95rem;
}

/* SEARCH */
.search-group input {
    padding: 0.55rem 1rem;
    border: 1px solid #dcdcdc;
    border-radius: 6px 0 0 6px;
}
.search-group button {
    padding: 0.55rem 1.1rem;
    border-radius: 0 6px 6px 0;
    background: #2d6cdf;
    border: none;
    color: #fff;
    font-weight: 600;
}
.search-group button:hover {
    background: #1e54b5;
}

/* GRID */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.class-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e4e4e4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.25s ease;
}
.class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* THUMBNAIL */
.card-image {
    height: 160px;
    background: #eee;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENT */
.card-content {
    padding: 1rem 1rem 0.5rem;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.class-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #222;
}

/* START DATE BADGE */
.class-start-date {
    font-size: 0.8rem;
    color: #555;
    background: #f1f3f5;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* META */
.card-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

/* DESCRIPTION */
.class-card p {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 0.75rem;
}

/* PRICE */
.card-price {
    font-size: 25px;
    font-weight: 700;
    color: #28a745;
}
.card-price .original-price {
    color: #999;
    font-size: 1.05rem;
    text-decoration: line-through;
    margin-right: 4px;
}

/* BUTTON */
.btn-details {
    display: block;
    margin: 0.8rem 1rem 1rem;
    padding: 0.6rem 0;
    background: #2d6cdf;
    color: #fff;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    transition: 0.25s;
    text-decoration: none;
    border: none;
}
.btn-details:hover {
    background: #1e54b5;
}

.no-classes {
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* PAGINATION */
.pagination .page-link {
    padding: 0.45rem 0.95rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin: 0 2px;
    color: #333;
}

.pagination .active .page-link {
    background: #2d6cdf;
    color: #fff;
    border-color: #2d6cdf;
}

.pagination .disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

.pagination-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: all 0.3s ease;
}

.status-badge i {
    font-size: 13px;
}

.status-upcoming {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        gap: 0.8rem;
    }
}