/* ==========================================
   BERITA TERKINI
========================================== */

.home-news-box {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  background: #f7f7f7;
}

.home-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 7px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.home-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
}

.home-news-image {
  display: flex;
  width: 100%;
  min-height: 180px;
  max-height: 320px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f5f5f5;
}

.home-news-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.home-news-card:hover .home-news-image img {
  transform: scale(1.04);
}

.home-news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px;
}

.home-news-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 9px;
}

.home-news-date i {
  color: #a52a16;
  margin-right: 5px;
}

.home-news-title {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 10px;
  min-height: 45px;
}

.home-news-title a {
  color: #333;
  text-decoration: none;
}

.home-news-title a:hover {
  color: #a52a16;
}

.home-news-desc {
  color: #777;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.home-news-more {
  margin-top: auto;
  color: #a52a16;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.home-news-more:hover {
  color: #d18b16;
  text-decoration: none;
}

.home-news-footer {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #eee;
}

.home-news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: #888;
}

/* ==========================================
   RSS MAHKAMAH AGUNG
========================================== */

.home-rss-box {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
}

.home-rss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 18px;
  background: #f7f7f7;
}

.home-rss-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 7px;
  overflow: hidden;
}

.home-rss-title {
  padding: 13px 15px;
  background: #f7f1e7;
  color: #8f2a17;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #eadbc7;
}

.home-rss-title i {
  margin-right: 7px;
  color: #d18b16;
}

.home-rss-content {
  padding: 5px 15px;
}

.home-rss-item {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid #eee;
}

.home-rss-item:last-child {
  border-bottom: none;
}

.home-rss-icon {
  position: absolute;
  left: 0;
  top: 13px;
  color: #a52a16;
}

.home-rss-item a {
  display: block;
  color: #444;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
}

.home-rss-item a:hover {
  color: #a52a16;
}

.home-rss-date {
  color: #999;
  font-size: 11px;
  margin-top: 5px;
}

.home-rss-empty {
  padding: 18px 0;
  color: #999;
  font-size: 13px;
}

/* ==========================================
   PENGUMUMAN DAN PEMANGGILAN
========================================== */

.home-announcement {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 25px;
}

/* Header */
.home-announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px;
  background: #962713;
  color: #fff;
  border-bottom: 4px solid #e9a323;
}

.home-announcement-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #f5c66b;
  margin-bottom: 5px;
}

.home-announcement-header h2 {
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 6px;
}

.home-announcement-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin: 0;
}

.home-announcement-header-icon {
  font-size: 36px;
  color: rgba(255, 255, 255, 0.25);
  padding: 0 12px;
}

/* Content */
.home-announcement-content {
  display: grid;
  grid-template-columns: 30% 70%;
  align-items: center;
  padding: 20px;
  gap: 22px;
  background: #fff;
}

/* Illustration */
.home-announcement-illustration {
  text-align: center;
}

.home-announcement-illustration img {
  display: block;
  width: 100%;
  max-width: 270px;
  max-height: 230px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.home-announcement-note {
  font-size: 11px;
  color: #888;
  line-height: 1.6;
}

/* List */
.home-announcement-list {
  border-top: 1px solid #eee;
}

.home-announcement-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 10px;
  border-bottom: 1px solid #eee;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.home-announcement-item:hover {
  background: #fff9ef;
}

.home-announcement-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: #f8eee9;
  color: #962713;
  font-size: 13px;
  font-weight: 700;
}

.home-announcement-detail {
  flex: 1;
  min-width: 0;
}

.home-announcement-detail h3 {
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 6px;
}

.home-announcement-item:hover h3 {
  color: #962713;
}

.home-announcement-date {
  font-size: 11px;
  color: #999;
}

.home-announcement-date i {
  color: #c28a36;
  margin-right: 5px;
}

.home-announcement-arrow {
  color: #aaa;
  font-size: 20px;
  padding: 0 8px;
}

.home-announcement-item:hover .home-announcement-arrow {
  color: #962713;
}

.home-announcement-empty {
  padding: 30px 15px;
  color: #888;
  font-size: 13px;
}

