/*
Theme Name: Clean up MaHe
Theme URI: https://cleanup-mahe.de
Author: Clean up MaHe
Author URI: https://cleanup-mahe.de
Description: Responsives News-Blog Theme für Clean up MaHe – Marzahn-Hellersdorf. Dezentes Mintgrün, strukturiert, modern.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cleanup-mahe
Tags: news, blog, responsive, two-columns, custom-menu, featured-images, widgets
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --mint:        #3BBFAD;
  --mint-light:  #E8F7F5;
  --mint-mid:    #B2E4DD;
  --mint-dark:   #2A9487;
  --mint-deep:   #1D6B62;
  --orange:      #D95F1A;
  --gray-50:     #F7F8F8;
  --gray-100:    #EEF0F0;
  --gray-200:    #D8DCDC;
  --gray-300:    #BCC2C2;
  --gray-400:    #8E9898;
  --gray-600:    #4A5555;
  --gray-800:    #272F2F;
  --white:       #FFFFFF;
  --font-head:   'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:   'Source Serif 4', Georgia, serif;
  --font-ui:     'Barlow', Arial, sans-serif;
  --radius:      6px;
  --shadow-sm:   0 1px 4px rgba(43,100,95,.10);
  --shadow-md:   0 4px 16px rgba(43,100,95,.13);
  --shadow-lg:   0 8px 32px rgba(43,100,95,.16);
  --transition:  .22s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--mint); }
ul, ol { padding-left: 1.4em; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-800);
  letter-spacing: .01em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.1em; }
blockquote {
  border-left: 4px solid var(--mint);
  padding: 1em 1.4em;
  background: var(--mint-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  margin: 1.5em 0;
  color: var(--gray-600);
}

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .875rem;
  padding: .55em 1.2em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--mint);
  color: var(--white);
  border-color: var(--mint);
}
.btn-primary:hover {
  background: var(--mint-dark);
  border-color: var(--mint-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--mint-dark);
  border-color: var(--mint);
}
.btn-outline:hover {
  background: var(--mint);
  color: var(--white);
}
.tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2em .7em;
  border-radius: 3px;
  background: var(--mint);
  color: var(--white);
}
.tag:hover { background: var(--mint-dark); color: var(--white); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--mint-deep);
  color: rgba(255,255,255,.85);
  font-family: var(--font-ui);
  font-size: .78rem;
  padding: .45em 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--white); }
.topbar-date { opacity: .8; }
.topbar-links { display: flex; gap: 1.2em; }

/* ============================================================
   HEADER – position: fixed, klebt immer am Viewport-Rand
   ============================================================ */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  border-bottom: 3px solid var(--mint);
}

/* Adminbar (eingeloggte Nutzer): WP-Adminbar ist 32px hoch,
   Header rutscht direkt darunter */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Inhaltsbereich: Platz für den fixed Header freihalten.
   Höhe des Headers ca. 90px (Logo 80px + padding) */
.site-content {
  padding-top: 100px;
}
.admin-bar .site-content {
  padding-top: 132px; /* 100px Header + 32px Adminbar */
}
@media screen and (max-width: 782px) {
  .admin-bar .site-content { padding-top: 146px; }
}

/* Topbar ausblenden – sie wäre unter fixed Header versteckt */
.topbar { display: none; }

/* ============================================================
   HEADER INNER – 3 Spalten: Hamburger | Logo | Suche
   ============================================================ */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 80px;
  padding: 0 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Spalte 1: Hamburger – linksbündig */
.header-hamburger {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Spalte 2: Logo – zentriert */
.site-branding {
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-branding img,
.site-branding .custom-logo {
  height: 64px !important;
  width: auto !important;
  max-width: 180px;
  display: block;
}

/* Spalte 3: Suche – rechtsbündig */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6em;
}

.header-sitename { display: none; }

.site-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mint-dark);
  line-height: 1.15;
}
.site-title span { color: var(--orange); }
.site-tagline {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--gray-400);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

/* Hamburger – immer sichtbar */
.menu-toggle {
  display: flex;
  background: none;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .45em .65em;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  transition: border-color var(--transition);
}
.menu-toggle:hover { border-color: var(--mint); }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-600);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* NAV OVERLAY – slide-in panel von rechts, Desktop + Mobile */
.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100%;
  background: var(--white);
  z-index: 9999;
  box-shadow: -4px 0 32px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.main-nav.open {
  transform: translateX(0);
}

