/* ================================================================
   css/pengumuman.css — Halaman Daftar Pengumuman & Berita List Shared
   ================================================================ */

/* ══════════════════════════════════════════════════════════════════
   1. FEATURED ITEM (Hero Card Utama)
   ══════════════════════════════════════════════════════════════════ */
.pengumuman-featured,
.berita-featured {
  background-color: transparent;
  border: none;
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color 0.18s ease;
}

.pengumuman-featured:hover,
.berita-featured:hover {
  background-color: rgba(var(--clr-primary), 0.025);
  box-shadow: none !important;
  transform: none !important;
}

.pengumuman-featured:hover .pengumuman-featured__title,
.pengumuman-featured:hover .pengumuman-featured__title a,
.berita-featured:hover .berita-featured__title,
.berita-featured:hover .berita-featured__title a {
  color: rgb(var(--clr-primary));
}

.pengumuman-featured__img-wrap,
.berita-featured__img-wrap {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background-color: rgb(var(--clr-img-bg));
}

@media (min-width: 768px) {
  .pengumuman-featured__img-wrap,
  .berita-featured__img-wrap {
    height: 100%;
    min-height: 210px;
  }
}

.pengumuman-featured__img,
.berita-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pengumuman-featured__body,
.berita-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0.25rem 0;
}

.pengumuman-featured__title,
.berita-featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  color: rgb(var(--clr-heading));
  margin-bottom: 0.65rem;
}

.pengumuman-featured__title a,
.berita-featured__title a {
  color: rgb(var(--clr-heading));
  text-decoration: none;
  transition: color 0.2s ease;
}

.pengumuman-featured__title a:hover,
.berita-featured__title a:hover {
  color: rgb(var(--clr-primary));
}

.pengumuman-featured__desc,
.berita-featured__desc {
  font-size: var(--fs-base);
  color: rgb(var(--clr-body));
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pengumuman-featured__btn,
.berita-featured__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgb(var(--clr-white));
  border: 1px solid rgba(var(--clr-black), 0.1);
  color: rgb(var(--clr-body));
  text-decoration: none;
  margin-top: 1rem;
  align-self: flex-start;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  box-shadow: none !important;
  transform: none !important;
}

.pengumuman-featured__btn:hover,
.berita-featured__btn:hover {
  background: rgb(var(--clr-primary));
  color: rgb(var(--clr-white)) !important;
  border-color: rgb(var(--clr-primary));
  box-shadow: none !important;
  transform: none !important;
}

.pengumuman-featured__btn i,
.berita-featured__btn i {
  font-size: 0.72rem;
}

/* ══════════════════════════════════════════════════════════════════
   2. META INFORMATION
   ══════════════════════════════════════════════════════════════════ */
.pengumuman-meta,
.berita-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: var(--fs-sm);
  color: rgb(var(--clr-muted));
}

.pengumuman-meta__item,
.berita-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pengumuman-meta__item i,
.berita-meta__item i {
  font-size: 0.85rem;
  color: rgb(var(--clr-muted));
}

/* ══════════════════════════════════════════════════════════════════
   3. FEED (Daftar Horizontal)
   ══════════════════════════════════════════════════════════════════ */
.pengumuman-feed,
.berita-feed {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.pengumuman-row,
.berita-row {
  border-bottom: 1px solid rgb(var(--clr-border));
  padding: 1.15rem 0;
  box-shadow: none !important;
  transform: none !important;
}

.pengumuman-row:first-child,
.berita-row:first-child {
  border-top: 1px solid rgb(var(--clr-border));
}

.pengumuman-row-link,
.berita-row-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  transition: background-color 0.18s ease;
  box-shadow: none !important;
  transform: none !important;
}

.pengumuman-row-link:hover,
.berita-row-link:hover {
  background-color: rgba(var(--clr-primary), 0.025);
  box-shadow: none !important;
  transform: none !important;
}

.pengumuman-row__thumb,
.berita-row__thumb {
  width: 160px;
  height: 105px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: rgb(var(--clr-img-bg));
}

.pengumuman-row__thumb img,
.berita-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pengumuman-row__content,
.berita-row__content {
  flex: 1;
  min-width: 0;
}

.pengumuman-row__title,
.berita-row__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: rgb(var(--clr-heading));
  line-height: 1.35;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.pengumuman-row-link:hover .pengumuman-row__title,
.berita-row-link:hover .berita-row__title {
  color: rgb(var(--clr-primary));
}

.pengumuman-row__desc,
.berita-row__desc {
  font-size: var(--fs-sm1);
  color: rgb(var(--clr-body));
  line-height: 1.55;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pengumuman-row__arrow,
.berita-row__arrow {
  font-size: 1.2rem;
  color: rgb(var(--clr-muted));
  flex-shrink: 0;
  padding: 0 0.5rem;
  transition: color 0.2s ease;
}

.pengumuman-row-link:hover .pengumuman-row__arrow,
.berita-row-link:hover .berita-row__arrow {
  color: rgb(var(--clr-primary));
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .pengumuman-featured,
  .berita-featured {
    padding: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .pengumuman-row-link,
  .berita-row-link {
    gap: 0.85rem;
    padding: 0.4rem 0.25rem;
    align-items: flex-start;
  }

  .pengumuman-row__thumb,
  .berita-row__thumb {
    width: 95px;
    height: 75px;
    border-radius: 8px;
  }

  .pengumuman-row__title,
  .berita-row__title {
    font-size: 0.95rem;
  }

  .pengumuman-row__desc,
  .berita-row__desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: var(--fs-xs);
  }

  .pengumuman-row__arrow,
  .berita-row__arrow {
    display: none;
  }
}
