#announcement-board {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #4a044e 0%, #21052e 100%);
  border: 1px solid #30363d;
  border-radius: 0.375rem;
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  #announcement-board { height: 400px; }
  #announcement-slider { display: none; }
  #announcement-list { display: block; }
}

@media (max-width: 991.98px) {
  #announcement-board { height: 300px; }
  #announcement-slider {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    padding: 0.5rem 1rem;
  }
  #announcement-list { display: none; }
}

.announcement-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #30363d;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  flex-shrink: 0;
}

#announcement-list {
  flex-grow: 1;
  min-height: 0;
  padding: 0.5rem 1rem;
  overflow-y: auto;
}

/* Penyesuaian untuk gambar di desktop agar tidak terlalu besar */
.announcement-item {
  display: flex;
  padding: 0.75rem 0;
  border-bottom: 1px dashed #4b5563;
}
.announcement-item:last-child {
  border-bottom: none;
}

.announcement-indicator {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e9ecef;
  font-size: 1.2rem;
  font-weight: bold;
  color: #6c757d;
}
.announcement-indicator img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.announcement-item-content {
  flex-grow: 1;
  min-width: 0;
}

.announcement-item-content p {
  margin: 0 0 0.5rem 0;
  color: #c9d1d9;
  font-size: 0.9rem;
  word-wrap: break-word;
}

.announcement-item-content small {
  color: #8b949e;
  font-size: 0.75em;
}

/* Style untuk slider mobile */
.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slider-item.active {
  opacity: 1;
}

/* Perbaikan: Style untuk gambar di slider mobile */
.slider-image-container {
    width: 100%;
    max-height: 100px;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}
.slider-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-item-content {
    color: #c9d1d9;
    font-size: 1rem; /* Ukuran font judul */
    text-align: center;
}
.slider-item-content h6 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}
/* Tambahan: Mengatur ukuran font untuk isi pengumuman dan tanggal */
.slider-item-content p {
    margin-top: 0.5rem;
    font-size: 0.8rem; /* Ukuran font isi pengumuman diperkecil */
}
.slider-item-content small {
    display: block;
    color: #8b949e;
    font-size: 0.7rem; /* Ukuran font tanggal diperkecil */
}

a.announcement-item,
a.slider-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.announcement-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease-in-out;
}
/* Tambahkan ini untuk memastikan tag <a> mengisi seluruh area slide */
.slider-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}