.nav-inner {
  padding: 0;
}
.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1em 1.4em;
  border-bottom: 2px solid var(--mint);
  background: var(--mint-light);
}
.nav-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--mint-deep);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.nav-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gray-600);
  padding: .3em .5em;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-close:hover { color: var(--mint-dark); background: var(--mint-mid); }

/* Menüelemente im Overlay */
.main-nav #primary-menu,
.main-nav ul { list-style: none; padding: 0; margin: 0; }

.main-nav > .nav-inner > ul > li,
.main-nav #primary-menu > li {
  border-bottom: 1px solid var(--gray-100);
}
.main-nav a {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-700, #384040);
  padding: .85em 1.4em;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--mint-dark);
  background: var(--mint-light);
}

/* Dropdown im Overlay */
.main-nav li { position: relative; }
.main-nav li ul {
  display: none;
  background: var(--gray-50);
  border-left: 3px solid var(--mint);
}
.main-nav li.open > ul { display: block; }
.main-nav li ul a { padding-left: 2.2em; font-size: .9rem; }

/* Backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
  transition: opacity .3s;
}
.nav-backdrop.visible { display: block; }

/* ============================================================
   HERO – volle Breite
   ============================================================ */
.hero-main--full {
  width: 100%;
  min-height: 460px;
  border-radius: calc(var(--radius)*1.5);
}

/* ============================================================
   AFTER-HERO WIDGET-BEREICH
   ============================================================ */
.after-hero-widget {
  padding: 1.2em 0;
  background: var(--mint-light);
  border-top: 1px solid var(--mint-mid);
  border-bottom: 1px solid var(--mint-mid);
  margin-bottom: .5em;
}
.after-hero-widget .widget {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.after-hero-widget .widget-title {
  font-size: .95rem;
}

/* ============================================================
   NAVIGATION (alt – war im alten CSS, jetzt durch Overlay ersetzt)
   ============================================================ */

/* Search toggle */
.header-search { position: relative; }
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: .4em;
  border-radius: var(--radius);
  transition: color var(--transition);
  font-size: 1.1rem;
}
.search-toggle:hover { color: var(--mint-dark); background: var(--mint-light); }
.header-search-form {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .5em);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--mint);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: .7em;
  width: 280px;
  box-shadow: var(--shadow-md);
  z-index: 300;
}
.header-search-form.open { display: flex; gap: .4em; }
.header-search-form input {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .45em .8em;
  font-family: var(--font-ui);
  font-size: .875rem;
  outline: none;
}
.header-search-form input:focus { border-color: var(--mint); }
.header-search-form button {
  background: var(--mint);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: .45em .9em;
  cursor: pointer;
  font-size: .875rem;
  transition: background var(--transition);
}
.header-search-form button:hover { background: var(--mint-dark); }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .4em .6em;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-600);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-news {
  background: var(--mint-light);
  border-top: 1px solid var(--mint-mid);
  border-bottom: 1px solid var(--mint-mid);
  padding: .5em 0;
  overflow: hidden;
}
.breaking-inner {
  display: flex;
  align-items: center;
  gap: 1em;
}
.breaking-label {
  flex-shrink: 0;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25em .8em;
  border-radius: 3px;
}
.ticker-wrap {
  overflow: hidden;
  flex: 1;
}
.ticker {
  display: flex;
  gap: 3em;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker:hover { animation-play-state: paused; }
.ticker a {
  font-family: var(--font-ui);
  font-size: .84rem;
  color: var(--gray-600);
  flex-shrink: 0;
}
.ticker a:hover { color: var(--mint-dark); }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HERO / FEATURED POST
   ============================================================ */
.hero-section { padding: 2em 0 1.5em; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5em;
}
.hero-main {
  position: relative;
  border-radius: calc(var(--radius)*1.5);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-lg);
}
.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.hero-main:hover img { transform: scale(1.03); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,50,45,.85) 0%, rgba(20,50,45,.25) 50%, transparent 100%);
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.6em;
  color: var(--white);
}
.hero-content .tag { margin-bottom: .6em; }
.hero-content h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-bottom: .5em;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-content h2 a { color: var(--white); }
.hero-content h2 a:hover { color: var(--mint-mid); }
.hero-meta {
  font-family: var(--font-ui);
  font-size: .78rem;
  opacity: .82;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

/* Hero sidebar */
.hero-sidebar { display: flex; flex-direction: column; gap: 1em; }
.hero-side-post {
  display: flex;
  gap: .85em;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.hero-side-post:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.hero-side-img {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  overflow: hidden;
}
.hero-side-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-body {
  padding: .7em .7em .7em 0;
  display: flex;
  flex-direction: column;
  gap: .3em;
}
.hero-side-body .tag { align-self: flex-start; }
.hero-side-body h4 { font-size: .9rem; line-height: 1.3; }
.hero-side-body h4 a { color: var(--gray-800); }
.hero-side-body h4 a:hover { color: var(--mint-dark); }
.hero-side-date {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--gray-400);
  margin-top: auto;
}

/* ============================================================
   CATEGORY TABS
   ============================================================ */
.cat-tabs {
  display: flex;
  gap: .4em;
  flex-wrap: wrap;
  padding: 1.2em 0 .6em;
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: 1.5em;
}
.cat-tab {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  padding: .4em 1em;
  border-radius: 30px;
  background: var(--gray-100);
  color: var(--gray-600);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.cat-tab:hover, .cat-tab.active {
  background: var(--mint);
  color: var(--white);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.site-main {
  padding: 0 0 3em;
}
.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2em;
  align-items: start;
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4em;
}
.post-card {
  background: var(--white);
  border-radius: calc(var(--radius)*1.5);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.post-card-img {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body {
  padding: 1.1em;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .4em;
}
.post-card-body .tag { align-self: flex-start; }
.post-card-title {
  font-size: 1.05rem;
  line-height: 1.35;
}
.post-card-title a { color: var(--gray-800); }
.post-card-title a:hover { color: var(--mint-dark); }
.post-card-excerpt {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .6em;
  padding-top: .7em;
  border-top: 1px solid var(--gray-100);
}
.post-card-meta {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--gray-400);
  display: flex;
  gap: .8em;
}
.post-card-readmore {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  color: var(--mint-dark);
  display: flex;
  align-items: center;
  gap: .2em;
}
.post-card-readmore:hover { color: var(--mint); }
.post-card-readmore::after { content: '→'; }

/* List variant card */
.post-card.list-card {
  flex-direction: row;
}
.post-card.list-card .post-card-img {
  width: 130px;
  flex-shrink: 0;
  aspect-ratio: unset;
}
.post-card.list-card .post-card-body { padding: .9em; }
.post-card.list-card .post-card-title { font-size: .95rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: .4em;
  margin-top: 2.5em;
}
.pagination a, .pagination span {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .875rem;
  padding: .5em .9em;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  transition: all var(--transition);
}
.pagination a:hover {
  border-color: var(--mint);
  color: var(--mint-dark);
  background: var(--mint-light);
}
.pagination .current {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--white);
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 1.5em; }

.widget {
  background: var(--white);
  border-radius: calc(var(--radius)*1.5);
  padding: 1.4em;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-800);
  margin-bottom: 1em;
  padding-bottom: .6em;
  border-bottom: 2px solid var(--mint);
  display: flex;
  align-items: center;
  gap: .4em;
}
.widget-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--mint);
  border-radius: 2px;
}

