* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  padding: 0px 0px;
  font-family: 'Poppins', sans-serif; /* Ganti dengan 'Montserrat' jika Anda pilih font ini */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; /* Untuk judul, gunakan font yang lebih bold */
}

.wrapper {
  max-width: flex;
  margin: 0 auto;
}

.header-mobile {
  display: none;
}

.header {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 0px;
}

/* Logo */
.logo-container .logo {
  height: 110px;
}

/* Judul tengah */
.judul {
  flex: 1;
  text-align: center;
  font-weight: bold;
  max-width: 850px;
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
  padding: 0 10px;
}

/* Time container pojok kanan */
.time-container {
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  width: 220px;
  height: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.time-heading {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.time-heading i {
  margin-right: 6px;
  color: #4e54c8;
}

.jam {
  font-size: 23px;
  font-weight: bold;
  color: #4e54c8;
  margin-bottom: 4px;
}

.tanggal {
  font-size: 16px;
  font-weight: bold;
  color: #555;
}

/* Tambahan untuk layout lima kolom */

.antrian-grid {
  display: flex;
  gap: 5px;
  padding: 5px;
  flex-wrap: wrap;
  ackground-color: transparent;
  justify-content: center;
  position: relative;
  margin-bottom: 0px;
}

.antrian-box {
  flex: 0 1 340px;
  border-radius: 20px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin: 0 auto; /* tengah jika single column */
  box-sizing: border-box;
  margin-top: 30px;
  margin-bottom: 20px;
}

@keyframes pulseFade {
  0% {
      transform: scale(1);
      background-color: #E2F516;
  }
  50% {
      transform: scale(1.07);
      background-color: #FFF780;
  }
  100% {
      transform: scale(1);
      background-color: #E2F516;
  }
}

.antrian-box.animate-change {
  animation: pulseFade 1s ease;
}

.antrian-box .loket-title {
  font-size: 1.8rem;
  color: #660000;
  margin-bottom: 10px;
}

.antrian-box .nomor {
  flex: 0 1 340px;
  font-size: clamp(5rem, 8vw, 17rem);
  font-weight: bold;
  word-break: break-word;
  margin-top: 60px;
  margin-bottom: 70px;
}

.loket-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: bold;
  color: #333;
  border: 0px solid #fff;  /* Perbaikan di sini */
  background-color: #FFF6D2;
  border-radius: 6px;
  padding: 5px;
}

.antrian-box hr {
  border: none;
  height: 3px;
  background-color: #660000; /* atau #ccc jika ingin lebih netral */
  margin: 10px 0 20px 0;
  border-radius: 2px;
}

.button-sound {
  position: absolute;       /* Agar bisa ditaruh di pojok */
  bottom: 10px;
  left: 12px;
  width: 36px;              /* Ukuran kecil (ikon) */
  height: 36px;
  padding: 0;
  font-size: 18px;
  background-color: #FF8C00;
  color: #FFF;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;            /* Pusatkan ikon dalam tombol */
  align-items: center;
  justify-content: center;
}

.button-sound i {
}

.button-sound:hover {
  transform: scale(1.1);
  background-color: #FF0000;
}

.marquee-container {
  width: 100%;
  max-width: 100vw;
  position: relative;
  margin-top: 10px;
  text-align: center;
  padding: 5px 10px;
  color: #fff;
  font-weight: bold;
  overflow: hidden; /* jika ada animasi marquee */
  box-sizing: border-box; /* pastikan padding tidak menambah lebar */
}

.social-media {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 0px;
  padding-bottom: 20px;
  background-color: #333;
}

.social-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  margin-top: 20px;
  transition: color 0.3s, transform 0.3s;
}

.social-icon i {
  font-size: 24px;
}

.social-icon:hover {
  transform: scale(1.05);
}

.social-icon.ig:hover {
  color: #E4405F;
}

.social-icon.yt:hover {
  color: #FF0000;
}

.social-icon.web:hover {
  color: #E2F516;
}

/* ======= MOBILE STYLES DI BAWAH INI ======= */

@media (max-width: 768px) {
  .header {
    display: none !important;
  }

  .time-container {
    text-align: center;
  }

  .header-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #2F855A;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .header-mobile .logo-container {
    display: flex;
    gap: 10px;
  }

  .header-mobile .logo {
    height: 40px;
    object-fit: contain;
  }

  .judul-mobile {
    display: flex;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    color: white;
  }
  
  .antrian-grid {
    justify-content: center;
  }

  .antrian-box {
    flex: 0 0 45% !important;
    width: auto !important;
    margin: 1%;
    box-sizing: border-box;
    margin-top: 20px;
  }

  .antrian-box .nomor {
    display: block; /* PENTING: pastikan ini elemen blok */
    font-size: clamp(4.5rem, 5vw, 12rem);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word; /* tambahan untuk jaga-jaga */
    width: 100%;
    text-align: center;
  }

  .social-icon i {
    font-size: 24px;
  }

  .social-icon span {
    display: none;
  }
}
