/*
Theme Name:  IniManado
Theme URI:   https://inimanado.com
Author:      IniManado.com
Description: Portal berita terkini Sulawesi Utara. Hero Grid, Kategori, Iklan, Sidebar.
Version:     2.0.0
License:     GNU General Public License v2 or later
Text Domain: inimanado
*/

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

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

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; }
ul   { list-style: none; }

/* WordPress core */
img { display: block; max-width: 100%; height: auto; }
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ===================== LAYOUT ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding: 32px 0; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }

/* ===================== UTILITY ===================== */
.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-row { font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0; }
.meta-row span + span::before { content: '·'; margin: 0 5px; }
.section-label {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 4px 10px; 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; }

/* ===================== 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; gap: 8px; }
.topbar-socials { display: flex; gap: 12px; }
.topbar-socials a { color: rgba(255,255,255,.55); display: flex; align-items: center; transition: color .2s; }
.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; flex-shrink: 0; }
.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: 2px; }
.header-ad-wrap { flex: 1; display: flex; align-items: center; justify-content: center; max-width: 728px; }
.header-ad-wrap img { width: auto; max-width: 100%; max-height: 90px; object-fit: contain; }
.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; flex-shrink: 0;
}
.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); }
.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 { color: #fff; border-bottom-color: var(--gold); background: rgba(255,255,255,.06); }
.nav-list > li:hover .dropdown { display: block; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); 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 SLOTS ===================== */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#ede9e2,#e5e1da);
  border: 1px dashed #c8c3bb; overflow: hidden;
}
.ad-slot-label { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: #bbb; font-weight: 700; }
.ad-slot.leaderboard { width: 100%; height: 90px; border-radius: 4px; }
.ad-slot.rectangle   { width: 100%; height: 250px; border-radius: 4px; }
.ad-bar { margin: 20px 0; }

/* ===================== SECTION HEADERS ===================== */
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.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,
.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; }

/* ===================== HERO GRID ===================== */
.hero-section { margin-bottom: 28px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 520px;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Every card: flex column so overlay sits at bottom */
.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  text-decoration: none;
  background: var(--navy-mid);
}

/* Main card spans full left column */
.hero-main { grid-column: 1; grid-row: 1 / 3; }

/* Background photo — absolute behind text */
.hero-card .hc-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .5s ease;
  display: block !important;
}
.hero-card:hover .hc-img { transform: scale(1.05); }

/* Dark gradient from bottom */
.hero-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 85%;
  background: linear-gradient(to top, rgba(5,10,20,.96) 0%, rgba(5,10,20,.7) 40%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Text container — sits above gradient */
.hc-body {
  position: relative;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-main .hc-body { padding: 26px; }

.hc-cat {
  display: inline-block;
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1.5px solid var(--gold);
  padding-bottom: 1px; width: fit-content;
}
.hc-title {
  font-family: var(--font-head);
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  display: block;
}
.hero-main .hc-title  { font-size: 21px; font-weight: 800; }
.hero-sub  .hc-title  { font-size: 13.5px; font-weight: 700; }
.hc-meta { font-size: 10.5px; color: rgba(255,255,255,.65); display: flex; flex-wrap: wrap; }
.hc-meta span + span::before { content: '·'; margin: 0 4px; }

.hc-readmore {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-top: 4px;
  width: fit-content; transition: background .2s;
}
.hc-readmore:hover { background: var(--red-dark); }

/* Responsive hero */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: 280px repeat(4, 180px); height: auto; }
  .hero-main { grid-column: 1; grid-row: 1; }
  .hero-main .hc-title { font-size: 18px; }
}
@media (max-width: 520px) {
  .hero-grid { grid-template-rows: 240px repeat(4, 160px); }
  .hero-main .hc-title { font-size: 16px; }
  .hero-sub .hc-title  { font-size: 12.5px; }
}

/* ===================== CATEGORY SECTION ===================== */
.cat-section { margin-bottom: 36px; }
.cat-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }

.cat-featured {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  min-height: 280px; background: var(--navy-mid);
}
.cat-featured .hc-img {
  position: absolute; top:0; left:0; right:0; bottom:0;
  width:100%; height:100%; object-fit: cover; z-index: 0;
  transition: transform .5s; display: block !important;
}
.cat-featured:hover .hc-img { transform: scale(1.04); }
.cat-featured::after {
  content: ''; position: absolute; left:0; right:0; bottom:0; height:80%;
  background: linear-gradient(to top, rgba(5,10,20,.94) 0%, transparent 100%);
  z-index: 1; pointer-events: none;
}
.cat-featured .hc-body { position: relative; z-index: 2; }

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