/* Recent posts widget */
.widget-recent-post {
  display: flex;
  gap: .7em;
  align-items: flex-start;
  padding-bottom: .85em;
  margin-bottom: .85em;
  border-bottom: 1px solid var(--gray-100);
}
.widget-recent-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.widget-recent-thumb {
  width: 60px;
  height: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.widget-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-recent-body { flex: 1; }
.widget-recent-title {
  font-size: .845rem;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
}
.widget-recent-title a { color: var(--gray-800); }
.widget-recent-title a:hover { color: var(--mint-dark); }
.widget-recent-date {
  font-family: var(--font-ui);
  font-size: .7rem;
  color: var(--gray-400);
  margin-top: .2em;
}

/* Categories widget */
.widget-cat-list { list-style: none; padding: 0; }
.widget-cat-list li {
  border-bottom: 1px solid var(--gray-100);
}
.widget-cat-list li:last-child { border-bottom: none; }
.widget-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5em 0;
  font-family: var(--font-ui);
  font-size: .875rem;
  color: var(--gray-600);
}
.widget-cat-list a:hover { color: var(--mint-dark); }
.widget-cat-count {
  background: var(--gray-100);
  color: var(--gray-400);
  font-size: .7rem;
  font-weight: 700;
  padding: .15em .55em;
  border-radius: 30px;
}

/* Tag cloud widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .4em; }
.tag-cloud a {
  font-family: var(--font-ui);
  font-size: .78rem;
  padding: .3em .75em;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 30px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.tag-cloud a:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--white);
}

/* About widget */
.widget-about {
  text-align: center;
  background: linear-gradient(135deg, var(--mint-light) 0%, var(--white) 100%);
  border: 1px solid var(--mint-mid);
}
.widget-about img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto .8em;
  border: 3px solid var(--mint);
}
.widget-about p {
  font-size: .84rem;
  color: var(--gray-600);
  margin-bottom: .8em;
}

