/* Tutor course archive overrides matching homepage cards */

.tutor-archive-page .homepage-services__grid--archive {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 3vw, 2rem);
    row-gap: clamp(2rem, 4vw, 3.25rem);
    justify-items: center;
    align-items: start;
}

.tutor-archive-page .homepage-services__grid--archive > * {
    display: flex;
    width: 100%;
    height: 100%;
}

.tutor-archive-page .homepage-services__grid--archive article {
    width: 100%;
    max-width: clamp(300px, 30vw, 360px);
}

.tutor-archive-page .homepage-services__grid--archive .tutor-card,
.tutor-archive-page .homepage-services__grid--archive .tutor-col,
.tutor-archive-page .homepage-services__grid--archive .tutor-course-col {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.tutor-archive-page .homepage-services__card {
    width: 100%;
}

.tutor-archive-page .homepage-services__thumb {
    width: 100%;
}

.tutor-card:not(.tutor-no-border){
    border:none;
}

/* Archive hero */
.tutor-archive-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--archive-hero-bg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 3rem);
    text-align: center;
}

.tutor-archive-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tutor-archive-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-right: clamp(1rem, 4vw, 2.5rem);
    text-align: right;
}

.tutor-archive-hero__title {
    margin: 0;
    font-size: clamp(100px, 10vw, 192px);
    font-weight: 100;
    line-height: 1em;
    position: static;
    display: inline-block;
    background-image: linear-gradient(1deg, rgba(255, 255, 255, 0.95) 0%, rgba(153, 131, 85, 0.9) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Poppins, var(--jogatokato-font-heading, sans-serif);
    margin: -169px 0 0 0;
    z-index: 2;
}

/* Archive category pills */
.tutor-archive-filter {
    position: relative;
    max-width: 1440px;
    margin: clamp(1.5rem, 4vw, 2.5rem) auto clamp(1.5rem, 4vw, 2.5rem);
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    justify-content: center;
    border-bottom: none;
}

.tutor-archive-filter::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: var(--filter-line-width, min(640px, 90%));
    height: 1px;
    background: rgb(200 186 159 / 0.8);
    z-index: 0;
}

.tutor-archive-filter__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0 0.1rem;
    border-radius: 0;
    border: none;
    background: transparent;
    color: rgb(200 186 159);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.2;
}

.tutor-archive-filter__pill.is-active {
    background: transparent;
    color: rgba(153, 131, 85, 1);
    border-bottom-color: transparent;
}

.tutor-archive-filter__pill.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: rgba(153, 131, 85, 1);
    z-index: 1;
}

.tutor-archive-filter.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

