/* Hero Section */
.hero-container {
    padding: 0 8px;
}

.hero {
    width: 100%;
    min-height: 640px;
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    max-width: 1440px;
    margin: 0 auto 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 644px;
}

.hero-badge {
    font-family: "Onest", Helvetica;
    font-weight: 800;
    color: #fce9b6;
    font-size: 20px;
    letter-spacing: 0.4px;
    line-height: 28px;
}

.hero-title {
    font-family: "Instrument Serif", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: clamp(48px, 5vw, 76px);
    letter-spacing: 0;
    line-height: 1;
}

.hero-title-italic {
    font-style: italic;
}

.hero-description {
    font-family: "Onest", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0;
    line-height: 28px;
    max-width: 551px;
}

.hero-form {
    display: flex;
    gap: 0;
    max-width: 400px;
    margin-top: 8px;
    border-radius: 26px;
    overflow: hidden;
}

.hero-input {
    flex: 1;
    padding: 16px 32px;
    background-color: rgba(255, 249, 242, 0.2);
    border: none;
    backdrop-filter: blur(2px) brightness(100%);
    color: #ffffff;
    font-family: "Onest", Helvetica;
    font-size: 16px;
    font-weight: 400;
}

.hero-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hero-button {
    padding: 16px 32px;
    background-color: #fdd26a;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hero-button:hover {
    background-color: #fcc545;
}

.hero-button-text {
    font-family: "Onest", Helvetica;
    font-weight: 600;
    color: #181815;
    font-size: 18px;
    letter-spacing: 0.18px;
    line-height: 18px;
}

/* Filter Section */
.filter-container {
    max-width: 1392px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    gap: 74px;
    height: 179px;
    border-bottom: 4px solid rgba(205, 188, 180, 0.3);
    position: relative;
}

.filter-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 0 24px;
    gap: 24px;
    width: 170px;
    height: 179px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.filter-item.active::after {
    background: #926A58;
}

.filter-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-label {
    font-size: 18px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.02em;
    color: #181815;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Class Cards */
.cards-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.class-card {
    display: flex;
    gap: 48px;
    align-items: center;
    max-width: 1248px;
    margin: 0 auto;
    width: 100%;
}

.image-topics-section {
    width: 670px;
    display: flex;
    flex-direction: column;
}

.image-container {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 24px;
}

.play-button {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid #009DBC;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.topics-section {
    background: #D9F0EE;
    padding: 36px;
    border-radius: 0 0 24px 24px;
    position: relative;
    height: 200px;
    overflow: hidden;
}

.trimester-label {
    font-size: 16px;
    font-weight: 700;
    color: #926A58;
    text-transform: uppercase;
    line-height: 14px;
    letter-spacing: 0.02em;
}

.class-title {
    font-family: 'Instrument Serif', serif;
    font-size: 56px;
    line-height: 64px;
    color: #181815;
    font-weight: 400;
}

.stats-section {
    display: flex;
    border: 1px solid #EFE4D5;
    border-radius: 16px;
    height: 80px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    border-right: 1px solid #EFE4D5;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #009DBC;
    line-height: 34px;
}

.stat-label {
    font-size: 12px;
    color: #926A58;
    text-transform: uppercase;
    line-height: 14px;
    margin-top: 2px;
}

.button {
    height: 52px;
    border-radius: 26px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.button-outline {
    background: transparent;
    border: 1px solid #926A58;
    color: #926A58;
}

.button-outline:hover {
    background: #926A58;
    color: white;
}

.button-primary {
    background: #FDD26A;
    border: none;
    color: #181815;
}

.button-primary:hover {
    background: #fcc94d;
}

/* CTA Section */
.create-account {
    width: 100%;
    max-width: 1440px;
    margin: 80px auto;
    padding: 0 24px;
}

.cta-hero {
    position: relative;
    width: 100%;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-title {
    width: 100%;
    max-width: 644px;
    font-family: "Instrument Serif", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: clamp(48px, 8vw, 76px);
    text-align: center;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 0;
}

.value-props {
    display: flex;
    width: 100%;
    max-width: 625px;
    align-items: center;
    justify-content: center;
    gap: 54px;
    margin: 40px 0;
}

.value-prop {
    display: flex;
    flex-direction: column;
    width: 116px;
    align-items: center;
    gap: 12px;
}

.value-prop__icon-wrapper {
    width: 116px;
    height: 116px;
    background-color: #98e8e9;
    border-radius: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-prop__text {
    font-weight: 600;
    color: #ffffff;
    font-size: 18px;
    text-align: center;
    line-height: 22px;
    font-family: "Onest", Helvetica;
}

@media (max-width: 1200px) {
    .class-card {
        flex-direction: column;
    }

    .image-topics-section,
    .content-section {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding: 32px 24px;
        border-radius: 16px;
    }

    .filter-container {
        overflow-x: auto;
        padding: 0 20px;
        gap: 40px;
    }

    .filter-item {
        flex-shrink: 0;
    }

    .value-props {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        max-width: 300px;
    }
}
