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

/* --- Variables --- */
:root {
  --red: #e31e24;
  --red-dark: #c01920;
  --navy: #1a1a2e;
  --dark: #222222;
  --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: 1200px;
}

/* --- 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.cat-lietuva { background: #2563eb; }
.cat-badge.cat-pasaulis { background: #7c3aed; }
.cat-badge.cat-verslas { background: #0891b2; }
.cat-badge.cat-sportas { background: #16a34a; }
.cat-badge.cat-kultura { background: #d97706; }
.cat-badge.cat-gyvenimas { background: #db2777; }
.cat-badge.cat-nuomones { background: #6b7280; }
.cat-badge.cat-aktualu { background: var(--red); }

/* --- 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(--red);
  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 { 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(--red);
  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 {
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius);
}
.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;
  background: var(--white);
  border-top: 3px solid var(--red);
  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;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-menu > li:hover .mega-menu { display: block; }
.mega-menu-inner { display: grid; grid-template-columns: repeat(4, 1fr); 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: span 2; }
.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 {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  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; }

/* Mega recommended */
.mega-recommended { }
.mega-recommended .mega-col-title { border-bottom-color: #2563eb; color: #2563eb; }
.mega-rec-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; margin-bottom: 8px; }
.mega-rec-title { font-size: 0.85rem; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.mega-rec-link { font-size: 0.75rem; color: var(--red); font-weight: 600; }

/* 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-main {
  grid-row: span 2;
  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: 200px;
}
.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; }

/* ===================================
   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(--white);
  background: var(--red);
  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;
}

/* ===================================
   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(--red);
  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: ' →'; }

/* ===================================
   AD SPACES
   =================================== */
.ad-space {
  background: var(--gray-bg);
  border: 1px dashed var(--gray-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
}
.ad-space.ad-leaderboard { width: 100%; height: 90px; margin: 16px 0; }
.ad-space.ad-rectangle { width: 300px; height: 250px; }
.ad-space.ad-halfpage { width: 300px; height: 600px; }
.ad-space.ad-inline { width: 100%; height: 280px; margin: 24px 0; }
.ad-space img, .ad-space ins { width: 100%; height: 100%; }

/* ===================================
   SIDEBAR
   =================================== */
.sidebar { position: sticky; top: 80px; }
.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: #333; }

/* 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; }

/* ===================================
   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: 280px repeat(4, 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 {
  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: 1fr 300px;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}
.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: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.article-meta .author-name { font-size: 0.85rem; font-weight: 600; }
.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: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.article-featured-img img { width: 100%; height: auto; max-height: 480px; object-fit: cover; }
.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);
}
.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 a { color: var(--red); text-decoration: underline; }
.article-content strong { color: var(--dark); }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.92rem; }
.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); }

/* 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 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.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; }

/* Comments */
.comments-section { margin-top: 40px; }
.comments-section h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; }
.comment-form-wrap { margin-bottom: 32px; }
.comment-form input,
.comment-form textarea {
  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);
}
.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-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; }
.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; }

/* ===================================
   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); }

/* ===================================
   PAGINATION
   =================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 32px 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: 1fr; }
  .archive-with-sidebar { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-row: span 1; min-height: 320px; }
  .latest-popular-wrap { 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; }
  .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-meta { gap: 10px; }
  .article-share-top { display: none; }
  .comment-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.2rem; }
  .category-sections { grid-template-columns: 1fr; }
  .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; }
}
