/* ===================================
   KRAŠTO BALSAS - Main Stylesheet
   =================================== */

/* --- Variables --- */
:root {
  --brand-dark: #021D43;
  --brand-blue: #005AD8;
  --brand-yellow: #FFA600;
  --red: var(--brand-blue);
  --red-dark: var(--brand-dark);
  --accent: var(--brand-yellow);
  --navy: var(--brand-dark);
  --dark: var(--brand-dark);
  --gray-dark: #444444;
  --gray: #777777;
  --gray-light: #aaaaaa;
  --gray-border: #e0e0e0;
  --gray-bg: #f5f5f5;
  --white: #ffffff;
  --font-main: 'Source Sans 3', 'Open Sans', Arial, sans-serif;
  --font-heading: 'Merriweather', Georgia, serif;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.14);
  --transition: 0.2s ease;
  --container: 1280px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
.container-fluid { width: 100%; padding: 0 16px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--dark);
  font-weight: 700;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }
p { margin-bottom: 1rem; }

/* --- Utility Classes --- */
.text-red { color: var(--red); }
.text-gray { color: var(--gray); }
.text-small { font-size: 0.8rem; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Category Badge --- */
.cat-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--red);
  color: var(--white);
  line-height: 1.8;
}
.cat-badge:hover { color: var(--white); }
.cat-badge.cat-lietuva { background: var(--brand-blue); }
.cat-badge.cat-pasaulis { background: var(--brand-dark); }
.cat-badge.cat-verslas { background: var(--brand-blue); }
.cat-badge.cat-sportas { background: var(--brand-yellow); color: var(--brand-dark); }
.cat-badge.cat-sportas:hover { color: var(--brand-dark); }
.cat-badge.cat-kultura { background: var(--brand-yellow); color: var(--brand-dark); }
.cat-badge.cat-kultura:hover { color: var(--brand-dark); }
.cat-badge.cat-gyvenimas { background: var(--brand-blue); }
.cat-badge.cat-nuomones { background: var(--brand-dark); }
.cat-badge.cat-aktualu { background: var(--brand-yellow); color: var(--brand-dark); }
.cat-badge.cat-aktualu:hover { color: var(--brand-dark); }

/* --- Section Title --- */
.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 20px;
  line-height: 1.2;
}
.section-title a { color: inherit; }
.section-title a:hover { color: var(--red); }

/* --- Post Meta --- */
.post-meta {
  font-size: 0.78rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-meta .time { display: flex; align-items: center; gap: 3px; }
.post-meta .category { color: var(--red); font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--gray-border); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 5px 14px; font-size: 0.8rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }

/* --- Load More Button --- */
.load-more-wrap { text-align: center; margin-top: 32px; }
.btn-load-more {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  color: var(--gray-dark);
  padding: 10px 36px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-load-more:hover { border-color: var(--red); color: var(--red); }

/* --- Divider --- */
.divider { border: none; border-top: 1px solid var(--gray-border); margin: 24px 0; }

/* ===================================
   TOP BAR
   =================================== */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  font-size: 0.78rem;
  color: var(--gray);
  padding: 6px 0;
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; }
.top-bar-left { display: flex; align-items: center; gap: 0; }
.top-bar-left a {
  color: var(--gray);
  padding: 0 10px;
  border-right: 1px solid var(--gray-border);
  line-height: 1;
  font-size: 0.78rem;
}
.top-bar-left a:first-child { padding-left: 0; }
.top-bar-left a:hover { color: var(--red); }
.top-bar-right { display: flex; align-items: center; gap: 14px; }

/* Date */
.top-bar-date { font-size: 0.78rem; color: var(--gray); }

/* Weather */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--dark);
  font-weight: 500;
  position: relative;
}
.weather-widget .weather-icon {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}
.weather-widget .weather-temp {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.82rem;
  min-width: 34px;
}
/* City dropdown button */
.weather-city-wrap { position: relative; }
.weather-city-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background var(--transition);
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}
.weather-city-btn:hover { background: var(--gray-bg); color: var(--dark); }
.weather-chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
  opacity: 0.6;
}
.weather-widget.active .weather-chevron,
.kb-weather-panel.active .weather-chevron { transform: rotate(180deg); }

/* Dropdown list */
.weather-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  min-width: 160px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 10000;
  list-style: none;
  padding: 4px 0;
  margin: 0;
  animation: fadeSlide 0.15s ease;
  /* scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--gray-border) transparent;
}
.weather-dropdown::-webkit-scrollbar { width: 4px; }
.weather-dropdown::-webkit-scrollbar-thumb { background: var(--gray-border); border-radius: 4px; }
.weather-dropdown.open { display: block; }
.weather-dropdown li {
  padding: 7px 14px;
  font-size: 0.82rem;
  color: var(--gray-dark);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.weather-dropdown li:hover { background: var(--gray-bg); color: var(--dark); }
.weather-dropdown li.selected {
  color: var(--red);
  font-weight: 700;
  background: rgba(227,30,36,0.05);
}
.weather-dropdown li.selected::after {
  content: ' ✓';
  font-size: 0.7rem;
}

/* Social icons top */
.top-social { display: flex; align-items: center; gap: 10px; }
.top-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: color var(--transition);
  width: 20px;
  height: 20px;
}
.top-social a:hover { color: var(--red); }
.top-social svg { width: 16px; height: 16px; }

/* ===================================
   HEADER
   =================================== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header-main {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.site-logo { flex-shrink: 0; }
.site-logo a { display: flex; align-items: center; }
.site-logo img { height: 40px; width: auto; }
.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.site-logo .logo-text span { color: var(--red); }

/* Search form */
.header-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.header-search form { display: flex; }
.header-search input {
  width: 100%;
  padding: 8px 44px 8px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: 30px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--gray-bg);
}
.header-search input:focus { border-color: var(--red); background: var(--white); }
.header-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  padding: 0;
  background: none;
  border: none;
}
.header-search button:hover { color: var(--red); }
.header-search svg { width: 18px; height: 18px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-login {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gray-dark);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.btn-login svg { width: 16px; height: 16px; }
.btn-login:hover { color: var(--red); }
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--brand-dark);
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}
.btn-subscribe:hover { background: var(--red-dark); color: var(--white); }

/* ===================================
   NAVIGATION & MEGA MENU
   =================================== */
.main-nav { background: var(--white); border-top: 1px solid var(--gray-border); }
.main-nav .container { position: relative; }
.nav-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--red);
  border-bottom-color: var(--red);
}
.nav-menu > li > a .chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--transition);
}
.nav-menu > li:hover > a .chevron { transform: rotate(180deg); }
.nav-menu > li:first-child > a { padding-left: 0; }

/* Mega Menu Dropdown */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 720px;
  max-width: calc(100vw - 24px);
  background: var(--white);
  border-top: 3px solid var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 24px 24px 20px;
  z-index: 9999;
  border-radius: 0 0 var(--radius) var(--radius);
  animation: fadeSlide 0.15s ease;
}
.mega-menu.mega-menu-align-right {
  left: auto;
  right: 0;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-menu > li:hover .mega-menu,
.nav-menu > li:focus-within .mega-menu { display: block; }
.mega-menu-inner { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 24px; }
.mega-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-border);
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col ul li { margin-bottom: 6px; }
.mega-col ul li a {
  font-size: 0.85rem;
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
  transition: color var(--transition);
}
.mega-col ul li a::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-border);
  flex-shrink: 0;
  transition: background var(--transition);
}
.mega-col ul li a:hover { color: var(--red); }
.mega-col ul li a:hover::before { background: var(--red); }

