/*
Theme Name: Al Jazeera Style News Portal
Theme URI: https://nahaba.id/
Author: Partner Coding
Author URI: https://nahaba.id/
Description: Tema portal berita profesional bergaya Al Jazeera dengan sticky header desktop & mobile, sudut foto melengkung halus, foto di setiap artikel, dan judul presisi sejajar foto utama.
Version: 1.6.1
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: aljazeera-portal
*/

:root {
  --primary-color: #fa6400; /* Warna aksen oranye khas Al Jazeera */
  --dark-color: #111111;
  --body-text: #262626;
  --text-muted: #666666;
  --bg-light: #f9f9f9;
  --border-color: #e5e5e5;
  --radius-img: 8px; /* Lengkungan sudut foto halus */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-headline: "Georgia", Cambria, "Times New Roman", Times, serif;
}

/* --------------------------------------------------------------------------
   Editorial homepage override - follows the supplied news-portal reference
   -------------------------------------------------------------------------- */
:root {
  --primary-color: #e65322;
  --primary-dark: #b91e24;
  --ink: #151515;
  --navy: #0b1f45;
  --muted: #6f7277;
  --soft: #f5f5f3;
  --border: #dfdfdc;
  --white: #ffffff;
  --serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
}

.container {
  width: calc(100% - 48px);
  max-width: 1180px;
}

.site-header {
  position: relative;
  background: var(--white);
  z-index: 20;
}

