/* ============================================
   REFINED DESIGN — 3Lensa
   Style: Tempo / Kompas / CNN Indonesia
   Pengganti: premium.css (hapus emoji & gradient)
   ============================================ */

/* ============ FONT ============ */
:root {
  --ref-black: #1a1a1a;
  --ref-gray-dark: #333;
  --ref-gray: #666;
  --ref-gray-light: #999;
  --ref-border: #e5e5e5;
  --ref-bg: #fff;
  --ref-bg-alt: #f7f7f7;
  --ref-red: #c8102e;
  --ref-blue: #0a5c8a;
  --ref-font-serif: 'Playfair Display', 'Merriweather', Georgia, serif;
  --ref-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============ HILANGKAN EMOJI DARI JUDUL ============ */
.section-title::before { content: none; }
h1::before, h2::before, h3::before { content: none; }

/* ============ HEADER ============ */
.header {
  border-bottom: 1px solid var(--ref-border);
  background: #fff;
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 40px;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* Logo teks kalau gambar tidak ada */
.logo-text {
  font-family: var(--ref-font-serif);
  font-size: 32px;
  font-weight: 900;
  color: var(--ref-red);
  letter-spacing: -1px;
  line-height: 1;
}

/* ============ NAVIGASI UTAMA ============ */
.nav {
  display: flex;
  gap: 0;
  font-weight: 500;
  font-size: 14px;
  flex: 1;
  justify-content: center;
}

.nav > a,
.nav .dropdown > a {
  padding: 10px 16px;
  color: var(--ref-gray-dark);
  border-bottom: none;
  letter-spacing: 0.2px;
  transition: color 0.15s;
}

.nav > a:hover,
.nav .dropdown:hover > a {
  color: var(--ref-red);
  border-bottom: none;
}

.nav > a.active {
  color: var(--ref-red);
  font-weight: 700;
}

/* Dropdown minimalis */
.nav .dropdown-menu {
  border-top: 1px solid var(--ref-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 0;
  padding: 8px 0;
  min-width: 200px;
}

.nav .dropdown-menu a {
  padding: 10px 20px;
  font-size: 13px;
  color: var(--ref-gray-dark);
}

.nav .dropdown-menu a:hover {
  background: var(--ref-bg-alt);
  color: var(--ref-red);
}

/* ============ HEADER ACTIONS ============ */
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.icon-btn,
.menu-toggle,
#dark-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ref-gray-dark);
  transition: background 0.15s;
}

.icon-btn:hover,
.menu-toggle:hover,
#dark-toggle:hover {
  background: var(--ref-bg-alt);
  color: var(--ref-red);
}

/* ============ TOPBAR ============ */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--ref-border);
  font-size: 12px;
  color: var(--ref-gray);
}

.topbar-inner {
  padding: 8px 24px;
}

.topbar-links a {
  color: var(--ref-gray);
  margin-left: 20px;
  font-weight: 500;
}

.topbar-links a:hover {
  color: var(--ref-red);
}

.btn-sub {
  background: transparent;
  color: var(--ref-red) !important;
  border: 1px solid var(--ref-red);
  padding: 4px 12px;
  border-radius: 3px;
  font-weight: 600;
}

.btn-sub:hover {
  background: var(--ref-red);
  color: #fff !important;
}

/* ============ BREAKING NEWS ============ */
.breaking {
  background: var(--ref-red);
  color: #fff;
  border-bottom: none;
}

.breaking-inner {
  padding: 10px 24px;
}

.badge {
  background: #fff;
  color: var(--ref-red);
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.ticker-track {
  font-size: 13px;
  font-weight: 500;
}

/* ============ SECTION TITLE ============ */
.section-title {
  font-family: var(--ref-font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--ref-black);
  border-left: none;
  border-bottom: 2px solid var(--ref-black);
  padding: 0 0 12px;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

/* Hilangkan titik merah di depan title */
.section-title::before {
  content: none !important;
}

/* ============ CARD BERITA ============ */
.card {
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: none;
}

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 12px;
  transition: opacity 0.2s;
}

.card:hover img {
  opacity: 0.85;
}

.card h3 {
  font-family: var(--ref-font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ref-black);
  margin: 8px 0;
  letter-spacing: -0.2px;
}

.card:hover h3 {
  color: var(--ref-red);
}

.card p {
  font-size: 14px;
  color: var(--ref-gray);
  line-height: 1.55;
  margin: 8px 0 12px;
}

.card .meta {
  font-size: 12px;
  color: var(--ref-gray-light);
  margin-top: 8px;
}

/* ============ KATEGORI BADGE ============ */
.cat {
  background: var(--ref-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: inline-block;
}

/* ============ HERO ============ */
.hero-main {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 480px;
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-main:hover img {
  transform: scale(1.03);
}

.hero-overlay {
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}

.hero-overlay h1 {
  font-family: var(--ref-font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 12px 0;
  letter-spacing: -0.5px;
}

.hero-overlay p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.55;
}

/* ============ SIDEBAR CARD ============ */
.side-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ref-border);
}

.side-card:last-child {
  border-bottom: none;
}

.side-card img {
  width: 110px;
  height: 74px;
  object-fit: cover;
  border-radius: 0;
}

.side-card h3 {
  font-family: var(--ref-font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 5px;
  letter-spacing: -0.1px;
}

/* ============ EDITOR CARD ============ */
.editor-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  transition: none;
}

.editor-card:hover {
  transform: none;
  box-shadow: none;
}

.editor-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 14px;
}