/* Footer */
.home-announcement-footer {
  padding: 15px 20px;
  text-align: right;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.home-announcement-footer a {
  color: #962713;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.home-announcement-footer a:hover {
  color: #d18b16;
}

.home-announcement-footer i {
  margin-left: 6px;
}

/* Responsive */
@media (max-width: 767px) {
  .home-announcement-header {
    padding: 18px;
  }

  .home-announcement-header h2 {
    font-size: 17px;
  }

  .home-announcement-header-icon {
    font-size: 27px;
  }

  .home-announcement-content {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .home-announcement-illustration img {
    max-height: 160px;
  }

  .home-announcement-item {
    gap: 10px;
    padding: 13px 5px;
  }

  .home-announcement-detail h3 {
    font-size: 12px;
  }
}

/* ==========================================
   JADWAL SIDANG
========================================== */

.home-schedule {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
}

.home-schedule-content {
  padding: 15px;
  background: #fff;
}

.home-schedule-date {
  color: #555;
  font-size: 13px;
  margin-bottom: 12px;
}

.home-schedule-date i {
  color: #a52a16;
  margin-right: 6px;
}

.home-schedule-frame {
  width: 100%;
  height: 520px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  overflow: hidden;
}

.home-schedule-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-schedule-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.home-schedule-button {
  display: inline-block;
  padding: 10px 17px;
  border-radius: 4px;
  background: #982a16;
  color: #fff !important;
  font-size: 12px;
  text-decoration: none !important;
}

.home-schedule-button:hover {
  background: #bd7920;
}

/* ==========================================
   INFORMASI PUBLIK
========================================== */

.home-media-box {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.home-public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 13px;
  background: #f7f7f7;
}

.home-public-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none !important;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.home-public-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.home-public-image {
  width: 100%;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f1f1;
  overflow: hidden;
}

.home-public-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-public-info {
  padding: 11px;
}

.home-public-info h3 {
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 6px;
}

.home-public-info p {
  color: #888;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

.home-public-card:hover h3 {
  color: #a52a16;
}

/* ==========================================
   VIDEO PN PARIGI
========================================== */

.home-video-content {
  padding: 13px;
  background: #f7f7f7;
}

.home-video-featured {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.home-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.home-video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.home-video-featured-title {
  padding: 13px;
  background: #982a16;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.home-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-video-card {
  display: block;
  min-width: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none !important;
  transition: box-shadow 0.2s ease;
}

.home-video-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.home-video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
}

.home-video-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  border-radius: 7px;
  background: rgba(180, 0, 0, 0.9);
  color: #fff;
  font-size: 13px;
}

.home-video-title {
  min-height: 58px;
  padding: 10px;
  color: #444;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.home-video-card:hover .home-video-title {
  color: #a52a16;
}

.home-video-footer {
  text-align: center;
  padding: 15px 5px 3px;
}

.home-video-footer a {
  color: #a52a16;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.home-video-footer a:hover {
  color: #bd7920;
}

.home-media-empty {
  grid-column: 1 / -1;
  padding: 25px;
  color: #888;
  text-align: center;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 767px) {
  .home-schedule-frame {
    height: 430px;
  }

  .home-public-image {
    height: 145px;
  }

  .home-media-section > div {
    margin-bottom: 20px;
  }
}

@media (max-width: 420px) {
  .home-public-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 991px) {
  .home-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-news-grid,
  .home-rss-grid {
    grid-template-columns: 1fr;
  }

  .home-news-image {
    height: 210px;
  }

  .home-news-title {
    min-height: auto;
  }
}

/* ==========================================
   DETAIL BERITA - GALERI FOTO
   ========================================== */

.news-gallery {
  position: relative;
  width: 100%;
  margin: 25px auto 40px;
  padding: 0;
  box-sizing: border-box;
}

/* Area slide */
.news-gallery .slick-list {
  width: 100%;
}

.news-gallery .slick-track {
  display: flex;
  align-items: center;
}

.news-gallery .slick-slide {
  height: auto;
  text-align: center;
}

.news-gallery .news-gallery-item {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  width: 100%;
  text-align: center;
  outline: none;
}

/* Gambar */
.news-gallery .news-gallery-item img {
  display: block;
  width: auto !important;
  max-width: 100%;
  height: auto;
  max-height: 550px;
  margin: 0 auto !important;
  object-fit: contain;
  object-position: center center;
  border-radius: 8px;
}

/* ==========================================
   PANAH SLIDER
   ========================================== */

.news-gallery .slick-prev,
.news-gallery .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  background: #8f2115;
  border-radius: 50%;
}

.news-gallery .slick-prev {
  left: -5px;
}

.news-gallery .slick-next {
  right: -5px;
}

.news-gallery .slick-prev:hover,
.news-gallery .slick-next:hover {
  background: #b52d1c;
}

.news-gallery .slick-prev:before,
.news-gallery .slick-next:before {
  color: #fff;
  font-size: 18px;
  opacity: 1;
}

/* ==========================================
   TITIK NAVIGASI
   ========================================== */

/* DOT NAVIGASI GALERI BERITA */
.news-gallery .slick-dots {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;

  display: block !important;
  width: 100% !important;

  margin: 12px 0 0 !important;
  padding: 0 !important;

  text-align: center !important;
  transform: none !important;
}

.news-gallery .slick-dots li {
  display: inline-block !important;
  float: none !important;
  vertical-align: middle;
  margin: 0 3px !important;
}

.news-gallery .slick-dots li button:before {
  color: #c0392b;
  font-size: 10px;
  opacity: 0.4;
}

.news-gallery .slick-dots li.slick-active button:before {
  color: #e5a000;
  opacity: 1;
}

/* ==========================================
   ISI BERITA
   ========================================== */

.news-content {
  width: 100%;
  font-size: 16px;
  line-height: 1.95;
  color: #444;
  overflow-wrap: break-word;
}

.news-content p {
  margin-bottom: 18px;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
}

.news-content table {
  max-width: 100%;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767px) {
  .news-gallery {
    margin: 15px auto 45px;
    padding: 0 20px;
  }

  .news-gallery .news-gallery-item img {
    max-height: 400px;
  }

  .news-gallery .slick-prev {
    left: -3px;
  }

  .news-gallery .slick-next {
    right: -3px;
  }

  .news-detail {
    padding: 20px;
  }

  .news-detail-title {
    font-size: 27px;
  }

  .news-content {
    font-size: 14px;
    line-height: 1.85;
  }

  .news-meta {
    font-size: 12px;
  }
}
