/* ==========================================================================
   ARTSUBS 2026 - PROGRAM ARCHIVE & TAXONOMY STYLES
   ========================================================================== */

:root {
    --site-header-height: 135px;
    --day-nav-height: 54px;
}

@media (max-width: 900px) {
    :root {
        --site-header-height: 98px;
        --day-nav-height: 50px;
    }
}

/* --------------------------------------------------------------------------
   1. Page Header & Program Type Filter Bar
   -------------------------------------------------------------------------- */
.program-page-header {
    margin-bottom: 32px;
}

.program-header-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 8px;
}

.program-header-top .display-lg {
    margin: 0;
    line-height: 1.1;
}

.program-page-desc {
    max-width: 760px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(26, 26, 26, 0.75);
    margin-bottom: 20px;
}

/* Banner Styling */
.program-archive-banner-wrapper {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 28px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid rgba(26, 26, 26, 0.1);
}

.program-archive-banner-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .program-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .program-archive-banner-img {
        max-height: 200px;
    }
}

/* Category Filter Bar */
.program-type-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    border-bottom: none;
    margin-bottom: 24px;
}

.program-type-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary, #111111);
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.2);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.program-type-tab:hover {
    border-color: var(--primary, #cc3332);
    color: var(--primary, #cc3332);
}

.program-type-tab.is-active {
    background: var(--secondary, #111111);
    color: #ffffff;
    border-color: var(--secondary, #111111);
}

/* --------------------------------------------------------------------------
   2. Sticky Day / Date Navigation Bar (Placed Below Fixed Site Header)
   -------------------------------------------------------------------------- */
.program-day-nav {
    position: sticky;
    top: var(--site-header-height, 135px);
    z-index: 95;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    border-bottom: 1px solid rgba(26, 26, 26, 0.12);
    padding: 12px 0;
    margin-bottom: 40px;
    box-shadow: none !important;
}

.program-day-nav.is-stuck {
    box-shadow: none !important;
}

.program-day-nav-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.program-day-nav-inner::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.program-day-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(26, 26, 26, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
}

.program-day-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.program-day-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--secondary, #111111);
    background: rgba(26, 26, 26, 0.04);
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.program-day-btn:hover {
    background: rgba(26, 26, 26, 0.08);
    color: var(--primary, #cc3332);
}

.program-day-btn.is-active {
    background: var(--secondary, #111111);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. Schedule Grouping Layout (2-Column)
   -------------------------------------------------------------------------- */
.program-schedule-group {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 72px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    scroll-margin-top: calc(var(--site-header-height, 135px) + var(--day-nav-height, 54px) + 20px);
}

.program-schedule-group:last-child {
    border-bottom: none;
    margin-bottom: 40px;
    padding-bottom: 0;
}

/* Left Column: Date & Category info */
.program-group-date {
    position: sticky;
    top: calc(var(--site-header-height, 135px) + var(--day-nav-height, 54px) + 24px);
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.program-date-title {
    font-size: var(--font-size, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking, 0.05em);
    line-height: var(--leading-body, 1.25);
    color: var(--secondary, #111111);
    margin: 0 0 6px 0;
}

.program-group-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary, #111111);
    line-height: 1.5;
}

.program-group-category a {
    color: var(--secondary, #111111);
    text-decoration: underline !important;
    text-underline-offset: 3px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.program-group-category a:hover {
    color: var(--primary, #cc3332);
    opacity: 0.8;
}

/* Right Column: Events List */
.program-group-events {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* --------------------------------------------------------------------------
   4. Event Layout (Flat, Borderless Editorial Layout)
   -------------------------------------------------------------------------- */
.program-event-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.program-event-card:hover {
    border: none !important;
    box-shadow: none !important;
}

/* Meta Badge Row (Time & Location) */
.program-card-top-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.program-badge-time,
.program-badge-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 4px;
}

.program-badge-time {
    background: rgba(26, 26, 26, 0.06);
    color: var(--secondary, #111111);
}

.program-badge-location {
    background: rgba(204, 51, 50, 0.08);
    color: var(--primary, #cc3332);
}

.program-badge-time svg,
.program-badge-location svg {
    flex-shrink: 0;
}

/* Card Header & Title */
.program-card-header {
    margin-bottom: 14px;
}

.program-card-title {
    font-size: var(--font-size, 1rem);
    font-weight: 700;
    line-height: var(--leading-body, 1.25);
    margin: 0;
    letter-spacing: normal;
}

.program-card-title a {
    color: var(--secondary, #111111);
    text-decoration: none;
    transition: color 0.2s ease;
}

.program-card-title a:hover {
    color: var(--primary, #cc3332);
}

/* Speakers & Moderator */
.program-card-people {
    background: transparent;
    border-left: none;
    padding: 0;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.program-people-row {
    font-size: 13px;
    line-height: 1.45;
}

.program-people-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
    color: rgba(26, 26, 26, 0.6);
    margin-right: 6px;
}

.program-people-val {
    font-weight: 600;
    color: var(--secondary, #111111);
}

/* Featured Image */
.program-card-thumb {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.program-card-thumb a {
    display: block;
    width: 100%;
}

.program-card-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 380px;
    transition: transform 0.4s ease;
}

.program-card-thumb:hover img {
    transform: scale(1.015);
}

/* Description / Summary */
.program-card-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(26, 26, 26, 0.8);
    margin-bottom: 24px;
}

.program-card-description p {
    margin: 0;
}

/* Bottom Actions Bar */
.program-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 10px;
    border-top: none;
}

.program-link-detail {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondary, #111111);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.program-link-detail:hover {
    color: var(--primary, #cc3332);
}

.program-buttons-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.program-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    background: var(--secondary, #111111);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.program-btn-action:hover {
    background: var(--primary, #cc3332);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Expired Action Button State */
.program-btn-action.is-expired,
.artsubs-btn.archive-btn-download.is-expired {
    background: #eaeaea !important;
    color: #888888 !important;
    border: 1px solid #d4d4d4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Event Concluded / Ended Status Badge */
.program-badge-status.is-concluded {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #f1f1f1;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.program-meta-row-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-event-card.is-expired-event .archive-splide-img {
    filter: grayscale(25%);
    opacity: 0.92;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.program-event-card.is-expired-event:hover .archive-splide-img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Empty State */
.archive-empty {
    padding: 60px 0;
    text-align: center;
    color: rgba(26, 26, 26, 0.6);
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   5. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .program-schedule-group {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 56px;
        padding-bottom: 40px;
        scroll-margin-top: calc(var(--site-header-height, 98px) + var(--day-nav-height, 50px) + 16px);
    }

    .program-group-date {
        position: static;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .program-date-title {
        font-size: var(--font-size, 1rem);
    }

    .program-day-nav {
        top: var(--site-header-height, 98px);
    }

    .program-event-card {
        padding: 0 !important;
        border: none !important;
    }

    .program-card-title {
        font-size: var(--font-size, 1rem);
    }
}

@media (max-width: 600px) {
    .program-type-tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    .program-card-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .program-buttons-group {
        width: 100%;
    }

    .program-btn-action {
        width: 100%;
    }
}