.editor-card h3 {
  font-family: var(--ref-font-serif);
  font-size: 20px;
  margin: 10px 0;
  font-weight: 700;
  line-height: 1.3;
}

/* ============ ARTIKEL ============ */
.artikel-isi {
  font-family: 'Source Serif Pro', 'Merriweather', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  color: #2a2a2a;
}

.artikel-isi p {
  margin-bottom: 22px;
}

.artikel-isi h2 {
  font-family: var(--ref-font-serif);
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 16px;
  letter-spacing: -0.3px;
}

.artikel-isi a {
  color: var(--ref-red);
  text-decoration: underline;
}

.artikel-isi blockquote {
  border-left: 3px solid var(--ref-red);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--ref-gray-dark);
}

/* Judul artikel */
article h1 {
  font-family: var(--ref-font-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
}

@media (max-width: 768px) {
  article h1 { font-size: 28px; }
}

/* ============ POPULAR SIDEBAR ============ */
.popular-sidebar {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border-top: 2px solid var(--ref-black);
  padding-top: 20px;
}

.popular-sidebar h3 {
  font-family: var(--ref-font-serif);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ref-border);
  color: var(--ref-black);
}

.popular-sidebar .item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ref-border);
}

.popular-sidebar .item:last-child {
  border-bottom: none;
}

.popular-sidebar .num {
  font-family: var(--ref-font-serif);
  font-size: 24px;
  font-weight: 900;
  color: var(--ref-red);
  opacity: 1;
  line-height: 1;
}

.popular-sidebar .item h4 {
  font-family: var(--ref-font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 4px;
}

.popular-sidebar .item small {
  color: var(--ref-gray-light);
  font-size: 11px;
}

/* ============ TOMBOL PROMO (minimalis) ============ */
.tombol-promo {
  display: block;
  background: #fff;
  color: var(--ref-red);
  padding: 14px 20px;
  border: 1px solid var(--ref-red);
  border-radius: 0;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: none;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}

.tombol-promo:hover {
  background: var(--ref-red);
  color: #fff;
  transform: none;
  box-shadow: none;
}

/* ============ FOOTER ============ */
.footer {
  background: #1a1a1a;
  color: #bbb;
  padding: 60px 0 0;
  margin-top: 80px;
  border-top: 3px solid var(--ref-red);
}

.footer h4 {
  color: #fff;
  font-family: var(--ref-font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.footer a {
  color: #bbb;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer a:hover {
  color: #fff;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.copyright {
  border-top: 1px solid #2a2a2a;
  padding: 24px;
  font-size: 12px;
  color: #777;
  letter-spacing: 0.3px;
}

/* ============ HILANGKAN EMOJI DARI SEMUA TOMBOL ============ */
/* Kalau mau hapus emoji dari kode HTML, ganti manual.
   CSS ini cuma menyembunyikan emoji dari ikon tertentu */

/* Floating WA — tanpa shadow */
#wa-floating {
  background: #25d366;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Back to top — minimalis */
#back-to-top {
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-radius: 4px;
  width: 44px;
  height: 44px;
}

#back-to-top:hover {
  background: var(--ref-red);
  transform: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .header-inner { padding: 16px 20px; gap: 20px; }
  .logo img { height: 40px; }
}

@media (max-width: 640px) {
  .logo img { height: 36px; }
  .section-title { font-size: 22px; }
  .card h3 { font-size: 17px; }
  .hero-overlay h1 { font-size: 22px; }
  article h1 { font-size: 26px; }
  .artikel-isi { font-size: 17px; }
}