/* ============================================
   VanillaCarousel Styles — Незалежний модуль
   Всі стилі каруселі та герою зосереджені тут.
   ============================================ */

/* ---- Фон секції карусель ---- */
.carousel-bg {
    background-image: url(/assets/img/texture_2.png);
}

/* ---- Відступи карусельного елемента ---- */
.carousel-item {
    margin-top: 70px;
}

/* ---- Caption ---- */
.carousel-caption {
    position: relative;
    right: 15%;
    bottom: 20px;
    left: 0%;
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #000;
    text-align: center;
}

/* ---- Structure ---- */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    overflow-anchor: none;
}

.carousel-inner {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: flex-start;
}

.carousel-item {
    position: relative;
    display: none;
    width: 100%;
    min-height: inherit;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Visibility states */
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

.carousel-item-next,
.carousel-item-prev {
    position: absolute;
    top: 0;
}

.carousel-item-next {
    transform: translateX(100%);
}

.carousel-item-prev {
    transform: translateX(-100%);
}

.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

.active.carousel-item-start {
    transform: translateX(-100%);
}

.active.carousel-item-end {
    transform: translateX(100%);
}

/* ---- Indicators ---- */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    list-style: none;
    padding: 0;
    z-index: 15;
}

.carousel-indicators li {
    width: 32px;
    height: 4px;
    border: none;
    margin: 0 4px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-indicators li.active {
    width: 56px;
    background: #ffffff;
}

/* ---- Carousel Inner Layout (Rows & Columns) ---- */
.carousel-item .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.carousel-item .col-text,
.carousel-item .col-img {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Встановлюємо 50% для десктопу (відповідає min-width: 576px) */
.carousel-item .col-text {
    flex: 0 0 50%;
    max-width: 50%;
}

.carousel-item .col-img {
    flex: 0 0 50%;
    max-width: 50%;
    margin-top: 0;
    text-align: center;
}

/* Однаковий та пропорційний розмір зображень у слайдері каруселі */
.carousel-item .col-img img {
    width: 100%;
    max-width: 480px;
    height: 380px;
    object-fit: contain;
    margin: 0 auto;
}

/* ============================================
   Carousel Text & Button Styles (Hero Module)
   ============================================ */

.header-span {
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: Roboto;
    color: hsl(0, 0%, 40%);
    margin-top: 60px;
}

.header-larg-text {
    margin-top: 40px;
    font-size: 100px;
    font-family: Roboto;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #000;
    position: relative;
    margin-bottom: 0;
    line-height: 119px;
    text-indent: -6px;
}

.header-cricle {
    position: absolute;
    border-radius: 100%;
    background: #191919;
    color: #fff;
    width: 180px;
    height: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-indent: 5px;
    top: -31px;
    margin-left: 10px;
}

.header-heading {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 22px;
    font-family: Roboto;
    margin-bottom: 40px;
    color: black;
}

.custom-btn {
    min-height: 30px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all ease-in-out 0.30s;
    -webkit-transition: all ease-in-out 0.30s;
    letter-spacing: 1px !important;
    margin-right: 30px !important;
    padding: 13px 35px !important;
    color: #333 !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    margin-top: 15px;
    margin-bottom: 40px;
    margin-left: 5px;
    font-size: 20px;
}

.custom-btn:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3) !important;
    background: #fff !important;
    color: #000 !important;
}

/* ============================================
   RESPONSIVE QUERIES (Cascading from large to small)
   Усі @media зібрані тут для максимальної оптимізації
   ============================================ */

/* Планшети (≤ 991px) */
@media only screen and (max-width: 991.98px) {
    .carousel-item {
        margin-top: 25px;
    }
    .header-larg-text {
        font-size: 80px;
        line-height: 80px;
        letter-spacing: 2px;
        margin-top: 45px;
        text-indent: 0;
    }
    .header-cricle {
        width: 140px;
        height: 140px;
        margin-left: 10px;
        margin-top: 2px;
        text-indent: -2px; 
    }
}

/* Телефони (≤ 767px) */
@media only screen and (max-width: 767.98px) {
    .carousel-item {
        margin-top: 17px;
    }
    .carousel-item .col-img img {
        height: 260px;
        max-width: 320px;
    }
    .header-larg-text {
        font-size: 65px;
        line-height: 40px;
        letter-spacing: 1px;
        margin-top: 40px;
    }
    .header-cricle {
        width: 110px;
        height: 110px;
        margin-left: 10px;
        margin-top: -4px;
        text-indent: -1px;
    }
    .custom-btn {
        font-size: 17px;
        padding: 16px 19px !important;
        margin-left: 5px;
    }
}

/* Вертикальні мобільні (≤ 575px) */
@media only screen and (max-width: 575.98px) {
    .carousel-inner {
        min-height: 650px;
    }
    .carousel-item .col-text,
    .carousel-item .col-img {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .carousel-item .col-img {
        margin-top: 20px;
    }
    .custom-btn {
        display: block;
        margin-left: auto;
        margin-right: 0;
        margin-top: 55px;

    }
}

/* Вузькі мобільні телефони (≤ 428px) */
@media only screen and (max-width: 428.98px) {
    .header-larg-text {
        margin-top: 25px;
    }
    .header-span {
        font-size: 15px;
        margin-left: 5px;
    }
    .header-heading {
        font-size: 14px;
        margin-bottom: 11px;
        padding-bottom: 10px;
        margin-top: 15px;
        margin-left: 5px;
    }
}