/**
 * Topics Page Hero Block
 * Synced with ACF: Topics Page Hero
 */

/* Break out of main (max-width 1140px) to be full-width */
.topics-page-hero-block {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box;
}

main:has(.topics-page-hero-block) {
    max-width: none !important;
    overflow-x: visible !important;
}

.topics-page-hero-section {
    min-height: 320px;
}

.topics-page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.topics-page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Container for h1 + CTA: padding top 156px and bottom 120px on all screen sizes; same padding-left at breakpoints */
.topics-page-hero-content {
    position: relative;
    z-index: 10;
    padding-top: 156px;
    padding-bottom: 120px;
    padding-left: 20px;
    padding-right: 20px;
}

/* H1: two lines, white + gradient; 66px desktop, responsive; no top padding (container has 156px), bottom for gap above CTA */
.topics-page-hero-title {
    font-size: 32px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0 0 24px 0;
}

.topics-page-hero-line {
    display: block;
}

.topics-page-hero-line--white {
    color: #ffffff;
}

.topics-page-hero-line--gradient {
    display: inline-block;
}

/* Gradient color options – gradient on text only (same approach as home hero rotating text) */
.topics-page-hero-gradient--purple {
    background: linear-gradient(90deg, #FF7AE3 13.48%, #D970FF 45.77%, #AB80FF 76.85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.topics-page-hero-gradient--green {
    background: linear-gradient(90deg, #3BED97 -1.93%, #4BE3DF 49.34%, #79B1D1 97.73%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.topics-page-hero-gradient--blue {
    background: linear-gradient(90deg, #A8FFE5 0%, #40B8FF 50.48%, #AB8BFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.topics-page-hero-gradient--pink {
    background: linear-gradient(90deg, #FF9D91 3.25%, #FF547D 55.6%, #FF7FB8 103.89%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.topics-page-hero-gradient--orange {
    background: linear-gradient(90deg, #FF5D56 -2.36%, #FF9342 51.27%, #FFCF00 103.87%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Tablet */
@media (min-width: 768px) {
    .topics-page-hero-content {
        padding-left: 48px;
        padding-right: 48px;
    }

    .topics-page-hero-title {
        font-size: 48px;
        padding-bottom: 28px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .topics-page-hero-content {
        padding-left: 100px;
        padding-right: 100px;
    }

    .topics-page-hero-title {
        font-size: 66px;
        padding-bottom: 32px;
    }
}

