/* Default body styling */
body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  text-align: center;
  padding: 20px;
  background: #f4f4f4;
  border-bottom: 1px solid #ddd;
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Breadcrumbs */
.breadcrumbs {
  position: fixed;
  right: 10px;
  top: 40%;
  transform: translateY(-50%);
  padding: 10px;
  z-index: 9999;
}

.breadcrumbs ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.breadcrumbs ul::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0;
  bottom: 26px;
  width: 4px;
  background-color: #333;
}

.breadcrumbs li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 20px;
}

.breadcrumbs li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #333;
}

.breadcrumbs li.active::before {
  background-color: #f00;
}

.breadcrumbs a {
  text-decoration: none;
  color: #333;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Animasi Header */
header.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animasi Breadcrumbs */
.breadcrumbs {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.breadcrumbs.visible {
  opacity: 1;
  transform: translateX(0);
}

.breadcrumbs.visible li:nth-child(1) {
  transition-delay: 0.2s;
}
.breadcrumbs.visible li:nth-child(2) {
  transition-delay: 0.4s;
}
.breadcrumbs.visible li:nth-child(3) {
  transition-delay: 0.6s;
}

/* Styling untuk section Tentang dan Anggota */
.tentang,
.anggota {
  margin: 20px auto;
  max-width: 1200px;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.anggota h2,
.tentang h2 {
  margin-top: 0;
}

#search-input {
  width: 98%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#anggota-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /*gap: 47px; */
}

.anggota-item {
  /* width: calc(33.333% - 20px); 3*/
  /* width: calc(50% - 20px); 2*/
  width: calc(25% - 20px);
  align-items: stretch;
  min-height: 200px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.anggota-bg {
  width: 150px;
  height: 150px;
  /* border-radius: 50%; */
  background: url("image/podcast-smktag-no-bg.png") no-repeat center;
  background-size: cover;
  position: relative; /* Untuk menjadi dasar dari gambar */
}

.anggota-item.focused {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.anggota-item img {
  position: relative;
  width: 100px; /* Sesuaikan ukuran gambar */
  height: 100px;
  background-size: cover;
  /* border-radius: 50%; */
  position: absolute;
  top: 30%; /* Naik ke atas agar berada di tengah */
  left: 15%;
  transform: translateX(-50%);
  z-index: 2; /* Pastikan gambar di atas background */
}

.anggota-item .info {
  flex: 1;
}

.anggota-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.anggota-item p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}

.anggota-item p:last-child {
  font-style: italic;
  color: #888;
}

/* Styling Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination button {
  padding: 10px 15px;
  margin: 0 5px;
  border: 1px solid #ddd;
  background-color: #f8f8f8;
  cursor: pointer;
  border-radius: 4px;
}

.pagination button.active {
  background-color: #333;
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #f4f4f4;
  border-top: 1px solid #ddd;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.social-links {
  list-style-type: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  gap: 15px;
}

.social-links li {
  display: inline-block;
}

.social-links a {
  text-decoration: none;
  color: #333;
  font-size: 24px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #007bff;
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs li:last-child::before {
  top: -10px;
}

/* Animasi Tentang & Anggota */
.tentang,
.anggota {
  opacity: 1;
  transform: translateX(-50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.tentang.visible,
.anggota.visible {
  opacity: 1;
  transform: translateX(0);
}

.anggota-item:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Galeri Episode */
#galeri {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Input pencarian */
#search-episode {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Daftar Episode */
#episode-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Style tiap episode */
.episode {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.episode:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.episode h3 {
  margin: 0;
  color: #222;
}

.episode p {
  margin: 5px 0;
  color: #666;
}

.episode a {
  display: inline-block;
  text-decoration: none;
  color: white;
  background: #ffcc00;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.episode a:hover {
  background: #e6b800;
}

/* Container utama untuk kegiatan */
#kegiatan {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.carousel-slide img {
  width: 100%;
  border-radius: 10px;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Container utama FAQ */
#faq {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Judul FAQ */
#faq h2 {
  font-size: 24px;
  text-align: center;
  color: #222;
  margin-bottom: 20px;
}

/* Setiap item FAQ */
.faq-item {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Efek hover pada FAQ */
.faq-item:hover {
  background: #f1f1f1;
}

/* Pertanyaan (h3) */
.faq-item h3 {
  font-size: 18px;
  color: #333;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Jawaban (p) */
.faq-item p {
  font-size: 16px;
  color: #555;
  margin-top: 10px;
  display: none; /* Disembunyikan awalnya */
}

/* Efek dropdown */
.faq-item.active p {
  display: block;
}

/* Media Queries for responsiveness */

/* Mobile (up to 600px) */
@media (max-width: 600px) {
  header {
    padding: 10px;
  }

  .breadcrumbs {
    position: fixed;
    top: 42%;
    right: 0px;
  }

  .tentang,
  .anggota {
    margin: 10px;
    padding: 15px;
  }

  .anggota-item {
    width: 100%;
    padding: 10px;
  }

  .anggota-item img {
    max-width: 60px;
    height: 60px;
  }

  .pagination button {
    padding: 8px 12px;
  }

  #search-input {
    width: 95.5%;
    font-size: 14px;
    padding: 8px;
  }
}

/* Tablet (601px to 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  .breadcrumbs {
    position: fixed;
    top: 30%;
  }

  .tentang,
  .anggota {
    margin: 20px;
    padding: 20px;
  }

  .anggota-item {
    width: 48%;
    margin-bottom: 15px;
  }

  .anggota-item img {
    max-width: 70px;
    height: 70px;
  }

  .pagination button {
    padding: 9px 13px;
  }
}

/* Desktop (1025px and above) */
@media (min-width: 1025px) {
  .breadcrumbs {
    position: fixed;
    top: 40%;
  }

  .tentang,
  .anggota {
    margin: 20px auto;
    padding: 20px;
  }

  .anggota-item {
    width: 48%;
  }

  .anggota-item img {
    max-width: 80px;
    height: 80px;
  }

  .pagination button {
    padding: 10px 15px;
  }
}

/* TV (Large screens) */
@media (min-width: 1600px) {
  .breadcrumbs {
    position: fixed;
    top: 40%;
    right: 20px;
  }

  .tentang,
  .anggota {
    max-width: 1600px;
    margin: 40px auto;
    padding: 30px;
  }

  .anggota-item {
    width: 30%;
  }
}
