/* Program Schedule Premium Redesign Styles - Mobile-First & Responsive Aligned */
.program-schedule-4095b9eb-wrapper {
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}

.program-schedule-4095b9eb-wrapper * {
    box-sizing: border-box;
}

/* SESSION TABS REDESIGN (Scrollable, Clean UI) */
.ts-tabs-container {
    margin-bottom: 24px;
    border-bottom: 2px solid #eef2f6;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ts-tabs-container::-webkit-scrollbar {
    display: none;
}

.ts-tabs {
    display: flex;
    gap: 12px;
    padding-bottom: 0px;
}

.ts-tab {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #134171;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

/* Underline Presets */
.ts-tabs-layout-sleek-underline .ts-tab {
    border-bottom: 4px solid transparent;
}
.ts-tabs-layout-sleek-underline .ts-tab.active {
    color: #57C68B;
    border-bottom-color: #57C68B;
}
.ts-tabs-layout-sleek-underline .ts-tab:hover {
    color: #57C68B;
}

/* Pill Capsule Preset */
.ts-tabs-layout-pill-capsule .ts-tabs-container {
    border-bottom: none;
}
.ts-tabs-layout-pill-capsule .ts-tab {
    border-radius: 99px;
    background-color: #EFFBFA;
    margin-bottom: 10px;
}
.ts-tabs-layout-pill-capsule .ts-tab.active {
    background-color: #134171;
    color: #ffffff;
}

/* Boxed Preset */
.ts-tabs-layout-boxed-tabs .ts-tab {
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background-color: #f8fafc;
}
.ts-tabs-layout-boxed-tabs .ts-tab.active {
    background-color: #ffffff;
    color: #134171;
    border-color: #cbd5e1;
    border-bottom: 2px solid #ffffff;
    z-index: 2;
}

/* Dates styling (Left Aligned Pill/Badge UI) */
.ts-dates-container {
    margin-bottom: 24px;
    text-align: left; /* Left Aligned Container */
}
.ts-session-dates {
    display: none;
    font-size: 13px;
    color: #134171;
    font-weight: 700;
    background: #EFFBFA;
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(19, 65, 113, 0.1);
    margin: 0; /* Left Aligned Margin */
    width: max-content;
    max-width: 90%;
    letter-spacing: 0.3px;
}
.ts-session-dates.active {
    display: inline-block;
}

/* FILTERS ROW - Desktop Layout (Default) */
.ts-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* Keep it in a clean horizontal row on desktop */
    align-items: flex-end; /* Align filter dropdowns nicely */
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #EFFBFA; /* RSC brand background secondary */
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}
.ts-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1; /* Distribute filters equally */
}
.ts-filter-group label {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #134171;
}
.ts-filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background-color: #fff;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23134171' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}
.ts-filter-select:focus {
    border-color: #57C68B;
    box-shadow: 0 0 0 3px rgba(87, 198, 139, 0.15);
}

/* GRID & CARDS (Mobile-First) */
.ts-content {
    display: none;
}
.ts-content.active {
    display: block;
}
.ts-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
}

.ts-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ts-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.ts-card-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.ts-card-header h4 {
    margin: 12px 0 6px 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: #134171;
}
.ts-card-meta {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}
.ts-card-price {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 800;
    color: #57C68B;
}

.ts-card-body {
    padding: 12px 20px 20px 20px;
    flex-grow: 1;
}

/* BADGES */
.ts-badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 6px;
    margin-right: 4px;
    margin-bottom: 6px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ts-badge.ts-level {
    background: #57C68B;
    color: #fff;
}
.ts-badge.ts-type {
    background: #EFFBFA;
    color: #134171;
}
.ts-badge.ts-location {
    background: #f1f5f9;
    color: #475569;
}

.ts-card-description {
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
.ts-card-exceptions {
    font-size: 12px;
    color: #ef4444;
    font-weight: 700;
    margin-top: 12px;
}

.ts-card-footer {
    padding: 16px 20px 20px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.ts-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #134171;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    border: 1px solid transparent;
}
.ts-card-btn:hover {
    background: #57C68B;
}

.ts-load-more-container {
    text-align: center;
    margin-top: 30px;
}
.ts-load-more-btn {
    padding: 12px 28px;
    background: #134171;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}
.ts-load-more-btn:hover {
    background: #57C68B;
}

.ts-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 15px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
}

/* MOBILE RESPONSIVE ONLY - Isolated with max-width */
@media (max-width: 767px) {
    .ts-filters {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 10px; /* Reduced vertical space between filters */
        padding: 12px; /* Tighter padding around the filter area */
        margin-bottom: 20px;
        border-radius: 12px;
    }
    .ts-filter-group {
        gap: 4px; /* Reduced label-to-select space on mobile */
        width: 100%;
    }
    .ts-filter-group label {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    .ts-filter-select {
        padding: 10px 12px; /* Highly compact dropdown inputs on mobile */
        font-size: 13px;
        border-radius: 8px;
        background-position: right 12px center;
    }
}

/* RESPONSIVE DESIGN - Desktop Breakpoints */
@media (min-width: 600px) {
    .ts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}