/* Newsletter widget */
.widget-newsletter {
  background: linear-gradient(135deg, var(--mint-deep) 0%, var(--mint-dark) 100%);
  color: var(--white);
}
.widget-newsletter .widget-title { color: var(--white); border-color: rgba(255,255,255,.4); }
.widget-newsletter .widget-title::before { background: rgba(255,255,255,.6); }
.widget-newsletter p { font-size: .84rem; color: rgba(255,255,255,.85); margin-bottom: .9em; }
.widget-newsletter input[type="email"] {
  width: 100%;
  padding: .6em .9em;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: .875rem;
  margin-bottom: .6em;
  outline: none;
  transition: border-color var(--transition);
}
.widget-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,.55); }
.widget-newsletter input[type="email"]:focus { border-color: rgba(255,255,255,.7); }
.widget-newsletter .btn-primary {
  width: 100%;
  justify-content: center;
  background: var(--white);
  color: var(--mint-dark);
  border-color: var(--white);
}
.widget-newsletter .btn-primary:hover {
  background: var(--mint-light);
  border-color: var(--mint-light);
  color: var(--mint-deep);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-header {
  background: var(--white);
  padding: 2em 0;
  margin-bottom: 2em;
  border-bottom: 1px solid var(--gray-100);
}
.single-breadcrumb {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--gray-400);
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: .4em;
}
.single-breadcrumb a { color: var(--mint-dark); }
.single-breadcrumb span { opacity: .5; }
.single-post-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: .6em;
}
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 1.2em;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--gray-400);
}
.single-post-meta .author {
  display: flex;
  align-items: center;
  gap: .4em;
  color: var(--gray-600);
  font-weight: 600;
}
.post-featured-image {
  border-radius: calc(var(--radius)*1.5);
  overflow: hidden;
  margin-bottom: 2em;
  box-shadow: var(--shadow-md);
}
.post-featured-image img { width: 100%; max-height: 480px; object-fit: cover; }

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-800);
}
.post-content h2, .post-content h3 {
  margin: 1.6em 0 .6em;
}
.post-content p { margin-bottom: 1.2em; }
.post-content a { color: var(--mint-dark); border-bottom: 1px solid var(--mint-mid); }
.post-content a:hover { color: var(--mint); border-color: var(--mint); }
.post-content ul, .post-content ol { margin-bottom: 1.2em; }
.post-content li { margin-bottom: .4em; }
.post-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 1em 0;
}

.post-tags { margin-top: 2em; padding-top: 1.5em; border-top: 1px solid var(--gray-100); }
.post-tags-label {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  margin-bottom: .6em;
}

