.course-archive-page--custom {
    padding-block: 24px 48px;
}

.tsa-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f766e 0%, #14532d 100%);
    color: #fff;
}

.tsa-hero__eyebrow,
.tsa-section__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 700;
}

.tsa-hero__title {
    margin: 10px 0 8px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.15;
    color: #fff;
}

.tsa-hero__description,
.tsa-section__description {
    margin: 0;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

.tsa-archive-search {
    display: grid;
    gap: 10px;
}

.tsa-archive-search__label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.tsa-archive-search__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.tsa-archive-search__input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-weight: 600;
}

.tsa-archive-search__submit,
.tsa-archive-search__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
}

.tsa-archive-search__submit {
    border: none;
    background: #fff;
    color: #0f766e;
}

.tsa-archive-search__clear {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tsa-root-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.tsa-root-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.tsa-root-nav__link:hover,
.tsa-root-nav__link:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: #fff;
}

.tsa-root-nav__link.is-active {
    background: #fff;
    color: #0f766e;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.tsa-sections {
    display: grid;
    gap: 20px;
}

.tsa-section {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.tsa-section.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(1px);
}

.tsa-section__header {
    display: grid;
    gap: 14px;
}

.tsa-section__title {
    margin: 10px 0 6px;
    font-size: 1.6rem;
    line-height: 1.2;
    color: #0f172a;
}

.tsa-section__description {
    color: #475569;
}

.tsa-section__controls {
    width: 100%;
}

.tsa-archive-sorter {
    display: grid;
    gap: 8px;
    width: 100%;
}

.tsa-archive-sorter__label {
    color: #334155;
    font-weight: 700;
    font-size: 14px;
}

.tsa-archive-sorter__select {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
}

[data-section-subtabs] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.tsa-subtabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.tsa-subtab {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-weight: 700;
}

.tsa-subtab.is-active {
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
}

.tsa-section__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tsa-section__count {
    color: #0f766e;
    font-weight: 800;
}

.tsa-section__content {
    min-height: 120px;
}

.tsa-section__content .tutor-course-list {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}

.tsa-section__actions {
    display: flex;
    justify-content: center;
}

.tsa-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    font-weight: 800;
}

.tsa-empty-state {
    display: grid;
    gap: 10px;
    align-content: center;
    justify-items: center;
    min-height: 180px;
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    background: #f8fafc;
    text-align: center;
}

.tsa-empty-state__icon {
    font-size: 32px;
    color: #0f766e;
}

.tsa-empty-state h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.1rem;
}

.tsa-empty-state p {
    margin: 0;
    color: #64748b;
}

@media (min-width: 768px) {
    .course-archive-page--custom {
        padding-block: 32px 56px;
    }

    .tsa-hero {
        padding: 28px;
    }

    .tsa-archive-search__controls {
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
    }

    .tsa-section {
        padding: 24px;
    }

    .tsa-section__header {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
        align-items: end;
    }

    .tsa-section__content .tutor-course-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .tsa-sections {
        gap: 24px;
    }

    .tsa-section__content .tutor-course-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