/* Mega menu aktualu column */
.mega-aktualu { grid-column: 3; }
.mega-aktualu .mega-col-title { border-bottom-color: var(--red); color: var(--red); }
.mega-aktualu-posts { display: flex; flex-direction: column; gap: 12px; }
.mega-aktualu-post { display: flex; gap: 10px; align-items: flex-start; }
.mega-aktualu-post img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.mega-aktualu-post-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 15px !important;
  color: var(--dark);
}
.mega-aktualu-post-title:hover { color: var(--red); }
.mega-aktualu-post-time { font-size: 0.72rem; color: var(--gray); margin-top: 3px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===================================
   HERO SECTION
   =================================== */
.hero-section { padding: 20px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
}
.hero-grid.has-poll {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.8fr) minmax(260px, 0.75fr);
  grid-template-rows: 1fr 1fr;
}
.hero-grid.has-poll .hero-main {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 0;
}
.hero-grid.has-poll .hero-small {
  grid-column: 2;
}
.hero-grid.has-poll .hero-poll {
  grid-column: 3;
  grid-row: 1 / span 2;
  min-height: 0;
}
.hero-main {
  grid-row: span 2;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 420px;
}
.hero-main img, .hero-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-main:hover img { transform: scale(1.03); }
.hero-main .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: var(--white);
}
.hero-content .cat-badge { margin-bottom: 10px; }
.hero-title {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--white);
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: rgba(255,255,255,0.85); }
.hero-excerpt { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.5; margin-bottom: 10px; }
.hero-meta { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

.hero-small {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 0;
}
.hero-small:hover img { transform: scale(1.03); }
.hero-small .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.hero-small .hero-content { padding: 16px; }
.hero-small .hero-title { font-size: 1rem; margin-bottom: 6px; }
.hero-small .cat-badge { font-size: 0.65rem; margin-bottom: 6px; }
.hero-poll {
  grid-row: span 2;
  min-height: 420px;
}
.hero-poll:empty { display: none; }

/* Polls */
.kb-poll {
  height: 100%;
  min-height: 420px;
  margin: 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kb-poll .widget-title {
  margin-bottom: 14px;
}
.poll-question {
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 16px;
}
.wp-polls-ul {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}
.wp-polls-ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--gray-dark);
  font-size: 0.92rem;
  line-height: 1.35;
}
.wp-polls-ul input {
  margin-top: 3px;
  accent-color: var(--brand-blue);
}
.poll-actions {
  display: grid;
  gap: 8px;
}
.votebutton,
.poll-results-button {
  width: 100%;
  min-height: 38px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: all var(--transition);
}
.votebutton {
  background: var(--brand-blue);
  color: var(--white);
}
.votebutton:hover { background: var(--brand-dark); }
.votebutton:disabled,
.poll-results-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.poll-results-button {
  border: 1px solid var(--gray-border);
  color: var(--brand-dark);
  background: var(--white);
}
.poll-results-button:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.kb-poll-message {
  min-height: 18px;
  margin-bottom: 8px;
  color: var(--brand-blue);
  font-size: 0.85rem;
  font-weight: 600;
}
.kb-poll-results {
  margin-top: 16px;
}
.kb-poll-result { margin-bottom: 12px; }
.kb-poll-result-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 600;
}
.kb-poll-bar {
  height: 7px;
  background: var(--gray-bg);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 5px;
}
.kb-poll-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.kb-poll-votes,
.kb-poll-total {
  color: var(--gray);
  font-size: 0.78rem;
  margin: 4px 0 0;
}
.kb-poll-total {
  color: var(--dark);
  font-weight: 700;
}

/* ===================================
   TOP TEMOS TICKER
   =================================== */
.top-temos {
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  padding: 10px 0;
  margin: 16px 0;
  overflow: hidden;
}
.top-temos-inner { display: flex; align-items: center; gap: 0; }
.top-temos-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-dark);
  background: var(--accent);
  padding: 3px 10px;
  white-space: nowrap;
  border-radius: 2px;
  margin-right: 16px;
  flex-shrink: 0;
}
.top-temos-scroll { overflow: hidden; flex: 1; }
.top-temos-list {
  display: flex;
  gap: 0;
  animation: tickerScroll 40s linear infinite;
  width: max-content;
}
.top-temos-list:hover { animation-play-state: paused; }
.top-temos-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gray-dark);
  padding: 0 20px;
  white-space: nowrap;
  border-right: 1px solid var(--gray-border);
}
.top-temos-list a::before {
  content: '•';
  color: var(--red);
  font-size: 0.6rem;
}
.top-temos-list a:hover { color: var(--red); }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================
   MAIN CONTENT LAYOUT
   =================================== */
.site-main { padding: 24px 0 40px; }
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.content-sidebar-wrap.page-full-width {
  grid-template-columns: 1fr;
}

/* ===================================
   LATEST POSTS SECTION
   =================================== */
.latest-popular-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

/* Article card — horizontal */
.article-card-h {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 16px;
}
.article-card-h:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.article-card-h .thumb {
  flex-shrink: 0;
  width: 110px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-card-h .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.article-card-h:hover .thumb img { transform: scale(1.05); }
.article-card-h .info { flex: 1; min-width: 0; }
.article-card-h .title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-h .title a:hover { color: var(--red); }

/* Article card — vertical */
.article-card-v {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.article-card-v:hover { box-shadow: var(--shadow-hover); }
.article-card-v .thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.article-card-v .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.article-card-v:hover .thumb img { transform: scale(1.04); }
.article-card-v .thumb .cat-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}
.article-card-v .body { padding: 12px 0 0; }
.article-card-v .title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.article-card-v .title a:hover { color: var(--red); }
.article-card-v .excerpt { font-size: 0.85rem; color: var(--gray); line-height: 1.5; margin-bottom: 8px; }

/* Popular list */
.popular-list { display: flex; flex-direction: column; gap: 0; }
.popular-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-border);
  align-items: flex-start;
}
.popular-item:last-child { border-bottom: none; }
.popular-num {
  flex-shrink: 0;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gray-border);
  line-height: 1;
  min-width: 28px;
  font-family: var(--font-heading);
}
.popular-item:hover .popular-num { color: var(--red); }
.popular-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
}
.popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-info { flex: 1; min-width: 0; }
.popular-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-title a:hover { color: var(--red); }
.popular-meta { font-size: 0.75rem; color: var(--gray); margin-top: 4px; }

/* ===================================
   CATEGORY SECTIONS (Grid 4 col)
   =================================== */
.category-sections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 40px; }
.cat-section {}
.cat-section-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 16px;
}
.cat-section-title a { color: inherit; }
.cat-section-title a:hover { color: var(--red); }
.cat-section-main { margin-bottom: 14px; }
.cat-section-main .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.cat-section-main .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.cat-section-main:hover .thumb img { transform: scale(1.04); }
.cat-section-main .title { font-size: 0.95rem; font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
.cat-section-main .title a:hover { color: var(--red); }
.cat-section-list { display: flex; flex-direction: column; gap: 0; }
.cat-section-list li { padding: 8px 0; border-top: 1px solid var(--gray-border); }
.cat-section-list li a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-section-list li a:hover { color: var(--red); }
.cat-section-list li .item-meta { font-size: 0.72rem; color: var(--gray); margin-top: 3px; }
.cat-section-more { display: block; font-size: 0.8rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 14px; }
.cat-section-more:hover { color: var(--red-dark); }
.cat-section-more::after { content: ' →'; }

/* Front page category stream */
.front-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
  gap: 34px;
  align-items: start;
}
.front-content-layout .category-sections {
  display: flex;
  flex-direction: column;
  gap: 38px;
  margin-bottom: 0;
}
.front-content-layout .cat-section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-border);
}
.front-content-layout .cat-section:last-child {
  border-bottom: none;
}
.front-content-layout .cat-section-title {
  color: var(--brand-blue);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.2rem;
}
.front-content-layout .cat-section-main {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 22px;
}
.front-content-layout .cat-section-main .thumb {
  display: block;
  aspect-ratio: 16 / 10;
  margin-bottom: 0;
}
.front-content-layout .cat-section-main-content .title {
  font-size: 1.45rem;
  line-height: 1.16;
  margin-bottom: 14px;
}
.front-content-layout .cat-section-main-content .title a {
  color: var(--brand-blue);
}
.front-content-layout .cat-section-main-content .title a:hover {
  color: var(--brand-dark);
}
.front-content-layout .cat-section-main-content .excerpt {
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.42;
  margin-top: 12px;
}
.cat-section-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cat-section-card .thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.cat-section-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.cat-section-card:hover .thumb img {
  transform: scale(1.04);
}
.cat-section-card .title {
  color: var(--dark);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.22;
  margin-top: 8px;
}
.cat-section-card .title a:hover {
  color: var(--brand-blue);
}
.front-popular {
  min-width: 0;
  position: sticky;
  top: 96px;
}

/* ===================================
   AD SPACES
   =================================== */
.ad-space {
  background:
    linear-gradient(135deg, rgba(0,90,216,0.06), rgba(255,166,0,0.08)),
    var(--gray-bg);
  border: 1px dashed #c8d3e2;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-align: center;
  min-width: 0;
}
.ad-space span {
  display: block;
  max-width: 88%;
}
.ad-space strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0;
}
.ad-space.ad-billboard {
  display: none;
}
.ad-space.ad-billboard strong {
  color: #fff;
}
.ad-space.ad-leaderboard {
  width: 100%;
  min-height: 0;
  margin: 20px 0 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.ad-space.ad-rectangle { width: 300px; max-width: 100%; min-height: 250px; margin-bottom: 24px; }
.ad-space.ad-halfpage { width: 300px; max-width: 100%; min-height: 600px; margin-top: 24px; }
.ad-space.ad-inline { width: 100%; min-height: 280px; margin: 28px 0; }
.archive-ad-break {
  grid-column: 1 / -1;
}
.ad-space img, .ad-space ins { width: 100%; height: 100%; }
.ad-space.ad-leaderboard a {
  display: block;
  width: 100%;
}
.ad-space.ad-leaderboard img {
  display: block;
  height: auto;
}

/* ===================================
   SIDEBAR
   =================================== */
.sidebar { position: sticky; top: 120px; }
.widget { margin-bottom: 28px; }
.widget-title {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-left: 4px solid var(--red);
  padding-left: 10px;
  margin-bottom: 16px;
  color: var(--dark);
}

/* Search widget */
.widget-search input {
  width: 100%;
  padding: 9px 40px 9px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: 30px;
  font-size: 0.88rem;
  outline: none;
}
.widget-search input:focus { border-color: var(--red); }

/* Newsletter widget */
.widget-newsletter {
  background: var(--red);
  color: var(--white);
  padding: 20px;
  border-radius: var(--radius);
}
.widget-newsletter .widget-title { color: var(--white); border-left-color: var(--white); }
.widget-newsletter p { font-size: 0.85rem; margin-bottom: 14px; opacity: 0.9; }
.widget-newsletter input[type="email"] {
  width: 100%;
  padding: 9px 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 8px;
  outline: none;
}
.widget-newsletter .btn { width: 100%; background: var(--dark); color: var(--white); justify-content: center; }
.widget-newsletter .btn:hover { background: var(--brand-blue); }

/* Category list widget */
.widget-cats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-border);
  font-size: 0.85rem;
}
.widget-cats li:last-child { border-bottom: none; }
.widget-cats li a { color: var(--gray-dark); font-weight: 500; }
.widget-cats li a:hover { color: var(--red); }
.widget-cats li .count {
  font-size: 0.75rem;
  background: var(--gray-bg);
  color: var(--gray);
  padding: 1px 7px;
  border-radius: 20px;
}

/* Popular widget */
.widget-popular .popular-item { padding: 10px 0; }
.widget-popular .popular-thumb { width: 65px; height: 48px; }
.widget-popular .popular-title { font-size: 0.82rem; }
.widget-popular .popular-num { font-size: 1.4rem; }

/* Tag cloud */
.widget-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.widget-tags a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 30px;
  font-size: 0.78rem;
  color: var(--gray-dark);
  transition: all var(--transition);
}
.widget-tags a:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* ===================================
   NEWSLETTER SECTION (full width)
   =================================== */
.newsletter-section {
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  padding: 32px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.newsletter-icon svg { width: 26px; height: 26px; color: var(--white); }
.newsletter-text { flex: 1; min-width: 200px; }
.newsletter-text h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.newsletter-text p { font-size: 0.85rem; color: var(--gray); margin: 0; }
.newsletter-form { display: flex; gap: 8px; flex: 1; min-width: 280px; max-width: 440px; }
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--red); }
.newsletter-form .btn { flex-shrink: 0; white-space: nowrap; }
.newsletter-message {
  flex-basis: 100%;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 18px;
}
.newsletter-message.is-error { color: #b42318; }

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
body.newsletter-modal-open {
  overflow: hidden;
}
.newsletter-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.newsletter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 29, 67, 0.58);
}
.newsletter-modal-dialog {
  position: relative;
  width: min(100%, 520px);
  background: var(--white);
  border-top: 4px solid var(--brand-yellow);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(2, 29, 67, 0.25);
  padding: 30px;
  transform: translateY(10px);
  transition: transform 0.2s ease;
}
.newsletter-modal.is-open .newsletter-modal-dialog {
  transform: translateY(0);
}
.newsletter-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}
.newsletter-modal-close:hover {
  background: var(--gray-bg);
}
.newsletter-modal-close span {
  position: absolute;
  left: 9px;
  top: 16px;
  width: 16px;
  height: 2px;
  background: var(--brand-dark);
}
.newsletter-modal-close span:first-child {
  transform: rotate(45deg);
}
.newsletter-modal-close span:last-child {
  transform: rotate(-45deg);
}
.newsletter-modal .newsletter-text {
  margin-bottom: 20px;
}
.newsletter-modal .newsletter-text h3 {
  color: var(--brand-dark);
  padding-right: 28px;
}
.newsletter-modal-form {
  max-width: none;
  min-width: 0;
  width: 100%;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); }
.footer-main { padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand .logo-text { color: var(--white); font-size: 1.5rem; margin-bottom: 12px; display: block; }
.footer-brand .logo-text span { color: var(--red); }
.footer-brand p { font-size: 0.82rem; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a,
.footer-social .social-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--red); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-contact p { font-size: 0.82rem; line-height: 1.8; }
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--white); }

/* ===================================
   SINGLE POST
   =================================== */
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}
.single-layout > .article-main,
.single-layout > .sidebar {
  min-width: 0;
}
.article-main {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.article-header { margin-bottom: 24px; }
.article-cats { display: flex; gap: 6px; margin-bottom: 12px; }
.article-title { font-size: 2rem; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 20px;
}
.article-meta .author { display: flex; align-items: center; gap: 8px; }
.article-meta .author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.article-meta .author-name { color: var(--dark); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.article-meta a.author-name:hover { color: var(--red); }
.article-meta .date { font-size: 0.82rem; color: var(--gray); }
.article-meta .views { font-size: 0.82rem; color: var(--gray); display: flex; align-items: center; gap: 4px; }
.article-meta .views svg { width: 14px; height: 14px; }
.article-share-top { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
}
.share-btn:hover { opacity: 0.85; }
.share-btn.fb { background: #1877f2; color: white; }
.share-btn.tw { background: #000; color: white; }
.share-btn.wa { background: #25d366; color: white; }
.share-btn svg { width: 14px; height: 14px; }

/* Featured image */
.article-featured-img {
  width: min(100%, 520px);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto 28px;
}
.article-featured-img img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  background: var(--gray-bg);
}
.article-featured-img figcaption { font-size: 0.78rem; color: var(--gray); padding: 8px 0; }

/* Article content */
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-dark);
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.article-content p { margin-bottom: 1.4em; }
.article-content h2 { font-size: 1.5rem; margin: 2em 0 0.7em; color: var(--dark); }
.article-content h3 { font-size: 1.2rem; margin: 1.8em 0 0.6em; color: var(--dark); }
.article-content ul, .article-content ol { padding-left: 1.6em; margin-bottom: 1.4em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.4em; }
.article-content blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--gray-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-dark);
}
.article-content img { border-radius: var(--radius); margin: 1em 0; }
.article-content img.kb-lightbox-image {
  cursor: zoom-in;
}
.article-content a.kb-lightbox-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}
.article-content a { color: var(--red); text-decoration: underline; }
.article-content strong { color: var(--dark); }
.article-content table { width: 100%; max-width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.92rem; display: block; overflow-x: auto; }
.article-content th { background: var(--gray-bg); padding: 10px 12px; border: 1px solid var(--gray-border); font-weight: 700; text-align: left; }
.article-content td { padding: 9px 12px; border: 1px solid var(--gray-border); }

