/* Show UPT & Show Berita — cross-device responsive */

/* —— Show UPT —— */
.showupt-page .profile-hero-figure .profile-hero-image {
  max-height: 320px;
}

.showupt-page .service-section {
  margin-bottom: 1.5rem;
}

.showupt-page .service-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.showupt-page .service-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.showupt-page .service-chip-grid li,
.showupt-page .service-chip {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10rem;
  font-size: 0.875rem;
  color: #495057;
}

.showupt-page .service-hours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .showupt-page .service-hours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.showupt-page .service-hours-card {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e9ecef;
}

.showupt-page .service-hours-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
}

.showupt-page .service-hours-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.showupt-page .service-hours-card li {
  font-size: 0.9rem;
  color: #6c757d;
  padding: 0.25rem 0;
  border-bottom: 1px solid #e9ecef;
}

.showupt-page .service-hours-card li:last-child {
  border-bottom: none;
}

.showupt-page .service-list-plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.showupt-page .service-list-plain li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9rem;
  color: #6c757d;
  word-break: break-word;
}

.showupt-page .service-list-plain li:last-child {
  border-bottom: none;
}

.showupt-page .profile-aside-block {
  margin-bottom: 1.5rem;
}

.showupt-page .profile-aside-block:last-child {
  margin-bottom: 0;
}

.showupt-page .vision-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

/* —— Show Berita —— */
.berita-detail-page .news-article {
  overflow: hidden;
}

.berita-detail-page .news-featured-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

@media (max-width: 575.98px) {
  .berita-detail-page .news-featured-image {
    max-height: 240px;
  }
}

.berita-detail-page .news-detail-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #495057;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.berita-detail-page .news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.berita-detail-page .news-detail-content iframe,
.berita-detail-page .news-detail-content video {
  max-width: 100%;
}

.berita-detail-page .news-detail-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.berita-detail-page .news-article-footer {
  padding: 1rem 1.25rem;
}

.berita-detail-page .sidebar-panel {
  margin-bottom: 1.25rem;
}

.berita-detail-page .sidebar-panel:last-child {
  margin-bottom: 0;
}

.berita-detail-page .sidebar-panel .card-title {
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  margin-bottom: 0;
  border-bottom: 2px solid #e9ecef;
}

.berita-detail-page .sidebar-link-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.berita-detail-page .sidebar-link-list li {
  border-bottom: 1px solid #f1f3f5;
}

.berita-detail-page .sidebar-link-list li:last-child {
  border-bottom: none;
}

.berita-detail-page .sidebar-link-list a {
  display: block;
  padding: 0.65rem 0.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #495057;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.berita-detail-page .sidebar-link-list a:hover {
  color: var(--creative-primary, #f4623a);
  padding-left: 0.35rem;
}

@media (min-width: 992px) {
  .berita-detail-page .sidebar-sticky {
    position: sticky;
    top: 5.5rem;
  }
}

/* —— Dokumen —— */
.dokumen-page .dokumen-filters-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.dokumen-page .dokumen-filters-scroll::-webkit-scrollbar {
  height: 4px;
}

.dokumen-page .dokumen-filters-scroll .filter-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.dokumen-page .dokumen-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .dokumen-page .dokumen-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dokumen-page .dokumen-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dokumen-page .dokumen-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.5rem rgba(244, 98, 58, 0.12);
}

@media (min-width: 576px) {
  .dokumen-page .dokumen-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.dokumen-page .dokumen-card-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.dokumen-page .dokumen-card-icon img {
  width: 100%;
  height: auto;
  max-height: 3rem;
  object-fit: contain;
}

.dokumen-page .dokumen-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.dokumen-page .dokumen-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #212529;
  margin: 0 0 0.75rem;
  line-height: 1.4;
  word-break: break-word;
}

.dokumen-page .dokumen-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.dokumen-page .dokumen-meta li {
  font-size: 0.8125rem;
  color: #6c757d;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.dokumen-page .dokumen-meta li span:first-child {
  font-weight: 600;
  color: #495057;
}

.dokumen-page .dokumen-card-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

@media (max-width: 575.98px) {
  .dokumen-page .dokumen-card-action {
    width: 100%;
  }

  .dokumen-page .dokumen-card-action .btn {
    width: 100%;
  }
}

.dokumen-page .empty-state img {
  max-width: min(200px, 60vw);
  height: auto;
}

.dokumen-page .pagination {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

/* —— Berita list —— */
.berita-page .berita-filters-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.berita-page .berita-filters-scroll::-webkit-scrollbar {
  height: 4px;
}

.berita-page .berita-filters-scroll .filter-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.berita-page .berita-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .berita-page .berita-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .berita-page .berita-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.berita-page .berita-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e9ecef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.berita-page .berita-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.berita-page .berita-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f3f5;
  overflow: hidden;
}

.berita-page .berita-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.berita-page .berita-card-image--placeholder {
  object-fit: contain;
  padding: 1.5rem;
  background: #f8f9fa;
}

.berita-page .berita-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
}

.berita-page .berita-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.berita-page .berita-card-title a {
  color: #212529;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.berita-page .berita-card-title a:hover {
  color: var(--creative-primary, #f4623a);
}

.berita-page .berita-card-excerpt {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.berita-page .berita-card-footer {
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: #6c757d;
  border-top: 1px solid #f1f3f5;
  background: #fafbfc;
}

.berita-page .empty-state img {
  max-width: min(200px, 60vw);
  height: auto;
}

.berita-page .pagination {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}
