/* --- Page Banner (Reusable) --- */
.page-banner.classes-banner {
    background: url('https://images.unsplash.com/photo-1574680096145-d05b474e2155?q=80&w=2069&auto=format&fit=crop') no-repeat center center/cover;
}

/* --- Classes Overview --- */
.classes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.class-item {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.class-item:hover {
    transform: translateY(-5px);
}

.class-media {
    height: 250px;
    width: 100%;
}

.class-media img,
.class-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.class-info {
    padding: 25px;
}

.class-info h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.class-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* --- Schedule Timetable --- */
.schedule-section {
    background-color: var(--bg-dark);
}

/* Desktop Table */
.desktop-schedule {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
}

.desktop-schedule th,
.desktop-schedule td {
    padding: 20px;
    text-align: center;
    border: 1px solid #333;
}

.desktop-schedule th {
    background-color: var(--accent-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.desktop-schedule td {
    background-color: var(--bg-light);
    transition: background-color 0.3s;
}

.desktop-schedule td:hover {
    background-color: #2a2a2a;
}

.td-class-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.td-trainer {
    font-size: 0.85rem;
    color: var(--accent-secondary);
}

.desktop-schedule td.empty {
    background-color: transparent;
    border: 1px solid #222;
}

/* Mobile Accordion */
.mobile-schedule {
    display: none;
    margin-top: 30px;
}

.accordion-item {
    margin-bottom: 10px;
    background-color: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    padding: 15px 20px;
    background-color: #222;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-primary);
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #333;
}

.accordion-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-body.open {
    max-height: 500px;
    /* arbitrary large value */
}

.schedule-row {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-row:last-child {
    border-bottom: none;
}

.s-time {
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 80px;
}

.s-details {
    flex: 1;
    text-align: right;
}

.s-name {
    font-weight: 600;
    color: #fff;
}

.s-trainer {
    font-size: 0.8rem;
    color: var(--accent-secondary);
}

@media (max-width: 900px) {
    .desktop-schedule {
        display: none;
    }

    .mobile-schedule {
        display: block;
    }
}