body.kb-lightbox-open {
  overflow: hidden;
}
.kb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 64px 78px;
  background: rgba(0, 0, 0, 0.88);
}
.kb-lightbox.is-open {
  display: flex;
}
.kb-lightbox-figure {
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  text-align: center;
  touch-action: pan-y;
}
.kb-lightbox-img {
  display: block;
  width: auto;
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 150px);
  margin: 0 auto;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.kb-lightbox-caption {
  max-width: 900px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.45;
}
.kb-lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background var(--transition), border-color var(--transition);
}
.kb-lightbox button:hover,
.kb-lightbox button:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  outline: none;
}
.kb-lightbox-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}
.kb-lightbox-nav {
  top: 50%;
  width: 48px;
  height: 68px;
  border-radius: var(--radius);
  font-size: 3rem;
  line-height: 1;
  transform: translateY(-50%);
}
.kb-lightbox-prev {
  left: 18px;
}
.kb-lightbox-next {
  right: 18px;
}

@media (max-width: 700px) {
  .kb-lightbox {
    padding: 56px 14px;
  }
  .kb-lightbox-img {
    max-height: calc(100vh - 150px);
  }
  .kb-lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  .kb-lightbox-nav {
    top: 50%;
    bottom: auto;
    width: 42px;
    height: 56px;
    font-size: 2.5rem;
    transform: translateY(-50%);
  }
  .kb-lightbox-prev {
    left: 8px;
  }
  .kb-lightbox-next {
    right: 8px;
  }
  .kb-lightbox-caption {
    font-size: 0.84rem;
  }
}

/* Table of contents */
.toc-box {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 28px 0;
}
.toc-box h4 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.05em; }
.toc-list { list-style: none; counter-reset: toc-counter; }
.toc-list li { counter-increment: toc-counter; margin-bottom: 6px; }
.toc-list li::before {
  content: counter(toc-counter) '.';
  color: var(--red);
  font-weight: 700;
  margin-right: 6px;
  font-size: 0.82rem;
}
.toc-list a { font-size: 0.88rem; color: var(--gray-dark); }
.toc-list a:hover { color: var(--red); }

/* Article tags */
.article-tags { margin: 32px 0 24px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-tags .label { font-size: 0.8rem; font-weight: 700; color: var(--gray); text-transform: uppercase; }

/* Article share bottom */
.article-share-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  margin: 24px 0;
}
.article-share-bottom h4 { font-size: 0.82rem; color: var(--gray); text-transform: uppercase; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.08em; }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn-lg {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition);
}
.share-btn-lg:hover { opacity: 0.85; }
.share-btn-lg svg { width: 16px; height: 16px; }

/* Author box */
.author-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  margin: 28px 0;
  align-items: flex-start;
}
.author-box img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box-name { color: var(--dark); display: inline-block; font-size: 1rem; font-weight: 700; margin-bottom: 6px; text-decoration: none; }
a.author-box-name:hover { color: var(--red); }
.author-box-bio { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* Previous / Next */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.post-nav-item {
  padding: 16px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.post-nav-item:hover { border-color: var(--red); box-shadow: var(--shadow); }
.post-nav-item .nav-label { font-size: 0.72rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.post-nav-item .nav-title { font-size: 0.9rem; font-weight: 700; line-height: 1.4; color: var(--dark); }
.post-nav-item:hover .nav-title { color: var(--red); }
.post-nav-item.next { text-align: right; }

/* Related posts */
.related-posts { margin: 32px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 120px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.related-card:hover .related-card-thumb img {
  transform: scale(1.04);
}
.related-card-title {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  color: var(--dark);
}
.related-card-title a:hover {
  color: var(--brand-blue);
}
.related-posts .article-card-v {
  box-shadow: none;
}
.related-posts .article-card-v:hover {
  box-shadow: none;
}
.related-posts .article-card-v .thumb {
  aspect-ratio: 4 / 3;
  max-height: 150px;
  border-radius: var(--radius);
}
.related-posts .article-card-v .thumb .cat-badge,
.related-posts .article-card-v .post-meta {
  display: none;
}
.related-posts .article-card-v .body {
  padding-top: 8px;
}
.related-posts .article-card-v .title {
  font-size: 0.9rem;
  line-height: 1.28;
  margin-bottom: 0;
}

/* Comments */
.comments-section { margin-top: 40px; max-width: 100%; min-width: 0; }
.comments-section h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; }
.comment-form-wrap,
.comment-form,
.comment-form-row,
.comment-form-field {
  max-width: 100%;
  min-width: 0;
}
.comment-form-wrap { margin-bottom: 32px; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 12px;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--red); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comments-list .comment {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-border);
  max-width: 100%;
  min-width: 0;
}
.comments-list .comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gray-bg); flex-shrink: 0; overflow: hidden; }
.comments-list .comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comments-list .comment-body { min-width: 0; max-width: 100%; }
.comments-list .comment-author { font-size: 0.88rem; font-weight: 700; margin-bottom: 3px; }
.comments-list .comment-date { font-size: 0.75rem; color: var(--gray); }
.comments-list .comment-text {
  font-size: 0.88rem;
  color: var(--gray-dark);
  margin-top: 6px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.comments-list .comment-reply { font-size: 0.75rem; color: var(--red); font-weight: 600; margin-top: 6px; cursor: pointer; }

/* ===================================
   ARCHIVE / CATEGORY PAGE
   =================================== */
.archive-header { margin-bottom: 28px; }
.archive-title { font-size: 1.6rem; font-weight: 900; }
.archive-desc { color: var(--gray); font-size: 0.9rem; margin-top: 6px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.archive-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.archive-with-sidebar.archive-no-sidebar {
  grid-template-columns: 1fr;
}
.archive-no-sidebar .archive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.archive-card .thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--gray-bg);
}
.archive-card .thumb img,
.archive-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}
.archive-card .thumb img {
  object-fit: cover;
  transition: transform 0.3s ease;
}
.archive-card:hover .thumb img {
  transform: scale(1.04);
}
.archive-card .post-meta {
  margin-bottom: 8px;
}
.archive-card .title {
  color: var(--dark);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.22;
  margin: 0;
}
.archive-card .title a:hover {
  color: var(--brand-blue);
}

/* ===================================
   SEARCH PAGE
   =================================== */
