/*
Theme Name: Zorain Media
Author: Zorain Media
Description: Clean hyperlocal news theme by Zorain Media
Version: 3.1.2
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
License: Private
Text Domain: zorain-media
*/

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

:root {
  --red: #dd0000;
  --black: #111111;
  --dark: #222222;
  --mid: #444444;
  --light: #777777;
  --border: #e8e8e8;
  --bg: #f4f4f4;
  --white: #ffffff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --gap: 1.25rem;
  --radius: 6px;
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =====================
   DARK MODE VARIABLES
   ===================== */
:root.dark {
  --black: #f0f0f0;
  --dark: #dddddd;
  --mid: #aaaaaa;
  --light: #888888;
  --border: #333333;
  --bg: #111111;
  --white: #1a1a1a;
  --red: #ff2222;
}
:root.dark .site-header { background: #1a1a1a; }
:root.dark .site-footer { background: #000; }

/* =====================
   LAYOUT
   ===================== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.page-body {
  max-width: var(--max);
  margin: 1.5rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--gap);
}

@media (max-width: 780px) {
  .page-body { grid-template-columns: 1fr; }
}

/* =====================
   HEADER
   ===================== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
  gap: 1rem;
}

.site-logo img { height: 48px; width: auto; }
.site-logo-text { font-size: 1.15rem; font-weight: 800; color: var(--black); letter-spacing: -0.02em; white-space: nowrap; }
.footer-logo-text { font-size: 0.95rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Search */
.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.header-search:focus-within { border-color: var(--red); }
.header-search input {
  border: none;
  background: transparent;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font);
  width: 200px;
  outline: none;
  color: var(--black);
}
.header-search button {
  background: none;
  border: none;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  color: var(--light);
  display: flex;
  align-items: center;
}
.header-search button:hover { color: var(--red); }

/* Dark mode toggle */
#dark-mode-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--mid);
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
#dark-mode-toggle:hover { border-color: var(--red); color: var(--red); }
#dark-mode-toggle .icon-moon { display: none; }
#dark-mode-toggle .icon-sun  { display: block; }
:root.dark #dark-mode-toggle .icon-sun  { display: none; }
:root.dark #dark-mode-toggle .icon-moon { display: block; }

/* Inline nav */
.header-nav {
  flex: 1;
  min-width: 0;
}
.header-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
}
.header-nav a {
  display: block;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid);
  transition: color 0.2s;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav .current-cat > a,
.header-nav .current-menu-item > a { color: var(--red); }
.header-nav .home-link a { color: var(--red); }


/* =====================
   BACK TO TOP
   ===================== */
#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-2px); }
#back-to-top svg { stroke: #fff; }

/* =====================
   ARTICLE CARDS
   ===================== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
  cursor: pointer;
}
.card:hover { box-shadow: 0 3px 14px rgba(0,0,0,0.09); border-color: #dcdcdc; }

.card-thumb { aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0; }
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}
.card:hover .card-thumb img { transform: scale(1.04) translateZ(0); }

.card-thumb.no-img {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d0000 100%);
  display: flex; align-items: center; justify-content: center;
}
.card-thumb.no-img::after {
  content: 'MM'; font-size: 2rem; font-weight: 900;
  color: var(--red); opacity: 0.4;
}

.card-body {
  padding: 0.9rem 1rem 1rem;
  flex: 1; display: flex; flex-direction: column; gap: 0.35rem;
}
.card-date { font-size: 0.7rem; color: var(--light); font-weight: 500; }
.card-title { font-size: 0.95rem; font-weight: 700; line-height: 1.35; color: var(--black); }
.card-title a:hover { color: var(--red); }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* =====================
   READING PROGRESS BAR
   ===================== */
#reading-progress {
  position: fixed; top: calc(var(--header-h, 57px) - 3px); left: 0; z-index: 9999;
  height: 3px; width: 0;
  background: var(--red);
  transition: width 0.1s linear;
  pointer-events: none;
}
/* On article pages the header's red underline becomes the progress track,
   which the bar above fills in as you scroll. */
body.single .site-header { border-bottom-color: var(--border); }

/* =====================
   CATEGORY PILL
   ===================== */
.card-cat {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--red);
  text-decoration: none;
  margin-bottom: 0.15rem;
}
.card-cat:hover { text-decoration: underline; }

/* =====================
   FEATURED FIRST CARD
   ===================== */
.card-featured {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 300px;
}
.card-featured .card-thumb {
  width: 52%;
  flex-shrink: 0;
  aspect-ratio: unset;
}
.card-featured .card-body {
  padding: 1.75rem 2rem;
  justify-content: center;
  gap: 0.65rem;
}
.card-featured .card-title {
  font-size: 1.45rem;
  line-height: 1.25;
}
.card-featured .card-excerpt {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--mid);
}
@media (max-width: 640px) {
  .card-featured { flex-direction: column; min-height: unset; }
  .card-featured .card-thumb { width: 100%; aspect-ratio: 16/9; }
  .card-featured .card-body { padding: 0.9rem 1rem 1rem; }
  .card-featured .card-title { font-size: 1.1rem; }
}

/* =====================
   HOME GRID
   ===================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .news-grid { grid-template-columns: 1fr; } }

/* =====================
   SIDEBAR
   ===================== */
.sidebar-inner {
  position: sticky;
  top: calc(var(--header-h, 110px) + 1.25rem);
}
.sidebar-widget {
  background: var(--white); border-radius: var(--radius);
  padding: 1.1rem; margin-bottom: var(--gap);
}
.widget-title {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; border-left: 3px solid var(--red);
  padding-left: 0.6rem; margin-bottom: 0.9rem; color: var(--black);
}
.sidebar-list li {
  padding: 0.55rem 0; border-bottom: 1px solid var(--border);
}
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post {
  display: flex; gap: 0.65rem; align-items: flex-start;
  text-decoration: none; color: inherit;
}
.sidebar-post:hover .sidebar-post-title { color: var(--red); }
.sidebar-thumb {
  flex-shrink: 0; width: 72px; height: 52px;
  border-radius: 2px; overflow: hidden;
}
.sidebar-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.sidebar-thumb.no-img {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d0000 100%);
  display: flex; align-items: center; justify-content: center;
}
.sidebar-thumb.no-img::after {
  content: 'MM'; font-size: 0.85rem; font-weight: 900;
  color: var(--red); opacity: 0.4;
}
.sidebar-post-body {
  display: flex; flex-direction: column; gap: 0.2rem;
}
.sidebar-post-title {
  font-size: 0.82rem; font-weight: 600; line-height: 1.35;
  color: var(--dark); transition: color 0.15s;
}
.sidebar-list .post-date {
  display: block; font-size: 0.7rem; font-weight: 400;
  color: var(--light);
}
.sidebar-ad {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px dashed var(--border);
}

/* =====================
   SINGLE POST
   ===================== */
.single-wrap {
  max-width: var(--max); margin: 1.5rem auto; padding: 0 1rem;
  display: grid; grid-template-columns: 1fr 280px; gap: var(--gap);
}
@media (max-width: 780px) { .single-wrap { grid-template-columns: 1fr; } }

.post-header { margin-bottom: 1.25rem; }
.post-title {
  font-size: 1.85rem; font-weight: 800; line-height: 1.2;
  color: var(--black); margin-bottom: 0.6rem;
}
.post-meta {
  font-size: 0.78rem; color: var(--light);
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.post-thumb {
  aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--radius); margin-bottom: 1.5rem;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-content {
  background: var(--white); border-radius: var(--radius);
  padding: 1.75rem; font-size: 1.05rem; line-height: 1.85; color: var(--dark);
}
.post-content p { margin-bottom: 1.2rem; }
.post-content p:last-child { margin-bottom: 0; }
.post-content h2 { font-size: 1.35rem; margin: 1.5rem 0 0.6rem; color: var(--black); }
.post-content h3 { font-size: 1.15rem; margin: 1.2rem 0 0.5rem; color: var(--black); }
.post-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.post-content blockquote {
  border-left: 3px solid var(--red); padding: 0.75rem 1.1rem;
  margin: 1.25rem 0; background: var(--bg);
  font-style: italic; color: var(--mid);
}
.post-content img { border-radius: var(--radius); margin: 1rem 0; }

/* =====================
   BREADCRUMBS
   ===================== */
.breadcrumbs { margin-bottom: 1rem; font-size: 0.78rem; color: var(--light); }
.breadcrumbs ul { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: 0.35rem; }
.breadcrumbs li::after { content: '›'; color: var(--border); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--light); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current] { color: var(--mid); }

/* =====================
   RELATED POSTS
   ===================== */
