/* =============================================================
   pxl_course_schedule — Course Schedule Display
   ============================================================= */

.bha-schedule-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Filters ── */
.bha-schedule-filters {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bha-schedule-filter-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    display: block;
    margin-bottom: 10px;
}

.bha-schedule-month-tabs,
.bha-schedule-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bha-sched-tab {
    padding: 7px 14px;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}

.bha-sched-tab:hover {
    border-color: #486ee2;
    color: #486ee2;
}

.bha-sched-tab--active {
    background: #486ee2;
    border-color: #486ee2;
    color: #fff !important;
}

.bha-sched-cat {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.5;
}

.bha-sched-cat:hover {
    border-color: var(--cat-color, #486ee2);
    color: var(--cat-color, #486ee2);
}

.bha-sched-cat--active {
    background: var(--cat-color, #486ee2);
    border-color: var(--cat-color, #486ee2);
    color: #fff !important;
}

/* ── Count ── */
.bha-schedule-count {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px !important;
}

.bha-schedule-count strong {
    color: #1e293b;
}

.bha-schedule-empty {
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
    font-size: 15px;
}

/* ── Grid ── */
.bha-schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* ── Card ── */
.bha-sched-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bha-sched-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.bha-sched-card--request {
    opacity: 0.88;
}

/* Card header strip */
.bha-sched-card__header {
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.bha-sched-card__cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
}

.bha-sched-card__month {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
}

/* Card body */
.bha-sched-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.bha-sched-card__title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.bha-sched-card__meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bha-sched-card__date,
.bha-sched-card__duration,
.bha-sched-card__time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

.bha-sched-card__date {
    font-weight: 600;
    color: #1e293b;
}

.bha-sched-card__date--request {
    color: #7c3aed;
}

.bha-sched-card__date svg,
.bha-sched-card__duration svg,
.bha-sched-card__time svg {
    flex-shrink: 0;
    opacity: 0.5;
}

/* Book button */
.bha-sched-card__btn {
    display: inline-block;
    margin-top: auto;
    padding: 8px 16px;
    background: #1a5276;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 6px;
    text-decoration: none !important;
    text-align: center;
    transition: background 0.15s ease;
    align-self: flex-start;
}

.bha-sched-card__btn:hover {
    background: #154360;
    color: #fff !important;
    text-decoration: none !important;
}

.bha-sched-card--request .bha-sched-card__btn {
    background: #7c3aed;
}

.bha-sched-card--request .bha-sched-card__btn:hover {
    background: #5b21b6;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .bha-schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bha-schedule-grid {
        grid-template-columns: 1fr;
    }
    .bha-schedule-filters {
        padding: 16px;
    }
    .bha-sched-tab {
        font-size: 12px;
        padding: 6px 10px;
    }
}
