.tmd-feature-slider {
    padding: 60px 0 35px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tmd-feature-slider.is-ready {
    visibility: visible;
    opacity: 1;
}

.tmd-feature-slider__inner {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.tmd-feature-slider__image-wrap {
    width: 58%;
    flex: 0 0 58%;
    position: relative;
    z-index: 1;
}

.tmd-feature-slider__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
}

.tmd-feature-slider__card-wrap {
    width: 48%;
    flex: 0 0 48%;
    margin-left: -80px;
    position: relative;
    z-index: 2;
}

.tmd-feature-slider__card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tmd-feature-slider__nav {
    position: absolute;
    top: -20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 5;
}

.tmd-feature-slider__arrow {
    font-size: 0;
    border: 0;
    background-color: #fff;
    background-image: url('/packages/british_marine/themes/britishmarine/images/arrow.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.tmd-feature-slider__arrow--next {
    transform: rotate(-180deg);
}

.tmd-feature-slider__arrow:hover,
.tmd-feature-slider__arrow:focus {
    opacity: 0.7;
    outline: none;
}

.tmd-feature-slider__title {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 700;
    margin: 0 0 30px;
}

.tmd-feature-slider__line {
    width: 95px;
    height: 2px;
    background: #111;
    margin-bottom: 35px;
}

.tmd-feature-slider__slides {
    position: relative;
}

.tmd-feature-slider__slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.tmd-feature-slider__slide.is-active {
    display: block;
    position: relative;
}

.tmd-feature-slider__slide.is-measuring {
    display: block;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.tmd-feature-slider__text {
    font-size: 22px;
    line-height: 1.7;
}

.tmd-feature-slider__button-wrap {
    margin-top: 36px;
}

.tmd-feature-slider__button {
    display: inline-block;
    padding: 16px 28px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.tmd-feature-slider__button:hover,
.tmd-feature-slider__button:focus {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.tmd-feature-slider__dots {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    margin-top: 28px;
}

.tmd-feature-slider__dot {
    width: 12px;
    height: 12px;
    border: 1px solid #111;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.tmd-feature-slider__dot.is-active {
    background: #111;
}

@media (max-width: 1280px) {
    .tmd-feature-slider__inner {
        padding: 0 20px;
    }

    .tmd-feature-slider__image-wrap {
        width: 60%;
        flex-basis: 60%;
    }

    .tmd-feature-slider__card-wrap {
        width: 46%;
        flex-basis: 46%;
        margin-left: -60px;
    }

    .tmd-feature-slider__card {
        padding: 48px;
    }

    .tmd-feature-slider__title {
        font-size: 42px;
        line-height: 1.12;
        margin: 0 0 24px;
    }

    .tmd-feature-slider__line {
        margin-bottom: 28px;
    }

    .tmd-feature-slider__text {
        font-size: 19px;
        line-height: 1.65;
    }
}

@media (max-width: 1024px) {
    .tmd-feature-slider {
        padding: 20px 15px;
    }

    .tmd-feature-slider__inner {
        display: block;
        max-width: 100%;
        padding: 0;
    }

    .tmd-feature-slider__image-wrap {
        width: 100%;
        flex: none;
        margin: 0;
    }

    .tmd-feature-slider__image {
        border-radius: 28px 28px 0 0;
    }

    .tmd-feature-slider__card-wrap {
        width: 100%;
        flex: none;
        margin-left: 0;
        margin-top: 0;
    }

    .tmd-feature-slider__card {
        border-radius: 0 0 28px 28px;
        padding: 48px 36px 40px;
        min-height: 0;
    }

    .tmd-feature-slider__nav {
        top: -36px;
        right: 24px;
        gap: 8px;
    }

    .tmd-feature-slider__arrow {
        width: 72px;
        height: 72px;
        background-size: 24px;
    }

    .tmd-feature-slider__title {
        font-size: 42px;
        line-height: 1.12;
        margin: 0 0 28px;
    }

    .tmd-feature-slider__line {
        width: 120px;
        margin-bottom: 32px;
    }

    .tmd-feature-slider__text {
        font-size: 18px;
        line-height: 1.7;
    }

    .tmd-feature-slider__button-wrap {
        margin-top: 36px;
    }

    .tmd-feature-slider__button {
        padding: 18px 30px;
        font-size: 16px;
    }

    .tmd-feature-slider__dots {
        justify-content: flex-start;
        gap: 14px;
        margin-top: 18px;
        padding-left: 12px;
    }

    .tmd-feature-slider__dot {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 640px) {
    .tmd-feature-slider__card {
        padding: 38px 24px 32px;
    }

    .tmd-feature-slider__title {
        font-size: 30px;
        line-height: 1.18;
    }

    .tmd-feature-slider__text {
        font-size: 17px;
        line-height: 1.65;
    }

    .tmd-feature-slider__arrow {
        width: 58px;
        height: 58px;
        background-size: 20px;
    }
}