/* Regular 400 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-light.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* Medium 500 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

/* Semibold 600 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

/* Bold 700 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* ================= DARK MODE ================= */

.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

/* Link */
.dark-mode a {
  color: #e0e0e0;
}
.dark-mode a:hover {
  color: #4db6ac;
}

/* Breadcrumb */
.dark-mode .breadcrumb {
  color: #ccc;
}

/* Judul berita */
.dark-mode .judul-berita {
  color: #ffffff;
}

/* Meta top */
.dark-mode .meta-top {
  color: #bbb;
}
.dark-mode .meta-left {
  color: #aaa;
}
.dark-mode .meta-icon span {
  color: #ddd;
}
.dark-mode .meta-icon img.icon {
  filter: brightness(1.5);
}

/* Dropdown share */
.dark-mode .share-dropdown .fa-share-nodes {
  color: #eee;
}
.dark-mode .share-options {
  background: #1e1e1e;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

/* Author */
.dark-mode .author {
  color: #bbb;
}

/* Gambar berita */
.dark-mode .detail-image2 .image-caption {
  color: #aaa;
}

/* Konten detail */
.dark-mode .detail-content {
  color: #ddd;
}

/* Baca juga */
.dark-mode .baca-juga-title {
  background: #121212;
  color: #e0e0e0;
}
.dark-mode .baca-juga-box {
  background: #1e1e1e;
  border: 1px solid #333;
}
.dark-mode .baca-juga-box a {
  color: #4db6ac;
}

/* Tag bard */
.dark-mode .tag-bard .tag {
  background-color: #4db6ac;
  color: #121212;
}
.dark-mode .tag-bard .tag:hover {
  background-color: #666;
  color: #fff;
}

/* News lainnya */
.dark-mode .news-lainnya h2 {
  color: #fff;
}
.dark-mode .garis-base {
  background-color: #333;
}
.dark-mode .garis-highlight {
  background-color: #4db6ac;
}
.dark-mode .news-meta h3 {
  color: #ddd;
}
.dark-mode .news-meta {
  color: #ccc;
}

/* Label kategori */
.dark-mode .label {
  color: #fff;
}

/* Ikon meta */
.dark-mode .meta-icons {
  color: #aaa;
}
.dark-mode .meta-icons i {
  color: #aaa;
}

/* Selengkapnya */
.dark-mode .lihat-selengkapnya {
  color: #ddd;
}
.dark-mode .icon-box {
  background-color: #333;
}
.dark-mode .icon-box i {
  color: #bbb;
}


a {
  text-decoration: none;
  color: black;
  transition:.3s;
}

a:hover{
  color:#1B4D91;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.breadcrumb {
  font-size: 14px;
  color: black;
  margin-bottom: 50px;
}

.judul-berita {
  font-size: 28px;
  font-family: 'Literata', serif;
  font-weight: 600;
}

.meta-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: black;
  margin: 5px 0;
  margin-top: 24px;
}

.meta-top i {
  margin-right: 4px;
}

.meta-left {
  font-family: 'SF Pro Rounded', sans-serif; 
  font-size: 14px; 
  color: #666565;
}

.meta-right {
  display: flex;
  align-items: center;
  gap: 18px; /* spasi antar icon */
}