.search-form-large { margin-bottom: 32px; }
.search-form-large form { display: flex; gap: 0; }
.search-form-large input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--gray-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 1rem;
  outline: none;
}
.search-form-large input:focus { border-color: var(--red); }
.search-form-large button {
  padding: 12px 24px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.search-count { font-size: 0.88rem; color: var(--gray); margin-bottom: 24px; }
.search-count strong { color: var(--dark); }

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-page {
  padding-top: 24px;
  padding-bottom: 48px;
}
.contact-header {
  max-width: 760px;
  margin-bottom: 28px;
}
.contact-header h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.contact-header p {
  color: var(--gray-dark);
  font-size: 1rem;
  line-height: 1.65;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: start;
}
.contact-info,
.contact-form-panel {
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.contact-details {
  display: grid;
  gap: 0;
}
.contact-details div {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-border);
}
.contact-details div:last-child {
  border-bottom: none;
}
.contact-details dt {
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.contact-details dd {
  color: var(--dark);
  font-weight: 600;
}
.contact-details a {
  color: var(--brand-blue);
}
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--dark);
  font-size: 0.86rem;
  font-weight: 700;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition);
}
.contact-form input[type="file"] {
  padding: 10px;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-blue);
}
.contact-form .btn {
  justify-self: start;
  min-width: 160px;
}
.contact-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 700;
  border: 1px solid var(--gray-border);
}
.contact-alert-success {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}
.contact-alert-invalid,
.contact-alert-security_error,
.contact-alert-bot_check,
.contact-alert-rate_limited,
.contact-alert-file_too_large,
.contact-alert-file_type,
.contact-alert-file_error,
.contact-alert-error {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}
.kb-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.news-tip-layout {
  align-items: start;
}
.news-tip-form-panel {
  min-width: 0;
}
.news-tip-help {
  display: block;
  margin-top: 6px;
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 400;
}
.news-tip-info .article-content {
  font-size: 0.94rem;
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 32px 0;
}
.pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.pagination ul.page-numbers li {
  margin: 0;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-border);
  color: var(--gray-dark);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); border-color: var(--red); color: var(--white); }
.pagination .prev, .pagination .next { width: auto; padding: 0 12px; gap: 4px; }

/* ===================================
   BREADCRUMB
   =================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--gray);
  padding: 10px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--gray-border); }
.breadcrumb .current { color: var(--dark); font-weight: 500; }

/* ===================================
   404 PAGE
   =================================== */
.error-404-wrap { text-align: center; padding: 80px 20px; }
.error-404-wrap .error-num { font-size: 8rem; font-weight: 900; color: var(--gray-bg); line-height: 1; margin-bottom: -20px; }
.error-404-wrap h1 { font-size: 1.8rem; margin-bottom: 16px; }
.error-404-wrap p { color: var(--gray); margin-bottom: 28px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr repeat(3, 1fr); }
  .footer-brand { grid-column: span 4; display: flex; align-items: center; gap: 24px; }
  .category-sections { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .single-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .archive-with-sidebar { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-row: span 1; min-height: 320px; }
  .hero-poll,
  .kb-poll { min-height: 0; }
  .latest-popular-wrap { grid-template-columns: 1fr; }
  .front-content-layout { grid-template-columns: 1fr; }
  .front-popular { position: static; }
  .front-content-layout .cat-section-main { grid-template-columns: 1fr; gap: 14px; }
  .contact-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .post-nav { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar-left a { display: none; }
  .top-bar-left a:last-child { display: flex; }
  .header-main { flex-wrap: wrap; gap: 10px; }
  .header-search { max-width: 100%; order: 3; flex-basis: 100%; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-menu { flex-direction: column; padding: 8px 0; }
  .nav-menu > li > a { border-bottom: none; padding: 12px 0; border-bottom: 1px solid var(--gray-border); }
  .mega-menu { position: static; min-width: 100%; box-shadow: none; border-top: none; padding: 10px 0 10px 16px; display: none; }
  .nav-menu > li.open .mega-menu { display: block; }
  .mega-menu-inner { grid-template-columns: 1fr 1fr; }
  .mega-aktualu { grid-column: span 2; }
  .nav-toggle { display: flex; }
  .category-sections { grid-template-columns: 1fr 1fr; }
  .cat-section-cards { grid-template-columns: 1fr; gap: 18px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-no-sidebar .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .article-title { font-size: 1.5rem; }
  .article-featured-img img { max-height: none; }
  .article-meta { gap: 10px; }
  .article-share-top { display: none; }
  .comment-form-row { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }
  .newsletter-modal-dialog { padding: 26px 18px 22px; }
  .newsletter-modal-form { flex-direction: column; }
  .newsletter-modal-form .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.2rem; }
  .category-sections { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-no-sidebar .archive-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .ad-space.ad-rectangle { width: 100%; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .post-meta { gap: 5px; }
}

/* Keep the single post sidebar in the right column even after comments load. */
body.single .single-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 24px !important;
  align-items: start !important;
}
body.single .single-layout > .article-main {
  grid-column: 1 !important;
  min-width: 0 !important;
}
body.single .single-layout > .sidebar {
  grid-column: 2 !important;
  grid-row: 1 !important;
  top: 120px !important;
  width: 300px !important;
  max-width: 300px !important;
  min-width: 0 !important;
}
body.admin-bar.single .single-layout > .sidebar {
  top: 152px !important;
}

@media (max-width: 900px) {
  body.single .single-layout {
    grid-template-columns: 1fr !important;
  }
  body.single .single-layout > .sidebar {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: none !important;
  }
  .ad-space.ad-rectangle,
  .ad-space.ad-halfpage {
    width: 100%;
    min-height: 220px;
  }
  .ad-space.ad-halfpage {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .ad-space.ad-billboard,
  .ad-space.ad-inline {
    min-height: 100px;
  }
  .ad-space.ad-inline {
    min-height: 180px;
  }
}

/* ===================================
   2026 NEWSROOM REFRESH
   =================================== */
.read-progress {
  height: 3px;
  background: var(--brand-yellow);
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: width .1s;
}

.top-bar {
  padding: 7px 0;
  background: #fafafa;
}
.top-bar-left,
.top-bar-right {
  min-width: 0;
}
.top-bar-left {
  gap: 16px;
}
.top-bar-right {
  gap: 0;
}
.top-bar-right a {
  color: var(--gray);
  padding: 0 12px;
  border-right: 1px solid var(--gray-border);
  line-height: 1;
}
.top-bar-right a:last-child {
  border-right: 0;
  padding-right: 0;
}
.top-bar-date {
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  border-bottom: 0;
  box-shadow: 0 2px 14px rgba(2,29,67,0.08);
}
.header-main {
  padding: 16px 0;
}
.site-logo img {
  height: 58px;
  max-width: 230px;
  object-fit: contain;
}
.header-search {
  max-width: 420px;
}
.header-search input {
  height: 42px;
  border-radius: 4px;
  border-color: #d8dde7;
  background: #f7f8fa;
}
.header-follow {
  color: var(--gray);
  font-size: 0.78rem;
  white-space: nowrap;
}
.header-social {
  gap: 8px;
}
.header-social a {
  width: 24px;
  height: 24px;
  color: var(--brand-blue);
}
.btn-report-news {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 3px;
  background: var(--brand-blue);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 rgba(2,29,67,0.16);
}
.btn-report-news:hover,
.btn-report-news:focus {
  background: var(--brand-dark);
  color: var(--white);
}
.btn-login {
  padding: 7px 8px;
}
.btn-subscribe {
  gap: 5px;
  min-height: 34px;
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 rgba(2,29,67,0.16);
}

.main-nav {
  background: var(--brand-dark);
  border-top: 0;
}
.main-nav .container {
  display: flex;
  align-items: stretch;
}
.nav-home,
.nav-region-wrap,
.nav-region {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.nav-home {
  width: 46px;
  background: rgba(255,255,255,0.08);
}
.nav-home:hover {
  color: var(--brand-yellow);
}
.nav-menu {
  flex: 1;
  min-width: 0;
}
.nav-menu > li > a {
  color: var(--white);
  border-bottom: 0;
  min-height: 43px;
  padding: 0 15px;
  font-size: 0.84rem;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--brand-yellow);
  border-bottom-color: transparent;
}
.nav-menu > li:first-child > a {
  padding-left: 15px;
}
.nav-region {
  gap: 7px;
  min-width: 170px;
  padding: 0 18px;
  background: var(--brand-yellow);
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}
.nav-region-wrap {
  position: relative;
  align-items: stretch;
}
.nav-region-chevron {
  transition: transform var(--transition);
}
.nav-region:hover {
  color: var(--brand-dark);
  background: #ffbd32;
}
.nav-region-wrap:hover .nav-region-chevron,
.nav-region-wrap:focus-within .nav-region-chevron {
  transform: rotate(180deg);
}
.nav-region-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 100%;
  background: var(--brand-yellow);
  border-top: 3px solid var(--brand-yellow);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 9999;
  animation: fadeSlide 0.15s ease;
}
.nav-region-wrap:hover .nav-region-dropdown,
.nav-region-wrap:focus-within .nav-region-dropdown {
  display: block;
}
.nav-region-dropdown a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-region-dropdown a::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M10 18s6-5.686 6-11A6 6 0 104 7c0 5.314 6 11 6 11zm0-8a3 3 0 100-6 3 3 0 000 6z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M10 18s6-5.686 6-11A6 6 0 104 7c0 5.314 6 11 6 11zm0-8a3 3 0 100-6 3 3 0 000 6z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nav-region-dropdown a:hover,
.nav-region-dropdown a:focus {
  background: #ffbd32;
  color: var(--brand-dark);
}
.mega-menu {
  border-top-color: var(--brand-yellow);
}

.kb-front {
  background: var(--white);
}
.kb-breaking {
  border-bottom: 1px solid var(--gray-border);
}
.kb-breaking-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  font-size: 0.88rem;
  overflow: hidden;
}
.kb-breaking-label {
  flex-shrink: 0;
  background: #ef233c;
  color: var(--white);
  border-radius: 3px;
  padding: 8px 16px;
  font-weight: 800;
  text-transform: uppercase;
}
.kb-breaking time {
  color: #ef233c;
  font-weight: 800;
}
.kb-breaking-marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.kb-breaking-track {
  display: flex;
  width: max-content;
  animation: kbBreakingMarquee 28s linear infinite;
}
.kb-breaking-marquee:hover .kb-breaking-track,
.kb-breaking-marquee:focus-within .kb-breaking-track {
  animation-play-state: paused;
}
.kb-breaking-group {
  display: flex;
  align-items: center;
  padding-right: 26px;
}
.kb-breaking-group a {
  position: relative;
  flex: 0 0 auto;
  max-width: 360px;
  color: var(--brand-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
.kb-breaking-group a + a {
  padding-left: 26px;
}
.kb-breaking-group a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef233c;
  transform: translateY(-50%);
}
.kb-breaking-all {
  margin-left: auto;
  color: var(--brand-blue);
  font-weight: 700;
  white-space: nowrap;
}
@keyframes kbBreakingMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.kb-hero-news {
  padding: 18px 0 14px;
}
.kb-hero-main.kb-hero-mobile {
  display: none;
}
.kb-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}
.kb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr);
  grid-template-rows: repeat(2, 206px);
  gap: 8px;
}
.kb-hero-main,
.kb-hero-side,
.kb-hero-main a,
.kb-hero-side a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  min-width: 0;
}
.kb-hero-main {
  grid-row: span 2;
}
.kb-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
}
.kb-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.kb-hero-main img,
.kb-hero-side img,
.kb-fp-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.kb-hero-main a,
.kb-hero-side a {
  height: 100%;
}
.kb-hero-main:hover img,
.kb-hero-side:hover img,
.kb-fp-tile:hover img,
.kb-fp-compact:hover img {
  transform: scale(1.04);
}
.kb-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.84), rgba(0,0,0,.18) 58%, transparent);
}
.kb-hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  color: var(--white);
}
.kb-hero-copy strong {
  display: block;
  margin-top: 9px;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  line-height: 1.14;
}
.kb-hero-copy em {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.84);
  font-style: normal;
  line-height: 1.35;
}
.kb-hero-side .kb-hero-copy {
  padding: 16px;
}
.kb-hero-side .kb-hero-copy strong {
  font-size: 1.12rem;
}
.kb-hero-copy .kb-fp-meta {
  color: rgba(255,255,255,.76);
  margin-top: 10px;
}
.kb-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(2,29,67,.72);
  box-shadow: 0 10px 22px rgba(0,0,0,.2);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.kb-hero-arrow:hover,
