/* === JUDUL ARTIKEL === */
.judul-artikel {
  text-align: center;
  margin-top: 20px;
  font-size: 26px;
  font-weight: bold;
}

/* === META INFO === */
.meta-info2 {
  text-align: center;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-info2 span {
  font-size: 14px;
  color: #444;
}

/* === SHARE BUTTONS === */
.share-buttons2 {
  text-align: center;
  margin: 10px 0 20px 0;
}

.share-buttons2 a {
  margin: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.share-buttons2 a:hover {
  transform: scale(1.1);
}

.share-buttons2 .icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.btn-wa { background-color: #25D366; }
.btn-fb { background-color: #1877F2; }
.btn-tg { background-color: #0088cc; }
.btn-ig {
  background: radial-gradient(circle at 30% 107%, 
    #fdf497 0%, #fdf497 5%, 
    #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* === HYBRID IMAGE GALLERY === */
.image-gallery-wrapper {
  margin: 20px 0;
}

/* Desktop view */
.image-fullscreen {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  overflow-x: hidden;
}

.slider-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.slider-button {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.slider-button:first-of-type { left: 0; }
.slider-button:last-of-type { right: 0; }

/* Mobile view */
.image-scroll-wrapper {
  display: none;
}

.scrollable-image {
  flex: 0 0 100%;
  max-width: 100%;
  height: auto;
  scroll-snap-align: center;
  border-radius: 8px;
  object-fit: contain;
}

/* === RESPONSIVE DISPLAY CONTROL === */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only {
    display: flex !important;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
}

/* === ISI BERITA === */
.news-content {
  margin-top: 30px;
  line-height: 1.7;
  font-size: 16px;
  color: #333;
}

/* === LIKE & DISLIKE === */
.feedback-buttons {
  display: flex;
  gap: 16px;
  margin: 24px 0 8px;
}

.feedback-buttons button {
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s;
}

.feedback-buttons button:hover {
  background-color: #e0e0e0;
}

/* === KOMENTAR SECTION === */
.komentar-section {
  margin-top: 32px;
  border-top: 1px solid #ccc;
  padding-top: 20px;
}

.komentar-section h3 {
  font-size: 1.2em;
  margin-bottom: 12px;
  color: #003366;
}

#komentarForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

#komentarForm input[type="text"],
#komentarForm textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 1em;
}

#komentarForm button {
  background-color: #003366;
  color: white;
  border: none;
  padding: 10px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#komentarForm button:hover {
  background-color: #00224d;
}

/* === LIST KOMENTAR === */
.komentar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.komentar-item {
  background: #f7f7f7;
  padding: 12px;
  border-left: 4px solid #003366;
  border-radius: 4px;
}

.komentar-item strong {
  color: #003366;
  display: block;
  margin-bottom: 6px;
}

/* === BERITA TERKAIT === */
.berita-terkait {
  margin-top: 50px;
}

.berita-terkait h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

.related-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  font-size: 22px;
  background-color: #eee;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.scroll-btn:hover {
  background-color: #ddd;
}

.scroll-btn.left { left: -10px; }
.scroll-btn.right { right: -10px; }

.related-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.related-scroll::-webkit-scrollbar {
  display: none;
}

.related-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 220px;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.related-info {
  padding: 10px;
}

.related-info a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  display: block;
  transition: color 0.2s ease;
}

.related-info a:hover {
  color: #0077cc;
}

.video-wrapper {
  margin: 20px 0;
}

.video-wrapper video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.related-thumb-wrapper {
  position: relative;
  display: block;
}

.related-thumb-wrapper video.related-img,
.related-thumb-wrapper img.related-img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.related-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.play-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}