/* ===== Hero Section ===== */
.hero {
  background-image: url('/assets/images/hero-img.png');
  height: 70vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  position: relative;
  /* Reset padding-top karena hero adalah bagian dari body */
  margin-top: -100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  margin-top: auto;
  margin-bottom: 7rem;
  margin-left: 8rem;
  text-align: left;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.1;
}

.hero-content p {
  font-size: 2rem;
  margin-top: 0.5rem;
}

/* ===== Section Keunggulan Kami (Advantage Cards) ===== */
.col-half {
  flex: 0 0 50%;
  max-width: 50%;
}

.advantage-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  flex: 0 0 70%;
  margin-left: -200px;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.z-back {
  flex: 0 0 50%;
  width: 50%;
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
  overflow: hidden; /* Untuk animasi */
}

.z-back img {
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 1;
  border-radius: 1rem;
  transition: opacity 0.4s ease-in-out;
}

.z-front {
  position: relative;
  z-index: 2;
}

.advantage-card {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  padding: 3rem 1rem;
  text-align: left;
  max-width: 250px;
  width: 100%;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.advantage-card:hover {
  transform: translateY(-5px);
  background-color: #1A1A1A;
}

.posisi {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.advantage-card:hover .advantage-description {
  color: #fff;
  /* background-color: #fff; */
  transition: all 0.3s ease;
}
.advantage-card:hover .advantage-line {
  /* color: #fff; */
  background-color: #fff;
  transition: all 0.3s ease;
}

.advantage-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: #C79E3D;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.advantage-line {
  width: 100px;
  height: 4px;
  border-radius: 2rem;
  background-color: var(--black);
  margin: 1.2rem 0;
}

.advantage-description {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--black);
}

/* ===== Animasi Ganti Gambar (Fade Biasa) ===== */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-in-out forwards;
}

/* Efek shimmer card */
.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.advantage-card:hover::before {
  left: 100%;
}

/* ===== Section Galeri di Home ===== */
.y-center {
  margin-top: auto;
  margin-bottom: auto;
  padding-left: 3rem;
  padding-right: 3rem;
}

.gallery-image {
  width: 100%;
  height: auto;
}

.gallery-title {
  font-weight: 900;
}

/* ===== Responsive Design (KHUSUS HOME) ===== */

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content p {
    font-size: 1.5rem;
  }
  .hero-content {
    margin-left: 5rem;
    margin-bottom: 9rem;
  }
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content {
    margin-left: 5rem;
    margin-bottom: 9rem;
  }
  .y-center {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content {
    margin-left: 5rem;
    margin-bottom: 7rem;
  }

  /* Keunggulan */
  .advantage-cards {
    flex: 0 0 100%;
    width: 70%;
    margin-left: 0;
    padding-top: 0;
  }
  .advantage-card {
    padding: 2rem;
    max-width: 85%;
    margin: 0 auto;
  }
  .advantage-title {
    font-size: 1.6rem;
  }
  .z-back {
    display: none;
  }
  .posisi {
    position: static;
    flex-direction: column;
    margin-top: 2rem;
  }
  .advantage-description {
    font-size: 1rem;
  }

  .y-center {
    margin-top: auto;
    margin-bottom: auto;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 50vh;
    min-height: 350px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-content {
    margin-left: 3rem;
    margin-bottom: 7rem;
  }

  /* Galeri Home */
  .d-flex {
    flex-direction: column;
  }
  .gallery-image-wrapper {
    order: 1;
  }

  /* Keunggulan */
  .advantage-card {
    padding: 1.5rem;
  }
  .advantage-title {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }
  .advantage-line {
    margin: 0.5rem 0;
    height: 3px;
  }
  .col-half {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .y-center {
    order: 2;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}