/* ============================================================
   NEWSROOM INDONESIA – index-extra.css
   Extra styles for new sections in index.html
   ============================================================ */

/* ===== SECTION MORE LINK ===== */
.section-title-plain {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-more-link {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
  white-space: nowrap;
}

.section-more-link:hover { gap: 7px; color: var(--primary); }
.section-more-link i { font-size: 10px; }

/* ===== MINI TAGS ===== */
.article-tags-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.tag-mini {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 2px;
  transition: all var(--transition);
}

.tag-mini:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== POLITIK SECTION ===== */
.politik-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.politik-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.politik-featured {
  cursor: pointer;
}

.politik-featured-img {
  position: relative;
  height: 230px;
  overflow: hidden;
  border-radius: 3px;
  display: block;
  margin-bottom: 12px;
}

.politik-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.politik-featured:hover .politik-featured-img img { transform: scale(1.04); }

.politik-featured-body h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 7px;
}

.politik-featured:hover .politik-featured-body h3 { color: var(--primary); }

.politik-featured-body .meta {
  font-size: 11.5px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.politik-featured-body .excerpt {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 10px;
}

.politik-side {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.video-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 16px;
}

.video-card {
  cursor: pointer;
}

.video-card-featured .video-thumb {
  height: 230px;
}

.video-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
  border-radius: 4px;
  display: block;
  margin-bottom: 10px;
  background: #111;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.04);
  opacity: 0.85;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(200, 16, 46, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  padding-left: 3px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(200,16,46,0.5);
}

.video-card:hover .video-play-btn {
  width: 54px;
  height: 54px;
  font-size: 18px;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
}

.video-card-body h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 5px;
}

.video-card-body h4 {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 5px;
}

.video-card:hover .video-card-body h3,
.video-card:hover .video-card-body h4 { color: var(--primary); }

.video-card-body .meta {
  font-size: 11px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== VIEW COUNT in meta ===== */
.meta i.far.fa-eye,
.meta i.fas.fa-eye {
  font-size: 11px;
  color: var(--gray-300);
}

/* ===== DESKTOP DEFAULTS (Slider Arrows Hidden) ===== */
.section-actions-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.mobile-slider-arrows {
  display: none !important;
}

/* ===== RESPONSIVE & MOBILE SLIDER ONLY (<= 768px) ===== */
@media (max-width: 768px) {
  .main-wrapper,
  .main-wrapper .container,
  main,
  .politik-section,
  .category-section,
  .three-col-section,
  .horizontal-list-section,
  .latest-section {
    min-width: 0;
    max-width: 100%;
  }

  .section-title-plain {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px;
    padding-bottom: 8px;
  }
  
  .section-title-plain h2 {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }

  .section-actions-wrap {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .mobile-slider-arrows {
    display: flex !important;
    align-items: center;
    gap: 6px;
  }

  .slider-arrow-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--border);
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    outline: none;
  }

  .slider-arrow-btn:hover,
  .slider-arrow-btn:active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(187, 19, 19, 0.25);
  }

  .section-more-link {
    font-size: 11px;
    white-space: nowrap;
  }

  /* Slider Container Mobile */
  .mobile-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px !important;
    padding: 4px 2px 14px 2px !important;
    margin-bottom: 20px !important;
    scrollbar-width: none;
  }

  .mobile-slider::-webkit-scrollbar {
    display: none;
  }

  /* Single Card inside Slider Mobile */
  .mobile-slider > * {
    flex: 0 0 260px !important;
    max-width: 260px !important;
    width: 260px !important;
    scroll-snap-align: start;
    margin-bottom: 0 !important;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    padding-bottom: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-slider > *:active {
    transform: scale(0.98);
  }

  .mobile-slider .news-card-img,
  .mobile-slider .news-card-sm-img {
    height: 145px !important;
    border-radius: 0;
  }

  .mobile-slider.horizontal-list > .h-article-item,
  .mobile-slider.politik-side > .h-article-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .mobile-slider.horizontal-list > .h-article-item .h-article-thumb,
  .mobile-slider.politik-side > .h-article-item .h-article-thumb {
    width: 100% !important;
    height: 145px !important;
    flex-shrink: 0;
  }

  .mobile-slider.horizontal-list > .h-article-item .h-article-body,
  .mobile-slider.politik-side > .h-article-item .h-article-body {
    padding: 0 10px 8px 10px;
  }

  .mobile-slider .news-card h3,
  .mobile-slider .news-card-sm h4,
  .mobile-slider .h-article-body h4 {
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    padding: 0 10px;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mobile-slider .meta {
    padding: 0 10px;
    font-size: 10.5px !important;
    margin-top: 4px;
  }

  .mobile-slider .excerpt {
    display: none !important;
  }

  .politik-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card-featured .video-thumb { height: 220px; }
}

@media (max-width: 480px) {
  .politik-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}
