
/* XEROFI CAROUSEL - TABLET FIX */

@media (min-width: 768px) and (max-width: 1199.98px) {

  /* Carousel */
  #heroCarousel {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  /* Hanya caption slide 1, 2, dan 3 */
  #heroCarousel .carousel-item:nth-child(-n+3) .carousel-caption {
    position: absolute !important;

    top: 50% !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;

    width: 80% !important;
    max-width: 800px !important;

    margin: 0 !important;
    padding: 15px !important;

    transform: translate(-50%, -50%) !important;
    text-align: center !important;

    z-index: 2;
  }

  /* Judul */
  #heroCarousel .carousel-item:nth-child(-n+3) .carousel-caption h1 {
    font-size: clamp(30px, 4vw, 48px) !important;
    line-height: 1.2 !important;
    margin-bottom: 18px !important;
  }

  /* Subjudul */
  #heroCarousel .carousel-item:nth-child(-n+3) .carousel-caption p {
    font-size: 18px !important;
    line-height: 1.5 !important;
  }

  /* Tombol */
  #heroCarousel .carousel-item:nth-child(-n+3) .sectionbtn {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
  }

  #heroCarousel .carousel-item:nth-child(-n+3) .sectionbtn a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    padding: 12px 24px !important;
    margin: 0 !important;
    font-size: 16px !important;
  }

  /* Panah navigasi */
  #heroCarousel .carousel-control-prev,
  #heroCarousel .carousel-control-next {
    z-index: 10;
    opacity: 1;
  }

}
