/* ══════════════════════════════════════════════════════════
   index.css
   Isi KONTEN halaman beranda (bukan menu). Selalu dipasang
   BERSAMA menu.css (menu.css duluan, baru index.css).
══════════════════════════════════════════════════════════ */

/* ── HERO ROW (1 utama + 4 list + terpopuler, desktop) ── */
.hero-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  margin-bottom: 36px;
  align-items: start;
}
.hero-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 1024px) { .hero-row { grid-template-columns: 1fr; } .hero-popular-col { display: none; } }
@media (max-width: 768px) { .hero-row { display: none; } }

/* ── HERO MAIN CARD: white card, text left / image right, no description ── */
.hero-main-card {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  min-height: 260px;
}
.hero-main-card:hover .hero-main-title { color: var(--red); }
.hero-main-card:hover img { transform: scale(1.03); }

.hero-main-text {
  flex: 1 1 55%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}
.hero-main-title { font-size: 22px; font-weight: 900; line-height: 1.3; color: var(--text); order: 1; }
.hero-main-label { order: 2; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--red); }
.hero-main-meta { order: 3; font-size: 11px; color: var(--muted); }

.hero-main-image { flex: 0 0 45%; position: relative; background: #111; }
.hero-main-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; will-change: transform; }
.hero-main-noimg { position: absolute; inset: 0; background: linear-gradient(135deg,#1a1a2e,#2d2d44); }

.hero-side-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hero-side-item { display: flex; flex-direction: column; gap: 8px; cursor: pointer; min-width: 0; }
.hero-side-thumb { width: 100%; aspect-ratio: 16/10; height: auto; border-radius: 6px; object-fit: cover; background: var(--border); }
.hero-side-info { min-width: 0; }
.hero-side-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--red); margin-bottom: 4px; display: block; }
.hero-side-title { font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-side-title:hover { color: var(--red); }
.hero-side-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) { .hero-side-col { grid-template-columns: repeat(2, 1fr); } }

.hero-popular-col { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.ad-caption-atas { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #bbb; text-align: center; margin-bottom: 6px; }
.ad-box-atas { background: var(--bg); border-radius: 6px; overflow: hidden; margin-bottom: 24px; }
.ad-box-atas iframe { width: 100%; border: none; display: block; }
.popular-box-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 2px solid var(--text); margin-bottom: 12px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.popular-box-title a { font-size: 11px; color: var(--red); font-weight: 700; text-transform: none; letter-spacing: 0; }
.popular-box-title a:hover { text-decoration: underline; }
.popular-list { display: flex; flex-direction: column; gap: 14px; }
.popular-item { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-num { font-size: 22px; font-weight: 900; color: var(--border); line-height: 1; flex-shrink: 0; min-width: 24px; }
.popular-item h3 { font-size: 13px; font-weight: 600; line-height: 1.4; }
.popular-item h3 a { color: var(--text); transition: color .15s; }
.popular-item h3 a:hover { color: var(--red); }
.popular-item .meta { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.popular-item .meta .meta-stat { display: inline-flex; align-items: center; gap: 2px; }

/* ── MOBILE NEWS CAROUSEL (5 hero, sama kayak yang tampil di desktop) ── */
.mob-news-wrap { display: none; }
@media (max-width: 768px) {
  .mob-news-wrap { display: block; margin-bottom: 24px; margin-left: -20px; margin-right: -20px; }
  .mob-news-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; padding: 0 16px; }
  .mob-news-scroll::-webkit-scrollbar { display: none; }
  .mob-news-card { flex-shrink: 0; width: calc(100vw - 32px); height: 210px; border-radius: 8px; overflow: hidden; position: relative; cursor: pointer; background: #111; scroll-snap-align: start; }
  .mob-news-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .mob-news-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,0) 100%); }
  .mob-news-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px; color: #fff; }
  .mob-news-card-kanal { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.7); display: block; margin-bottom: 4px; }
  .mob-news-card-title { font-size: 15px; font-weight: 700; line-height: 1.35; color: #fff; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .mob-news-card-time { font-size: 10px; color: rgba(255,255,255,.6); margin-top: 4px; }
  .mob-news-card-skel { flex-shrink: 0; width: calc(100vw - 32px); height: 210px; border-radius: 8px; }
  .mob-news-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .mob-news-dot { width: 7px; height: 7px; border-radius: 50%; background: #ddd; cursor: pointer; transition: background .2s, transform .2s; flex-shrink: 0; }
  .mob-news-dot.active { background: var(--red); transform: scale(1.3); }
}

/* ── TERPOPULER MOBILE (tampil sebelum Berita Terbaru) ── */
.mob-popular-wrap { display: none; }
@media (max-width: 768px) {
  .mob-popular-wrap { display: block; margin-bottom: 28px; }
}

/* ── SECTION HEAD generik (judul + Lihat Semua) ── */
.section-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 2px solid var(--red); margin-bottom: 18px; }
.section-head .section-title { border: none; padding: 0; margin: 0; }
.see-all-link { font-size: 12px; font-weight: 700; color: var(--red); flex-shrink: 0; }
.see-all-link:hover { text-decoration: underline; }
.section-title { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding-bottom: 10px; border-bottom: 2px solid var(--red); margin-bottom: 16px; color: var(--text); }

/* ── BERITA TERBARU: grid kartu ── */
.terbaru-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 24px; margin-bottom: 40px; }
@media (max-width: 1024px) { .terbaru-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .terbaru-grid { grid-template-columns: 1fr; } }
.terbaru-card { cursor: pointer; }
.terbaru-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; margin-bottom: 10px; background: var(--border); }
.terbaru-card-topic { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 5px; }
.terbaru-card-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text); margin-bottom: 5px; }
.terbaru-card-title:hover { color: var(--red); }
.terbaru-card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.terbaru-card-meta { font-size: 11px; color: var(--muted); }

