/* ==========================================================================
   CLM Hero Module - Styles
   ========================================================================== */

.clm-hero {
    display: flex;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* ---------- Text Column ---------- */
.clm-hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.clm-hero__headline {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1.2rem 0;
    line-height: 1.4;
}

.clm-hero__features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clm-hero__feature-item {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.clm-hero__check {
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: bold;
    font-family: sans-serif;
    -webkit-text-fill-color: currentColor;
}

/* ---------- Feature Rotation ---------- */
.clm-hero__features-wrap {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.clm-hero__features--rotate .clm-hero__feature-item {
    transition: opacity var(--clm-rotate-transition, 600ms) ease-in-out,
                max-height var(--clm-rotate-transition, 600ms) ease-in-out,
                margin var(--clm-rotate-transition, 600ms) ease-in-out,
                padding var(--clm-rotate-transition, 600ms) ease-in-out;
    max-height: 4em;
    overflow: hidden;
}

.clm-hero__features--rotate .clm-hero__feature-item.clm-hero__feature-item--hidden {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.clm-hero__features--rotate .clm-hero__feature-item.clm-hero__feature-item--visible {
    opacity: 1;
}

/* ---------- Slider Column ---------- */
.clm-hero__slider-wrap {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.clm-hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.clm-hero__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* First slide is relative to establish container height */
.clm-hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.clm-hero__slide:first-child {
    position: relative;
}

.clm-hero__slide--active {
    opacity: 1;
    z-index: 2;
}

.clm-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Overlay (Caption) ---------- */
.clm-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 3;
}

.clm-hero__overlay-title {
    font-size: 1rem;
    font-weight: 600;
}

.clm-hero__overlay-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ---------- Dot Navigation ---------- */
.clm-hero__dots {
    position: absolute;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

/* Move dots above overlay when captions are present */
.clm-hero__slider--has-captions .clm-hero__dots {
    bottom: 3.5rem;
}

.clm-hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s, border-color 0.3s;
}

.clm-hero__dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.clm-hero__dot--active {
    background: #fff;
    border-color: #fff;
}

/* ---------- Arrow Navigation ---------- */
.clm-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 1;
    border-radius: 3px;
}

.clm-hero__arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.clm-hero__arrow--prev {
    left: 0.75rem;
}

.clm-hero__arrow--next {
    right: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .clm-hero {
        flex-direction: column !important;
    }

    .clm-hero__text,
    .clm-hero__slider-wrap {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .clm-hero__text {
        min-height: auto !important;
        padding: 1.5rem;
    }

    .clm-hero__slider-wrap {
        min-height: 280px !important;
    }
}
