/* Schedules — page-specific styles (aw- namespace) */

/* --- Image-backed hero (matches FAQS hero pattern) --- */
.aw-schedules-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(440px, 56vh, 600px);
    overflow: hidden;
    isolation: isolate;
}

.aw-schedules-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: -2;
}

.aw-schedules-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 25, 32, 0.72), rgba(18, 78, 96, 0.42) 48%, rgba(18, 78, 96, 0.08)),
        linear-gradient(180deg, rgba(5, 25, 32, 0.14), rgba(5, 25, 32, 0.3));
    z-index: -1;
}

.aw-schedules-hero__content {
    padding-top: calc(var(--aw-header-height) + clamp(48px, 6.5vw, 77px));
    padding-bottom: clamp(58px, 8vw, 102px);
}

.aw-schedules-hero .aw-eyebrow {
    color: var(--aw-highlight);
}

.aw-schedules-hero .aw-eyebrow::before {
    background: var(--aw-highlight);
}

.aw-schedules-hero h1 {
    max-width: 760px;
    margin: 14px 0 18px;
    color: var(--aw-white);
    font-size: clamp(3rem, 7vw, 6.8rem);
    letter-spacing: 0;
}

.aw-schedules-hero p {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
}

/* --- Empty state --- */
.aw-schedules__empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--aw-muted);
    font-size: 1.05rem;
}

/* --- Day tabs --- */
.aw-schedules__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.aw-schedules__tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 28px;
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius-sm);
    background: var(--aw-white);
    color: var(--aw-body);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    transition:
        background 280ms ease,
        border-color 280ms ease,
        color 280ms ease,
        box-shadow 280ms ease;
}

.aw-schedules__tab.is-active,
.aw-schedules__tab:hover {
    border-color: var(--aw-primary);
    background: var(--aw-primary);
    color: var(--aw-white);
    box-shadow: 0 8px 28px rgba(18, 78, 96, 0.18);
}

.aw-schedules__tab-day {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
}

.aw-schedules__tab.is-active .aw-schedules__tab-day,
.aw-schedules__tab:hover .aw-schedules__tab-day {
    opacity: 1;
}

.aw-schedules__tab-date {
    font-size: 0.98rem;
    font-weight: 700;
}

/* --- Panel visibility --- */
[data-aw-day-panel] {
    display: none;
}

[data-aw-day-panel].is-active {
    display: block;
}

/* --- Schedule card --- */
.aw-schedule-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    margin-bottom: 22px;
    padding: clamp(24px, 4vw, 32px);
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius-lg);
    background: var(--aw-white);
    box-shadow: var(--aw-shadow-card);
    transition:
        transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aw-schedule-card--no-image {
    grid-template-columns: minmax(0, 1fr);
}

.aw-schedule-card:hover {
    box-shadow: var(--aw-shadow-soft);
}

.aw-schedule-card__image {
    position: relative;
    overflow: hidden;
    border-radius: var(--aw-radius-sm);
    aspect-ratio: 4 / 3;
}

.aw-schedule-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aw-schedule-card:hover .aw-schedule-card__image img {
    transform: scale(1.05);
}

.aw-schedule-card__time {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--aw-radius-sm);
    background: rgba(18, 78, 96, 0.88);
    backdrop-filter: blur(8px);
    color: var(--aw-white);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.3;
}

.aw-schedule-card__time-sep {
    opacity: 0.55;
}

.aw-schedule-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aw-schedule-card__speaker {
    margin: 0;
    color: var(--aw-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.aw-schedule-card__title {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.aw-schedule-card__desc {
    margin: 0;
    color: var(--aw-muted);
    line-height: 1.6;
}

.aw-schedule-card__desc p {
    margin: 0 0 10px;
}

.aw-schedule-card__desc p:last-child {
    margin-bottom: 0;
}

.aw-schedule-card__tag {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 4px;
    padding: 6px 14px;
    border: 1px solid rgba(41, 156, 183, 0.22);
    border-radius: 999px;
    background: rgba(184, 245, 255, 0.22);
    color: var(--aw-primary);
    font-size: 0.76rem;
    font-weight: 660;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

/* --- Register CTA --- */
.aw-schedules__cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* --- Responsive --- */
@media (min-width: 860px) {
    .aw-schedules-hero__image {
        object-position: top;
    }
}

@media (max-width: 860px) {
    .aw-schedules__tabs {
        flex-direction: column;
    }

    .aw-schedules__tab {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        padding: 14px 22px;
    }

    .aw-schedule-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

.aw-schedule-card--no-image {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 640px) {
    .aw-schedule-card {
        gap: 20px;
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aw-schedule-card,
    .aw-schedule-card:hover {
        transition: none;
        transform: none;
    }

    .aw-schedule-card__image img,
    .aw-schedule-card:hover .aw-schedule-card__image img {
        transition: none;
        transform: none;
    }
}
