/* Section wrapper */
.page-section {
  padding: 40px 0;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}

.page-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Content layout */
.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px; /* jarak teks-gambar */
  margin-bottom: 25px; /* jarak antar blok */
}

/* Alternate layout (desktop): blok genap dibalik*/
.content:nth-of-type(even) {
  flex-direction: row-reverse;
}

/* Text section */
.text-section {
  flex: 1;
  min-width: 280px;
  text-align: center; /* teks selalu rata tengah */
}

.text-section h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  position: relative;
  display: inline-block; /* supaya garis bisa ikut */
}

/* Garis aksen kuning */
.text-section h1::after {
  content: "";
  display: block;
  width: 150px;
  height: 4px;
  background-color: #fff800;
  margin: 8px auto 0; /* auto = selalu tengah */
  border-radius: 2px;
}

.text-section ul {
  list-style: disc inside;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #555;
  text-align: left; /* list tetap rata kiri biar mudah dibaca */
  display: inline-block; /* biar tetap center di tengah */
}

.text-section li {
  margin-bottom: 8px;
}

/* Button */
.read-more {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.read-more:hover {
  background-color: #0056b3;
}

/* Image section */
.image-section {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.image-section img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive (HP/Tablet) */
@media (max-width: 768px) {
  .content {
    flex-direction: column; /* selalu ditumpuk */
    text-align: center;
    gap: 15px;
    margin-bottom: 20px;
  }

  /* urutan: teks dulu, gambar setelahnya*/
  .content .text-section {
    order: 1;
  }

  .content .image-section {
    order: 2;
  }

  /* judul lebih kecil di HP */
  .text-section h1 {
    font-size: 1.5rem;
  }
}
