/* ========================================
   Enterprise Value section
   - Desktop/tablet: static 2-col grid (no slider)
   - Mobile (<768px): Slick touch slider synced with stepper
   ======================================== */

.enterprise-value {
    background-color: #001632;
    overflow: hidden;
    padding: 60px 0 60px;
    position: relative;
}

/* Dotted pattern strip on the left edge */
.enterprise-value::before {
    background: url("../../images/achievement-bg.png") left center / auto 100% no-repeat;
    bottom: -50px;
    content: "";
    left: 0;
    opacity: 0.75;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 220px;
}

.enterprise-value .exl-shell {
    position: relative;
    z-index: 1;
    padding: 0 0 0 20px;
}

/* Title */
.ev-title {
    color: var(--exl-white);
    font-size: 44px;
    font-weight: 700;
    line-height: 38px;
    margin: 0 0 40px;
}

.ev-title-accent {
    color: var(--exl-primary);
}

/* Stepper / tab pills */
.ev-stepper {
    -ms-overflow-style: none;
    gap: 24px;
    margin: 0 0 40px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ev-stepper::-webkit-scrollbar {
    display: none;
}

.ev-step {
    flex: 0 0 auto;
    gap: 10px;
    padding: 6px 24px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: transparent;
    color: var(--exl-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.ev-step svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.ev-step:hover {
    border-color: rgba(255, 255, 255, 0.75);
}

.ev-step:focus-visible {
    outline: 2px solid var(--exl-white);
    outline-offset: 3px;
}

.ev-step.active {
    background: linear-gradient(72deg, #F74D0C 20.4%, #FFA82B 163.56%);
    border-color: transparent;
    border-radius: 999px;
    color: var(--exl-white);
}

.ev-step.active svg path {
    fill: var(--exl-white);
}

/* Cards */
.ev-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f7f4ef;
    border-radius: 16px;
    overflow: hidden;
}

.ev-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    flex: 0 0 auto;
}

.ev-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ev-card-body {
    padding: 28px 24px 40px;
}

.ev-card-title {
    color: #001632;
    font-size: 28px;
    font-weight: 700;
    line-height: 30px;
    margin: 0 0 16px;
}

.ev-card-text {
    color: #384D6A;
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .ev-cards {
        gap: 40px;
    }

    .ev-card-body {
        padding: 32px 40px;
    }
    .ev-card-title {
        font-size: 24px;
    }
    .ev-card-text {
        font-size: 16px;
    }
}

/* Tablet & up: static grid, no slider */
@media (min-width: 768px) {
    .ev-cards,
    .tab-content > .ev-cards.active {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .ev-card-media {
        aspect-ratio: 16 / 10;
    }
}

/* Desktop: horizontal cards (media left, copy right) */
@media (min-width: 992px) {
    .ev-card {
        flex-direction: row;
        min-height: 240px;
    }

    .ev-card-media {
        aspect-ratio: auto;
        min-height: 240px;
        width: 240px;
    }

    .ev-card-body {
        flex: 1 1 auto;
        padding: 32px;
    }
}

/* Mobile: Slick slider + dashes */
@media (max-width: 767.98px) {
    .enterprise-value {
        padding: 44px 0 44px;
    }

    .enterprise-value::before {
        width: 140px;
        opacity: 0.45;
    }

    .ev-title {
        font-size: 36px;
        line-height: 30px;
        margin-bottom: 24px;
    }

    .ev-title-accent {
        display: block;
    }

    .ev-stepper {
        gap: 24px;
        margin: 0 -24px 36px -24px;
        padding: 0 24px 0 24px;
    }

    .ev-step {
        padding: 6px 24px;
    }

    .ev-step svg {
        width: 18px;
        height: 18px;
    }

    .ev-cards.slick-slider {
        display: none;
        margin-bottom: 0;
    }

    .ev-cards.slick-slider.active {
        display: block;
    }

    /* Reveal part of the next card */
    .ev-cards .slick-list {
        padding-right: 0;
        margin-right: -24px;
    }

    .ev-cards .slick-slide {
        display: flex;
        float: none;
        height: auto !important;
        padding-right: 0;
    }

    .ev-cards .ev-card {
        height: 100%;
    }

    /* Pagination dashes */
    .ev-cards .ev-dots {
        position: static;
        display: flex;
        justify-content: flex-start;
        width: 100%;
        margin: 36px 0 0 !important;
        padding: 0;
        list-style: none;
    }

    .ev-cards .ev-dots li {
        width: 42px;
        height: 3px;
        margin: 0;
        padding: 0;
    }

    .ev-cards .ev-dots li button {
        border-bottom: 2px solid;
        border-image: linear-gradient(90deg, #384D6A 0%, #384D6A 100%) 1;
        border-radius: 2px;
        cursor: pointer;
        display: block;
        font-size: 0;
        height: 2px;
        line-height: 0;
        padding: 8px 0;
        transition: background 0.3s ease;
        width: 28px;
    }

    .ev-cards .ev-dots li button::before {
        content: none;
    }

    .ev-cards .ev-dots li.slick-active button {
        border-bottom: 2px solid;
        border-image: linear-gradient(90deg, #F74D0C 0%, #FFA82B 100%) 1;
    }

    .ev-card-body {
        min-height: 200px;
        justify-content: flex-start !important;
        padding: 32px 24px;
    }
    .ev-card-media {
        height: 220px;
    }
    .ev-card-title {
        color: #001632;
        font-size: 20px;
        font-weight: 700;
        line-height: 22px;
        margin: 0 0 8px;
    }
    .ev-card-text {
        color: #384D6A;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: -0.25px;
        line-height: 18px;
    }
    .ev-cards .slick-track {
        align-items: stretch;
        display: flex;
    }
    /* .enterprise-value .tab-content > .ev-cards.tab-pane {
        display: none;
    }
    .enterprise-value .tab-content > .ev-cards.tab-pane.show {
        display: flex;
    } */
}