@media (max-width: 860px) { .cat-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cat-small-grid { grid-template-columns: 1fr; } }

/* ===================== LATEST NEWS LIST ===================== */
.latest-section .cat-section-header h2::before { content: ''; }
.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; flex-shrink: 0; }
.news-thumb img { width: 140px; height: 90px; object-fit: cover; display: block !important; transition: transform .4s; }
.news-item:hover .news-thumb img { transform: scale(1.05); }
.news-body { display: flex; flex-direction: column; gap: 5px; }
.news-title {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--ink); line-height: 1.35; display: block; transition: color .2s;
}
.news-title:hover { color: var(--red); }
.news-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; }

@media (max-width: 520px) {
  .news-item { grid-template-columns: 90px 1fr; gap: 10px; }
  .news-thumb img { width: 90px; height: 64px; }
}

/* ===================== PAGINATION ===================== */
.im-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 40px; }
.im-pagination a,
.im-pagination span.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--ink-soft);
  background: var(--white);
  text-decoration: none;
  transition: all .2s;
  line-height: 1;
}
.im-pagination a:hover { border-color: var(--red); color: var(--red); }
.im-pagination span.current { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; }
.im-pagination .dots { border: none !important; background: none !important; color: var(--muted) !important; }

/* ===================== SIDEBAR WIDGETS ===================== */
.widget { background: var(--white); border-radius: var(--radius); 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); 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 img { width: 60px; height: 48px; object-fit: cover; border-radius: 3px; display: block !important; }
.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; transition: color .2s; }
.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); }

/* ===================== SINGLE POST ===================== */
.single-header { margin-bottom: 24px; }
.single-header .post-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.single-header h1 { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: 12px; }
.single-header .post-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.single-header .post-meta strong { color: var(--ink-soft); }
.entry-content { font-family: var(--font-read); font-size: 16.5px; line-height: 1.85; 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; }
.entry-content img { border-radius: 4px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 18px; 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: 36px; }
.related-posts h3 { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 16px; 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: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: block; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.related-card img { height: 150px; width: 100%; object-fit: cover; display: block !important; }
.related-card-body { padding: 12px; }
.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; transition: color .2s; }
.related-card:hover h4 { color: var(--red); }
.related-card small { font-size: 11px; color: var(--muted); }
@media (max-width: 700px) { .related-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }

/* ===================== ARCHIVE / CATEGORY PAGE ===================== */
.archive-header { margin-bottom: 24px; }
.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: 26px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.archive-header h1::before { content: ''; display: block; width: 6px; height: 26px; background: var(--red); border-radius: 3px; flex-shrink: 0; }
/* Category title NOT clickable by design (you're already on the page) */
/* But article cards ARE fully clickable */
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 28px; }
.archive-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; transition: transform .2s, box-shadow .2s; }
.archive-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.archive-card .ac-img { width: 100%; height: 180px; object-fit: cover; display: block !important; }
.archive-card-body { padding: 14px; }
.ac-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; margin: 7px 0 8px; display: block; transition: color .2s; }
.archive-card:hover .ac-title { color: var(--red); }
.ac-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; margin-bottom: 8px; }
.ac-meta { font-size: 11px; color: var(--muted); }
@media (max-width: 860px) { .archive-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .archive-grid { grid-template-columns: 1fr; } }

/* ===================== 404 ===================== */
.error-404-wrap { text-align: center; padding: 80px 20px; }
.error-404-wrap h1 { font-family: var(--font-head); font-size: 100px; font-weight: 800; color: var(--red); line-height: 1; }
.error-404-wrap h2 { font-family: var(--font-head); font-size: 22px; color: var(--navy); margin: 12px 0 14px; }
.error-404-wrap p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.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-wrap { display: flex; gap: 0; max-width: 480px; margin: 0 auto 28px; }
.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); }
.search-form-wrap input[type="search"]:focus { border-color: var(--navy); }
.search-form-wrap button { background: var(--red); color: #fff; border: none; padding: 0 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: 11px; 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); flex-wrap: wrap; gap: 8px; }
.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; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-main { grid-template-columns: 1fr; } }

/* ===================== BACK TO TOP ===================== */
#back-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); 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; }

/* ===================== MAIN WRAP ===================== */
.main-wrap { padding: 28px 0 0; }

/* ===================== MOBILE NAV ===================== */
@media (max-width: 600px) {
  .nav-list { display: none; }
  .header-main { flex-wrap: wrap; }
  .header-ad-wrap { order: 3; width: 100%; }
  .content-sidebar { grid-template-columns: 1fr; }
}
