/* Custom overrides – tambahkan CSS kustom Anda di sini */

/* ═══════════════════════════════════════════
   FONT CONSISTENCY FIXES (ref: dailyloe.com)
   Merapikan tebal/tipis teks di seluruh tema
═══════════════════════════════════════════ */

/* ── Body & Paragraph ── */
body {
  font-family: var(--fu);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Article / Isi Berita ── */
.article-content,
.entry-content {
  font-family: var(--fb);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1a1a1a;
}
.article-content p,
.entry-content p {
  font-weight: 400;
  margin-bottom: 1.4rem;
}
.article-content strong,
.entry-content strong,
.article-content b,
.entry-content b {
  font-weight: 700;
  color: var(--black);
}
.article-content em,
.entry-content em {
  font-style: italic;
  font-weight: 400;
}

/* ── Headings Konsisten ── */
.article-content h2,
.entry-content h2 {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.article-content h3,
.entry-content h3 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
}

/* ── Card Titles ── */
.card-title {
  font-family: var(--fh);
  font-weight: 700;
  letter-spacing: .01em;
}
.post-item-title {
  font-family: var(--fh);
  font-weight: 700;
}

/* ── Navigation ── */
.primary-nav ul > li > a {
  font-family: var(--fu);
  font-weight: 600;
  letter-spacing: .05em;
}

/* ── Meta, Labels, Kecil ── */
.card-meta,
.post-item-meta,
.post-single-meta {
  font-family: var(--fu);
  font-weight: 400;
}
.card-meta .author,
.post-single-meta strong {
  font-weight: 600;
}

/* ── Ticker ── */
.ticker-item {
  font-family: var(--fu);
  font-weight: 500;
}

/* ── Sidebar Widgets ── */
.sidebar .widget-body p,
.sidebar .widget-body li,
.sidebar .widget-body a {
  font-weight: 400;
}
.sidebar .widget-title,
.sidebar .widget h2.widget-title {
  font-weight: 700 !important;
}

/* ── Footer ── */
.footer-nl h3 {
  font-family: var(--fd);
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   LOGO HEADER — FIX UKURAN UPLOAD
   WordPress inject img tanpa size limit,
   force constrain agar tidak tampil besar
═══════════════════════════════════════════ */
.site-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.site-logo .custom-logo,
.site-logo .custom-logo-link img,
.site-logo > a > img,
.site-logo > a img,
.header-inner .site-logo img {
  max-height: 44px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* Mobile — logo lebih kecil di HP */
@media (max-width: 768px) {
  .site-logo .custom-logo,
  .site-logo .custom-logo-link img,
  .site-logo > a img {
    max-height: 36px !important;
    max-width: 140px !important;
  }
}

/* ═══════════════════════════════════════════
   FOOTER LOGO — sinkron dengan header
═══════════════════════════════════════════ */
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}
/* Logo gambar di footer — ukuran sedikit lebih besar agar terbaca di bg gelap */
.footer-logo .custom-logo,
.footer-logo .custom-logo-link img,
.footer-logo > img,
.footer-logo a img {
  max-height: 48px !important;
  max-width: 200px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  /* filter brightness agar logo putih tetap terlihat di bg gelap footer */
  filter: brightness(0) invert(1);
}
/* Teks fallback logo di footer */
.footer-logo .logo-main { color: var(--red) !important; }
.footer-logo .logo-tld  { color: var(--g400) !important; }

/* ═══════════════════════════════════════════
   MOBILE MENU LOGO — sinkron dengan header
═══════════════════════════════════════════ */
.mobile-logo {
  display: inline-flex;
  align-items: center;
}
.mobile-logo .custom-logo,
.mobile-logo .custom-logo-link img,
.mobile-logo a img {
  max-height: 40px !important;
  max-width: 160px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  filter: brightness(0) invert(1); /* putihkan logo di bg gelap mobile menu */
}

/* ═══════════════════════════════════════════
   TEKS TIDAK TERBACA — fix kontras di bg gelap
   (excerpt, sub-title, meta di area hero/dark)
═══════════════════════════════════════════ */
/* ── Single Post: Excerpt, Meta, Breadcrumb ── */
/* Excerpt di meta-bar gelap — warna solid, tidak terpotong */
.post-single-excerpt {
  color: rgba(255,255,255,0.90) !important;
  font-size: .95rem !important;
  line-height: 1.6 !important;
  max-width: 760px;
  /* hapus semua clamp/overflow tersembunyi */
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  -webkit-box-orient: unset !important;
}
/* Feature sub-teks di hero homepage */
.feature-sub {
  color: rgba(255,255,255,0.90) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
/* Meta di area gelap */
.post-single-meta {
  color: rgba(255,255,255,0.70) !important;
}
.post-single-meta a {
  color: rgba(255,255,255,0.70) !important;
}
.post-single-meta strong,
.post-single-meta .author {
  color: #ffffff !important;
  font-weight: 600;
}
.post-single-meta .reading-time {
  color: rgba(255,255,255,0.60) !important;
}
/* Breadcrumb di bg gelap */
.post-breadcrumb,
.post-breadcrumb span {
  color: rgba(255,255,255,0.55) !important;
}
.post-breadcrumb a {
  color: rgba(255,255,255,0.70) !important;
}
.post-breadcrumb a:hover {
  color: #fff !important;
}
/* Text-shadow pada judul di bg gelap */
.post-single-title {
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.feature-title,
.slide-title {
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
/* Gradient overlay — diperkuat langsung di .overlay milik card
   BUKAN ::before pada content (itu malah nutup teks) */
.feature-main > .overlay,
.feature-side > .overlay,
.cat-card > .overlay,
.bottom-card > .overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.10) 80%,
    transparent      100%
  ) !important;
}

/* ═══════════════════════════════════════════
   LIVE SCORES WIDGET — rapikan header
═══════════════════════════════════════════ */
/* Hapus badge "Live" dari dalam h3, pindahkan ke row header terpisah */
.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--black);
}
/* Badge Live di header widget — inline rapi */
.widget-header .badge-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .6rem;
  padding: 3px 8px;
  line-height: 1;
  flex-shrink: 0;
  animation: livePulse 2s infinite;
}
.widget-header .widget-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: .82rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Score item — lebih rapi */
.score-item {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 6px;
  padding: 9px 0;
  border-bottom: 1px solid var(--g100);
}
.score-item:last-child { border-bottom: none; }
.score-league {
  font-size: .58rem;
  font-weight: 700;
  color: var(--g400);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}
