.block-carousel {
  background-image: url("../../../assets/bg-carousel-mobile.webp");
  background-size: cover;
  background-position: center;
  position: relative;
  background-repeat: no-repeat;
  z-index: 2;
}

.block-carousel .carousel-home .layer .new-popular>* {
  flex: 1 1 50%;
  /* mỗi item chiếm 50% */
  box-sizing: border-box;
}

.block-carousel .carousel-home .left {
  width: 100%;
}

#slide-title:hover {
  cursor: pointer;
}

#slide-excerpt {
  display: none;
  -webkit-line-clamp: 3;
  /* Giới hạn 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(216, 216, 217, 1);
  /* tuỳ theme */
  margin-bottom: 24px;
  /* hoặc auto tùy bố cục */
}

.block-carousel .carousel-home {
  padding: 40px 20px;
  color: var(--white-color);
  font-size: 2rem;
  font-weight: bold;
}

.block-carousel .carousel-home .layer h2 {
  font-size: 24px;
  color: var(--white-color);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* Giới hạn 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


.block-action {
  display: flex;
  align-items: center;
  background-color: rgba(144, 57, 56, 1);
  padding: 40px 0;
  width: 100%;
  position: relative;
  z-index: 3;
}

.block-action .list-action {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  gap: 1px;
  width: 100%;
}

.block-action .list-action .items {
  align-items: center;
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: var(--white-color);
  font-weight: 400;
  font-size: 18px;
  background: var(--inversed-content, rgba(255, 255, 255, 1));
  height: 72px;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  background-size: cover;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.block-action .list-action .items span {
  color: rgba(16, 32, 49, 1);
  font-weight: 500;
}

.block-action .list-action .items svg {
  flex-shrink: 0;
}

.block-action .list-action .items-1 {
  background-image: url("../../../assets/item-1.png");
}

.block-action .list-action .items-2 {
  background-image: url("../../../assets/item-2.png");
}

.block-action .list-action .items-3 {
  background-image: url("../../../assets/item-3.png");
}

.block-action .list-action .items-4 {
  background-image: url("../../../assets/item-4.png");
}

.side-mobile {
  display: block;
}

.side-desktop {
  display: none;
}

.block-carousel .carousel-home .layer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.block-carousel .carousel-home .layer .slide {
  width: 100%;
  margin-top: 24px;
  position: relative;
  height: auto;
}

.block-carousel .carousel-home .layer .slide img {
  width: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  height: 235px;
}

.block-carousel .carousel-home .layer .btn-action {
  left: 0;
  top: 50%;
  right: 0;
  position: absolute;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.block-carousel .carousel-home .layer .btn-action button {
  position: absolute;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
}

.block-carousel .carousel-home .layer .btn-action #prev-btn-desktop {
  left: 0;
}

.block-carousel .carousel-home .layer .btn-action #next-btn-desktop {
  right: 0;
}

.block-carousel .carousel-home .layer .btn-action button,
.side-mobile-btn button {
  background: rgba(0, 0, 0, 0.3);
  margin: 0;
  width: 48px;
  min-height: 48px;
  padding: 0;
  color: var(--white-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Đảm bảo SVG fill toàn bộ button */
.block-carousel .carousel-home .layer .btn-action button svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.block-carousel .carousel-home .layer .btn-action button:hover {
  background: rgba(0, 0, 0, 0.6);
}

.block-carousel .carousel-home .layer .new-popular {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.block-carousel .carousel-home .layer .new-popular a .items {
  background-color: rgba(144, 57, 56, 0.3);
  padding-top: 12px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.block-carousel .carousel-home .layer .new-popular .items span {
  display: block;
  font-size: 14px;
}

.block-carousel .carousel-home .layer .new-popular .items span:first-child {
  letter-spacing: 2px;
  font-weight: 400;

  font-size: 16px;
  color: rgba(255, 255, 255, 1);

  font-family: Alumni Sans;
  text-transform: uppercase;
}

.block-carousel .carousel-home .layer .new-popular .items span:last-child {
  padding-top: 19px;
  color: rgba(255, 255, 255, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid rgba(216, 216, 217, 1);
}

.block-carousel .carousel-home .layer .new-popular .items .title-ex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 15px;
}

.block-carousel .carousel-home .layer .new-popular .items .title-ex .title {
  display: -webkit-box;
  margin-top: 8px;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  font-family: "Inter", sans-serif;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 1.4;
  max-height: calc(1.4em * 2);
  color: var(--white-color);
}

.block-carousel .carousel-home .layer .new-popular .items .date {
  font-size: 12px;
  font-weight: 400;
  margin-top: 8px;
  color: rgba(216, 216, 217, 1);
}

.block-carousel .carousel-home .header .btn {
  background-color: rgba(255, 255, 255, 1);
  color: var(--slide-btn-color);
  border: none;
  display: none;
  padding: 10px 25px;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.side-mobile-btn {
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.block-carousel .carousel-home .layer .left {
  padding: 12px;
  background-color: rgba(144, 57, 56, 0.3);
}

@media (min-width: 768px) {
  .block-carousel .carousel-home {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .block-carousel .carousel-home .layer h2 {
    margin-bottom: 14px;
  }

  .block-carousel .carousel-home .layer .slide {
    width: 100%;
    margin-top: 0;
    position: relative;
  }

  .block-carousel .carousel-home .layer .btn-action button:hover {
    background: rgba(0, 0, 0, 0.6);
  }

  .block-action .list-action {
    padding: 0 80px;
  }

  @media (min-width: 768px) {
    .block-carousel .carousel-home .layer .new-popular {
      gap: 20px;
    }

    .block-carousel .carousel-home .layer .left .slide img {
      height: 462px;
    }
  }
}

@media (min-width: 991px) {
  .block-carousel .carousel-home .layer h2 {
    font-size: 32px;
  }

  #slide-excerpt {
    display: -webkit-box;
  }

  .block-carousel {
    background-image: url("../../../assets/bg-carousel.webp");
  }

  .block-carousel .carousel-home .layer .new-popular {
    margin-top: 0;
    height: 100%;
  }

  .side-mobile {
    display: none;
  }

  .side-desktop {
    display: block;
  }

  .block-carousel .carousel-home .header .btn {
    display: block;
    position: relative;
    z-index: 1;
  }

  .block-carousel .carousel-home .layer {
    gap: 20px;
    flex-direction: row;
  }

  .block-carousel .carousel-home .layer .slide {
    /* min-width: 100%; */
    max-height: 100%;
    height: 100%;
  }

  .block-carousel .carousel-home .layer .slide img {
    width: 100%;
  }

  .block-carousel .carousel-home .layer .left {
    width: 85.5%;
    max-height: 100%;
    display: flex;
    padding: 20px;
    gap: 20px;
    justify-content: space-between;
  }

  .block-carousel .carousel-home .layer .left .header {
    width: 100%;
    max-width: 420px;

  }

  .block-carousel .carousel-home .layer .right {
    width: 15.5%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }


  .block-carousel .carousel-home .layer {
    min-height: 100%;
  }

  .block-action .list-action .items span {
    max-width: 200px;
  }

  .block-action {
    padding: 40px 100px;
  }

  .block-action .list-action {
    padding: 0;
  }
}

@media (min-width: 1200px) {
  .block-carousel .carousel-home {
    /* max-width: 693px; */
    margin: 0 20px;
    padding: 68px 0;
  }

  .block-carousel .carousel-home .layer .slide img {
    max-height: 100%;
    width: 100%;
  }

  .block-carousel .carousel-home .layer .new-popular {
    margin-top: 0;
    display: flex;
    /* cần dòng này */
    /* xếp ngang */
    justify-content: space-between;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    /* khoảng cách giữa các item */
  }

  .block-action .list-action .items {
    align-items: flex-start;
    height: 120px;
  }

  .block-action .list-action {
    display: flex;
    justify-content: center;
    padding: 0;
    flex-direction: row;
    gap: 1px;
    margin: 0 auto;
  }
}

@media (min-width: 1400px) {
  .block-carousel .carousel-home {
    padding: 68px 0;
    max-width: 1276px;
    margin: 0 auto;
  }
}

@media (min-width: 1600px) {
  .block-carousel .carousel-home .layer {
    max-height: 428px;
  }

  .block-carousel .carousel-home .layer .left {
    display: flex;
    justify-content: space-between;
  }

  .block-carousel .carousel-home .header .btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
  }

  .block-action .list-action .items {
    align-items: flex-start;
    width: 318px;
    height: 120px;
  }
}