/* ==========================================================================
   B-ALERT TEMPLATE PART: ECOSYSTEM SECTION
   ========================================================================== */

/* 1. SECTION WRAPPER */
.full-home-ecosystem-section {
    background-color: var(--panel-graphite);
    /* Nền mặc định chung */
    padding: 112px 32px !important;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    /* Chống cuộn ngang */
}

@media (max-width: 1024px) {
    .full-home-ecosystem-section {
        padding: 72px 24px !important;
    }
}

@media (max-width: 767px) {
    .full-home-ecosystem-section {
        padding: 32px 16px !important;
    }

    .home-ecosystem-header {
        margin-bottom: 24px !important;
    }
}

/* 2. HEADER & TYPOGRAPHY */
.home-ecosystem-header {
    text-align: center;
    margin-bottom: 60px;
    box-sizing: border-box;
}

.ecosystem-title {
    text-transform: uppercase;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.4;
    position: relative;
    padding-bottom: 20px;
    color: var(--color-information-white);
}

.ecosystem-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--color-brushed-chrome);
    /* Xóa bỏ hover color vàng */
}

/* 3. SLIDER WRAPPER */
.ecosystem-slider-wrapper {
    position: relative;
    padding: 0 80px;
    /* Tăng padding để tạo nhiều khoảng trống hơn cho nút bấm */
    box-sizing: border-box;
    max-width: 1363px;
    margin: 0 auto;
}

.ecosystem-swiper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ecosystem-swiper .swiper-wrapper {
    align-items: flex-start !important;
    height: auto !important;
}

.ecosystem-swiper .swiper-slide {
    height: auto !important;
}

/* 4. CARDS / ITEMS */
.ecosystem-item {
    display: block;
    background-color: var(--panel-graphite) !important;
    border-radius: 0 !important;
    /* Triệt tiêu hoàn toàn góc bo tròn */
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--ba-border) !important;
    box-sizing: border-box;
}

.ecosystem-item:hover,
.ecosystem-item.active {
    border-color: var(--color-brushed-chrome) !important;
    box-shadow: 0 0 24px var(--ba-chrome-glow) !important;
}

.ecosystem-item:hover .ecosystem-item-title {
    color: var(--color-brushed-chrome);
    /* Thay màu vàng bằng kim loại sáng */
}

/* IMAGE */
.ecosystem-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background-color: var(--color-carbon-black);
}

.ecosystem-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* INFO AREA */
.ecosystem-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(21, 27, 35, 0.95) 0%, rgba(21, 27, 35, 0.4) 100%);
    /* Nền chuyển sắc dưới item text để đọc được rõ chữ */
}

.ecosystem-item-title {
    font-size: 16px;
    margin: 0;
    text-transform: uppercase;
    transition: all 0.3s ease;
    color: var(--color-information-white);
}

.ecosystem-item-icon {
    color: var(--color-stainless-steel);
    font-size: 16px;
}

/* 5. SWIPER NAVIGATION (Nút điều hướng) */
.ecosystem-prev,
.ecosystem-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px !important;
    height: 48px !important;
    background-color: var(--color-carbon-black) !important;
    border-radius: 0 !important;
    /* Không dùng icon tròn */
    border: 1px solid var(--ba-border) !important;
    color: var(--color-information-white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    margin-top: 0;
    transition: all 0.3s ease;
}

.ecosystem-slider-wrapper .swiper-button-prev::after,
.ecosystem-slider-wrapper .swiper-button-next::after {
    display: none !important;
}

.ecosystem-slider-wrapper .swiper-button-prev,
.ecosystem-slider-wrapper .swiper-button-next {
    background-image: none !important;
}

.ecosystem-prev {
    left: 0;
}

.ecosystem-next {
    right: 0;
}

.ecosystem-prev:hover,
.ecosystem-next:hover {
    background-color: var(--panel-graphite) !important;
    color: var(--color-brushed-chrome) !important;
    border-color: var(--color-brushed-chrome) !important;
    box-shadow: 0 0 24px var(--ba-chrome-glow) !important;
}

/* ACTION BUTTON */
.ecosystem-action {
    margin-top: 40px;
}

.btn-view-all {
    display: inline-block;
    color: var(--color-brushed-chrome);
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-view-all i {
    margin-left: 5px;
}

.btn-view-all:hover {
    color: var(--color-information-white);
    border-color: var(--color-information-white);
}

/* 6. RESPONSIVE */
@media (max-width: 991px) {
    .ecosystem-slider-wrapper {
        padding: 0 50px;
    }

    .ecosystem-prev,
    .ecosystem-next {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 767px) {
    .ecosystem-title {
        font-size: 24px;
    }

    .ecosystem-slider-wrapper {
        padding: 0;
    }

    .ecosystem-prev,
    .ecosystem-next {
        display: none !important;
    }
}