.kb-hero-arrow:focus-visible {
  color: var(--brand-dark);
  background: var(--brand-yellow);
  transform: translateY(-50%) scale(1.05);
  outline: none;
}
.kb-hero-arrow-prev {
  left: 14px;
}
.kb-hero-arrow-next {
  right: 14px;
}
.kb-hero-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.kb-hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  transition: width .25s ease, background .25s ease;
}
.kb-hero-dots span.is-active {
  width: 18px;
  background: var(--brand-yellow);
}
.kb-fp-placeholder {
  display: block;
  background: linear-gradient(135deg, #d9e2ef, #f3f6fa);
}
.kb-fp-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray);
  font-size: .78rem;
}
.kb-fp-meta a {
  color: inherit;
}
.kb-fp-meta a:hover {
  color: var(--brand-blue);
}
.kb-hero-copy .kb-fp-meta a:hover {
  color: var(--white);
}
.kb-fp-comments::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 11px;
  margin-right: 4px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
  vertical-align: -1px;
}

.kb-front-sidebar {
  display: grid;
  gap: 16px;
}
.kb-sidebar-card {
  border: 1px solid var(--gray-border);
  border-radius: 5px;
  padding: 16px;
  background: var(--white);
}
.kb-popular-row {
  display: grid;
  grid-template-columns: 28px 72px minmax(0,1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-border);
}
.kb-popular-row:last-child {
  border-bottom: 0;
}
.kb-popular-row > span {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: #8a94a6;
  line-height: 1;
}
.kb-popular-thumb {
  display: block;
  height: 52px;
  overflow: hidden;
  border-radius: 4px;
}
.kb-popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kb-popular-row h3,
.kb-fp-compact h3,
.kb-fp-tile h3,
.kb-opinion h3 {
  font-family: var(--font-main);
  font-size: .93rem;
  line-height: 1.25;
  margin: 0;
  font-weight: 800;
}
.kb-popular-row small {
  color: var(--gray);
  font-size: .74rem;
}
.kb-weather-now {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  align-items: center;
}
.kb-weather-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.kb-weather-head .section-title {
  margin-bottom: 0;
}
.kb-weather-head .weather-city-btn {
  border: 1px solid var(--gray-border);
  padding: 5px 8px;
  background: var(--white);
  font-size: .78rem;
}
.kb-weather-dropdown {
  left: auto;
  right: 0;
  transform: none;
  max-height: 168px;
  overflow-y: auto;
}
.kb-weather-now span {
  grid-row: span 2;
  color: var(--brand-yellow);
  font-size: 2.2rem;
  line-height: 1;
}
.kb-weather-now strong {
  font-size: 1.45rem;
  line-height: 1;
}
.kb-weather-now small {
  color: var(--gray);
}
.kb-weather-days {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 5px;
  margin-top: 14px;
  color: var(--gray);
  text-align: center;
  font-size: .72rem;
}
.kb-weather-days b {
  color: var(--brand-dark);
}
.kb-sidebar-newsletter {
  background: var(--brand-dark);
  color: var(--white);
}
.kb-sidebar-newsletter h2 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 12px;
}
.kb-sidebar-newsletter .newsletter-form {
  min-width: 0;
  max-width: none;
}

