@media (max-width: 992px) {
  /* Testimoni */
    .section-header {
    font-size: 24px;
  }

  .testimoni-card {
    padding: 18px;
  }

  .testimoni-card h3 {
    font-size: 16px;
  }

  .testimoni-text {
    font-size: 13px;
  }

  .swiper-button-prev { left: -20px; }
  .swiper-button-next { right: -20px; }
}

@media  (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-and-btn {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--color-secondary);
    padding: 10px 20px;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    animation: slideDown 0.3s ease;
  }

  .nav-and-btn.show {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .nav-underline {
    display: none !important;
  }

  .btn-contact {
    margin-top: 10px;
  }


  /* Hero Section */
  .hero-section {
    min-height: 100dvh; /* untuk memastikan penuh di HP modern */
    padding: 4rem 1rem 2rem;
  }

  .hero-title-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .hero-icon img {
    width: 40px;
  }

  .hero-section h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .hero-section p {
    font-size: 0.95rem;
    text-align: center;
  }

  /* Hero Section */
  .hero-container,
  .about-content,
  .visi-misi-section {
    max-width: 100%;
    flex-direction: column;
    padding: 20px;
    margin: 0;
  }

  .hero-container{
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 100px 20px;
    text-align: left;
    width: 100%;
    margin: 0;
  } 

  .hero-text {
    text-align: left;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 14px;
    max-width: 100%;
  }

  .hero-text button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .hero-images {
    margin-top: 20px;
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-images img {
    width: 100%;
    max-width: 350px;
    height: auto;
  }

  /* About Us Section */
  .about-text {
    border-left: none;
    padding-left: 0;
  }

  .about-text p {
    width: 100%;
  }

  .visi-misi-text {
    text-align: left;
  }

  .visi-misi-image {
    margin-top: 20px;
    margin-left: 0;
    display: flex;
    justify-content: center;
  }

  .visi-misi-image img {
    margin: 0;
    max-width: 90%;
  }

  .heading-line {
    width: 100%;
    max-width: 375px;
    margin: 0 auto 20px auto;
  }

  .visi h3,
  .misi h3 {
    margin-top: 10px;
    text-align: center;
  }

  .about-content-2 {
    flex-direction: column-reverse;
  }

  /* Testimoni */
  .section-header {
    font-size: 22px;
  }

  .testimoni-swiper {
    padding: 10px 30px;
  }

  .testimoni-card {
    padding: 16px;
  }

  .avatar {
    width: 45px;
    height: 45px;
  }

  .testimoni-card h3 {
    font-size: 15px;
  }

  .testimoni-text {
    font-size: 13px;
    padding: 10px;
  }

  .swiper-button-prev { left: -15px; }
  .swiper-button-next { right: -15px; }

  /* Services Section */
   .fasilitas-section {
    padding: 2rem 1rem;
  }

  .fasilitas-grid {
    grid-template-columns: 1fr;
  }

  .fasilitas-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* untuk membuat card center */
  }

  .fasilitas-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 14px 16px;
    width: 100%;
    max-width: 390px;  /* batas maksimum lebar card */
    box-sizing: border-box;
  }

  .icon-circle {
    min-width: 36px;
    min-height: 36px;
    margin-right: 10px;
  }

  .icon-circle img {
    width: 18px;
    height: 18px;
  }

  .card-content h4 {
    font-size: 13.5px;
  }

  .card-content p {
    font-size: 12.5px;
  }
  
 /* Contact */
  .contact-container {
    flex-direction: column; /* dari sejajar jadi vertikal */
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info h2 {
    font-size: 22px;
    line-height: 1.4;
  }

  .map-container {
    margin: 20px auto;
    max-width: 100%;
  }

  .contact-form {
    padding: 25px;
    max-width: 100%;
  }

  .contact-form h3 {
    font-size: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 12px;
  }

  .contact-form textarea {
    height: 100px;
  }

  .contact-form button {
    font-size: 16px;
    padding: 12px;
  }
}

/* Animasi */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
  
}

@media (max-width: 480px) {
   /* Testimoni */
    .section-header {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .testimoni-swiper {
    padding: 0 20px;
  }

  .testimoni-card {
    padding: 14px;
  }

  .avatar {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }

  .testimoni-card h3 {
    font-size: 14px;
  }

  .rating {
    font-size: 12px;
  }

  .testimoni-text {
    font-size: 12px;
    line-height: 1.3;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none; /* panah disembunyikan di mobile */
  }
}

/* iPhone 12 Pro - Portrait */
@media only screen 
  and (min-device-width: 390px) 
  and (max-device-width: 390px) 
  and (min-device-height: 844px) 
  and (max-device-height: 844px) 
  and (-webkit-min-device-pixel-ratio: 3) 
  and (orientation: portrait) {
    
    .fasilitas-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 14px 16px;
    width: 100%;
    max-width: 360px;  /* batas maksimum lebar card */
    box-sizing: border-box;
    }
}

@media screen 
 and (max-width: 375px)
 and (min-width: 375px) {
  .fasilitas-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 14px 16px;
    width: 100%;
    max-width: 325px;  /* batas maksimum lebar card */
    box-sizing: border-box;
    }
}

/* Slider Produk Section */

@media (max-width: 1023px) {
  .slider-wrapper .slide-button {
    display: none!important;
  }

  .slider-wrapper .image-list {
    gap: 10px;
    margin-bottom: 15px;
  }

  .slider-wrapper .image-list .image-item {
    width: 325px;
    height: 400px;
    object-fit: cover;
  }

  .slider-scrollbar .scrollbar-thumb {
    width: 50%;
  }
}