.hero-carousel {
    position: relative;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    overflow: hidden;
}

.hero-slides {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    background-color: var(--color-primary);
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: var(--color-primary);
}

.hero-slide-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
}

.hero-slide--light .hero-slide-bg {
    background-color: var(--color-gray-100);
}

.hero-slide--light .hero-slide-bg-image {
    object-position: center;
}

.hero-slide-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding-bottom: 4.5rem;
}

.hero-slide-text {
    width: 100%;
    max-width: 430px;
    background-color: var(--color-primary);
    padding: 2rem 2.25rem;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.hero-slide-text--light {
    background-color: rgba(255, 255, 255, 0.94);
    color: var(--color-text);
}

.hero-slide-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.hero-slide-title--dark {
    font-size: var(--font-size-3xl);
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.hero-slide-title-outline {
    display: block;
    margin-top: 0.35rem;
    font-weight: 300;
    font-size: var(--font-size-xl);
    line-height: 1.3;
    -webkit-text-stroke: 1px var(--color-white);
    color: transparent;
}

.hero-slide-description {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-slide-description--dark {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    opacity: 1;
}

.hero-tabs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
}

.hero-tabs--traits::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-color: var(--color-white);
    opacity: 0.2;
    pointer-events: none;
}

.hero-tabs-inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    pointer-events: auto;
}

.hero-tabs-inner::-webkit-scrollbar {
    display: none;
}

.hero-tab {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0 0.75rem 1.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-white);
    text-align: center;
    white-space: nowrap;
    transition: font-weight 0.3s ease-in-out;
}

.hero-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    background-color: var(--color-white);
    opacity: 0;
    transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hero-tab:hover {
    color: var(--color-white);
}

.hero-tab.is-active {
    font-weight: 700;
}

.hero-tab.is-active::after {
    height: 4px;
    opacity: 1;
}

@media (max-width: 991px) {
    .hero-tabs {
        top: 0;
        bottom: auto;
    }

    .hero-tabs--traits::after {
        display: none;
    }

    .hero-tabs-inner {
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 1rem var(--container-padding) 0;
    }

    .hero-tab {
        flex: 0 0 auto;
        width: 1rem;
        height: 1rem;
        padding: 0;
        border-radius: 50%;
        border: 2px solid var(--color-white);
        font-size: 0;
        color: transparent;
        overflow: hidden;
    }

    .hero-tab::after {
        display: none;
    }

    .hero-tab.is-active {
        background-color: var(--color-white);
    }

    .hero-slide-content {
        padding-top: 3.25rem;
        padding-bottom: 3rem;
        align-items: flex-end;
    }

    .hero-slide-text {
        max-width: 100%;
    }

    .hero-slide-bg-image {
        object-position: center;
    }
}

@media (max-width: 768px) {
    .hero-slides {
        min-height: 480px;
    }

    .hero-slide-title {
        font-size: var(--font-size-xl);
    }

    .hero-slide-title-outline {
        font-size: var(--font-size-lg);
    }

    .hero-slide-title--dark {
        font-size: var(--font-size-2xl);
    }
}