.site-top-strip {
  min-height: 34px;
  background: #171717;
  color: #f5f5f5;
  font-size: 0.72rem;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.top-date { color: #dedede; white-space: nowrap; }

.utility-menu,
.utility-menu ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility-menu a { color: #f5f5f5; }
.utility-menu a:hover,
.utility-menu a:focus { color: #ffb18e; }

.brand-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.brand-row-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(300px, 1.7fr) minmax(155px, 0.65fr);
  gap: 24px;
  align-items: center;
}

.site-branding { min-width: 0; }
.site-branding .custom-logo-link { display: inline-block; }
.site-branding .custom-logo { width: auto; max-width: 245px; max-height: 70px; }

.text-brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--white);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
}

.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { color: var(--navy); font-family: var(--serif); font-size: 1.55rem; line-height: 1; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 0.65rem; line-height: 1.2; }

.header-banner {
  min-height: 76px;
  overflow: hidden;
  background: linear-gradient(110deg, var(--navy), #143d7c 58%, var(--primary-color));
  color: var(--white);
}

.header-banner img { width: 100%; height: 76px; object-fit: cover; }
.header-banner-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 76px;
  padding: 12px 24px;
  background: linear-gradient(90deg, rgba(8, 26, 58, 0.95), rgba(8, 26, 58, 0.45));
}
.header-banner-copy strong { font-family: var(--serif); font-size: 1.22rem; line-height: 1.15; }
.header-banner-copy span { margin-top: 5px; color: #e8eef9; font-size: 0.75rem; }

.header-search form { display: flex; width: 100%; }
.header-search label { flex: 1 1 auto; }
.header-search .search-field {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  padding: 8px 10px;
  font-size: 0.78rem;
}
.header-search .search-submit {
  min-height: 38px;
  border: 0;
  border-radius: 0 3px 3px 0;
  padding: 8px 12px;
  background: var(--primary-color);
  color: var(--white);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.primary-navigation {
  position: sticky;
  top: 0;
  border-bottom: 4px solid var(--primary-color);
  background: var(--navy);
  color: var(--white);
  z-index: 19;
}
.primary-navigation-inner { display: flex; align-items: center; min-height: 46px; }
.primary-navigation .nav-menu {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-navigation .nav-menu li { display: flex; }
.primary-navigation .nav-menu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}
.primary-navigation .nav-menu a:hover,
.primary-navigation .nav-menu a:focus,
.primary-navigation .nav-menu .current-menu-item > a,
.primary-navigation .nav-menu .current_page_item > a { background: var(--primary-color); color: var(--white); }
.menu-toggle { display: none; }

.breaking-bar { border-bottom: 1px solid var(--border); background: #fafafa; }
.breaking-inner { display: flex; align-items: center; gap: 9px; min-height: 38px; overflow: hidden; white-space: nowrap; }
.breaking-label {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.breaking-dot { color: var(--primary-color); font-size: 1.1rem; line-height: 1; }
.breaking-text { overflow: hidden; color: #383838; font-size: 0.77rem; text-overflow: ellipsis; }

.home-hero-section,
.home-section { padding: 28px 0 0; }
.home-hero-section { padding-top: 22px; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}
.compact-heading { margin-bottom: 16px; }
.section-eyebrow { display: block; margin-bottom: 2px; color: var(--primary-color); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; }
.section-heading h2 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.42rem; line-height: 1.1; }
.section-more { flex: 0 0 auto; color: var(--primary-dark); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.section-more span { margin-left: 3px; font-size: 1rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.9fr) minmax(185px, 0.68fr);
  gap: 18px;
  align-items: start;
}
.hero-lead { min-width: 0; background: var(--ink); }
.hero-lead-link { display: block; }
.hero-lead-image { position: relative; min-height: 355px; overflow: hidden; background: #2d3641; }
.hero-lead-image::after { position: absolute; right: 0; bottom: 0; left: 0; height: 55%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); content: ""; pointer-events: none; }
.hero-image-el,
.feature-image-el,
.opinion-image-el,
.sport-image-el { width: 100%; height: 355px; object-fit: cover; }
.hero-lead-copy { position: relative; margin: -116px 18px 0; padding: 16px 18px 18px; background: rgba(183, 30, 36, 0.95); color: var(--white); z-index: 1; }
.hero-lead-copy .card-category,
.hero-lead-copy time { color: #ffd6c8; }
.hero-lead-copy h1 { margin: 5px 0 8px; color: var(--white); font-family: var(--serif); font-size: 2.05rem; line-height: 1.12; }
.hero-lead-copy p { max-width: 650px; margin: 0 0 9px; color: #fff1ed; font-size: 0.82rem; line-height: 1.45; }
.card-category { display: inline-block; color: var(--primary-dark); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.65px; text-transform: uppercase; }
time, .post-meta { color: var(--muted); font-size: 0.68rem; }

.hero-side-stories { display: flex; flex-direction: column; gap: 0; }
.side-story { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 11px; padding: 0 0 13px; margin: 0 0 13px; border-bottom: 1px solid var(--border); }
.side-story-image { display: block; height: 78px; overflow: hidden; background: #d9dadd; }
.side-image-el { width: 100%; height: 100%; object-fit: cover; }
.side-story h3 { margin: 3px 0 5px; font-family: var(--serif); font-size: 0.96rem; line-height: 1.18; }

.hero-popular { padding: 15px; border: 1px solid var(--border); background: #fafafa; }
.widget-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.widget-heading h3 { margin: 0; font-family: var(--serif); font-size: 1.05rem; }
.widget-rule { display: block; width: 28px; height: 3px; background: var(--primary-color); }
.hero-popular-list, .popular-news-list { margin: 0; padding: 0; list-style: none; }
.hero-popular-list li { display: grid; grid-template-columns: 22px 1fr; gap: 7px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hero-popular-list li:last-child { border-bottom: 0; }
.hero-popular-list li > span { display: inline-flex; width: 21px; height: 21px; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary-color); color: var(--white); font-size: 0.7rem; font-weight: 800; }
.hero-popular-list a { font-family: var(--serif); font-size: 0.86rem; font-weight: 700; line-height: 1.2; }

.section-grid, .content-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(260px, 0.85fr); gap: 30px; align-items: start; }
.news-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.news-card { min-width: 0; border: 1px solid var(--border); background: var(--white); }
.card-image { display: block; height: 145px; overflow: hidden; background: #dadada; }
.card-image-el { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 12px 13px; }
.card-body h3, .feature-lead h3, .opinion-lead h3, .sport-lead h3 { margin: 4px 0 7px; font-family: var(--serif); font-size: 1.02rem; line-height: 1.2; }
.card-body p, .feature-lead p { margin: 0 0 8px; color: #525252; font-size: 0.76rem; line-height: 1.42; }
.section-aside { min-width: 0; }
.widget { margin-bottom: 20px; }
.popular-widget { border: 1px solid var(--border); padding: 15px; }
.popular-news-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.popular-news-item:last-child { border-bottom: 0; }
.popular-number { display: flex; width: 26px; height: 26px; align-items: center; justify-content: center; background: var(--primary-color); color: var(--white); font-size: 0.8rem; font-weight: 800; }
.popular-news-content h4 { margin: 2px 0 4px; font-family: var(--serif); font-size: 0.88rem; line-height: 1.2; }
.newsletter-widget { padding: 18px; background: var(--navy); color: var(--white); }
.newsletter-widget .card-category { color: #ffb18e; }
.newsletter-widget h3 { margin: 5px 0 7px; font-family: var(--serif); font-size: 1.18rem; line-height: 1.2; }
.newsletter-widget p { margin: 0 0 14px; color: #d8e2f1; font-size: 0.78rem; }
.button-light { display: inline-block; padding: 8px 13px; background: var(--primary-color); color: var(--white); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.button-light:hover, .button-light:focus { background: var(--white); color: var(--navy); }

.featured-section { margin-top: 30px; padding-top: 24px; background: var(--soft); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr); gap: 22px; }
.feature-lead-image { display: block; height: 300px; overflow: hidden; background: #d6d6d6; }
.feature-lead-copy { padding: 12px 0 0; }
.feature-lead h3 { font-size: 1.45rem; }
.feature-list { display: flex; flex-direction: column; gap: 0; }
.compact-story { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--border); }
.compact-story:last-child { margin-bottom: 0; }
.compact-story-image { display: block; height: 78px; overflow: hidden; background: #d9dadd; }
.compact-image-el { width: 100%; height: 100%; object-fit: cover; }
.compact-story h3 { margin: 3px 0 5px; font-family: var(--serif); font-size: 0.94rem; line-height: 1.2; }

.split-section { margin-top: 30px; }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.split-column { min-width: 0; }
.opinion-lead-image, .sport-lead-image { display: block; height: 220px; overflow: hidden; background: #d6d6d6; }
.opinion-lead h3, .sport-lead h3 { font-size: 1.25rem; }
.opinion-lead > .card-category, .sport-lead > .card-category { margin-top: 10px; }
.mini-story-list { margin-top: 12px; }
.mini-story { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.mini-story > a { display: block; height: 58px; overflow: hidden; background: #d9dadd; }
.mini-image-el { width: 100%; height: 100%; object-fit: cover; }
.mini-story h3 { margin: 3px 0 0; font-family: var(--serif); font-size: 0.86rem; line-height: 1.18; }

.stream-section { margin-top: 30px; padding-bottom: 40px; }
.stream-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; border-top: 1px solid var(--border); }
.stream-item { display: grid; grid-template-columns: minmax(0, 1fr) 126px; gap: 13px; min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--border); }
.stream-copy h3 { margin: 3px 0 5px; font-family: var(--serif); font-size: 0.97rem; line-height: 1.2; }
.stream-copy p { margin: 0 0 7px; color: #555; font-size: 0.73rem; line-height: 1.4; }
.stream-image { display: block; height: 84px; overflow: hidden; background: #d9dadd; }
.stream-image-el { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: linear-gradient(135deg, #283a5d, #bb3b2c); color: #fff; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.5px; text-align: center; text-transform: uppercase; }
.empty-state { margin: 0; padding: 18px; border: 1px dashed var(--border); color: var(--muted); font-size: 0.82rem; }

.article-page { padding: 38px 0 50px; }
.single-article-content { min-width: 0; }
.article-breadcrumb { display: flex; gap: 7px; margin-bottom: 13px; color: var(--muted); font-size: 0.72rem; }
.article-breadcrumb a { color: var(--primary-dark); }
.single-post-title { max-width: 860px; margin: 5px 0 12px; font-family: var(--serif); font-size: 3.2rem; line-height: 1.08; }
.single-post-dek { max-width: 800px; margin: 0 0 16px; color: #5a5a5a; font-size: 1.05rem; line-height: 1.48; }
.article-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.article-author { display: flex; align-items: center; gap: 8px; color: #555; font-size: 0.76rem; }
.author-avatar { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 0.75rem; font-weight: 800; }
.single-featured-image { margin: 23px 0 25px; }
.single-featured-image img { width: 100%; max-height: 620px; object-fit: cover; }
.single-featured-image figcaption { margin-top: 6px; color: var(--muted); font-size: 0.68rem; }
.entry-content { color: #252525; font-size: 1.05rem; line-height: 1.8; overflow-wrap: break-word; word-wrap: break-word; }
.entry-content p { margin: 0 0 18px; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 26px 0 10px; font-family: var(--serif); line-height: 1.2; }
.entry-content blockquote { margin: 24px 0; padding: 14px 18px; border-left: 4px solid var(--primary-color); background: var(--soft); font-family: var(--serif); font-size: 1.18rem; }
.entry-content img, .entry-content iframe, .entry-content video { max-width: 100% !important; }
.post-tags { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--border); }

.site-footer { margin-top: 25px; padding: 35px 0 18px; background: var(--navy); color: #dbe5f4; }
.footer-top { display: grid; grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.8fr); gap: 30px; padding-bottom: 25px; }
.footer-brand a { color: var(--white); font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.footer-brand p { max-width: 250px; margin: 8px 0 0; color: #aebdd3; font-size: 0.76rem; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.footer-widgets .widget-title { margin: 0 0 8px; color: var(--white); font-family: var(--serif); font-size: 0.95rem; }
.footer-navigation { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.15); border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.footer-menu { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 0; padding: 0; list-style: none; font-size: 0.72rem; }
.site-info { padding-top: 16px; color: #aebdd3; font-size: 0.7rem; }
.site-info p { margin: 0; }

@media (max-width: 1080px) {
  .brand-row-inner { grid-template-columns: minmax(170px, 0.75fr) minmax(250px, 1.5fr); }
  .header-search { grid-column: 1 / -1; max-width: 360px; justify-self: end; }
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.9fr); }
  .hero-popular { grid-column: 1 / -1; }
  .hero-popular-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .hero-popular-list li { border-bottom: 0; padding: 0; }
}

@media (max-width: 820px) {
  .container { width: calc(100% - 32px); }
  .primary-navigation-inner { min-height: 42px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; border: 0; background: transparent; color: var(--white); cursor: pointer; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
  .primary-navigation .nav-menu { display: none; position: absolute; top: 100%; right: 16px; left: 16px; width: auto; border: 1px solid rgba(255, 255, 255, 0.15); background: var(--navy); }
  .primary-navigation .nav-menu.is-active { display: block; }
  .primary-navigation .nav-menu li, .primary-navigation .nav-menu a { display: block; width: 100%; }
  .primary-navigation .nav-menu a { min-height: 0; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .section-grid, .content-grid { grid-template-columns: 1fr; }
  .sidebar-column { border-top: 1px solid var(--border); padding-top: 24px; }
  .stream-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 28px); }
  .site-top-strip { font-size: 0.65rem; }
  .utility-navigation { display: none; }
  .brand-row { padding: 12px 0; }
  .brand-row-inner { display: block; }
  .header-banner { min-height: 62px; margin-top: 12px; }
  .header-banner img, .header-banner-copy { min-height: 62px; height: 62px; }
  .header-banner-copy { padding: 9px 14px; }
  .header-banner-copy strong { font-size: 1rem; }
  .header-banner-copy span { font-size: 0.67rem; }
  .header-search { display: none; }
  .hero-grid, .split-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero-lead-image, .hero-image-el { min-height: 205px; height: 205px; }
  .hero-lead-copy { margin: -86px 10px 0; padding: 11px 12px 13px; }
  .hero-lead-copy h1 { margin-top: 3px; font-size: 1.22rem; line-height: 1.13; }
  .hero-lead-copy p { display: none; }
  .side-story { grid-template-columns: 82px minmax(0, 1fr); gap: 9px; padding-bottom: 10px; margin-bottom: 10px; }
  .side-story-image { height: 58px; }
  .side-story h3 { font-size: 0.84rem; }
  .hero-popular-list { display: block; }
  .hero-popular-list li { padding: 9px 0; border-bottom: 1px solid var(--border); }
  .news-card-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .card-image { height: 105px; }
  .card-body { padding: 9px; }
  .card-body h3 { font-size: 0.9rem; }
  .card-body p { display: none; }
  .feature-lead-image, .feature-image-el { height: 190px; }
  .feature-lead h3 { font-size: 1.2rem; }
  .opinion-lead-image, .sport-lead-image, .opinion-image-el, .sport-image-el { height: 170px; }
  .section-heading h2 { font-size: 1.2rem; }
  .section-more { font-size: 0.62rem; }
  .stream-item { grid-template-columns: minmax(0, 1fr) 88px; gap: 9px; }
  .stream-image { height: 63px; }
  .stream-copy h3 { font-size: 0.88rem; }
  .stream-copy p { display: none; }
  .article-page { padding-top: 25px; }
  .single-post-title { font-size: 1.8rem; }
  .single-post-dek { font-size: 0.9rem; }
  .article-meta-row { display: block; }
  .article-meta-row .post-meta { display: block; margin-top: 8px; }
  .entry-content { font-size: 1rem; line-height: 1.7; }
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .post-comments-area, #comments, #respond { display: none !important; }
}

@media (max-width: 380px) {
  .news-card-grid { grid-template-columns: 1fr; }
  .card-image { height: 145px; }
  .footer-widgets { grid-template-columns: 1fr; }
}

html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--body-text);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   BILAH PENGUMUMAN ATAS (TOP BAR)
   ========================================================================== */
.site-top-bar {
  background-color: #0c0c0c;
  color: #efefef;
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid #222;
}

.site-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breaking-badge {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2px 7px;
  font-weight: 700;
  border-radius: 3px;
  font-size: 0.72rem;
  margin-right: 8px;
  text-transform: uppercase;
}

/* ==========================================================================
   STICKY HEADER (LENGKET DI ATAS PADA DESKTOP & MOBILE)
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: all 0.2s ease-in-out;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo a {
  font-size: 1.6rem;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 1;
}

.site-logo a span {
  color: var(--primary-color);
}

.site-logo img,
.custom-logo {
  max-height: 38px;
  width: auto;
  display: block;
  border-radius: 4px;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-navigation li a {
  font-weight: 700;
  font-size: 0.88rem;
  color: #222;
  padding: 6px 0;
  letter-spacing: 0.3px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 4px;
  color: #111;
}

/* ==========================================================================
   BERANDA BERITA GAYA AL JAZEERA (DESKTOP)
   ========================================================================== */
.news-hero-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

/* 1. Berita Utama (Lead Article): Judul & Foto Presisi Sejajar Lebarnya */
.lead-article {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.lead-article .post-thumb {
  width: 100%;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--radius-img);
  background-color: #eee;
}

.lead-article .post-thumb img {
  width: 100%;
  height: 325px;
  object-fit: cover;
  border-radius: var(--radius-img);
  transition: transform 0.25s ease;
}

.lead-article .post-thumb:hover img {
  transform: scale(1.02);
}

.category-tag,
.category-tag a {
  display: inline-block;
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Judul berita utama: Lebar 100% sejajar penuh dengan foto di atasnya */
.lead-article h2.entry-title {
  width: 100%;
  font-family: var(--font-headline);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px 0;
  color: #111;
}

.lead-article .entry-summary {
  width: 100%;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 6px;
}

.post-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 2. Sub-Berita Kanan: Masing-masing memiliki foto sudut melengkung */
.sub-stories-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sub-story-item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.sub-story-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sub-story-thumb {
  width: 105px;
  height: 72px;
  overflow: hidden;
  border-radius: var(--radius-img);
  background-color: #f0f0f0;
  flex-shrink: 0;
}

.sub-story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.sub-story-item h3 {
  font-family: var(--font-headline);
  font-size: 0.92rem;
  line-height: 1.32;
  margin: 0 0 4px 0;
  font-weight: 700;
}

/* 3. Daftar Berita Terkini & Sidebar */
.content-wrapper {
  padding: 30px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 34px;
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #111;
  padding-bottom: 6px;
  margin-bottom: 15px;
}

.news-list-item {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.news-list-item h3 {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 4px 0;
}

.news-list-thumb {
  width: 130px;
  height: 85px;
  overflow: hidden;
  border-radius: var(--radius-img);
  background-color: #f0f0f0;
  flex-shrink: 0;
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-img);
}

/* 4. Sidebar Terpopuler: Foto dengan sudut melengkung di setiap item */
.sidebar-column {
  border-left: 1px solid var(--border-color);
  padding-left: 26px;
}

.widget {
  margin-bottom: 28px;
}

.popular-news-item {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.popular-news-item:last-child {
  border-bottom: none;
}

.popular-news-thumb {
  width: 85px;
  height: 60px;
  overflow: hidden;
  border-radius: var(--radius-img);
  background-color: #f0f0f0;
  flex-shrink: 0;
}

.popular-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.popular-news-content h4 {
  font-family: var(--font-headline);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px 0;
}

/* Kotak Cadangan Gambar (Placeholder) dengan sudut melengkung */
.thumb-placeholder {
  width: 100%;
  height: 100%;
  background-color: #2b3a4a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  border-radius: var(--radius-img);
}

/* ==========================================================================
   HALAMAN ARTIKEL TUNGGAL (SINGLE POST) - DESKTOP & MOBILE
   ========================================================================== */
.single-article-content {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Judul artikel single post sejajar penuh dengan lebar wadah foto artikel */
.single-post-title {
  width: 100%;
  font-family: var(--font-headline);
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 8px 0 10px 0;
  font-weight: 700;
  color: #111;
}

.single-featured-image {
  width: 100%;
  max-width: 100%;
  margin: 16px 0 22px 0;
  overflow: hidden;
  border-radius: var(--radius-img);
}

.single-featured-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #262626;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.entry-content p {
  margin-bottom: 16px;
}

.entry-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-img);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #111111;
  color: #d1d1d1;
  padding: 35px 0 18px 0;
  margin-top: 45px;
}

.site-info {
  text-align: center;
  border-top: 1px solid #282828;
  padding-top: 16px;
  font-size: 0.8rem;
  color: #777;
}

/* ==========================================================================
   RESPONSIF PONSEL (MOBILE KHUSUS <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .header-main {
    padding: 10px 0;
  }

  .site-logo a {
    font-size: 1.2rem;
  }

  .site-logo img,
  .custom-logo {
    max-height: 28px !important;
    width: auto !important;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    box-sizing: border-box;
  }

  .main-navigation.is-active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 8px;
  }

  .main-navigation li a {
    display: block;
    padding: 8px 0;
    font-size: 0.92rem;
    border-bottom: 1px solid #f2f2f2;
  }

  .lead-article {
    width: 100%;
  }

  .lead-article h2.entry-title {
    width: 100%;
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .lead-article .post-thumb img {
    height: 200px;
    border-radius: var(--radius-img);
  }

  .single-post-title {
    width: 100%;
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .single-featured-image {
    margin: 10px 0 14px 0;
    width: 100%;
    border-radius: var(--radius-img);
  }

  .single-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-img);
  }

  /* DI VERSI MOBILE: SETIAP BERITA TETAP MEMILIKI FOTO DI SAMPING */
  .news-list-item {
    grid-template-columns: 1fr 95px;
    gap: 12px;
    padding: 12px 0;
  }

  .news-list-item h3 {
    font-size: 0.96rem;
    line-height: 1.3;
  }

  .news-list-thumb {
    width: 95px;
    height: 65px;
    border-radius: var(--radius-img);
  }

  .news-list-thumb img {
    border-radius: var(--radius-img);
  }

  .news-list-item .entry-summary {
    display: none;
  }

  .sub-story-item {
    grid-template-columns: 90px 1fr;
    gap: 10px;
  }

  .sub-story-thumb {
    width: 90px;
    height: 62px;
    border-radius: var(--radius-img);
  }

  .sub-story-thumb img {
    border-radius: var(--radius-img);
  }

  .popular-news-item {
    grid-template-columns: 80px 1fr;
    gap: 10px;
  }

  .popular-news-thumb {
    width: 80px;
    height: 55px;
    border-radius: var(--radius-img);
  }

  .popular-news-thumb img {
    border-radius: var(--radius-img);
  }

  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sidebar-column {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 22px;
  }

  /* Hilangkan kolom komentar di layar ponsel */
  .post-comments-area,
  #comments,
  #respond {
    display: none !important;
  }
}

/* Final cascade for the new editorial markup. */
body { background: #fff; color: var(--ink); font-family: var(--sans); }
body .container { width: calc(100% - 48px); max-width: 1180px; }
body .site-header { position: relative; background: #fff; box-shadow: none; }
body .hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.9fr) minmax(185px, 0.68fr); gap: 18px; }
body .content-grid { grid-template-columns: minmax(0, 1.9fr) minmax(260px, 0.85fr); gap: 30px; }
body .sidebar-column { border-left: 0; padding-left: 0; }
body .site-footer { margin-top: 25px; background: var(--navy); color: #dbe5f4; }
body .site-info { border-top: 0; padding-top: 16px; color: #aebdd3; text-align: left; }
body .single-post-title { max-width: 860px; margin: 5px 0 12px; font-family: var(--serif); font-size: 3.2rem; line-height: 1.08; }
body .popular-news-item { grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--border); }
body .popular-news-item:last-child { border-bottom: 0; }
body .popular-number { display: flex; width: 26px; height: 26px; align-items: center; justify-content: center; background: var(--primary-color); color: #fff; font-size: 0.8rem; font-weight: 800; }
body .popular-news-content h4 { margin: 2px 0 4px; font-family: var(--serif); font-size: 0.88rem; line-height: 1.2; }

@media (max-width: 1080px) {
  body .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.9fr); }
  body .hero-popular { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  body .container { width: calc(100% - 32px); }
  body .content-grid { grid-template-columns: 1fr; }
  body .sidebar-column { border-top: 1px solid var(--border); padding-top: 24px; }
}

@media (max-width: 620px) {
  body .container { width: calc(100% - 28px); }
  body .hero-grid { grid-template-columns: 1fr; }
  body .single-post-title { font-size: 1.8rem; }
  body .news-card-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  body .card-image { height: 105px; }
  body .stream-item { grid-template-columns: minmax(0, 1fr) 88px; gap: 9px; }
  body .stream-image { height: 63px; }
}

@media (max-width: 380px) {
  body .news-card-grid { grid-template-columns: 1fr; }
  body .card-image { height: 145px; }
}

/* Sticky header dan header mobile ringkas. */
body .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

body .primary-navigation {
  position: relative;
  top: auto;
  z-index: 2;
}

@media (max-width: 620px) {
  body .site-header {
    height: 64px;
  }

  body .site-top-strip,
  body .header-banner,
  body .header-search,
  body .breaking-bar {
    display: none;
  }

  body .brand-row {
    height: 64px;
    padding: 7px 0;
    border-bottom: 3px solid var(--primary-color);
  }

  body .brand-row-inner {
    position: relative;
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: center;
  }

  body .site-branding {
    position: relative;
    z-index: 1;
    max-width: 70%;
  }

  body .site-branding .custom-logo {
    max-width: 190px;
    max-height: 52px;
  }

  body .brand-copy small {
    display: none;
  }

  body .brand-copy strong {
    font-size: 1.25rem;
  }

  body .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }

  body .primary-navigation {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 64px;
    border-bottom: 0;
    background: transparent;
  }

  body .primary-navigation .container {
    width: 100%;
    max-width: none;
    height: 64px;
  }

  body .primary-navigation-inner {
    position: relative;
    height: 64px;
    min-height: 64px;
  }

  body .menu-toggle {
    position: absolute;
    top: 50%;
    left: 14px;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 6px;
    transform: translateY(-50%);
    border: 0;
    padding: 7px 9px;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 800;
    z-index: 3;
  }

  body .menu-toggle-icon {
    font-size: 1.05rem;
    line-height: 1;
  }

  body .primary-navigation .nav-menu {
    top: 64px;
    right: 14px;
    left: 14px;
    width: auto;
    background: var(--navy);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
}
