.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Widget 1 — Course Schedule Table ── */
.csm-schedule-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px; color: #333; margin: 20px 0;
    width: 100%; box-sizing: border-box;
    border: 2px solid #1a3a6b;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

/* ── Filters — match Widget 2 header style ── */
.csm-filters {
    display: flex; flex-wrap: wrap; gap: 10px;
    align-items: flex-end;
    padding: 12px 16px;
    background: #e8edf5;
    border-bottom: 2px solid #1a3a6b;
    margin-bottom: 0;
}
.csm-filter-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.csm-filter-group label { font-size: 12px; color: #1a3a6b; font-weight: 600; }
.csm-filter-group select {
    padding: 8px 10px; border: 1px solid #1a3a6b; border-radius: 6px;
    font-size: 14px; background: #fff; color: #333;
    cursor: pointer; width: 100%; box-sizing: border-box;
}
.csm-filter-group select:focus {
    outline: none; border-color: #1a3a6b;
    box-shadow: 0 0 0 2px rgba(26,58,107,0.15);
}
.csm-filter-reset { flex: 0 0 auto; justify-content: flex-end; }
.csm-reset-btn {
    padding: 8px 16px; background: transparent;
    border: 1px solid #1a3a6b; border-radius: 6px;
    color: #1a3a6b; font-size: 14px; cursor: pointer;
    white-space: nowrap; height: 38px;
}
.csm-reset-btn:hover { background: #1a3a6b; color: #fff; }

/* ── Desktop Table ── */
.csm-table-wrap { overflow-x: auto; border: none; border-radius: 0; }
.csm-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 580px; }
.csm-table thead th {
    background: #f5f7fb; padding: 9px 12px;
    text-align: left; font-weight: 600; font-size: 13px; color: #333;
    border-bottom: 2px solid #1a3a6b; white-space: nowrap;
}
.csm-table tbody tr { border-bottom: 1px solid #c8d3e8; transition: background 0.15s; }
.csm-table tbody tr:last-child { border-bottom: none; }
.csm-table tbody tr:nth-child(even) { background: #f2f5fa; }
.csm-table tbody tr:nth-child(odd)  { background: #fff; }
.csm-table tbody tr:hover { background: #dce4f0; }
.csm-table td { padding: 8px 12px; vertical-align: middle; font-size: 13px; color: #333; }
.csm-dot { display: none; }
.csm-course-link { color: #1a5276; text-decoration: none; font-size: 13px; }
.csm-course-link:hover { text-decoration: underline; }
.csm-old-price { color: #767676; text-decoration: line-through; font-size: 11px; display: block; }
.csm-price { font-weight: 500; color: #333; font-size: 13px; }
.csm-register-btn {
    display: inline-block; background: #c8960a; color: #3d2700;
    text-decoration: none; padding: 6px 12px; border-radius: 5px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
    white-space: nowrap; transition: background 0.15s;
}
.csm-register-btn:hover { background: #a87a08; color: #3d2700; }
.csm-avail-guaranteed { color: #1a7a5e; font-size: 11px; font-weight: 500; }
.csm-avail-note { color: #7a5200; font-size: 11px; }
.csm-loading { text-align: center; padding: 30px; color: #595959; font-size: 14px; }

/* ── Mobile — hidden by default ── */
.csm-mobile-cards { display: none; }

/* Mobile filter bar */
.csm-mob-filters {
    background: #e8edf5;
    border-bottom: 2px solid #1a3a6b;
    padding: 10px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.csm-mob-filter-row { display: flex; flex-direction: column; gap: 3px; }
.csm-mob-filter-label { font-size: 11px; color: #1a3a6b; font-weight: 600; }
.csm-mob-filter {
    width: 100%; padding: 7px 10px;
    border: 1px solid #1a3a6b; border-radius: 6px;
    font-size: 13px; background: #fff; color: #333;
    cursor: pointer; box-sizing: border-box; font-family: inherit;
}
.csm-mob-reset-row { margin-top: 2px; }
.csm-mob-reset-btn {
    width: 100%; padding: 7px 16px;
    background: transparent; border: 1px solid #1a3a6b;
    border-radius: 6px; color: #1a3a6b; font-size: 13px;
    cursor: pointer; font-family: inherit;
}
.csm-mob-reset-btn:hover { background: #1a3a6b; color: #fff; }

/* Scrollable card list */
.csm-mobile-scroll {
    height: 560px;
    overflow-y: auto; overflow-x: hidden;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #8a9cbd #f5f5f5;
}
.csm-mobile-scroll::-webkit-scrollbar { width: 6px; }
.csm-mobile-scroll::-webkit-scrollbar-track { background: #f5f5f5; }
.csm-mobile-scroll::-webkit-scrollbar-thumb { background: #8a9cbd; border-radius: 3px; }

/* ── Widget 1 Mobile Cards (csm1m-*) — self-contained, no dependency on card.css ── */
.csm1m-card {
    background: #fff;
    border: none;
    border-bottom: 1px solid #c8d3e8;
    padding: 8px 20px 8px 20px;
    box-sizing: border-box;
    width: 100%;
}
.csm1m-card:last-child { border-bottom: none; }
.csm1m-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.csm1m-card-left { flex: 1; min-width: 0; }
.csm1m-type  { font-size: 13px; color: #1a5276; font-weight: 700; margin: 0 !important; padding: 0; line-height: 1.3; }
.csm1m-dates { font-size: 13px; font-weight: 600; color: #1a1a1a; margin: 0 !important; padding: 0; line-height: 1.3; }
.csm1m-time  { font-size: 11px; color: #555; margin: 0 0 3px !important; padding: 0; line-height: 1.3; }
.csm1m-badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.csm1m-badge-gold {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; padding: 1px 7px; border-radius: 20px;
    border: 1px solid #c8960a; background: #fef3cd; color: #7a5200;
}
.csm1m-badge-blue {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; padding: 1px 7px; border-radius: 20px;
    border: 1px solid #b5d4f4; background: #e6f1fb; color: #0c447c;
}
.csm1m-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}
.csm1m-old-price { font-size: 10px; color: #767676; text-decoration: line-through; display: block; line-height: 1; }
.csm1m-price     { font-size: 15px; font-weight: 700; color: #1a1a1a; display: block; line-height: 1.1; }
.csm1m-register-btn {
    display: inline-block;
    background: #c8960a; color: #3d2700;
    text-decoration: none;
    padding: 4px 11px;
    border-radius: 5px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background 0.15s;
    font-family: inherit;
}
.csm1m-register-btn:hover { background: #a87a08; color: #3d2700; }

/* ── Responsive ── */
@media (max-width: 700px) {
    .csm-filters { display: none; }
    .csm-table-wrap { display: none; }
    .csm-mobile-cards { display: block; }
}
@media (max-width: 420px) {
    .csm-mobile-scroll { height: 480px; }
    .csm1m-dates { font-size: 12px; }
    .csm1m-price { font-size: 14px; }
}
