.main-banner-container {
    padding: 20px 0 42px;
    border-radius: 6px;
}

.main-swiper-container {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    box-shadow: 0px 7px 20px 0px var(--drop-shadow);
}

.slider-container {
    background-color: var(--text-white);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 6px;
}

/* Main slider buttons */
.main-swiper-button-next, .main-swiper-button-prev {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: black;
    transition: transform var(--transition-speed) ease-in-out;
}

.main-swiper-button-next:hover, .main-swiper-button-prev:hover {
    transform: scale(1.05);
}

.text-section {
    padding: 40px 25px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 53.5%;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(
            to right,
            rgba(255, 0, 0, 0) 0%,
            rgba(255, 0, 0, 0) 30%,
            #ff0000 50%,
            rgba(255, 0, 0, 0) 70%,
            rgba(255, 0, 0, 0) 100%
    ) 1;
    border-image-slice: 1;
}

.text-section .title {
    font-weight: 700;
    font-size: 32px;
    line-height: 125%;
    color: var(--main-darck);
}

.text-section .description {
    color: var(--main-darck);
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.banner-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@media (min-width: 640px) {
    .button-group {
        flex-direction: row;
    }
}

.text-section .button {
    border-radius: 6px;
    width: calc(50% - 5px);
    height: 50px;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    transition: all ease var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-button {
    background-color: var(--main-red);
    color: var(--text-white);
}

.primary-button:hover {
    background-color: var(--main-red-hover);
}

.secondary-button {
    background-color: var(--text-white);
    color: var(--text-darck-opacity);
    border: 1px solid var(--main-darck);
}

.secondary-button:hover {
    background-color: var(--light-gray);
}

.swiper-section {
    position: relative;
    width: 50%;
    overflow: hidden;
    background-color: var(--text-white);
}


.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-image {
    width: 100%;
    height: auto;
    max-height: 434px;
    object-fit: cover;
    border-radius: 6px;
}

.nested-swiper-button-next, .nested-swiper-button-prev {
    width: 35px;
    height: 35px;
    background-color: var(--text-white);
    border-radius: 50%;
    box-shadow: 0px 5.44px 15.56px 0px var(--drop-shadow);
    color: var(--main-darck);
    position: absolute;
    top: 34px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all ease var(--transition-speed);
    cursor: pointer;
}

.nested-swiper-button-prev {
    right: 86px;
    left: auto;
}

.nested-swiper-button-next {
    right: 42px;
    left: auto;
}

.nested-swiper-button-next:hover, .nested-swiper-button-prev:hover {
    transform: scale(1.05);
    background-color: var(--light-gray);
    transition: all ease var(--transition-speed);
}

@media (max-width: 1025px) {
    .main-banner-container {
        padding: 20px 0 40px;
    }

    .swiper-section {
        width: 100%;
    }

    .text-section {
        width: 100%;
        padding: 24px;
    }

    .slider-container {
        flex-direction: column-reverse;
    }

    .swiper-image {
        max-height: 230px;
        object-fit: cover;
    }

    .text-section .title {
        font-size: 28px;
        margin-bottom: 40px;
        max-width: 80%;
        max-height: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .text-section .description {
        font-size: 14px;
        margin-bottom: 28px;
        max-width: 80%;
        max-height: 58px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .text-section .button {
        font-size: 14px;
        width: auto;
        padding: 0 30px;
    }
}

@media (max-width: 767px) {
    .swiper-image {
        max-height: 178px;
    }

    .nested-swiper-button-next, .nested-swiper-button-prev {
        width: 30px;
        height: 30px;
        top: 16px;
    }

    .nested-swiper-button-next svg, .nested-swiper-button-prev svg {
        width: 8px;
    }

    .nested-swiper-button-next {
        right: 16px;
        left: auto;
    }

    .nested-swiper-button-prev {
        right: 54px;
        left: auto;
    }

    .text-section {
        padding: 20px;
    }

    .text-section .title {
        font-size: 24px;
        max-width: 100%;
        max-height: 100%;
        margin-bottom: 28px;
    }

    .text-section .description {
        font-size: 14px;
        margin-bottom: 32px;
        max-width: 100%;
        max-height: 100%;
    }
    .main-banner-container {
        padding: 0 0 36px;
    }
}