:root {
  --white: #ffffff;
  --light-cyan: #00f0ff;
  --soft-blue: #a6d8ff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(0, 255, 255, 0.1);
  --shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

/* ===== VANTA Background ===== */
html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ===== Konten ===== */
.pengumuman-section {
  position: relative;
  z-index: 1;
  padding: 4rem 1rem;
}

.pengumuman-section {
  position: relative;
  padding-top: 4rem; /* jarak dari atas agar tidak ketutup navbar */
  z-index: 1;
}

.pengumuman-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: var(--white);
  text-align: center;
  font-weight: 800;
  position: relative;
  z-index: 3;
  text-shadow:
     0 1px 3px rgba(0, 0, 0, 0.6), /* bayangan gelap lembut */
    0 0 6px rgb(0, 0, 0);   /* efek tambahan glow ringan */
}

/* Tambahan untuk tampilan mobile */
@media (max-width: 768px) {
  .pengumuman-section {
    padding-top: 4rem; /* lebih besar karena navbar biasanya fixed */
  }

  .pengumuman-section h2 {
    padding-top: 4rem;
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
}

/* ===== Kartu Pengumuman ===== */
.announcement {
  background: rgba(23, 2, 2, 0.142);
  backdrop-filter: blur(12px);
  border-radius: 1.2rem;
  padding: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgb(5, 255, 192);
  border: 1px solid rgb(0, 255, 195);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.announcement:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgb(0, 255, 255);
}

.announcement h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  text-shadow:
     0 1px 3px rgba(0, 0, 0, 0.6), /* bayangan gelap lembut */
    0 0 6px rgb(0, 0, 0);   /* efek tambahan glow ringan */
}

.announcement p,
.modal-body p {
  color: #ffffff; /* lebih terang dari #e6faff */
  font-weight: 500;
  text-shadow:
     0 1px 3px rgba(0, 0, 0, 0.6), /* bayangan gelap lembut */
    0 0 6px rgb(0, 0, 0);   /* efek tambahan glow ringan */
}

.announcement small {
  display: block;
  margin-top: 0.8rem;
  color: var(--soft-blue);
  font-size: 0.85rem;
  text-shadow:
     0 1px 3px rgba(0, 0, 0, 0.6), /* bayangan gelap lembut */
    0 0 6px rgb(0, 0, 0);   /* efek tambahan glow ringan */
}

/* ===== Scroll Gambar Horizontal ===== */
.image-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--light-cyan) transparent;
  color: #ffffff;
}

.image-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.image-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--light-cyan);
  border-radius: 4px;
}

.image-scroll-container img {
  height: 120px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
  border: 2px solid #ffffff33;
  transition: transform 0.3s ease;
}

.image-scroll-container img:hover {
  transform: scale(1.05);
  border-color: var(--light-cyan);
}

/* ===== Modal Glass Effect ===== */
.modal-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
  color: #ffffff;
  transition: all 0.3s ease-in-out;
}

.modal-header {
  background: rgba(0, 240, 255, 0.08);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.15);
  color: var(--white);
}

.modal-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.4rem;
  text-shadow:
     0 1px 3px rgba(0, 0, 0, 0.6), /* bayangan gelap lembut */
    0 0 6px rgb(0, 0, 0);  /* efek tambahan glow ringan */
    
}

.modal-body {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  font-size: 1.05rem;
  color: #e0f7ff;
  border-left: 1px solid rgba(0, 240, 255, 0.1);
  border-right: 1px solid rgba(0, 240, 255, 0.1);
}

.modal-footer {
  background: rgba(0, 240, 255, 0.05);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
}

.modal-body img {
  max-height: 300px;
  border-radius: 0.5rem;
  margin-bottom: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .pengumuman-section {
    padding: 2rem 1rem;
  }

  .announcement h3 {
    font-size: 1.25rem;
  }

  .announcement p {
    font-size: 0.95rem;
  }

  .modal-dialog {
    max-width: 95%;
    margin: auto;
  }

  .image-scroll-container {
    flex-direction: column;
    align-items: center;
  }
}

.btn-close {
  background-color: #ff4d4d;
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 10px #ff4d4d66, 0 0 20px #ff1a1a33;
  text-shadow: 0 0 3px #fff;
}

.btn-close:hover {
  background-color: #ff1a1a;
  box-shadow: 0 0 15px #ff4d4d, 0 0 25px #ff1a1a;
  transform: scale(1.05);
}

.text-muted {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff !important;
  text-shadow:
  0 1px 3px rgba(0, 0, 0, 0.6), /* bayangan gelap lembut */
    0 0 6px rgb(0, 0, 0);  /* efek tambahan glow ringan */
  font-family: 'Segoe UI', sans-serif;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-block;
  letter-spacing: 0.03em;
}

.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.img-modal-content {
  display: block;
  margin: 5% auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 25px #00f0ff99;
  animation: zoomIn 0.4s ease;
}
.modal img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

/* Animasi saat hover */
.modal img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgb(0, 255, 213);
  cursor: pointer;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.img-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 32px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

.img-close:hover {
  color: #ff0000;
}


@media (max-width: 576px) {
  html, body {
    font-size: 14px;
  }

  .pengumuman-section {
    padding: 1.5rem 0.8rem;
  }

  .pengumuman-section h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .announcement {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
  }

  .announcement h3 {
    font-size: 1.2rem;
  }

  .announcement p {
    font-size: 0.9rem;
  }

  .announcement small {
    font-size: 0.75rem;
  }

  .image-scroll-container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .image-scroll-container img {
    height: auto;
    max-width: 90%;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .modal-footer {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }

  .modal-body img {
    max-height: 200px;
    max-width: 100%;
  }

  .btn-close {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .text-muted {
    font-size: 0.8rem;
    padding: 3px 6px;
    text-align: center;
  }

  .img-close {
    font-size: 28px;
    top: 16px;
    right: 20px;
  }

  .img-modal-content {
    margin-top: 20%;
    max-height: 60vh;
  }
}
@media (max-width: 576px) {
  .modal-header {
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.2rem;
    gap: 0.4rem;
    text-align: center;
    position: relative;
  }

  .modal-title {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
  }

  .text-muted {
    display: none;
  }

  .modal-header .btn-close {
    position: absolute;
    top: 10px;
    right: 15px;
    margin: 0;
    z-index: 1;
  }
}


