/* Section cha */
.custom-slide-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Swiper slide */
.custom-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    height: auto;
    display: flex;
    align-items: center;
}

/* Khối bên trái (overlay + nội dung) */
.custom-slide-left {
    position: relative;
    width: 50%;
    height: 100%;
    background: linear-gradient(252deg, rgba(28, 0, 0, 0.80) 9.71%, rgba(36, 0, 0, 0.80) 89.94%);
    display: flex;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 2;
    padding: 0px 250px;
}

/* Khi slide active thì khối chạy vào */
.swiper-slide-active .custom-slide-left {
    transform: translateX(0);
    padding: 30px 250px;
}

/* Nội dung */
.custom-slide-content {
    color: #fff;
    display: flex;
    flex-direction: column;
}

.custom-line1 {
    font-size: 40px;
    font-weight: 400;
    opacity: 0.9;
    font-family: 'UVN Ben Xuan';
}

.custom-line2 {
    font-size: 50px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid;
    line-height: 1.2;
    padding-bottom: 20px;
}

.custom-divider {
    width: 80px;
    border: 1px solid #fff;
}

/* .custom-line4 img {
    max-height: 50px;
    margin-top: 30px;
} */

.custom-line4 {
    margin-top: 30px;
}

.custom-line5 {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 30px;
}

.custom-line6 {
    margin-top: 30px;
}

.custom-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.custom-btn:hover {
    background: #fff;
    color: #000;
}

/* Swiper pagination */
.custom-slide-pagination {
    position: absolute;
    bottom: 20px;
    right: 20px;
}
/* Mặc định ẩn hẳn khối bên trái */
.custom-slide-left {
  position: relative;
  width: 50%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  padding: 40px;
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  z-index: 2;
  opacity: 0; /* thêm */
  visibility: hidden; /* thêm */
}

/* Khi slide active thì mới hiển thị + chạy animation */
.swiper-slide-active .custom-slide-left {
  transform: translateX(0);
  opacity: 1;           /* hiện */
  visibility: visible;  /* hiện */
}
.line3 {
    margin-top: 30px;
    font-size: 23px;
    font-weight: 700;
}
/* Responsive */
@media (max-width: 768px) {
    .custom-slide {
        height: auto;
    }

    .custom-slide-left {
        width: 100%;
        padding: 20px !important;
    }

    .custom-line2 {
        font-size: 22px;
    }
}