/* Share bar */
.share-bar {
  background: var(--mint-light);
  border: 1px solid var(--mint-mid);
  border-radius: var(--radius);
  padding: 1em 1.2em;
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
  margin: 2em 0;
}
.share-label {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-right: .3em;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 600;
  padding: .4em .9em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.share-facebook { background: #1877F2; color: white; }
.share-facebook:hover { background: #1565C0; color: white; }
.share-twitter { background: #1DA1F2; color: white; }
.share-twitter:hover { background: #1376A2; color: white; }
.share-whatsapp { background: #25D366; color: white; }
.share-whatsapp:hover { background: #1BA84E; color: white; }
.share-copy { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); }
.share-copy:hover { background: var(--gray-200); color: var(--gray-800); }

/* Author box */
.author-box {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--mint);
  border-radius: var(--radius);
  padding: 1.4em;
  display: flex;
  gap: 1.2em;
  margin-top: 2.5em;
  box-shadow: var(--shadow-sm);
}
.author-box-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--mint-mid);
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-name {
  font-size: 1rem;
  margin-bottom: .3em;
}
.author-box-bio {
  font-size: .875rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Comments */
.comments-area { margin-top: 2.5em; padding-top: 2em; border-top: 2px solid var(--gray-100); }
.comments-title { margin-bottom: 1.5em; }
.comment-list { list-style: none; padding: 0; }
.comment {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1em;
  margin-bottom: 1em;
  box-shadow: var(--shadow-sm);
}
.comment-author { font-family: var(--font-ui); font-weight: 700; font-size: .9rem; color: var(--gray-800); }
.comment-date { font-family: var(--font-ui); font-size: .72rem; color: var(--gray-400); margin-bottom: .6em; }
.comment-body { font-size: .9rem; }
.comment-form { margin-top: 2em; }
.comment-form-row { margin-bottom: 1em; }
.comment-form-row label {
  display: block;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .35em;
  color: var(--gray-600);
}
.comment-form-row input,
.comment-form-row textarea {
  width: 100%;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .65em .9em;
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}
.comment-form-row input:focus,
.comment-form-row textarea:focus {
  border-color: var(--mint);
}
.comment-form-row textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.8);
  margin-top: 3em;
}
.footer-top {
  padding: 3em 0 2em;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5em;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: .7em; margin-bottom: 1em; }
.footer-logo img { height: 44px; width: auto; filter: brightness(0) invert(1) opacity(.9); }
.footer-logo-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}
.footer-logo-text span { color: var(--mint); }
.footer-description {
  font-size: .84rem;
  line-height: 1.65;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.2em;
}
.footer-social { display: flex; gap: .5em; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--mint);
  color: var(--white);
}

.footer-widget-title {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 1.1em;
  padding-bottom: .5em;
  border-bottom: 2px solid var(--mint-dark);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5em; }
.footer-links a {
  font-size: .84rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: .4em;
  transition: color var(--transition);
}
.footer-links a::before { content: '›'; color: var(--mint); font-size: 1.1em; }
.footer-links a:hover { color: var(--white); }

.footer-recent-post {
  display: flex;
  gap: .6em;
  margin-bottom: .9em;
  align-items: flex-start;
}
.footer-recent-thumb {
  width: 52px;
  height: 42px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  opacity: .85;
}
.footer-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.footer-recent-title {
  font-size: .8rem;
  line-height: 1.35;
  color: rgba(255,255,255,.75);
}
.footer-recent-title a { color: inherit; }
.footer-recent-title a:hover { color: var(--mint-mid); }
.footer-recent-date { font-size: .7rem; color: rgba(255,255,255,.4); margin-top: .2em; }

.footer-bottom {
  padding: 1.2em 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}
.footer-copyright {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}
.footer-copyright a { color: var(--mint-mid); }
.footer-legal { display: flex; gap: 1.2em; }
.footer-legal a {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}
.footer-legal a:hover { color: var(--white); }

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-header {
  background: linear-gradient(135deg, var(--mint-light) 0%, var(--white) 100%);
  border: 1px solid var(--mint-mid);
  border-radius: calc(var(--radius)*1.5);
  padding: 1.8em;
  margin-bottom: 2em;
  display: flex;
  align-items: center;
  gap: 1em;
}
.archive-icon {
  font-size: 2.5rem;
  background: var(--mint-light);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--mint-mid);
}
.archive-title { font-size: 1.8rem; margin-bottom: .25em; }
.archive-desc { font-size: .9rem; color: var(--gray-600); margin-bottom: 0; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-header {
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 2px solid var(--gray-100);
}
.search-count {
  font-family: var(--font-ui);
  font-size: .9rem;
  color: var(--gray-400);
  margin-bottom: .3em;
}
.search-count strong { color: var(--mint-dark); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 { text-align: center; padding: 4em 1em; }
.error-404-code {
  font-family: var(--font-head);
  font-size: 8rem;
  color: var(--mint-mid);
  line-height: 1;
  margin-bottom: .1em;
}
.error-404 h2 { margin-bottom: .5em; }
.error-404 p { color: var(--gray-400); margin-bottom: 1.5em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 280px; }
  .content-area { grid-template-columns: 1fr 260px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .content-area { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.5em; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-main--full { min-height: 280px; }
  .footer-top { grid-template-columns: 1fr; }
  .site-title { font-size: 1.2rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .sidebar, .site-footer, .breaking-news, .share-bar { display: none; }
  .content-area { grid-template-columns: 1fr; }
  body { font-size: 11pt; }
}

/* ============================================================
   WP ALIGNMENT CLASSES
   ============================================================ */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; text-align: center; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text { font-size: .82rem; color: var(--gray-400); text-align: center; margin-top: .3em; }

/* ============================================================
   GUTENBERG / BLOCK STYLES
   ============================================================ */
.wp-block-quote {
  border-left: 4px solid var(--mint);
  padding: 1em 1.4em;
  background: var(--mint-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.wp-block-separator { border-color: var(--gray-200); }
.wp-block-button__link {
  background: var(--mint);
  color: var(--white);
  border-radius: var(--radius);
  padding: .6em 1.4em;
}
.wp-block-button__link:hover { background: var(--mint-dark); }