.kb-latest,
.kb-triple,
.kb-most-read,
.kb-bottom-blocks {
  padding: 24px 0;
}
.kb-latest-head,
.kb-fp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.kb-latest-head .section-title,
.kb-fp-section-head .section-title {
  margin-bottom: 0;
}
.kb-fp-section-head > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-blue);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
.kb-breaking-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.kb-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.kb-tabs a {
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--gray-dark);
  font-size: .8rem;
  font-weight: 700;
}
.kb-tabs a.is-active,
.kb-tabs a:hover {
  background: var(--brand-blue);
  color: var(--white);
}
.kb-latest-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px 28px;
}
.kb-fp-compact {
  display: grid;
  grid-template-columns: 140px minmax(0,1fr);
  gap: 14px;
  min-width: 0;
}
.kb-fp-compact-thumb {
  display: block;
  height: 92px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--gray-bg);
}
.kb-fp-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.kb-fp-compact .cat-badge {
  background: transparent;
  color: var(--brand-blue);
  padding: 0;
  font-size: .68rem;
}
.kb-fp-compact h3 {
  margin: 4px 0 8px;
}

.kb-triple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}
.kb-card-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.kb-fp-tile-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 10px;
  background: var(--gray-bg);
}
.kb-fp-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.kb-fp-tile h3 {
  margin-bottom: 8px;
}
.kb-rank {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--brand-yellow);
  color: var(--brand-dark);
  font-weight: 900;
  border-radius: 0 0 4px 0;
}
.kb-opinion-list,
.kb-comment-list,
.kb-mini-list {
  display: grid;
  gap: 14px;
}
.kb-opinion,
.kb-comment-mini {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-border);
}
.kb-opinion img,
.kb-comment-mini img {
  border-radius: 50%;
}
.kb-opinion span,
.kb-comment-mini a {
  color: var(--gray);
  font-size: .78rem;
}
.kb-comment-mini strong {
  display: block;
  font-size: .88rem;
}
.kb-comment-mini p {
  margin: 3px 0 4px;
  color: var(--gray-dark);
  font-size: .84rem;
  line-height: 1.35;
}
.kb-most-read {
  border-top: 1px solid var(--gray-border);
}
.kb-most-read-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 24px;
}
.kb-bottom-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.kb-bottom-grid > div:nth-child(n+2) {
  border-left: 1px solid var(--gray-border);
  padding-left: 24px;
}
.kb-poll-box {
  border: 1px solid var(--gray-border);
  border-radius: 5px;
  padding: 18px;
}
.kb-poll-box .kb-poll {
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.kb-static-poll {
  display: grid;
  gap: 12px;
  font-size: .9rem;
}
.kb-static-poll p {
  margin: 0 0 4px;
  font-weight: 800;
}
.kb-static-poll label {
  color: var(--gray-dark);
}
.kb-static-poll input {
  margin-right: 8px;
  accent-color: var(--brand-blue);
}
.kb-ad-banner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 104px;
  margin: 24px 0 38px;
  padding: 22px 42px;
  border-radius: 5px;
  color: var(--white);
  background:
    radial-gradient(circle at 65% 10%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(110deg, #052452, #003a8c);
}
.kb-ad-banner strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  text-transform: uppercase;
}
.kb-ad-banner span {
  color: var(--brand-yellow);
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
}
.kb-ad-banner a {
  justify-self: end;
  background: var(--brand-yellow);
  color: var(--brand-dark);
  padding: 13px 22px;
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
}

.newsletter-section {
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}
.newsletter-inner {
  padding: 20px 0;
}
.site-footer {
  background: linear-gradient(135deg, #041a3d, #002a68);
}
.footer-logo {
  display: block;
  margin-bottom: 16px;
}
.footer-logo img {
  width: 200px;
  max-width: 100%;
  filter: none;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom nav {
  display: flex;
  gap: 22px;
}

@media (max-width: 1100px) {
  .header-follow,
  .header-social {
    display: none;
  }
  .kb-hero-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .kb-front-sidebar {
    grid-template-columns: repeat(3,1fr);
  }
  .kb-triple-grid,
  .kb-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kb-most-read-grid {
    grid-template-columns: repeat(3,1fr);
  }
}

@media (max-width: 900px) {
  .site-logo img {
    height: 48px;
  }
  .nav-region-wrap,
  .nav-region {
    display: none;
  }
  .kb-hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .kb-hero-main,
  .kb-hero-side {
    min-height: 260px;
  }
  .kb-front-sidebar,
  .kb-latest-grid,
  .kb-card-row,
  .kb-most-read-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 768px) {
  .top-bar .container,
  .main-nav .container {
    align-items: center;
  }
  .top-bar-right {
    display: none;
  }
  .header-main {
    align-items: center;
  }
  .header-actions {
    margin-left: auto;
  }
  .btn-login,
  .btn-report-news,
  .btn-subscribe {
    display: none;
  }
  .main-nav.open .container {
    display: block;
  }
  .nav-home {
    display: none;
  }
  .nav-menu > li > a {
    color: var(--white);
    padding: 13px 0;
    min-height: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .nav-menu > li:first-child > a {
    padding-left: 0;
  }
  .kb-breaking-inner {
    gap: 10px;
  }
  .kb-breaking-all {
    display: none;
  }
  .kb-latest-head,
  .kb-fp-section-head {
    align-items: flex-start;
  }
  .kb-latest-head {
    flex-direction: column;
  }
  .kb-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .kb-tabs a {
    flex-shrink: 0;
  }
  .kb-front-sidebar,
  .kb-triple-grid,
  .kb-bottom-grid,
  .kb-triple-grid > div:first-child {
    grid-template-columns: 1fr;
  }
  .kb-triple-grid > div:first-child {
    grid-column: auto;
  }
  .kb-ad-banner {
    grid-template-columns: 1fr;
    padding: 22px;
    text-align: left;
  }
  .kb-ad-banner a {
    justify-self: start;
  }
  .footer-bottom .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .kb-hero-main,
  .kb-hero-side {
    min-height: 230px;
  }
  .kb-hero-copy {
    padding: 16px;
  }
  .kb-hero-copy strong {
    font-size: 1.28rem;
  }
  .kb-latest-grid,
  .kb-card-row,
  .kb-most-read-grid {
    grid-template-columns: 1fr;
  }
  .kb-fp-compact {
    grid-template-columns: 112px minmax(0,1fr);
  }
  .kb-fp-compact-thumb {
    height: 82px;
  }
  .kb-ad-banner strong {
    font-size: 1.35rem;
  }
  .kb-ad-banner span {
    font-size: 1rem;
  }
}

/* Refinements after structure alignment */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0;
}
.top-bar-right .btn-login {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-right: 0;
  padding: 0 12px;
  color: var(--gray-dark);
  line-height: 1;
}
.top-bar-right .btn-login svg {
  width: 14px;
  height: 14px;
}
.top-bar-right .btn-subscribe {
  margin-left: 6px;
  min-height: 28px;
  padding: 6px 12px;
  font-size: .76rem;
}
.header-actions .btn-login,
.header-actions .btn-subscribe {
  display: none;
}
.social-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--brand-blue);
  border-radius: 4px;
}
.social-placeholder svg {
  width: 16px;
  height: 16px;
}
.social-instagram {
  color: #e4405f;
}

.kb-hero-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .86fr) 300px;
  gap: 8px;
}
.kb-hero-main {
  min-height: 420px;
}
.kb-hero-main a {
  height: 100%;
}
.kb-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 420px;
}
.kb-front-sidebar {
  display: block;
}
.kb-front-sidebar .kb-sidebar-card {
  height: 420px;
  overflow: hidden;
}
.kb-front-sidebar .section-title {
  margin-bottom: 10px;
}
.kb-popular-list {
  height: calc(100% - 32px);
  display: grid;
  grid-template-rows: repeat(5, 1fr);
}
.kb-popular-row {
  align-items: center;
  padding: 8px 0;
}
.kb-popular-row h3 {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.kb-latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}
.kb-latest-side {
  display: grid;
  gap: 16px;
}
.kb-latest-side .kb-sidebar-card {
  width: 100%;
}
.kb-latest-side .newsletter-form {
  min-width: 0;
  max-width: none;
}

