/*
Theme Name: InfoNex Lite
Theme URI: https://infonexmetro.web.id/
Author: InfoNexMetro
Description: Tema portal berita ringan, bersih, responsif, dan kompatibel WordPress Multisite serta InfoNex Kabarin Bridge.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: infonex-lite
License: GPL-2.0-or-later
*/

:root{
  --ink:#18212b;
  --navy:#1f2937;
  --blue:#0f766e;
  --accent:#d97706;
  --muted:#6b7280;
  --line:#e5e7eb;
  --soft:#f8fafc;
  --white:#fff;
  --container:1160px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.55}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%;height:auto}
.container{width:min(var(--container),calc(100% - 36px));margin:auto}

.topbar{font-size:11px;color:var(--muted);border-bottom:1px solid var(--line);padding:7px 0}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}
.header-inner{min-height:70px;display:flex;align-items:center;gap:26px}
.brand{font-size:24px;font-weight:900;color:var(--navy);white-space:nowrap}
.brand .custom-logo{max-height:48px;width:auto}
.site-nav{flex:1}
.site-nav ul{list-style:none;padding:0;margin:0;display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.site-nav a{font-size:13px;font-weight:700}
.search-link{font-size:13px;font-weight:700}

.breaking{background:var(--navy);color:#fff}
.breaking-inner{display:flex;gap:12px;align-items:center;min-height:34px;overflow:hidden}
.breaking-label{background:var(--accent);padding:5px 9px;font-size:10px;font-weight:800;text-transform:uppercase}
.breaking-title{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.section{padding:24px 0}
.hero-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,.9fr);gap:28px}
.hero-card .thumb{aspect-ratio:16/8.8;overflow:hidden;background:#e9edf1}
.hero-card .thumb img{width:100%;height:100%;object-fit:cover}
.kicker{display:inline-block;background:var(--accent);color:#fff;padding:4px 7px;font-size:9px;font-weight:800;text-transform:uppercase;margin-top:10px}
.hero-title{font-family:Georgia,"Times New Roman",serif;font-size:39px;line-height:1.06;margin:7px 0 9px}
.excerpt{font-size:14px;color:#4e5862}
.meta{font-size:11px;color:var(--muted);margin-top:7px}

.section-title,.widget-title{font-size:12px;text-transform:uppercase;letter-spacing:.04em;border-top:2px solid var(--accent);padding-top:8px;margin:0 0 13px}
.pick-list{display:grid;gap:12px}
.pick-item{display:grid;grid-template-columns:92px 1fr;gap:10px;border-bottom:1px solid var(--line);padding-bottom:11px}
.pick-item>a{width:92px;height:64px;overflow:hidden;background:#eef1f4}
.pick-item img{width:100%;height:100%;object-fit:cover}
.pick-item h3{font-family:Georgia,"Times New Roman",serif;font-size:14px;line-height:1.22;margin:0}

.latest-wrap{display:grid;grid-template-columns:minmax(0,2.7fr) minmax(270px,.85fr);gap:28px;border-top:1px solid var(--line);padding-top:20px}
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.news-card{min-width:0;display:flex;flex-direction:column}
.news-card .thumb{aspect-ratio:16/10;overflow:hidden;background:#eef1f4}
.news-card .thumb img{width:100%;height:100%;object-fit:cover}
.news-card h3{font-family:Georgia,"Times New Roman",serif;font-size:15px;line-height:1.28;margin:6px 0 3px}
.news-card h3 a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

.sidebar-box{border:1px solid var(--line);padding:12px;margin-bottom:18px}
.popular-list{margin:0;padding-left:18px}
.popular-list li{padding:7px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.35}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tags a{display:inline-block;border:1px solid var(--line);border-radius:18px;padding:5px 9px;font-size:11px}

.article-layout{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(280px,.85fr);gap:34px}
.entry-title{font-family:Georgia,"Times New Roman",serif;font-size:41px;line-height:1.08;margin:0 0 10px}
.entry-content{font-size:17px}
.entry-content p{margin:0 0 1.2em}
.entry-content img{margin:20px 0}
.archive-title{font-family:Georgia,"Times New Roman",serif;font-size:34px}
.listing{display:grid;gap:18px}
.listing-item{display:grid;grid-template-columns:220px 1fr;gap:18px;border-bottom:1px solid var(--line);padding-bottom:18px}
.listing-item img{width:220px;height:145px;object-fit:cover}

.site-footer{margin-top:42px;background:var(--navy);color:#fff;padding:32px 0 16px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px}
.footer-grid h4{font-size:11px;text-transform:uppercase;margin:0 0 12px}
.footer-grid ul{list-style:none;padding:0;margin:0}
.footer-grid li{font-size:12px;margin:6px 0}
.copyright{margin-top:24px;padding-top:14px;border-top:1px solid rgba(255,255,255,.18);font-size:11px;opacity:.8}

.infonex-shared-featured,
.kabarin-shared-featured{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}

@media(max-width:920px){
  .hero-grid,.latest-wrap,.article-layout{grid-template-columns:1fr}
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .site-nav{display:none}
  .hero-title,.entry-title{font-size:32px}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .container{width:min(100% - 22px,var(--container))}
  .news-grid{grid-template-columns:1fr}
  .hero-title,.entry-title{font-size:28px}
  .pick-item{grid-template-columns:84px 1fr}
  .pick-item>a{width:84px;height:58px}
  .listing-item{grid-template-columns:120px 1fr}
  .listing-item img{width:120px;height:88px}
  .footer-grid{grid-template-columns:1fr}
}


/* ===== InfoNex Lite 1.1.0 color identity update ===== */
body{
  background:#fcfcfb;
}
.site-header{
  background:#ffffff;
  border-bottom:1px solid var(--line);
}
.brand{
  color:var(--blue);
}
.site-nav a:hover,
.search-link:hover{
  color:var(--blue);
}
.breaking{
  background:var(--blue);
}
.breaking-label{
  background:var(--accent);
  color:#fff;
}
.kicker{
  background:var(--accent);
}
.section-title,.widget-title{
  border-top:2px solid var(--blue);
}
.sidebar-box{
  background:#fff;
}
.tags a:hover{
  border-color:var(--blue);
  color:var(--blue);
}
.site-footer{
  background:var(--navy);
}


/* ===== InfoNex Lite 1.2.0 — layout stability fixes ===== */

/* Prevent headline/title overlap from inherited/custom styles */
.hero-card{
  min-width:0;
  overflow:hidden;
}
.hero-card .thumb{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  max-height:390px;
  overflow:hidden;
  background:#edf1f3;
}
.hero-card .thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
}

.hero-title{
  position:static!important;
  float:none!important;
  clear:both!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:8px 0 9px!important;
  padding:0!important;
  font-size:34px!important;
  line-height:1.08!important;
  letter-spacing:-.015em;
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:none;
  z-index:auto!important;
}

.hero-title a{
  display:block;
  position:static!important;
}

/* Force next section to begin after hero block */
.hero-grid{
  align-items:start;
  margin-bottom:12px;
}
.hero-grid::after{
  content:"";
  display:block;
  clear:both;
}
.hero-grid + .section{
  clear:both!important;
  position:relative;
  z-index:1;
  margin-top:14px!important;
  padding-top:24px!important;
}

/* More balanced content/sidebar ratio */
.hero-grid{
  grid-template-columns:minmax(0,2.12fr) minmax(285px,.88fr);
  gap:26px;
}
.latest-wrap{
  grid-template-columns:minmax(0,2.7fr) minmax(270px,.85fr);
  gap:26px;
}

/* Cards */
.news-card .thumb{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#edf1f3;
}
.news-card .thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
.news-card h3{
  font-size:14px;
  line-height:1.28;
}
.pick-item{
  overflow:hidden;
}
.pick-item h3{
  overflow-wrap:break-word;
  word-break:normal;
}

/* If an image cannot be found, keep placeholder modest */
.infonex-no-image{
  width:100%;
  height:100%;
  min-height:110px;
  background:#edf1f3;
}

/* Make channel tags cleaner; wp_list_categories outputs li elements */
.tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  list-style:none;
  padding:0;
  margin:0;
}
.tags li{
  list-style:none;
  margin:0;
  padding:0;
}
.tags a{
  display:inline-block;
}

/* Footer spacing */
.site-footer{
  margin-top:34px;
}

/* Responsive */
@media(max-width:920px){
  .hero-card .thumb{max-height:none}
  .hero-title{font-size:31px!important}
  .hero-grid + .section{margin-top:6px!important}
}
@media(max-width:560px){
  .hero-title{font-size:27px!important;line-height:1.12!important}
  .hero-card .thumb{aspect-ratio:16/10}
}