/* ── BARIS 5 KANAL ── */
.kanal-tiles-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 20px; }
@media (max-width: 1024px) { .kanal-tiles-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .kanal-tiles-row { grid-template-columns: 1fr 1fr; } }
.kanal-tile { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.kanal-tile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kanal-tile-title { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--text); }
.kanal-tile-see-all { font-size: 10px; font-weight: 700; color: var(--red); }
.kanal-tile-see-all:hover { text-decoration: underline; }
.kanal-tile-main { cursor: pointer; margin-bottom: 10px; }
.kanal-tile-main img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 5px; margin-bottom: 6px; background: var(--border); }
.kanal-tile-main-title { font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--text); margin-bottom: 3px; }
.kanal-tile-main-title:hover { color: var(--red); }
.kanal-tile-main-meta { font-size: 10px; color: var(--muted); }
.kanal-tile-sub-list { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
.kanal-tile-sub-item { font-size: 11.5px; line-height: 1.4; color: var(--text); cursor: pointer; padding-left: 12px; position: relative; }
.kanal-tile-sub-item::before { content: '•'; position: absolute; left: 0; color: var(--red); }
.kanal-tile-sub-item:hover { color: var(--red); }

/* ── PROMO BANNER (label + kartu artikel statis) ── */
.promo-banner-wrap { margin-bottom: 36px; }
.promo-banner-label {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text);
  padding-left: 12px;
  border-left: 4px solid var(--red);
  margin-bottom: 14px;
}
.promo-banner-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  max-width: 340px;
}
.promo-banner-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--border); }
.promo-banner-body { padding: 12px 14px 14px; }
.promo-banner-title { font-size: 14px; font-weight: 900; line-height: 1.35; color: var(--text); margin-bottom: 6px; }
.promo-banner-card:hover .promo-banner-title { color: var(--red); }
.promo-banner-desc { font-size: 12px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .promo-banner-label { font-size: 14px; }
  .promo-banner-card { max-width: 260px; }
}
# body {
#  background-image: url('/_ipx/uiuxkit/81-pc-new.png');
#  background-size: cover;
#  background-position: top center;
#  background-repeat: no-repeat;
#  background-attachment: scroll;
# }

@media (max-width: 768px) {
  body {
    background-image: url('/_ipx/uiuxkit/81-pc-new.png');
    background-attachment: scroll; /* fixed bikin lag di mobile, mendingan scroll */
  }
}
/* ── KOTAK PUTIH PEMBUNGKUS KONTEN ──
   Bikin konten "mengambang" di atas background-image body, bukan
   transparan nembus ke bg. Sengaja TANPA border/shadow — biar kalau
   nanti bg body diganti jadi putih polos, kotak ini otomatis nyatu
   dan gak keliatan sebagai kotak terpisah. */
.content-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 20px;
}
@media (max-width: 640px) {
  .content-wrap { border-radius: 0; padding: 20px 16px; }
}
/* ── BANNER TANAH AIRKU + EMBED YOUTUBE (video overlay di atas
   kotak gelap yang sudah ada di dalam SVG-nya sendiri) ── */
.tanah-airku-wrap {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 20px;
}
.tanah-airku-frame {
  position: relative;
  width: 100%;
  line-height: 0; /* biar gak ada gap di bawah img */
}
.tanah-airku-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.tanah-airku-frame iframe {
  position: absolute;
  top: 0;
  left: 58.8%;
  width: 41.2%;
  height: 100%;
  border: none;
  display: block;
}
@media (max-width: 768px) {
  .tanah-airku-wrap { padding: 0 16px; }
}
