* {
  margin: 0;
  font-family: "Baloo 2", cursive;
  box-sizing: border-box; /* Tambahan untuk responsive */
}

body {
  background: linear-gradient(to bottom right, #f9dfc8, #f8bfb7, #f8bfb7);
  color: #5a1f1f;
}

/* ==== Header About ==== */
.about-header {
  padding: 20px;
  text-align: center;
  position: relative;
}

.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  border: 2px solid #933;
  border-radius: 25px;
  color: #933;
  text-decoration: none;
  font-weight: bold;
  background-color: #fde3d9;
  transition: 0.3s;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.back-btn:hover {
  background-color: #933;
  color: #fff;
}

.about-header h1 {
  font-size: 2.3rem;
  color: #933;
  margin: 60px 0 30px 0;
  font-family: 'Baloo', cursive;
  letter-spacing: 1px;
  text-align: center;
}

/* === Tentang Kami Layout Baru === */
.about-info {
  display: flex;
  flex-wrap: wrap;
  margin-top: 60px;
  border-radius: 10px;
  overflow: hidden;
  align-items: center; /* Tambahan untuk alignment */
}

.about-text {
  flex: 1;
  padding: 30px;
  color: #5a1f1f;
  font-size: 18px;
  line-height: 1.5;
  min-width: 280px;
  text-align: left;
}

.about-text p {
  margin: 0;
}

.about-img {
  min-width: 500px;
  flex-shrink: 0; /* Mencegah gambar mengecil */
}

.about-img img {
  height: 300px;
  max-width: 100%; /* Tambahan untuk responsive */
  object-fit: cover; /* Tambahan untuk menjaga proporsi */
}

/* ==== Gallery Section ==== */
.gallery-section {
  padding: 10px 20px;
  text-align: center;
}

.gallery-section h1 {
  font-size: 2.3rem;
  color: #933;
  margin: 0 0 30px 0;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  margin-top: 5px;
}

.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
}

.slider-btn {
  background: transparent;
  border: none;
  font-size: 32px;
  color: #a04a34;
  cursor: pointer;
  z-index: 2;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  padding: 0 10px;
}

.slider-card {
  flex: 0 0 calc(50% - 20px);
  padding: 10px;
  box-sizing: border-box;
}

.slider-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ==== Dots ==== */
.slider-dots {
  margin-top: 15px;
}

.slider-dots .dot {
  height: 8px;
  width: 8px;
  margin: 0 5px;
  background-color: #a04a34;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.slider-dots .dot.active {
  opacity: 1;
}

/*FOOTER*/
.site-footer {
  background-color: #8c3129;
  color: #fff;
  text-align: center;
  padding: 20px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  margin-top: 40px;
  font-size: 15px;
  line-height: 1;
  color: #f9dfc8;
  font-weight: bolder;
}

/* === Animasi Popup Fade & Zoom === */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  display: flex;
  opacity: 1;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-image {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.popup-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* === RESPONSIVE BREAKPOINTS === */

/* Tablet Portrait (768px ke bawah) */
@media screen and (max-width: 768px) {
  .about-header {
    padding: 15px;
  }
  
  .back-btn {
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .about-header h1 {
    font-size: 1.8rem;
    margin: 50px 0 20px 0;
  }
  
  /* About Info jadi vertikal di tablet */
  .about-info {
    flex-direction: column;
    margin-top: 30px;
  }
  
  .about-text {
    padding: 20px;
    font-size: 16px;
    order: 2; /* Text di bawah gambar */
  }
  
  .about-img {
    min-width: 100%;
    order: 1; /* Gambar di atas */
    text-align: center;
  }
  
  .about-img img {
    height: 250px;
    width: auto;
  }
  
  .gallery-section h1 {
    font-size: 1.8rem;
  }
  
  /* Slider responsif untuk tablet */
  .slider-container {
    overflow: hidden;
    position: relative;
    padding: 0 50px;
  }

  .slider-track {
    gap: 0;
  }

  .slider-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }

  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #a04a34;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    border: none;
  }

  .slider-btn.left {
    left: 10px;
  }

  .slider-btn.right {
    right: 10px;
  }
}

/* Mobile Portrait (480px ke bawah) */
@media screen and (max-width: 480px) {
  .about-header {
    padding: 10px;
  }
  
  .back-btn {
    position: absolute; /* Tetap absolute di mobile */
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .about-header h1 {
    font-size: 1.5rem;
    margin: 40px 0 15px 0;
  }
  
  .about-info {
    margin-top: 20px;
  }
  
  .about-text {
    padding: 15px;
    font-size: 15px;
    line-height: 1.4;
  }
  
  .about-img img {
    height: 200px;
  }
  
  .gallery-section {
    padding: 10px 15px;
  }
  
  .gallery-section h1 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  /* Slider mobile */
  .slider-container {
    padding: 0 20px;
  }
  
  .slider-btn {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 24px;
  }
  
  .slider-btn.left {
    left: 5px;
  }

  .slider-btn.right {
    right: 5px;
  }
  
  /* Popup responsive */
  .popup-close {
    top: 15px;
    right: 20px;
    font-size: 30px;
  }
  
  .popup-image {
    max-width: 95%;
    max-height: 85%;
  }
  
  /* Footer responsive */
  .site-footer {
    padding: 15px;
    font-size: 13px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }
}

/* Mobile Landscape (lebih kecil lagi) */
@media screen and (max-width: 320px) {
  .about-header h1 {
    font-size: 1.2rem;
  }
  
  .about-text {
    font-size: 14px;
    padding: 10px;
  }
  
  .gallery-section h1 {
    font-size: 1.2rem;
  }
  
  .slider-btn {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 20px;
  }
}