/*
Theme Name:  IniManado
Theme URI:   https://inimanado.com
Author:      IniManado.com
Description: Theme berita regional untuk IniManado.com – portal berita terkini Sulawesi Utara. Fitur: Hero Grid, Section Kategori, Slot Iklan, Sidebar Populer & Pilihan Editor.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags:        news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, sticky-post, translation-ready
Text Domain: inimanado
*/

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

:root {
  --red:        #C0261E;
  --red-dark:   #8f1c16;
  --red-light:  #e8302a;
  --gold:       #D4A017;
  --navy:       #1a2332;
  --navy-mid:   #243347;
  --ink:        #1e1e1e;
  --ink-soft:   #444;
  --muted:      #777;
  --border:     #e0e0e0;
  --bg:         #f5f4f0;
  --white:      #ffffff;
  --ad-bg:      #f0ede8;
  --font-head:  'Playfair Display', serif;
  --font-body:  'DM Sans', sans-serif;
  --font-serif: 'Source Serif 4', serif;
  --radius:     4px;
  --shadow:     0 2px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 6px 30px rgba(0,0,0,.18);
}

html  { font-size: 16px; scroll-behavior: smooth; }
body  { font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.6; }
a     { text-decoration: none; color: inherit; }
img   { display: block; width: 100%; object-fit: cover; }
ul    { list-style: none; }