.related-posts {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--border);
}
.related-title {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; border-left: 3px solid var(--red);
  padding-left: 0.6rem; margin-bottom: 1rem; color: var(--black);
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.related-thumb { aspect-ratio: 16/9; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.related-card:hover .related-thumb img { transform: scale(1.04); }
.related-body { padding: 0.75rem; }
.related-body h4 { font-size: 0.85rem; font-weight: 700; line-height: 1.3; margin-top: 0.3rem; }
.related-body h4 a:hover { color: var(--red); }

/* =====================
   CATEGORY HEADER
   ===================== */
.category-header {
  margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border);
}
.category-name { font-size: 1.6rem; font-weight: 800; color: var(--black); margin-bottom: 0.35rem; }
.category-desc { font-size: 0.9rem; color: var(--mid); margin-bottom: 0.5rem; }
.category-count {
  font-size: 0.75rem; font-weight: 700; color: var(--white);
  background: var(--red); padding: 0.2rem 0.6rem;
  border-radius: 2px; display: inline-block;
}

/* =====================
   404 PAGE
   ===================== */
.not-found { padding: 2rem 0; }
.not-found-code { font-size: 6rem; font-weight: 900; color: var(--red); line-height: 1; margin-bottom: 0.5rem; }
.not-found-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.not-found-msg { color: var(--light); margin-bottom: 1.5rem; }
.not-found-search { display: flex; gap: 0.5rem; margin-bottom: 2rem; max-width: 480px; }
.not-found-search input {
  flex: 1; padding: 0.65rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: 0.9rem;
  background: var(--white); color: var(--black); outline: none;
}
.not-found-search input:focus { border-color: var(--red); }
.not-found-search button {
  background: var(--red); color: #fff; border: none; padding: 0 1.25rem;
  font-family: var(--font); font-weight: 700; font-size: 0.85rem;
  border-radius: var(--radius); cursor: pointer;
}
.not-found-latest { margin-top: 1rem; }

/* =====================
   ARTICLE DIVIDER
   ===================== */
.article-divider {
  width: 100%; height: 20px; background: var(--red);
  margin: 2.5rem 0; display: block; border: none;
}

/* =====================
   SPINNER
   ===================== */
.load-spinner {
  width: 24px; height: 24px; border: 2px solid var(--border);
  border-top-color: var(--red); border-radius: 50%;
  animation: zm-spin 0.7s linear infinite; margin: 0 auto;
}

/* =====================
   FOOTER
   ===================== */
.site-footer { background: var(--black); color: #999; margin-top: 2.5rem; }
.footer-main {
  max-width: var(--max); margin: 0 auto; padding: 2rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo img { height: 36px; width: auto; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links ul { display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-links a { font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.78rem; }
.footer-social { border-top: 1px solid #222; padding: 0.6rem 1rem; }
.footer-social-inner { max-width: var(--max); margin: 0 auto; display: flex; gap: 0.5rem; justify-content: center; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: rgba(255,255,255,0.07); border-radius: 50%; color: #777; transition: background 0.2s, color 0.2s; }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-bottom {
  border-top: 1px solid #222; text-align: center;
  padding: 0.6rem 1rem; font-size: 0.72rem; color: #555;
}

/* =====================
   SEARCH RESULTS
   ===================== */
.search-header { padding: 1rem 0 0.5rem; }
.search-header h1 { font-size: 1.2rem; font-weight: 700; color: var(--black); }
.search-header h1 span { color: var(--red); }

/* =====================
   PAGINATION
   ===================== */
.pagination { display: flex; gap: 0.5rem; justify-content: center; padding: 1rem 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 0.4rem 0.75rem; border-radius: var(--radius); font-size: 0.82rem; font-weight: 600;
  background: var(--white); color: var(--dark); border: 1px solid var(--border);
}
.pagination .current { background: var(--red); color: var(--white); border-color: var(--red); }
.pagination a:hover { border-color: var(--red); color: var(--red); }

/* =====================
   UTILITY
   ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }


/* =====================
   HAMBURGER BUTTON
   ===================== */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}
#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================
   MOBILE MENU OVERLAY
   ===================== */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
#mobile-menu.open { transform: translateX(0); }

#mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
#mobile-backdrop.open { display: block; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 3px solid var(--red);
}

#mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mid);
  display: flex;
  align-items: center;
  padding: 4px;
}
#mobile-menu-close:hover { color: var(--red); }

.mobile-search {
  display: flex;
  margin: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.mobile-search input {
  flex: 1;
  border: none;
  padding: 0.6rem 0.75rem;
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--black);
  outline: none;
}
.mobile-search button {
  background: var(--red);
  border: none;
  padding: 0 0.75rem;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
}

.mobile-nav { padding: 0.5rem 0; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a {
  display: block;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover {
  color: var(--red);
  background: var(--bg);
}
.mobile-nav .home-link a { color: var(--red); }

/* =====================
   MOBILE RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop search */
  #hamburger { display: flex; }
  .header-search { display: none; }

  /* Logo smaller */
  .site-logo img { height: 36px; }

  /* Hide desktop nav */
  .header-nav { display: none; }
  .header-top { gap: 0.5rem; }

/* Grid adjustments */
  .page-body { grid-template-columns: 1fr; margin: 1rem auto; }
  .single-wrap { grid-template-columns: 1fr; }

  /* Post title smaller */
  .post-title { font-size: 1.4rem; }
  .post-content { padding: 1.25rem; }

  /* Related grid single col */
  .related-grid { grid-template-columns: 1fr; }

  /* Footer stack */
  .footer-main { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* Sidebar goes below on mobile */
  .sidebar { order: 2; }
  main { order: 1; }

  /* Not found search full width */
  .not-found-search { max-width: 100%; }
}

@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
  .header-top { padding: 0.5rem 0.75rem; }
  .not-found-code { font-size: 4rem; }
}


/* =====================
   CARD EXCERPT
   ===================== */
.card-excerpt {
  font-size: 0.8rem;
  color: var(--light);
  line-height: 1.5;
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================
   BREAKING POST (sticky)
   ===================== */
.breaking-post {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border-left: 4px solid var(--red);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.breaking-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.breaking-post-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  flex: 1;
  min-width: 0;
}
.breaking-post-title:hover { color: var(--red); }
.breaking-post-meta {
  font-size: 0.72rem;
  color: var(--light);
  white-space: nowrap;
  flex-shrink: 0;
}

/* =====================
   SHARE BAR
   ===================== */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.share-bar-bottom {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.share-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--light);
  margin-right: 0.25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  color: #fff;
}
.share-btn:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter  { background: #000; }
.share-btn.copy-link {
  background: var(--bg);
  color: var(--dark);
  border: 1.5px solid var(--border);
}
.share-btn.copy-link:hover { border-color: var(--red); color: var(--red); }

@media (max-width: 480px) {
  .share-btn { padding: 0.4rem 0.65rem; font-size: 0.75rem; }
  .share-label { width: 100%; }
}

/* =====================
   CARD ENTRANCE ANIMATION
   ===================== */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-new {
  animation: cardIn 0.35s ease both;
}

/* =====================
   LOAD MORE
   ===================== */
#load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 0 1rem;
}

#load-more-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.75rem;
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
#load-more-btn:hover:not(:disabled) {
  background: var(--red);
  color: var(--white);
}
#load-more-btn:active:not(:disabled) { transform: scale(0.97); }
#load-more-btn:disabled { opacity: 0.45; cursor: default; }

#load-more-btn .btn-spinner {
  display: none;
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: zm-spin 0.65s linear infinite;
}
#load-more-btn.is-loading .btn-spinner { display: block; }
#load-more-btn.is-loading .btn-label  { opacity: 0.7; }

@keyframes zm-spin {
  to { transform: rotate(360deg); }
}

/* =====================
   WHATSAPP GROUP — FAB
   ===================== */
.wa-fab {
  display: none;
}
@media (max-width: 780px) {
  .wa-fab {
    position: fixed;
    bottom: 1.25rem;
    left: 1rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem;
    background: var(--white);
    color: var(--dark);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    max-width: 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: max-width 0.3s ease, padding 0.3s ease, box-shadow 0.2s;
    text-decoration: none;
  }
  .wa-fab:hover, .wa-fab:focus-visible {
    max-width: 16rem;
    padding: 0.6rem 1rem 0.6rem 0.7rem;
    color: var(--dark);
    box-shadow: 0 4px 18px rgba(0,0,0,0.16);
    outline: none;
  }
  .wa-fab svg { color: #25D366; flex-shrink: 0; width: 20px; height: 20px; }
}

/* =====================
   WHATSAPP GROUP — SIDEBAR BUTTON
   ===================== */
.wa-group-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: #1a7a40;
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--gap);
  transition: background 0.2s, transform 0.15s;
}
.wa-group-btn:hover { background: #155f32; color: #fff; transform: translateY(-1px); }
.wa-group-btn svg  { flex-shrink: 0; }

/* Shine sweep */
.wa-group-btn::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 0;
  width: 55%;
  height: 120%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.65) 50%, transparent 70%);
  transform: translateX(-160%);
  animation: wa-shine 2.5s ease-in-out infinite;
}
@keyframes wa-shine {
  0%   { transform: translateX(-160%); }
  35%  { transform: translateX(280%); }
  100% { transform: translateX(280%); }
}