.meta-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.meta-icon img.icon {
  width: 24px; /* sesuaikan ukuran gambar */
  height: 24px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.meta-icon:hover img.icon {
  transform: scale(1.2); /* efek hover */
  opacity: 0.8;
}

.meta-icon span {
  font-weight: 500;
  font-size: 15px;
}


.like-btn.liked {
  color: #2d88ff;
}

.meta-icon span {
  font-weight: 500;
  font-size: 15px;
}

.like-btn.liked i {
  animation: pop 0.3s ease;
}

.like-btn.liked,
.dislike-btn.disliked {
  color: #1d6ef2;
}

.dislike-btn.disliked i {
  animation: pop 0.3s ease;
}


@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.share-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.share-dropdown .fa-share-nodes {
  font-size: 22px;
  color: #333;
}

.share-options {
  position: absolute;
  top: 35px;
  right: 0;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 230px;
  justify-content: center;
  z-index: 100;
}

.share-options a,
.share-options button {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.share-options a:hover,
.share-options button:hover {
  transform: scale(1.2);
}

/* Warna ikon sesuai brand */
.share-options .fa-facebook-f { color: #1877f2; }
.share-options .fa-x-twitter  { color: #000000; }
.share-options .fa-telegram-plane { color: #0088cc; }
.share-options .fa-whatsapp   { color: #25d366; }
.share-options .fa-linkedin-in { color: #0077b5; }
.share-options .fa-envelope   { color: #ea4335; }
.share-options .fa-link       { color: #666; }



.author {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  margin-top: -7px;
}

.detail-image2 {
  width: 100%;
}

.detail-image2 img {
  width: 100%;
  height: 40vh;
  object-fit: cover;
  margin: 30px 0 10px 0;
}


.detail-image2 .image-caption {
    font-family: arial;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

.detail-content {
   max-width: 600px;
   font-family: 'SF Pro Rounded', sans-serif;
   font-weight: 400;
   font-size: 15px;
   color: #333;
   line-height: 1.6;
   margin: 40px 25px 20px 0;
   white-space: normal;   /* pastikan teks wrap sama */
   word-wrap: break-word; /* biar teks panjang nggak keluar */
}

/* Paragraf persis seperti di CKEditor */
.detail-content p {
    margin: 0 0 1rem 0;   /* kasih jarak bawah antar paragraf */
}

/* Jeda kalau user pakai <br> */
.detail-content br {
    margin-bottom: 0.8rem;
    display: block;
    content: "";
}

/* Kalau ada list dari CKEditor */
.detail-content ul,
.detail-content ol {
    margin: 0 0 1rem 2rem;  /* jarak bawah & indentasi */
    padding: 0;
}

.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4,
.detail-content h5,
.detail-content h6 {
    margin-top: 1.5rem;   /* jarak atas heading */
    margin-bottom: 0.8rem; /* jarak bawah heading ke paragraf */
    font-weight: 600;
    line-height: 1.4;
}


.baca-juga-container {
  position: relative;
  margin-top: 30px;
}

.baca-juga-title {
  position: absolute;
  top: -8px;
  left: 20px;
  background: white;
  padding: 0 8px;
  font-weight: bold;
  color: black;
  font-size: 14px;
}

.baca-juga-box {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 25px;
  background: white;
}

.baca-juga-box a {
  color: #0F4C3C;
  text-decoration: none;
  font-family: 'SF Pro Rounded', sans-serif;
  font-weight: 700px;
  font-size: 15px;
}

.baca-juga-box a:hover {
  text-decoration: underline;
}

.tag-bard {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-bard .tag {
  font-size: 13px;
  background-color: #0F4C3C;
  color: white;
  padding: 9px 18px;
  border-radius: 17px;
  text-decoration: none;
}

.tag-bard .tag:hover {
  background-color: #ddd;
}




/*==========================================================================================
============================INI BAGIAN BERITA LAINNYA=======================================
==========================================================================================*/
.news-lainnya {
  margin: 50px auto;
  max-width: 1100px;
  padding: 0 20px;
  font-family: 'Literata', serif;
}

.news-lainnya h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
}

.kombinasi-underline {
  position: relative;
  height: 2px;
  margin-bottom: 25px;
}

.garis-base {
  background-color: #ddd;
  height: 1px;
  width: 100%;
}

.garis-highlight {
  position: absolute;
  height: 2px;
  width: 50px;
  background-color: #0292C9;
  top: -1px;
  left: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px; /* jarak antar baris dan kolom */
}

.news-item {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.berita-card {
  width: 160px;
  min-width: 160px;
  height: auto;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.news-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-meta h3 {
  margin: 0 0 8px;
  font-family: 'Literata', sans-serif;
  font-size: 14px;
  font-weight: 400;

  display: -webkit-box;        /* bikin jadi flex box vertikal */
  -webkit-line-clamp: 2;       /* maksimal 2 baris */
  -webkit-box-orient: vertical;
  overflow: hidden;            /* buang teks berlebih */
  text-overflow: ellipsis;     /* tambahin ... */
  line-height: 1.4;            /* biar rapi */
  max-height: calc(1.4em * 2); /* memastikan tingginya pas 2 baris */
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border-radius: 0px;
  text-transform: capitalize;
  width: 100%;
  max-width: 170px;
  margin-bottom: 12px;
  text-align: center;
   padding: 7px 10px;
}

.label {
  text-align: center;
  max-width: 100px;
  display: inline-block;
  font-family: 'SF Pro Rounded', sans-serif;
  font-weight: 400;
  font-size: 10.5px;
  color: #fff;
  padding: 3px 15px;
  margin-bottom: 13px;
}

/* label styles */
.label-pendidikan { background-color: #EEA83B; }
.label-event      { background-color: #622357; }
.label-lifestyle  { background-color: #045759; }
.label-budaya     { background-color: #DE7746; }
.label-default    { background-color: #999; }

.meta-icons {
  font-size: 13px;
  color: #777;
  display: flex;
  gap: 14px;
  align-items: center;
}

.meta-icons i {
  margin-right: 4px;
}

.selengkapnya-wrapper {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
}

.lihat-selengkapnya {
  font-size: 14px;
  color: #444;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-box {
  width: 22px;
  height: 22px;
  background-color: #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.icon-box i {
  font-size: 12px;
  color: #444;
}




/* ======================= Responsive Mobile ======================= */
@media (min-width: 1200px) {
  .content-wrapper {
    max-width: 800px;
    padding: 30px;
  }
  .judul-berita {
    font-size: 27px;
  }
  .detail-content {
    font-size: 16px;
  }
}

/* Tablet landscape (≤992px) */
@media (max-width: 992px) {
  .content-wrapper {
    max-width: 500px;
    padding: 15px;
  }
  .judul-berita {
    font-size: 25px;
  }
  .meta-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .meta-right {
    gap: 12px;
    font-size: 14px;
  }
  .detail-image img {
    max-height: 320px;
  }
  .detail-content {
    font-size: 14px;
    margin-right: 0;
  }
  .baca-juga-box {
    padding: 18px;
  }

 .meta-icons .komena {
     display: none;           /* biar tetap di bawah */
  }
}

/* Tablet portrait (≤768px) */
@media (max-width: 768px) {
  .breadcrumb {
    margin-bottom: 30px;
  }
  .judul-berita {
    font-size: 24px;
  }
  .meta-top {
    flex-direction: row;          /* tetap sejajar kiri-kanan */
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
 .meta-left {
    font-size: 12px;
    gap: 10px;
  }
  .meta-right {
    font-size: 10px;
    gap: 12px;
  }
  .share-options {
    right: auto;
    left: 0;
    width: 200px;
    padding: 12px;
  }

  .author {
  margin-top: 10px;
}

  .detail-image img {
    max-height: 280px;
  }
  .detail-content {
    font-size: 14px;
  }
  .baca-juga-title {
    left: 12px;
    font-size: 13px;
  }
  .baca-juga-box a {
    font-size: 14px;
  }

  .tag-bard {
    padding: 9px 14px;
    display: flex;
    flex-wrap: nowrap;        /* jangan turun ke bawah */
    overflow-x: auto;         /* bisa discroll ke samping */
    gap: 10px;
    -webkit-overflow-scrolling: touch; /* smooth scroll di iOS */
    scrollbar-width: none;    /* sembunyikan scrollbar (Firefox) */
  }

  .tag-bard::-webkit-scrollbar {
    display: none;            /* sembunyikan scrollbar (Chrome/Safari) */
  }

  .tag-bard .tag {
    flex: 0 0 auto;           /* biar item ga mengecil */
    white-space: nowrap;      /* teksnya tetap 1 baris */
  }

  .news-grid {
    display: flex;                /* ubah grid jadi flex */
    overflow-x: auto;             /* bisa scroll horizontal */
    gap: 1px;                    /* jarak antar item */
    scroll-snap-type: x mandatory;/* biar snap tiap item */
    padding-bottom: 10px;
  }

  .news-item {             
    max-width: 300px;
    flex-direction: column;       /* urutan jadi vertikal */
    align-items: flex-start;
    scroll-snap-align: start;     /* snap per item */
    padding: 10px;
    background: #fff;
    gap:0;
  }

  .berita-card {
    width: 100%;
    aspect-ratio: 16/9;           /* pakai rasio video */
    margin-bottom: 10px;
  }

  .news-meta {
    font-size: 11.5px;
    flex-wrap: wrap;
  }

  .news-meta h3 {
    max-width: 170px;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .label {
    margin-bottom: 10px;
    align-self: flex-start;       /* biar nempel kiri */
  }

  .meta-icons {
    font-size: 10px;
    margin-top: auto;             /* biar tetap di bawah */
  }

 .meta-icons .komena {
     display: none;           /* biar tetap di bawah */
  }
}

/* Mobile (≤576px) */
@media (max-width: 576px) {
  .judul-berita {
    font-size: 22px;
  }

  .meta-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .meta-right {
    font-size: 10px;
    gap: 8px;
  }
  .meta-icon span {
    font-size: 13px;
  }
  .detail-image img {
    max-height: 220px;
    margin-top: 20px;
  }
  .detail-content {
    font-size: 13px;
    line-height: 1.5;
  }
  .baca-juga-box {
    padding: 15px;
  }
  .baca-juga-box a {
    font-size: 13px;
  }
  .tag-bard {
    gap: 8px;
  }
  .tag-bard .tag {
    font-size: 11px;
    padding: 6px 12px;
  }
}