@media (max-width: 1100px) {
  .kb-hero-layout,
  .kb-latest-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .kb-hero-main,
  .kb-hero-grid,
  .kb-front-sidebar .kb-sidebar-card {
    min-height: 0;
    height: auto;
  }
  .kb-front-sidebar {
    display: block;
  }
  .kb-popular-list {
    height: auto;
    display: block;
  }
  .kb-latest-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-social {
    display: flex;
  }
}

@media (max-width: 768px) {
  .top-bar-right .btn-login,
  .top-bar-right .btn-subscribe {
    display: none;
  }
  .top-bar {
    overflow: hidden;
  }
  .top-bar .container {
    max-width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 8px;
  }
  .top-bar-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .top-bar-date {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .weather-widget {
    min-width: 0;
    flex: 0 1 auto;
  }
  .weather-city-btn {
    max-width: 88px;
    min-width: 0;
  }
  .weather-city-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top-bar-right {
    display: none !important;
  }
  .header-social {
    display: flex;
  }
  .article-cats {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
  }
  .article-cats .cat-badge {
    flex: 0 0 auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }
  body.single .article-featured-img {
    display: none;
  }
  .kb-latest-side {
    grid-template-columns: 1fr;
  }
}

/* Hero block correction: keep all card content inside overlays and prevent popular list clipping. */
.kb-hero-news .kb-hero-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1.05fr) 300px;
  gap: 8px;
  align-items: stretch;
}
.kb-hero-news .kb-hero-main,
.kb-hero-news .kb-hero-grid,
.kb-hero-news .kb-front-sidebar {
  height: 420px;
  min-height: 420px;
}
.kb-hero-news .kb-hero-grid {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.kb-hero-main,
.kb-hero-side {
  position: relative;
}
.kb-hero-media {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}
.kb-hero-media:hover {
  color: inherit;
}
.kb-hero-copy {
  pointer-events: none;
  z-index: 2;
}
.kb-hero-copy a {
  pointer-events: auto;
}
.kb-hero-label {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 3;
}
.kb-hero-label .cat-badge {
  display: inline-flex;
  width: fit-content;
}
.kb-hero-copy .cat-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
}
.kb-hero-copy strong a {
  color: inherit;
}
.kb-hero-copy strong a:hover {
  color: rgba(255,255,255,.86);
}
.kb-hero-main .kb-hero-copy strong {
  font-size: 1.55rem;
}
.kb-hero-side .kb-hero-copy strong {
  display: -webkit-box;
  max-height: 3.8em;
  overflow: hidden;
  font-size: 1.04rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.kb-hero-main .kb-hero-copy em {
  display: -webkit-box;
  max-height: 3.05em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.kb-hero-copy .kb-fp-meta {
  gap: 12px;
}
.kb-front-sidebar .kb-sidebar-card {
  height: 100%;
  min-height: 0;
  overflow: visible;
  padding: 16px 18px;
}
.kb-front-sidebar .section-title {
  margin-bottom: 8px;
}
.kb-popular-list {
  height: auto;
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
}
.kb-popular-row {
  min-height: 67px;
  padding: 7px 0;
  grid-template-columns: 28px 72px minmax(0, 1fr);
}
.kb-popular-thumb {
  height: 50px;
}
.kb-popular-row > span {
  font-size: 1.45rem;
}
.kb-popular-row h3 {
  font-size: .86rem;
  line-height: 1.18;
}
.kb-popular-row small {
  font-size: .72rem;
}

@media (max-width: 1100px) {
  .kb-hero-news .kb-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .kb-hero-news .kb-hero-main,
  .kb-hero-news .kb-hero-grid,
  .kb-hero-news .kb-front-sidebar {
    height: auto;
    min-height: 0;
  }
  .kb-hero-main {
    min-height: 360px;
  }
  .kb-hero-news .kb-hero-grid {
    min-height: 0;
  }
  .kb-hero-side {
    min-height: 220px;
  }
  .kb-popular-list {
    display: block;
  }
}

@media (max-width: 560px) {
  .kb-hero-label {
    top: 14px;
    left: 16px;
  }
  .kb-hero-arrow {
    width: 34px;
    height: 34px;
  }
  .kb-hero-arrow-prev {
    left: 10px;
  }
  .kb-hero-arrow-next {
    right: 10px;
  }
  .kb-hero-main .kb-hero-copy strong {
    font-size: 1.2rem;
  }
  .kb-hero-main .kb-hero-copy em {
    display: none;
  }
  .kb-hero-dots {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 768px) {
  .kb-hero-news {
    padding: 8px 0 12px;
  }
  .kb-hero-news .kb-hero-layout {
    display: block;
  }
  .kb-hero-news .kb-hero-layout > .kb-hero-main:not(.kb-hero-mobile),
  .kb-hero-news .kb-hero-grid,
  .kb-hero-news .kb-front-sidebar {
    display: none;
  }
  .kb-hero-news .kb-hero-mobile {
    display: block;
    height: 320px;
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-breaking-track {
    animation: none;
  }
  .kb-hero-slide {
    transition: none;
  }
}

/* Latest tabs and width correction */
.kb-latest .kb-latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
  gap: 26px;
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}
.kb-latest .kb-latest-layout > div {
  min-width: 0;
}
.kb-latest .kb-latest-side {
  min-width: 0;
}
.kb-tabs button {
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--gray-dark);
  font-size: .8rem;
  font-weight: 700;
  background: transparent;
  border: 0;
}
.kb-tabs button.is-active,
.kb-tabs button:hover,
.kb-tabs button:focus-visible {
  background: var(--brand-blue);
  color: var(--white);
}
.kb-tab-panel[hidden] {
  display: none;
}
.kb-latest .kb-latest-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}
.kb-latest .kb-fp-compact {
  grid-template-columns: 140px minmax(0, 1fr);
}

@media (max-width: 1100px) {
  .kb-latest .kb-latest-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .kb-latest .kb-latest-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kb-latest .kb-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .kb-latest .kb-latest-grid,
  .kb-latest .kb-latest-side {
    grid-template-columns: 1fr;
  }
  .kb-tabs button {
    flex-shrink: 0;
  }
}

/* Latest right rail fit correction */
.kb-latest .kb-latest-layout {
  grid-template-columns: minmax(0, calc(100% - 327px)) 311px;
  gap: 16px;
}
.kb-latest .kb-latest-side {
  width: 311px;
  max-width: 311px;
  justify-self: start;
}
.kb-latest .kb-latest-side .kb-sidebar-card {
  width: 100%;
  max-width: 100%;
  padding: 14px;
  overflow: hidden;
}
.kb-latest .kb-latest-side .kb-weather-panel {
  overflow: visible;
}
.kb-latest .kb-sidebar-newsletter .newsletter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  flex: none;
  min-width: 0;
  max-width: 100%;
}
.kb-latest .kb-sidebar-newsletter .newsletter-form input[type="email"],
.kb-latest .kb-sidebar-newsletter .newsletter-form .btn {
  width: 100%;
  min-width: 0;
}
.kb-latest .kb-sidebar-newsletter h2 {
  font-size: .96rem;
  line-height: 1.12;
}
.kb-latest .kb-weather-days {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .kb-latest .kb-latest-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .kb-latest .kb-latest-side {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
}
