/* ============================================================
   EVIOR MAGAZINE — Main Stylesheet
   Preserves 100% of original design: layout, spacing, fonts,
   colors, and animations. Adds hover transitions & responsive.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #e8232a;
  --dark: #111;
  --gray: #555;
  --light-gray: #888;
  --border: #e5e5e5;
  --bg: #f4f4f4;
  --white: #fff;
  --font-head: 'Inter', serif;
  --font-body: 'DM sans', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s ease;
  --transition-slow: 0.5s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===================== TOP BAR ===================== */
.topbar {
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
  font-family: var(--font-body);
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-weather { display: flex; align-items: center; gap: 5px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-right a { color: #ccc; font-size: 13px; transition: color var(--transition-fast); }
.topbar-right a:hover { color: #fff; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a { color: #ccc; font-size: 14px; transition: color var(--transition-fast); }
.topbar-social a:hover { color: var(--red); }

/* ===================== HEADER ===================== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow var(--transition-fast);
}
.header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.logo { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--dark); letter-spacing: -1px; transition: opacity var(--transition-fast); }
.logo:hover { opacity: .85; }
.logo span { color: var(--red); }

/* Custom logo image — constrain to header height */
.logo-img { display: flex; align-items: center; }
.logo-img a { display: flex; align-items: center; line-height: 0; }
.logo-img .custom-logo-link { display: flex; align-items: center; }
.logo-img img,
.logo-img .custom-logo { 
  display: block !important;
  width: auto !important;
  max-width: 180px !important;
  max-height: 46px !important;
  height: auto !important;
  object-fit: contain !important;
}
@media (max-width: 640px) {
  .logo-img img,
  .logo-img .custom-logo {
    max-width: 130px !important;
    max-height: 38px !important;
  }
}
nav { display: flex; align-items: center; gap: 2px; }
nav a {
  font-size: 14px; font-weight: 600; color: var(--dark); padding: 8px 12px;
  border-radius: 4px; transition: color var(--transition-fast), background var(--transition-fast); white-space: nowrap;
  display: flex; align-items: center; gap: 3px; position: relative;
}
nav a::after {
  content: ''; position: absolute; bottom: 2px; left: 12px; right: 12px;
  height: 2px; background: var(--red); transform: scaleX(0);
  transition: transform var(--transition-med); transform-origin: center;
}
nav a:hover { color: var(--red); }
nav a:hover::after { transform: scaleX(1); }
nav a .arrow { font-size: 10px; opacity: .5; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative; width: 38px; height: 38px; display: flex; align-items: center;
  justify-content: center; background: #f0f0f0; border-radius: 50%; cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.cart-btn:hover { background: var(--border); transform: scale(1.08); }
.cart-badge {
  position: absolute; top: -2px; right: -2px; width: 16px; height: 16px;
  background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.search-btn {
  width: 38px; height: 38px; display: flex; align-items: center;
  justify-content: center; background: #f0f0f0; border-radius: 50%; cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.search-btn:hover { background: var(--border); transform: scale(1.08); }
.register-btn {
  background: var(--red); color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 20px; border-radius: 4px; transition: background var(--transition-fast), transform var(--transition-fast); white-space: nowrap;
}
.register-btn:hover { background: #c41c22; transform: translateY(-1px); }

/* ===================== SEARCH OVERLAY ===================== */
.search-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.7); z-index: 999; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition-fast);
}
.search-overlay.active { display: flex; opacity: 1; }
.search-overlay-inner { width: 100%; max-width: 600px; padding: 0 20px; }
.search-overlay input {
  width: 100%; padding: 18px 24px; font-size: 22px; border: none;
  border-radius: 6px; outline: none; font-family: var(--font-body);
}
.search-overlay-close {
  position: absolute; top: 24px; right: 24px; color: #fff;
  font-size: 30px; cursor: pointer; line-height: 1;
}

/* ===================== MAIN CONTAINER ===================== */
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ===================== FEATURED STRIP ===================== */
.featured-strip { border-bottom: 1px solid var(--border); padding: 14px 0; }
.featured-strip-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.strip-card { display: flex; gap: 12px; align-items: flex-start; }
.strip-card-img {
  width: 90px; height: 70px; flex-shrink: 0; border-radius: 4px; overflow: hidden;
  transition: transform var(--transition-med);
}
.strip-card:hover .strip-card-img { transform: scale(1.04); }
.strip-card-img img { width: 100%; height: 100%; }
.strip-card-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; transition: color var(--transition-fast); }
.strip-card:hover .strip-card-title { color: var(--red); }
.strip-card-excerpt { font-size: 12px; color: var(--gray); line-height: 1.4; margin-bottom: 6px; }
.tag { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .5px; }
.meta { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--light-gray); }
.meta .tag { margin: 0; }
.dot { color: var(--border); font-size: 14px; }

/* ===================== HERO + SIDEBAR LAYOUT ===================== */
.hero-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 30px;
  padding: 24px 0;
  max-width: 1320px; margin: 0 auto; padding-left: 20px; padding-right: 20px;
}

/* ===================== SLIDER ===================== */
.slider { position: relative; border-radius: 8px; overflow: hidden; }
.slide { position: relative; height: 420px; cursor: pointer; display: none; }
.slide.active { display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  padding: 24px 24px 20px;
}
.slide-author { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.slide-author-img { width: 28px; height: 28px; border-radius: 50%; background: #ccc; overflow: hidden; flex-shrink: 0; }
.slide-author-name { color: #fff; font-size: 13px; font-weight: 600; }
.slide-title { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: #fff; line-height: 1.2; }
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between; width: 100%; padding: 0 16px; pointer-events: none;
}
.slider-btn {
  width: 40px; height: 40px; background: rgba(255,255,255,.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  pointer-events: all; border: none; font-size: 18px; color: var(--red);
  transition: background var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.slider-btn:hover { background: var(--white); transform: scale(1.1); }
.slider-dots {
  position: absolute; bottom: 16px; right: 20px;
  display: flex; gap: 6px; z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5);
  cursor: pointer; transition: background var(--transition-fast), transform var(--transition-fast);
}
.slider-dot.active { background: #fff; transform: scale(1.3); }

/* ===================== SIDEBAR ===================== */
.sidebar-section-title {
  font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--dark);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--dark);
}
.most-loved-list { display: flex; flex-direction: column; gap: 14px; }
.most-loved-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
  transition: transform var(--transition-fast);
}
.most-loved-item:hover { transform: translateX(4px); }
.most-loved-item:last-child { border-bottom: none; }
.ml-img { width: 80px; height: 62px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.ml-img img { transition: transform var(--transition-med); }
.most-loved-item:hover .ml-img img { transform: scale(1.08); }
.ml-author { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.ml-author-img { width: 20px; height: 20px; border-radius: 50%; background: #ccc; overflow: hidden; flex-shrink: 0; }
.ml-author-name { font-size: 12px; font-weight: 600; }
.ml-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; transition: color var(--transition-fast); }
.ml-title:hover { color: var(--red); }

/* ===================== SECTION HEADER ===================== */
.section-header { margin-bottom: 24px; }
.section-title {
  font-family: var(--font-head); font-size: 26px; font-weight: 800;
  border-left: 4px solid var(--red); padding-left: 12px; margin-bottom: 4px;
}
.section-subtitle { font-size: 13px; color: var(--light-gray); margin-left: 16px; }

/* ===================== MOST RECENT ===================== */
.most-recent-section { padding: 30px 0; border-top: 1px solid var(--border); }
.most-recent-grid { display: grid; grid-template-columns: 380px 1fr; gap: 30px; }
.most-recent-list { display: flex; flex-direction: column; gap: 20px; }
.mr-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
  transition: transform var(--transition-fast);
}
.mr-item:hover { transform: translateX(4px); }
.mr-item:last-child { border-bottom: none; }
.mr-num { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: #ddd; line-height: 1; flex-shrink: 0; width: 40px; transition: color var(--transition-fast); }
.mr-item:hover .mr-num { color: var(--red); }
.mr-author { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.mr-author-img { width: 22px; height: 22px; border-radius: 50%; background: #ccc; overflow: hidden; }
.mr-author-name { font-size: 12px; font-weight: 600; }
.mr-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; transition: color var(--transition-fast); }
.mr-title:hover { color: var(--red); }

/* ===================== RECENT CARDS ===================== */
.recent-cards { display: flex; flex-direction: column; gap: 0; }
.recent-card-large {
  position: relative; height: 220px; border-radius: 6px; overflow: hidden;
  margin-bottom: 6px; cursor: pointer;
}
.recent-card-large img { width: 100%; height: 100%; transition: transform var(--transition-slow); }
.recent-card-large:hover img { transform: scale(1.06); }
.recent-card-large .card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: 16px;
}
.recent-card-large .card-author { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.recent-card-large .card-author img { width: 24px; height: 24px; border-radius: 50%; }
.recent-card-large .card-author span { color: #fff; font-size: 12px; font-weight: 600; }
.recent-card-large .card-title { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: #fff; line-height: 1.2; }
.recent-card-large .card-meta { display: flex; gap: 6px; font-size: 11px; color: rgba(255,255,255,.8); margin-top: 6px; }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.recent-card-sm {
  position: relative; height: 210px; border-radius: 6px; overflow: hidden; cursor: pointer;
}
.recent-card-sm img { width: 100%; height: 100%; transition: transform var(--transition-slow); }
.recent-card-sm:hover img { transform: scale(1.07); }
.recent-card-sm .card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); padding: 12px; }
.recent-card-sm .card-title { font-family: var(--font-head); font-size: 14px; font-weight: 800; color: #fff; line-height: 1.2; }
.recent-card-sm .card-meta { font-size: 10px; color: rgba(255,255,255,.75); margin-top: 4px; }
.recent-card-sm .card-author { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.recent-card-sm .card-author img { width: 20px; height: 20px; border-radius: 50%; }
.recent-card-sm .card-author span { color: #fff; font-size: 11px; font-weight: 600; }
.recent-card-wide {
  position: relative; height: 220px; border-radius: 6px; overflow: hidden;
  margin-top: 6px; cursor: pointer;
}
.recent-card-wide img { width: 100%; height: 100%; transition: transform var(--transition-slow); }
.recent-card-wide:hover img { transform: scale(1.05); }
.recent-card-wide .card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); padding: 16px; }
.recent-card-wide .card-author { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.recent-card-wide .card-author img { width: 24px; height: 24px; border-radius: 50%; }
.recent-card-wide .card-author span { color: #fff; font-size: 12px; font-weight: 600; }
.recent-card-wide .card-title { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: #fff; }
.recent-card-wide .card-excerpt { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 4px; }
.recent-card-wide .card-meta { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 6px; }

/* ===================== ARTICLE CARDS (3-col) ===================== */
.sports-section { padding: 30px 0; border-top: 1px solid var(--border); }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { cursor: pointer; }
.article-card-img { height: 200px; border-radius: 6px; overflow: hidden; margin-bottom: 14px; }
.article-card-img img { transition: transform var(--transition-slow); }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-author { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.article-author-img { width: 26px; height: 26px; border-radius: 50%; background: #ccc; overflow: hidden; }
.article-author-name { font-size: 13px; font-weight: 600; }
.article-title { font-family: var(--font-head); font-size: 18px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; transition: color var(--transition-fast); }
.article-title:hover { color: var(--red); }
.article-excerpt { font-size: 13px; color: var(--gray); line-height: 1.5; margin-bottom: 8px; }

/* ===================== TODAY HIGHLIGHTS (dark) ===================== */
.highlights-section { background: #111; padding: 36px 0; margin: 10px 0; }
.highlights-section .section-title { color: #fff; border-color: var(--red); }
.highlights-section .section-subtitle { color: #aaa; }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.highlight-card { cursor: pointer; }
.highlight-card-img { height: 160px; border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.highlight-card-img img { transition: transform var(--transition-slow); }
.highlight-card:hover .highlight-card-img img { transform: scale(1.05); }
.highlight-author { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.highlight-author-img { width: 22px; height: 22px; border-radius: 50%; background: #444; }
.highlight-author-name { font-size: 12px; color: #ccc; font-weight: 600; }
.highlight-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; transition: color var(--transition-fast); }
.highlight-card:hover .highlight-title { color: var(--red); }
.highlight-meta { font-size: 11px; color: #777; margin-top: 5px; }

/* ===================== RECOMMENDED ===================== */
.recommended-section { padding: 30px 0; border-top: 1px solid var(--border); }
.recommended-grid { display: grid; grid-template-columns: 360px 1fr 320px; gap: 30px; }
.rec-list { display: flex; flex-direction: column; gap: 16px; }
.rec-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
  transition: transform var(--transition-fast);
}
.rec-item:hover { transform: translateX(4px); }
.rec-item:last-child { border-bottom: none; }
.rec-img { width: 110px; height: 82px; flex-shrink: 0; border-radius: 5px; overflow: hidden; }
.rec-img img { transition: transform var(--transition-med); }
.rec-item:hover .rec-img img { transform: scale(1.07); }
.rec-author { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.rec-author-img { width: 20px; height: 20px; border-radius: 50%; background: #ccc; }
.rec-author-name { font-size: 12px; font-weight: 600; }
.rec-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 5px; transition: color var(--transition-fast); }
.rec-title:hover { color: var(--red); }
.center-feature { position: relative; border-radius: 8px; overflow: hidden; }
.cf-img { height: 100%; min-height: 400px; }
.cf-img img { width: 100%; height: 100%; }
.cf-right { display: flex; flex-direction: column; gap: 0; }
.cf-main { font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; transition: color var(--transition-fast); }
.cf-main:hover { color: var(--red); }
.cf-excerpt { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.cf-sub-list { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.cf-sub-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
  transition: transform var(--transition-fast);
}
.cf-sub-item:hover { transform: translateX(4px); }
.cf-sub-item:last-child { border-bottom: none; }
.cf-sub-img { width: 80px; height: 60px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.cf-sub-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; line-height: 1.3; transition: color var(--transition-fast); }
.cf-sub-title:hover { color: var(--red); }

/* ===================== DON'T MISS ===================== */
.dont-miss-section { padding: 30px 0; border-top: 1px solid var(--border); }
.dont-miss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dm-left { display: flex; flex-direction: column; gap: 12px; }
.dm-card {
  position: relative; height: 210px; border-radius: 6px; overflow: hidden; cursor: pointer;
}
.dm-card img { width: 100%; height: 100%; transition: transform var(--transition-slow); }
.dm-card:hover img { transform: scale(1.06); }
.dm-card .card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); padding: 14px; }
.dm-card .card-author { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.dm-card .card-author img { width: 22px; height: 22px; border-radius: 50%; }
.dm-card .card-author span { color: #fff; font-size: 12px; font-weight: 600; }
.dm-card .card-title { font-family: var(--font-head); font-size: 16px; font-weight: 800; color: #fff; line-height: 1.3; }
.dm-card .card-meta { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 5px; }
.dm-right-top {
  position: relative; height: 230px; border-radius: 6px; overflow: hidden;
  margin-bottom: 16px; cursor: pointer;
}
.dm-right-top img { width: 100%; height: 100%; transition: transform var(--transition-slow); }
.dm-right-top:hover img { transform: scale(1.05); }
.dm-article-title { font-family: var(--font-head); font-size: 20px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; transition: color var(--transition-fast); }
.dm-article-title:hover { color: var(--red); }
.dm-article-excerpt { font-size: 13px; color: var(--gray); line-height: 1.5; }

/* ===================== CTA BANNER ===================== */
.cta-banner { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 30px 0; text-align: center; }
.cta-banner h3 { font-family: var(--font-head); font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.cta-btn {
  display: inline-block; background: var(--red); color: #fff; font-size: 14px;
  font-weight: 700; padding: 12px 30px; border-radius: 4px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.cta-btn:hover { background: #c41c22; transform: translateY(-2px); }

/* ===================== CATEGORIES ===================== */
.categories-section { padding: 30px 0; border-top: 1px solid var(--border); }
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-card {
  background: var(--bg); border-radius: 6px; padding: 16px 12px; text-align: center;
  cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-med);
}
.cat-card:hover { background: var(--red); color: #fff; transform: translateY(-4px); }
.cat-icon { font-size: 28px; margin-bottom: 6px; transition: transform var(--transition-med); }
.cat-card:hover .cat-icon { transform: scale(1.2); }
.cat-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.cat-count { font-size: 11px; opacity: .6; }

/* ===================== FEATURED NEWS GRID ===================== */
.featured-news-section { padding: 30px 0; border-top: 1px solid var(--border); background: var(--bg); }
.featured-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.fn-card {
  background: var(--white); border-radius: 6px; overflow: hidden; cursor: pointer;
  transition: box-shadow var(--transition-med), transform var(--transition-med);
}
.fn-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-4px); }
.fn-img { height: 170px; overflow: hidden; }
.fn-img img { transition: transform var(--transition-slow); }
.fn-card:hover .fn-img img { transform: scale(1.05); }
.fn-content { padding: 14px; }
.fn-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; transition: color var(--transition-fast); }
.fn-title:hover { color: var(--red); }
.fn-meta { font-size: 11px; color: var(--light-gray); }

/* ===================== AVATAR ===================== */
.avatar {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e8232a 0%, #c41c22 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700;
}

/* ===================== FOOTER ===================== */
footer { background: #111; color: #ccc; padding: 40px 0 20px; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-logo { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--red); }
.footer-desc { font-size: 13px; color: #888; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 32px; height: 32px; background: #222; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 13px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.footer-social a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.footer-col-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { font-size: 13px; color: #888; transition: color var(--transition-fast), padding-left var(--transition-fast); display: inline-block; }
.footer-links li a:hover { color: var(--red); padding-left: 4px; }
.footer-bottom { border-top: 1px solid #222; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 12px; color: #555; }

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  background: var(--red); color: #fff; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 18px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(232,35,42,.4);
  transition: transform var(--transition-med), opacity var(--transition-med);
  opacity: 0; pointer-events: none; z-index: 200;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-4px) scale(1.1); }

/* ===================== PLACEHOLDER GRADIENTS ===================== */
.img-placeholder { width: 100%; height: 100%; }
.grad-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.grad-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.grad-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.grad-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.grad-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.grad-6 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.grad-7 { background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%); }
.grad-8 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.grad-9 { background: linear-gradient(135deg, #fd7043 0%, #ff8a65 100%); }
.grad-10 { background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%); }
.grad-11 { background: linear-gradient(135deg, #373b44 0%, #4286f4 100%); }
.grad-12 { background: linear-gradient(135deg, #e96443 0%, #904e95 100%); }
.grad-dark { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.grad-warm { background: linear-gradient(135deg, #bf360c 0%, #e64a19 100%); }
.grad-green { background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%); }
.grad-blue { background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%); }
.grad-sport1 { background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%); }
.grad-sport2 { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%); }
.grad-sport3 { background: linear-gradient(135deg, #b71c1c 0%, #c62828 100%); }
.img-label {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 11px; font-weight: 600; text-align: center;
  height: 100%; padding: 8px;
}

/* ===================== HAMBURGER & MOBILE NAV ===================== */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px;
}
.hamburger span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s; }
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5); z-index: 500;
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; left: 0; width: 280px; height: 100%; background: #fff;
  padding: 24px 20px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(-100%); transition: transform var(--transition-med);
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close { font-size: 24px; cursor: pointer; margin-bottom: 20px; align-self: flex-end; }
.mobile-nav-panel a {
  font-size: 16px; font-weight: 600; padding: 10px 0;
  border-bottom: 1px solid var(--border); display: block;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.mobile-nav-panel a:hover { color: var(--red); padding-left: 8px; }

/* ===================== SINGLE POST — FULL REDESIGN ===================== */

/* --- Breadcrumb --- */
.sp-breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 0; }
.sp-breadcrumb-inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--light-gray); }
.sp-breadcrumb-inner a { color: var(--gray); transition: color var(--transition-fast); }
.sp-breadcrumb-inner a:hover { color: var(--red); }
.sp-bc-sep { opacity: .4; }
.sp-bc-current { color: var(--dark); font-weight: 600; }

/* --- Hero --- */
.sp-hero { position: relative; height: 520px; overflow: hidden; }
.sp-hero-img { position: absolute; inset: 0; }
.sp-hero-img img,
.sp-hero-img div { width: 100%; height: 100%; object-fit: cover; }
.sp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.85) 100%);
}
.sp-hero-content { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.sp-hero-inner { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px 40px; }
.sp-hero-cat {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 3px; margin-bottom: 14px;
  transition: background var(--transition-fast);
}
.sp-hero-cat:hover { background: #c41c22; }
.sp-hero-title {
  font-family: var(--font-head); font-size: 42px; font-weight: 800;
  color: #fff; line-height: 1.15; max-width: 820px;
  margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.sp-hero-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.sp-hero-author { display: flex; align-items: center; gap: 12px; }
.sp-hero-avatar {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255,255,255,.6); flex-shrink: 0;
}
.sp-hero-avatar img,
.sp-hero-avatar div { width: 100%; height: 100%; }
.sp-hero-author-info { display: flex; flex-direction: column; gap: 2px; }
.sp-hero-author-name { color: #fff; font-size: 14px; font-weight: 700; }
.sp-hero-date { color: rgba(255,255,255,.65); font-size: 12px; }
.sp-hero-stats { display: flex; align-items: center; gap: 16px; }
.sp-hero-stat {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.75); font-size: 12px;
}
.sp-hero-stat svg { opacity: .8; }

/* --- Main layout --- */
.sp-wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.sp-layout { display: grid; grid-template-columns: 1fr 320px; gap: 60px; padding: 48px 0 60px; position: relative; }

/* --- Floating share --- */
.sp-share-float {
  position: sticky; top: 90px; float: left; margin-left: -80px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 44px;
}
.sp-share-float-label { font-size: 10px; font-weight: 700; color: var(--light-gray); text-transform: uppercase; letter-spacing: .5px; writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 4px; }
.sp-share-ico {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.sp-share-ico:hover { transform: scale(1.14) translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.sp-share-fb  { background: #1877f2; }
.sp-share-tw  { background: #000; }
.sp-share-li  { background: #0a66c2; }
.sp-share-wa  { background: #25d366; }

/* --- Article --- */
.sp-article { position: relative; }
.sp-content { font-size: 17px; line-height: 1.85; color: #2d2d2d; }
.sp-content > p:first-child { font-size: 19px; line-height: 1.7; color: var(--dark); font-weight: 400; }
.sp-content h2 { font-family: var(--font-head); font-size: 28px; font-weight: 800; margin: 40px 0 14px; color: var(--dark); }
.sp-content h3 { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin: 32px 0 10px; color: var(--dark); }
.sp-content h4 { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.sp-content p { margin-bottom: 20px; }
.sp-content a { color: var(--red); border-bottom: 1px solid rgba(232,35,42,.25); transition: border-color var(--transition-fast); }
.sp-content a:hover { border-color: var(--red); }
.sp-content img { border-radius: 8px; margin: 32px 0; width: 100%; height: auto; }
.sp-content figure { margin: 32px 0; }
.sp-content figcaption { font-size: 12px; color: var(--light-gray); text-align: center; margin-top: 8px; }
.sp-content blockquote {
  border-left: 4px solid var(--red); padding: 20px 24px; margin: 32px 0;
  background: var(--bg); border-radius: 0 6px 6px 0;
  font-style: italic; color: var(--gray); font-size: 18px; line-height: 1.7;
}
.sp-content blockquote p { margin: 0; }
.sp-content ul, .sp-content ol { padding-left: 28px; margin-bottom: 20px; }
.sp-content li { margin-bottom: 8px; }
.sp-content ul li::marker { color: var(--red); }
.sp-content strong { color: var(--dark); font-weight: 700; }
.sp-content code { background: #f1f1f1; padding: 2px 7px; border-radius: 4px; font-size: 14px; font-family: monospace; }
.sp-content pre { background: #1a1a1a; color: #e2e2e2; padding: 20px; border-radius: 6px; overflow-x: auto; margin: 24px 0; }
.sp-content pre code { background: none; padding: 0; color: inherit; }
.sp-content hr { border: none; border-top: 2px solid var(--border); margin: 40px 0; }
.sp-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.sp-content th { background: var(--dark); color: #fff; padding: 10px 14px; text-align: left; font-weight: 700; }
.sp-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.sp-content tr:nth-child(even) td { background: var(--bg); }

/* --- Tags --- */
.sp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.sp-tags-label { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; margin-right: 4px; }
.sp-tag {
  background: var(--bg); color: var(--gray); font-size: 12px; font-weight: 600;
  padding: 5px 13px; border-radius: 20px; border: 1px solid var(--border);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.sp-tag:hover { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-2px); }

/* --- Bottom share bar --- */
.sp-share-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 28px; padding: 18px 20px;
  background: var(--bg); border-radius: 8px; border: 1px solid var(--border);
}
.sp-share-bar-label { font-size: 13px; font-weight: 700; color: var(--dark); white-space: nowrap; }
.sp-share-bar-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.sp-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 4px; font-size: 12px; font-weight: 700;
  color: #fff; border: 1px solid transparent;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.sp-share-btn:hover { transform: translateY(-2px); opacity: .9; }
.sp-share-fb-btn { background: #1877f2; }
.sp-share-tw-btn { background: #000; }
.sp-share-li-btn { background: #0a66c2; }
.sp-share-copy-btn { background: var(--bg); color: var(--dark); border-color: var(--border); }
.sp-share-copy-btn:hover { background: var(--dark); color: #fff; opacity: 1; }

/* --- Author box --- */
.sp-author-box {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px; margin-top: 48px;
  position: relative; overflow: hidden;
}
.sp-author-box::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--red);
}
.sp-author-avatar {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; border: 3px solid var(--border);
}
.sp-author-avatar img,
.sp-author-avatar div { width: 100%; height: 100%; }
.sp-author-label { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.sp-author-name { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--dark); display: block; margin-bottom: 8px; transition: color var(--transition-fast); }
.sp-author-name:hover { color: var(--red); }
.sp-author-bio { font-size: 13px; color: var(--gray); line-height: 1.65; margin-bottom: 10px; }
.sp-author-link { font-size: 13px; font-weight: 700; color: var(--red); transition: opacity var(--transition-fast); }
.sp-author-link:hover { opacity: .75; }

/* --- Prev/Next nav --- */
.sp-post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 48px; border-top: 1px solid var(--border); padding-top: 28px;
}
.sp-nav-item {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border: 1px solid var(--border); border-radius: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.sp-nav-item:hover { border-color: var(--red); box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.sp-nav-dir {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--light-gray);
}
.sp-nav-dir-right { justify-content: flex-end; }
.sp-nav-inner { display: flex; align-items: center; gap: 12px; }
.sp-nav-inner-right { justify-content: flex-end; }
.sp-nav-img { width: 64px; height: 48px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.sp-nav-img img,
.sp-nav-img div { width: 100%; height: 100%; }
.sp-nav-cat { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 3px; }
.sp-nav-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--dark); transition: color var(--transition-fast); }
.sp-nav-item:hover .sp-nav-title { color: var(--red); }

/* --- Comments section --- */
.sp-comments { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.sp-comments .comment-form input,
.sp-comments .comment-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; font-family: var(--font-body);
  outline: none; transition: border-color var(--transition-fast);
}
.sp-comments .comment-form input:focus,
.sp-comments .comment-form textarea:focus { border-color: var(--red); }
.sp-comments .comment-form textarea { min-height: 120px; resize: vertical; }
.sp-comments .submit {
  background: var(--red); color: #fff; border: none; padding: 11px 28px;
  border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.sp-comments .submit:hover { background: #c41c22; transform: translateY(-1px); }
.sp-comments .comment-list { list-style: none; margin-bottom: 32px; }
.sp-comments .comment { padding: 20px 0; border-bottom: 1px solid var(--border); }
.sp-comments .comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sp-comments .comment-author-name { font-weight: 700; font-size: 14px; }
.sp-comments .comment-date { font-size: 12px; color: var(--light-gray); }
.sp-comments .comment-body p { font-size: 14px; color: var(--gray); line-height: 1.65; }
.sp-comments h2, .sp-comments h3 { font-family: var(--font-head); font-size: 22px; font-weight: 800; margin-bottom: 24px; }

/* --- Related posts --- */
.sp-related { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.sp-section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  border-left: 4px solid var(--red); padding-left: 12px; margin-bottom: 24px;
}
.sp-see-all { font-size: 13px; font-weight: 700; color: var(--red); border: none; margin-left: auto; transition: opacity var(--transition-fast); }
.sp-see-all:hover { opacity: .7; }
.sp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sp-related-card {
  border-radius: 8px; overflow: hidden; border: 1px solid var(--border);
  transition: box-shadow var(--transition-med), transform var(--transition-med);
}
.sp-related-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-4px); }
.sp-related-img { height: 170px; overflow: hidden; }
.sp-related-img img,
.sp-related-img div { width: 100%; height: 100%; transition: transform var(--transition-slow); }
.sp-related-card:hover .sp-related-img img,
.sp-related-card:hover .sp-related-img div { transform: scale(1.06); }
.sp-related-body { padding: 16px; }
.sp-related-title {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  line-height: 1.35; margin: 6px 0 10px; color: var(--dark);
  transition: color var(--transition-fast);
}
.sp-related-card:hover .sp-related-title { color: var(--red); }
.sp-related-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--light-gray); }
.sp-related-author { display: flex; align-items: center; gap: 6px; }
.sp-related-avatar { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.sp-related-avatar img,
.sp-related-avatar div { width: 100%; height: 100%; }

/* ===================== SIDEBAR ===================== */
.sp-sidebar { display: flex; flex-direction: column; gap: 0; }

.sp-widget {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 22px; margin-bottom: 24px;
}
.sp-widget:last-child { margin-bottom: 0; }

.sp-widget-title {
  font-family: var(--font-head); font-size: 17px; font-weight: 800;
  border-bottom: 2px solid var(--dark); padding-bottom: 10px; margin-bottom: 18px;
  position: relative;
}
.sp-widget-title::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 40px; height: 2px; background: var(--red);
}

/* Popular posts list */
.sp-popular-list { display: flex; flex-direction: column; gap: 0; }
.sp-popular-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: transform var(--transition-fast);
}
.sp-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.sp-popular-item:hover { transform: translateX(4px); }
.sp-popular-num {
  font-family: var(--font-head); font-size: 28px; font-weight: 800;
  color: #e5e5e5; line-height: 1; flex-shrink: 0; width: 34px;
  transition: color var(--transition-fast);
}
.sp-popular-item:hover .sp-popular-num { color: var(--red); }
.sp-popular-info { flex: 1; }
.sp-popular-title {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  line-height: 1.35; margin-bottom: 4px; color: var(--dark);
  transition: color var(--transition-fast);
}
.sp-popular-item:hover .sp-popular-title { color: var(--red); }
.sp-popular-meta { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--light-gray); }

/* Newsletter widget */
.sp-widget-newsletter {
  background: var(--dark); border-color: var(--dark); text-align: center; padding: 28px 22px;
}
.sp-newsletter-icon { font-size: 32px; margin-bottom: 10px; }
.sp-widget-newsletter .sp-widget-title { color: #fff; border-bottom-color: #333; }
.sp-widget-newsletter .sp-widget-title::after { background: var(--red); }
.sp-newsletter-desc { font-size: 13px; color: #888; line-height: 1.6; margin-bottom: 16px; }
.sp-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.sp-newsletter-form input {
  width: 100%; padding: 11px 14px; border: 1px solid #333;
  border-radius: 4px; background: #1a1a1a; color: #fff;
  font-size: 13px; outline: none; font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}
.sp-newsletter-form input::placeholder { color: #555; }
.sp-newsletter-form input:focus { border-color: var(--red); }
.sp-newsletter-form button {
  width: 100%; padding: 11px; background: var(--red); color: #fff;
  border: none; border-radius: 4px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background var(--transition-fast), transform var(--transition-fast);
}
.sp-newsletter-form button:hover { background: #c41c22; transform: translateY(-1px); }

/* Categories list */
.sp-cat-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.sp-cat-item { border-bottom: 1px solid var(--border); }
.sp-cat-item:last-child { border-bottom: none; }
.sp-cat-item a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; font-size: 13px; color: var(--gray);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.sp-cat-item a:hover { color: var(--red); padding-left: 6px; }
.sp-cat-active a { color: var(--red); font-weight: 700; }
.sp-cat-count {
  background: var(--bg); color: var(--light-gray); font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px; flex-shrink: 0;
}
.sp-cat-active .sp-cat-count { background: var(--red); color: #fff; }

/* Tag cloud */
.sp-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* Search form inside sidebar */
.sp-widget .search-form { display: flex; gap: 0; }
.sp-widget .search-form input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-right: none; border-radius: 4px 0 0 4px; outline: none;
  font-size: 13px; font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}
.sp-widget .search-form input:focus { border-color: var(--red); }
.sp-widget .search-form button {
  background: var(--red); color: #fff; border: 1px solid var(--red);
  border-radius: 0 4px 4px 0; padding: 10px 14px; cursor: pointer;
  transition: background var(--transition-fast);
}
.sp-widget .search-form button:hover { background: #c41c22; }

/* Legacy sidebar widgets (keep for is_active_sidebar fallback) */
.sidebar-widget { margin-bottom: 32px; }
.widget-title {
  font-family: var(--font-head); font-size: 18px; font-weight: 800;
  border-left: 4px solid var(--red); padding-left: 10px; margin-bottom: 16px;
}
.widget-post { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.widget-post:last-child { border-bottom: none; }
.widget-post-img { width: 72px; height: 56px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.widget-post-img img { transition: transform var(--transition-med); }
.widget-post:hover .widget-post-img img { transform: scale(1.08); }
.widget-post-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; line-height: 1.3; transition: color var(--transition-fast); }
.widget-post-title:hover { color: var(--red); }
.widget-post-meta { font-size: 11px; color: var(--light-gray); margin-top: 3px; }
.newsletter-widget { background: var(--bg); border-radius: 8px; padding: 20px; }
.newsletter-widget p { font-size: 13px; color: var(--gray); margin-bottom: 12px; line-height: 1.6; }
.newsletter-input { display: flex; border-radius: 4px; overflow: hidden; }
.newsletter-input input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-right: none; outline: none; font-size: 13px; }
.newsletter-input button {
  background: var(--red); color: #fff; border: none; padding: 10px 14px;
  cursor: pointer; font-size: 13px; font-weight: 700;
  transition: background var(--transition-fast);
}
.newsletter-input button:hover { background: #c41c22; }

/* ===================== ARCHIVE / CATEGORY PAGE ===================== */
.archive-header {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 40px 0 30px;
}
.archive-cat-label {
  font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 8px;
}
.archive-title { font-family: var(--font-head); font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.archive-desc { font-size: 14px; color: var(--gray); }
.archive-count { font-size: 13px; color: var(--light-gray); margin-top: 6px; }
.archive-layout { display: grid; grid-template-columns: 1fr 300px; gap: 50px; padding: 40px 0; }
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.archive-card {
  background: var(--white); border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  transition: box-shadow var(--transition-med), transform var(--transition-med);
}
.archive-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-4px); }
.archive-card-img { height: 200px; overflow: hidden; }
.archive-card-img img { width: 100%; height: 100%; transition: transform var(--transition-slow); }
.archive-card:hover .archive-card-img img { transform: scale(1.06); }
.archive-card-content { padding: 18px; }
.archive-card-title { font-family: var(--font-head); font-size: 18px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; transition: color var(--transition-fast); }
.archive-card-title:hover { color: var(--red); }
.archive-card-excerpt { font-size: 13px; color: var(--gray); line-height: 1.5; margin-bottom: 10px; }
.pagination { display: flex; justify-content: center; gap: 6px; padding: 30px 0; }
.page-btn {
  width: 38px; height: 38px; border-radius: 4px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast);
}
.page-btn:hover, .page-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ===================== NO POSTS ===================== */
.no-posts { text-align: center; padding: 60px 20px; }
.no-posts h3 { font-family: var(--font-head); font-size: 24px; margin-bottom: 12px; }
.no-posts p { color: var(--gray); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1280px) {
  /* Hide floating share sidebar — not enough room */
  .sp-share-float { display: none; }
}
@media (max-width: 1200px) {
  .recommended-grid { grid-template-columns: 1fr 1fr; }
  .recommended-grid .center-feature { display: none; }
  /* Single: collapse sidebar */
  .sp-layout { grid-template-columns: 1fr; gap: 0; }
  .sp-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
}
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr; }
  .most-recent-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-news-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-layout .sidebar { display: none; }
  .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-post-nav { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .featured-strip-inner { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .dont-miss-grid { grid-template-columns: 1fr; }
  nav { display: none; }
  .hamburger { display: flex; }
  .archive-grid { grid-template-columns: 1fr; }
  .sp-sidebar { grid-template-columns: 1fr; }
  .sp-hero { height: 420px; }
  .sp-hero-title { font-size: 30px; }
}
@media (max-width: 640px) {
  .three-col { grid-template-columns: 1fr; }
  .recommended-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .two-cards { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo { font-size: 22px; }
  .slide { height: 280px; }
  .slide-title { font-size: 18px; }
  /* Single post mobile */
  .sp-hero { height: 300px; }
  .sp-hero-title { font-size: 22px; }
  .sp-hero-inner { padding-bottom: 24px; }
  .sp-hero-stats { display: none; }
  .sp-author-box { flex-direction: column; align-items: center; text-align: center; }
  .sp-author-box::before { width: 100%; height: 4px; }
  .sp-related-grid { grid-template-columns: 1fr; }
  .sp-share-bar { flex-direction: column; align-items: flex-start; }
  .sp-share-bar-btns { margin-left: 0; }
  .sp-content { font-size: 16px; }
  .sp-content > p:first-child { font-size: 17px; }
  .sp-content h2 { font-size: 22px; }
  .sp-content blockquote { font-size: 16px; }
  .sp-layout { padding: 28px 0 40px; }
}

/* ===================== ACCESSIBILITY ===================== */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }