
/* XEROFI CAROUSEL - TABLET FIX */
/* Untuk layar 600px sampai 1199px */

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

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

  /* Hanya slide 1, 2, dan 3 */
  #heroCarousel .carousel-item:nth-child(-n+3) {
    height: 75vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
  }

  /* Posisi tulisan */
  #heroCarousel .carousel-item:nth-child(-n+3) .carousel-caption {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;

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

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

    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    z-index: 3;
  }

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

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

  /* Area 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: 12px !important;
    margin-top: 10px !important;
  }

  /* Tombol */
  #heroCarousel .carousel-item:nth-child(-n+3) .sectionbtn a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 20px !important;
    margin: 0 !important;
    font-size: 15px !important;
    white-space: nowrap;
  }

}
