body {
  font-family: 'Segoe UI', sans-serif;
}

/* Flex dalam grid bootstrap */
.row-cols-1 > *,
.row-cols-sm-2 > *,
.row-cols-md-3 > * {
  display: flex;
}

/* Kartu Pengumuman */
.pengumuman-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
}

.pengumuman-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Frame Lampiran */
.image-frame-wrapper {
  padding: 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 180px;
}

.mini-lampiran-img,
.file-icon-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* Isi Kartu */
.pengumuman-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.pengumuman-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d3d85;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.pengumuman-card .card-text {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.pengumuman-card .btn {
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 4px;
  width: fit-content;
  align-self: start;
}

/* Pagination */
.pagination .page-link {
  color: #007bff;
  font-weight: 500;
}

.pagination .page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

/* Tablet */
@media (max-width: 768px) {
  .pengumuman-card .card-title {
    font-size: 1rem;
    text-align: center;
  }

  .pengumuman-card .card-text {
    font-size: 0.9rem;
    text-align: justify;
  }

  .pengumuman-card .btn {
    width: 100%;
    font-size: 0.95rem;
    align-self: stretch;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .row.row-cols-1 > .col,
  .row.row-cols-sm-2 > .col,
  .row.row-cols-md-3 > .col {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .pengumuman-card {
    border-radius: 6px;
    padding: 0.5rem;
  }

  .mini-lampiran-img {
    max-height: 120px;
  }

  .pengumuman-card .card-body {
    padding: 0.8rem;
  }

  .pengumuman-card .card-title {
    font-size: 0.95rem;
    text-align: left;
  }

  .pengumuman-card .card-text {
    font-size: 0.85rem;
  }

  .pengumuman-card .btn {
    padding: 8px;
    font-size: 0.9rem;
    width: 100%;
  }

  .pagination {
    font-size: 0.9rem;
  }
}