.score-teams { flex: 1; min-width: 0; }
.score-team {
  font-size: .78rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
  gap: 4px;
}
.score-team:last-child { margin-bottom: 0; }
.score-team.winner { font-weight: 800; color: var(--black); }
.score-num {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 700;
  min-width: 20px;
  text-align: right;
  flex-shrink: 0;
}
.score-num.winner { color: var(--red); }
.score-status {
  font-size: .56rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: var(--g400);
  line-height: 1.3;
}
.score-status.live {
  color: var(--white);
  background: var(--red);
  padding: 2px 5px;
  border-radius: 2px;
}
/* View All Scores link */
.widget-body > a[href*="live-scores"] {
  display: block !important;
  text-align: center !important;
  margin-top: 14px !important;
  padding: 8px !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  color: var(--red) !important;
  border-top: 1px solid var(--g100) !important;
}

/* ═══════════════════════════════════════════
   PAKSA WARNA TEKS DI AREA HERO GELAP
   Semua <p> di dalam meta-bar harus putih
═══════════════════════════════════════════ */
.post-hero-meta-bar,
.post-hero-meta-bar * {
  color: rgba(255,255,255,0.85);
}
.post-hero-meta-bar .post-single-title,
.post-hero-meta-bar h1 {
  color: #ffffff !important;
}
.post-hero-meta-bar p,
.post-hero-meta-bar .post-single-excerpt {
  color: rgba(255,255,255,0.88) !important;
  font-size: .95rem !important;
  line-height: 1.6 !important;
}
.post-hero-meta-bar .post-breadcrumb,
.post-hero-meta-bar .post-breadcrumb span,
.post-hero-meta-bar .post-breadcrumb a {
  color: rgba(255,255,255,0.55) !important;
}
.post-hero-meta-bar .badge {
  color: #fff !important;
}