/* WordPress alignments */
.alignleft  { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.wp-post-image { max-width: 100%; height: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

/* ===================== UTILITY ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); background: var(--red);
  padding: 4px 10px; border-radius: 2px;
}

.cat-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); border-bottom: 1.5px solid var(--red);
  padding-bottom: 1px; transition: color .2s;
}
.cat-badge:hover { color: var(--red-dark); }

.meta { font-size: 12px; color: var(--muted); }
.meta span + span::before { content: '·'; margin: 0 5px; }

/* ===================== TOP BAR ===================== */
.topbar {
  background: var(--navy); color: rgba(255,255,255,.65);
  font-size: 11.5px; padding: 7px 0;
  border-bottom: 2px solid var(--red);
}
.topbar .inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-date   { font-weight: 500; letter-spacing: .04em; }
.topbar-socials { display: flex; gap: 12px; }
.topbar-socials a {
  color: rgba(255,255,255,.55); font-size: 13px; transition: color .2s;
  display: flex; align-items: center;
}
.topbar-socials a:hover { color: var(--gold); }
.topbar-socials svg { width: 14px; height: 14px; fill: currentColor; }

/* ===================== HEADER ===================== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-main {
  display: flex; align-items: center;
  justify-content: space-between; padding: 14px 0; gap: 20px;
}
.site-logo { display: flex; flex-direction: column; line-height: 1; }
.logo-text {
  font-family: var(--font-head); font-size: 28px; font-weight: 800;
  color: var(--navy); letter-spacing: -.01em;
}
.logo-text span  { color: var(--red); }
.logo-tagline {
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-top: 1px;
}
.custom-logo { max-height: 55px; width: auto; }
.header-ad-wrap {
  flex: 1; max-width: 728px; display: flex;
  align-items: center; justify-content: center;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-search {
  border: 1.5px solid var(--border); background: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: all .2s;
}
.btn-search:hover { border-color: var(--red); color: var(--red); }
.btn-search svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ===================== NAV ===================== */
.site-nav { background: var(--navy); border-top: 1px solid rgba(255,255,255,.07); }
.nav-list  { display: flex; align-items: center; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; color: rgba(255,255,255,.85); font-size: 13px;
  font-weight: 600; letter-spacing: .03em; padding: 12px 16px;
  transition: all .2s; border-bottom: 3px solid transparent;
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current-menu-ancestor > a {
  color: #fff; background: rgba(255,255,255,.06);
  border-bottom-color: var(--gold);
}
.nav-list > li.has-dropdown:hover .dropdown { display: block; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--red); min-width: 200px;
  box-shadow: var(--shadow-lg); z-index: 200; border-radius: 0 0 4px 4px;
}
.dropdown li a {
  display: block; padding: 10px 16px; font-size: 13px;
  color: var(--ink); border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: #fafafa; color: var(--red); }

/* ===================== AD SLOT ===================== */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ede9e2 0%, #e5e1da 100%);
  border: 1px dashed #c8c3bb; overflow: hidden; position: relative;
}
.ad-slot-label {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: #bbb; font-weight: 700; pointer-events: none;
}
.ad-slot.leaderboard { width: 100%; height: 90px; border-radius: var(--radius); }
.ad-slot.rectangle   { width: 100%; min-height: 250px; border-radius: var(--radius); }
/* Hide label when real ad is loaded */
.ad-slot .adsbygoogle ~ .ad-slot-label { display: none; }

/* ===================== MAIN LAYOUT ===================== */
.main-wrap     { padding: 28px 0 0; }
.content-sidebar {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 32px; padding: 32px 0;
}
.sidebar { display: flex; flex-direction: column; gap: 28px; }

/* ===================== HERO GRID ===================== */
.hero-section  { margin-bottom: 8px; }
.section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}
.section-header h2 {
  font-family: var(--font-head); font-size: 18px; font-weight: 800;
  color: var(--navy); letter-spacing: -.01em;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px; background: var(--navy);
  border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
/* Card base */
.hero-card { position: relative; overflow: hidden; display: block; }
.hero-card img { transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.hero-card:hover img { transform: scale(1.04); }
.hero-card .no-thumbnail {
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-mid); color: rgba(255,255,255,.3);
  font-size: 32px; height: 100%; min-height: inherit;
}
.hero-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,25,.92) 0%, rgba(10,15,25,.45) 45%, transparent 75%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
}
/* Main large card */
.hero-main { grid-column: 1; grid-row: 1 / 3; min-height: 420px; }
.hero-main img { height: 100%; min-height: 420px; }
.hero-main .hero-card-overlay { padding: 28px; }
.hero-main .card-title {
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  color: #fff; line-height: 1.3; margin: 8px 0 6px;
}
.hero-main .card-meta { font-size: 11.5px; color: rgba(255,255,255,.65); }
.hero-main .cat-badge  { color: var(--gold); border-color: var(--gold); font-size: 9.5px; }
/* Sub cards */
.hero-sub { min-height: 205px; }
.hero-sub img { height: 205px; }
.hero-sub .card-title {
  font-family: var(--font-head); font-size: 14.5px; font-weight: 700;
  color: #fff; line-height: 1.35; margin: 6px 0 4px;
}
.hero-sub .card-meta { font-size: 10.5px; color: rgba(255,255,255,.6); }
.hero-sub .cat-badge  { color: var(--gold); border-color: var(--gold); font-size: 9px; }
/* Read more pill */
.read-more-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-top: 10px;
  transition: background .2s;
}
.read-more-pill:hover { background: var(--red-dark); }
.read-more-pill svg { width: 10px; height: 10px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ===================== AFTER-HERO AD BAR ===================== */
.ad-bar { margin: 24px 0; }

/* ===================== CATEGORY SECTION ===================== */
.cat-section { margin-bottom: 36px; }
.cat-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2.5px solid var(--navy);
}
.cat-section-header h2 {
  font-family: var(--font-head); font-size: 20px; font-weight: 800;
  color: var(--navy); display: flex; align-items: center; gap: 10px;
}
.cat-section-header h2::before {
  content: ''; display: block; width: 5px; height: 20px;
  background: var(--red); border-radius: 2px;
}
.view-all {
  font-size: 12px; font-weight: 700; color: var(--red);
  letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 4px; transition: gap .2s;
}
.view-all:hover { gap: 8px; }
.view-all svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Cat grid: 1 featured + 2×2 small */
.cat-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.cat-featured { position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.cat-featured img { height: 280px; }
.cat-featured .hero-card-overlay { padding: 20px; }
.cat-featured .card-title {
  font-family: var(--font-head); font-size: 17px; font-weight: 800;
  color: #fff; line-height: 1.35; margin: 6px 0 5px;
}
.cat-featured .card-meta { font-size: 11px; color: rgba(255,255,255,.65); }
.cat-featured .cat-badge { color: var(--gold); border-color: var(--gold); font-size: 9.5px; }

.cat-small-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cat-small-card {
  background: var(--white); border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.cat-small-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cat-small-card img { height: 130px; }
.cat-small-card-body {
  padding: 12px; flex: 1;
  display: flex; flex-direction: column; gap: 6px;
}
.cat-small-card .card-title {
  font-family: var(--font-head); font-size: 13.5px; font-weight: 700;
  color: var(--ink); line-height: 1.35; flex: 1;
}
.cat-small-card .card-title:hover { color: var(--red); }
.cat-small-card .card-meta { font-size: 10.5px; color: var(--muted); }

/* ===================== LATEST NEWS LIST ===================== */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-thumb { border-radius: 4px; overflow: hidden; }
.news-thumb img { height: 90px; transition: transform .4s; }
.news-item:hover .news-thumb img { transform: scale(1.05); }
.news-body { display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.news-body .card-title {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--ink); line-height: 1.35;
}
.news-body .card-title:hover { color: var(--red); }
.news-body .excerpt {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-body .card-meta { font-size: 11px; color: var(--muted); }
.load-more-btn {
  display: block; margin: 22px auto 0; padding: 11px 32px;
  background: none; border: 2px solid var(--navy); border-radius: 3px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); cursor: pointer; transition: all .2s;
}
.load-more-btn:hover { background: var(--navy); color: #fff; }

/* ===================== SINGLE POST ===================== */
.single-header { margin-bottom: 28px; }
.single-header .post-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.single-header h1 {
  font-family: var(--font-head); font-size: 30px; font-weight: 800;
  color: var(--ink); line-height: 1.3; margin-bottom: 14px;
}
.single-header .post-meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.single-header .post-meta strong { color: var(--ink-soft); }
.single-featured { border-radius: 8px; overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow-lg); }
.single-featured img { max-height: 480px; width: 100%; object-fit: cover; }
.single-featured figcaption { font-size: 12px; color: var(--muted); padding: 8px 12px; background: #f8f7f4; font-style: italic; }
.entry-content {
  font-family: var(--font-serif); font-size: 16.5px; line-height: 1.8; color: #2a2a2a;
}
.entry-content p  { margin-bottom: 1.4em; }
.entry-content h2 { font-family: var(--font-head); font-size: 22px; font-weight: 800; margin: 1.8em 0 .8em; color: var(--navy); }
.entry-content h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin: 1.5em 0 .7em; color: var(--navy); }
.entry-content blockquote {
  border-left: 4px solid var(--red); padding: 12px 20px;
  margin: 1.5em 0; background: #fdf8f7; color: var(--ink-soft);
  font-style: italic;
}
.entry-content a { color: var(--red); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: .5em; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.post-tag {
  font-size: 11.5px; font-weight: 600; padding: 5px 12px;
  border: 1.5px solid var(--border); border-radius: 3px;
  color: var(--ink-soft); transition: all .2s;
}
.post-tag:hover { border-color: var(--red); color: var(--red); }
.related-posts { margin-top: 40px; }
.related-posts h3 {
  font-family: var(--font-head); font-size: 20px; font-weight: 800;
  color: var(--navy); margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--navy); display: flex; align-items: center; gap: 10px;
}
.related-posts h3::before { content: ''; display: block; width: 5px; height: 20px; background: var(--red); border-radius: 2px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.related-card img { height: 150px; }
.related-card-body { padding: 12px; }
.related-card .cat-badge { font-size: 9px; }
.related-card h4 {
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  color: var(--ink); line-height: 1.35; margin: 6px 0 4px;
}
.related-card h4:hover { color: var(--red); }
.related-card small { font-size: 11px; color: var(--muted); }

/* ===================== SIDEBAR WIDGETS ===================== */
.widget { background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.widget-header {
  background: var(--navy); padding: 12px 16px;
  font-family: var(--font-head); font-size: 15px; font-weight: 800;
  color: var(--white); letter-spacing: .01em;
  display: flex; align-items: center; gap: 8px;
}
.widget-header::before {
  content: ''; display: block; width: 4px; height: 16px;
  background: var(--gold); border-radius: 2px; flex-shrink: 0;
}
.widget-list { padding: 4px 0; }
.widget-item {
  display: grid; grid-template-columns: 60px 1fr; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.widget-item:last-child { border-bottom: none; }
.widget-item:hover { background: #fafaf8; }
.widget-thumb { border-radius: 3px; overflow: hidden; }
.widget-thumb img { height: 48px; width: 60px; }
.widget-body { display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.widget-body h4 {
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  color: var(--ink); line-height: 1.3;
}
.widget-body h4:hover { color: var(--red); }
.widget-body small { font-size: 10.5px; color: var(--muted); }
.widget-num { font-size: 11px; font-weight: 700; color: var(--red); }
/* WP default widget styles */
.widget_text p, .widget_recent_entries ul li { font-size: 13px; color: var(--ink-soft); }
.widget_recent_entries ul { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.widget_recent_entries ul li a { font-size: 13px; color: var(--ink); transition: color .2s; }
.widget_recent_entries ul li a:hover { color: var(--red); }

/* ===================== CATEGORY / ARCHIVE PAGE ===================== */
.archive-header { margin-bottom: 28px; }
.archive-header .archive-label {
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.archive-header h1 {
  font-family: var(--font-head); font-size: 28px; font-weight: 800;
  color: var(--navy); display: flex; align-items: center; gap: 12px;
}
.archive-header h1::before { content: ''; display: block; width: 6px; height: 28px; background: var(--red); border-radius: 3px; }
.archive-header .archive-desc { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.archive-card { background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.archive-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.archive-card img { height: 180px; }
.archive-card-body { padding: 14px; }
.archive-card .card-title {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--ink); line-height: 1.35; margin: 7px 0 8px;
}
.archive-card .card-title:hover { color: var(--red); }
.archive-card .excerpt { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.archive-card .card-meta { font-size: 11px; color: var(--muted); margin-top: 10px; }
/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 20px 0 32px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 3px;
  font-size: 13px; font-weight: 600; border: 1.5px solid var(--border);
  color: var(--ink-soft); transition: all .2s;
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination span.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ===================== 404 PAGE ===================== */
.error-404-wrap { text-align: center; padding: 80px 20px; }
.error-404-wrap h1 { font-family: var(--font-head); font-size: 120px; font-weight: 800; color: var(--red); line-height: 1; }
.error-404-wrap h2 { font-family: var(--font-head); font-size: 24px; color: var(--navy); margin: 12px 0 16px; }
.error-404-wrap p { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.btn-home {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; padding: 12px 28px;
  border-radius: 3px; font-weight: 700; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; transition: background .2s;
}
.btn-home:hover { background: var(--red-dark); color: #fff; }

/* ===================== SEARCH FORM ===================== */
.search-form-wrap { display: flex; gap: 0; max-width: 500px; margin: 0 auto 32px; }
.search-form-wrap input[type="search"] {
  flex: 1; padding: 12px 16px; border: 2px solid var(--border);
  border-right: none; border-radius: 3px 0 0 3px; font-size: 14px;
  outline: none; font-family: var(--font-body); transition: border-color .2s;
}
.search-form-wrap input[type="search"]:focus { border-color: var(--navy); }
.search-form-wrap button {
  background: var(--red); color: #fff; border: none; padding: 12px 20px;
  border-radius: 0 3px 3px 0; cursor: pointer; transition: background .2s;
}
.search-form-wrap button:hover { background: var(--red-dark); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); margin-top: 40px; }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px; padding: 44px 0 32px;
}
.footer-logo-text { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: #fff; }
.footer-logo-text span { color: var(--gold); }
.footer-desc { font-size: 13px; line-height: 1.65; margin: 12px 0 16px; color: rgba(255,255,255,.6); }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: all .2s;
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer-socials svg { width: 13px; height: 13px; fill: currentColor; }
.footer-col h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 13px; color: rgba(255,255,255,.65); transition: color .2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-col ul li a::before { content: '›'; color: var(--gold); font-size: 15px; line-height: 1; }
.footer-col ul li a:hover { color: #fff; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-tag {
  font-size: 11px; padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 2px; color: rgba(255,255,255,.55); transition: all .2s;
}
.footer-tag:hover { border-color: var(--gold); color: var(--gold); }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.9; }
.footer-contact p a { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ===================== BACK TO TOP ===================== */
#back-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(192,38,30,.45);
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s; z-index: 999;
}
#back-top.visible { opacity: 1; transform: translateY(0); }
#back-top svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-section     { animation: fadeUp .6s ease both; }
.cat-section      { animation: fadeUp .6s ease both; animation-delay: .12s; }
.content-sidebar  { animation: fadeUp .6s ease both; animation-delay: .22s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero-grid             { grid-template-columns: 1fr; }
  .hero-main             { grid-column: 1; grid-row: 1; }
  .hero-sub              { min-height: 180px; }
  .cat-grid              { grid-template-columns: 1fr; }
  .content-sidebar       { grid-template-columns: 1fr; }
  .footer-main           { grid-template-columns: 1fr 1fr; }
  .related-grid          { grid-template-columns: repeat(2, 1fr); }
  .archive-grid          { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .site-nav .nav-list    { display: none; }
  .cat-small-grid        { grid-template-columns: 1fr; }
  .footer-main           { grid-template-columns: 1fr; }
  .news-item             { grid-template-columns: 100px 1fr; }
  .related-grid          { grid-template-columns: 1fr; }
  .archive-grid          { grid-template-columns: 1fr; }
  .hero-main .card-title { font-size: 18px; }
  .section-header h2     { font-size: 16px; }
}

/* ===== MOBILE: Logo alignment fix ===== */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header-main { padding: 12px 0; flex-wrap: wrap; gap: 10px; }
  .site-logo { margin-left: 4px; }
  .logo-text { font-size: 24px; }
  .logo-tagline { font-size: 8.5px; letter-spacing: .13em; }
  .header-ad-wrap { order: 3; width: 100%; max-width: 100%; justify-content: flex-start; margin-left: 4px; }
}
