/*
Theme Name: Celebrity News PH
Theme URI: https://celebritynewsph.com
Author: Celebrity News PH Team
Author URI: https://celebritynewsph.com
Description: A professional WordPress news magazine theme for celebrity, entertainment, and lifestyle news. Features a slideshow, sticky news, category sections, and SEO optimization.
Version: 10.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: celebrity-news-ph
Tags: news, magazine, entertainment, celebrity, blog, responsive, seo
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --red: #d40000;
  --red-dark: #a80000;
  --red-bright: #ff1a1a;
  --black: #111111;
  --black-soft: #1a1a1a;
  --black-mid: #2a2a2a;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --gray-light: #e8e8e8;
  --gray-mid: #999999;
  --gray-text: #444444;
  --shadow: 0 2px 12px rgba(0,0,0,0.12);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.2);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.08);
  --radius: 6px;
  --radius-sm: 3px;
  --max-width: 1200px;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', 'Open Sans', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--red-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}

/* ============================================
   BASE LAYOUT
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.col { flex: 1; padding: 0 12px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 12px; }
.col-9  { flex: 0 0 75%; max-width: 75%; padding: 0 12px; }
.col-8  { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 12px; }
.col-6  { flex: 0 0 50%; max-width: 50%; padding: 0 12px; }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 12px; }
.col-3  { flex: 0 0 25%; max-width: 25%; padding: 0 12px; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--black);
  color: var(--white);
  padding: 7px 0;
  font-size: 12px;
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-top a {
  color: rgba(255,255,255,0.85);
}

.header-top a:hover {
  color: var(--red-bright);
}

.header-social {
  display: flex;
  gap: 14px;
}

.header-social a {
  font-size: 13px;
  transition: var(--transition);
}

.header-main {
  padding: 14px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-logo img {
  max-height: 55px;
  width: auto;
}

.site-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1;
}

.site-title a {
  color: inherit;
}

.site-title a:hover {
  color: var(--red);
}

.site-title span {
  color: var(--red);
}

.site-tagline {
  font-size: 11px;
  color: var(--gray-mid);
  margin-top: 3px;
  letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
  background: var(--red);
  position: relative;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-menu li {
  position: relative;
  flex-shrink: 0;
}

.nav-menu a {
  display: block;
  padding: 13px 17px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a,
.nav-menu li.current-menu-ancestor a {
  background: rgba(0,0,0,0.2);
  color: var(--white);
  border-bottom-color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: rgba(0,0,0,0.2);
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  padding: 10px 16px;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: rgba(0,0,0,0.35);
}

/* Header Search */
.header-search {
  position: relative;
}

.header-search form {
  display: flex;
  align-items: center;
  background: var(--off-white);
  border-radius: 24px;
  border: 2px solid var(--gray-light);
  overflow: hidden;
  transition: var(--transition);
}

.header-search form:focus-within {
  border-color: var(--red);
}

.header-search input {
  padding: 8px 14px;
  border: none;
  background: transparent;
  font-size: 14px;
  width: 180px;
  outline: none;
  color: var(--black);
}

.header-search button {
  background: var(--red);
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px 14px;
  font-size: 14px;
  transition: var(--transition);
}

.header-search button:hover {
  background: var(--red-dark);
}

/* ============================================
   BREAKING NEWS / STICKY NEWS TICKER
   ============================================ */
.breaking-news {
  background: var(--black);
  color: var(--white);
  padding: 9px 0;
  overflow: hidden;
}

.breaking-ticker {
  display: flex;
  align-items: center;
  gap: 0;
}

.breaking-label {
  background: var(--red);
  color: var(--white);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  margin-right: 16px;
}

.breaking-label::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ticker-wrapper {
  overflow: hidden;
  flex: 1;
}

.ticker-content {
  display: flex;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-content a {
  color: rgba(255,255,255,0.9);
  padding: 0 28px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  transition: color 0.2s;
}

.ticker-content a:hover {
  color: var(--red-bright);
}

.ticker-content a::after {
  content: "●";
  position: absolute;
  right: 0;
  opacity: 0.35;
  font-size: 8px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   HERO SLIDESHOW
   ============================================ */
.hero-section {
  margin: 0 0 8px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--black);
  width: 100%;
}

.slide {
  position: relative;
  display: none;
  height: 520px;
}

.slide.active {
  display: block;
}

.slide > a {
  display: block;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 8s ease;
}

.slide.active img {
  transform: scale(1.04);
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 36px 36px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 50%, transparent 100%);
  color: var(--white);
  pointer-events: none;
}

.slide-overlay a,
.slide-overlay .slide-title a {
  pointer-events: all;
}

.slide-category {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 5px 13px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.slide-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.15;
  max-width: 720px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slide-title a {
  color: var(--white);
}

.slide-title a:hover {
  color: #ffcccc;
}

.slide-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  display: flex;
  gap: 18px;
  align-items: center;
}

.slide-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 10;
  pointer-events: none;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  pointer-events: all;
}

.slider-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.05);
}

.slider-dots {
  position: absolute;
  bottom: 18px;
  right: 20px;
  display: flex;
  gap: 7px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   HOMEPAGE CATEGORY SECTIONS
   ============================================ */
.homepage-main {
  padding: 24px 0 40px;
}

.category-block {
  margin-bottom: 48px;
}

/* Category Header - centered title */
.category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.category-header::before,
.category-header::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--gray-light);
}

.category-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.category-title {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--black);
  background: var(--white);
  padding: 0 4px;
  white-space: nowrap;
}

.category-title-bar {
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-top: 5px;
}

.view-all-link {
  position: absolute;
  right: 0;
  font-size: 11px;
  font-weight: 800;
  color: #fff !important;
  background: #d40000 !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 2px solid #d40000 !important;
  padding: 4px 12px;
  border-radius: 2px;
  transition: var(--transition);
  text-decoration: none !important;
}

.view-all-link:hover,
.view-all-link:visited,
.view-all-link:active {
  background: #a30000 !important;
  border-color: #a30000 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Category hidden articles */
.cat-extra {
  display: none;
}

.cat-extra.visible {
  display: block;
}

/* View All Expand Button */
.expand-btn-wrap {
  text-align: center;
  margin-top: 20px;
}

.expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d40000 !important;
  color: #fff !important;
  border: none;
  padding: 10px 26px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 2px;
  font-family: var(--font-ui);
  text-decoration: none !important;
}

.expand-btn:hover,
.expand-btn:visited,
.expand-btn:active {
  background: #a30000 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.expand-btn .expand-icon {
  transition: transform 0.3s ease;
}

.expand-btn.expanded .expand-icon {
  transform: rotate(180deg);
}

/* ==============================
   LAYOUT 1: CLASSIC GRID (4 equal cards)
   ============================== */
.cat-layout-grid .cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-layout-grid .article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
}

.cat-layout-grid .article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.cat-layout-grid .card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.cat-layout-grid .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-layout-grid .article-card:hover .card-image img {
  transform: scale(1.07);
}

.cat-layout-grid .card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.cat-layout-grid .card-content {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cat-layout-grid .card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--black);
  flex: 1;
}

.cat-layout-grid .card-title a {
  color: inherit;
}

.cat-layout-grid .card-title a:hover {
  color: var(--red);
}

.cat-layout-grid .card-meta {
  font-size: 11px;
  color: var(--gray-mid);
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* ==============================
   LAYOUT 2: MAGAZINE (1 big + 3 small)
   ============================== */
.cat-layout-magazine .cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.cat-layout-magazine .article-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--black);
  display: block;
}

.cat-layout-magazine .article-card:nth-child(1) {
  grid-row: 1 / 3;
}

.cat-layout-magazine .article-card:nth-child(n+2) {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border: 1px solid var(--gray-light);
}

.cat-layout-magazine .article-card:nth-child(1) .card-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.cat-layout-magazine .article-card:nth-child(1) .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cat-layout-magazine .article-card:nth-child(1):hover .card-image img {
  transform: scale(1.06);
}

.cat-layout-magazine .article-card:nth-child(1) .card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
  color: var(--white);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cat-layout-magazine .article-card:nth-child(1) .card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}

.cat-layout-magazine .article-card:nth-child(1) .card-title a {
  color: var(--white);
}

.cat-layout-magazine .article-card:nth-child(1) .card-title a:hover {
  color: #ffaaaa;
}

.cat-layout-magazine .article-card:nth-child(1) .card-meta {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

.cat-layout-magazine .article-card:nth-child(1) .card-category {
  background: var(--red);
  color: var(--white);
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
  width: fit-content;
}

.cat-layout-magazine .article-card:nth-child(n+2) .card-image {
  width: 110px;
  min-width: 110px;
  height: 90px;
  overflow: hidden;
  flex-shrink: 0;
}

.cat-layout-magazine .article-card:nth-child(n+2) .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-layout-magazine .article-card:nth-child(n+2):hover .card-image img {
  transform: scale(1.08);
}

.cat-layout-magazine .article-card:nth-child(n+2) .card-content {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-layout-magazine .article-card:nth-child(n+2) .card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 6px;
}

.cat-layout-magazine .article-card:nth-child(n+2) .card-title a {
  color: inherit;
}

.cat-layout-magazine .article-card:nth-child(n+2) .card-title a:hover {
  color: var(--red);
}

.cat-layout-magazine .article-card:nth-child(n+2) .card-meta {
  font-size: 11px;
  color: var(--gray-mid);
}

.cat-layout-magazine .article-card:nth-child(n+2) .card-category {
  display: none;
}

/* ==============================
   LAYOUT 3: OVERLAY GRID (all with image overlay)
   ============================== */
.cat-layout-overlay .cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cat-layout-overlay .article-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--black);
  aspect-ratio: 3/4;
  display: block;
}

.cat-layout-overlay .card-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.cat-layout-overlay .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.cat-layout-overlay .article-card:hover .card-image img {
  transform: scale(1.08);
}

.cat-layout-overlay .card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 50px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cat-layout-overlay .card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.cat-layout-overlay .card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.cat-layout-overlay .card-title a {
  color: var(--white);
}

.cat-layout-overlay .card-title a:hover {
  color: #ffcccc;
}

.cat-layout-overlay .card-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  display: flex;
  gap: 8px;
}

/* ==============================
   LAYOUT 4: NEWS LIST (big + list)
   ============================== */
.cat-layout-newslist .cat-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
}

.cat-layout-newslist .cat-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cat-layout-newslist .cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--gray-light);
  padding-left: 16px;
}

.cat-layout-newslist .article-card-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  flex: 1;
  min-height: 320px;
}

.cat-layout-newslist .article-card-main .card-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.cat-layout-newslist .article-card-main .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cat-layout-newslist .article-card-main:hover .card-image img {
  transform: scale(1.05);
}

.cat-layout-newslist .article-card-main .card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 70px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
  color: var(--white);
}

.cat-layout-newslist .article-card-main .card-category {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cat-layout-newslist .article-card-main .card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}

.cat-layout-newslist .article-card-main .card-title a {
  color: var(--white);
}

.cat-layout-newslist .article-card-main .card-title a:hover {
  color: #ffaaaa;
}

.cat-layout-newslist .article-card-main .card-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  display: flex;
  gap: 12px;
}

.cat-layout-newslist .article-card-list {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}

.cat-layout-newslist .article-card-list:last-child {
  border-bottom: none;
}

.cat-layout-newslist .article-card-list:hover {
  background: var(--off-white);
  padding-left: 6px;
  padding-right: 6px;
  margin: 0 -6px;
}

.cat-layout-newslist .article-card-list .card-image {
  width: 90px;
  min-width: 90px;
  height: 70px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.cat-layout-newslist .article-card-list .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.cat-layout-newslist .article-card-list:hover .card-image img {
  transform: scale(1.08);
}

.cat-layout-newslist .article-card-list .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-layout-newslist .article-card-list .card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 5px;
}

.cat-layout-newslist .article-card-list .card-title a {
  color: inherit;
}

.cat-layout-newslist .article-card-list .card-title a:hover {
  color: var(--red);
}

.cat-layout-newslist .article-card-list .card-meta {
  font-size: 11px;
  color: var(--gray-mid);
}

/* ============================================
   SIDEBAR
   ============================================ */
.widget {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
  color: var(--black);
}

/* ============================================
   SINGLE POST — FULL WIDTH, NO SIDEBAR
   ============================================ */
.single-post-wrap {
  padding: 30px 0 0;
}

.single-post-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
}

.post-header {
  margin-bottom: 20px;
}

.post-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.post-category {
  background: var(--red);
  color: var(--white);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
  display: inline-block;
}

.post-category:hover {
  background: var(--red-dark);
  color: var(--white);
}

.post-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--black);
  letter-spacing: -0.3px;
}

.post-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-mid);
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 24px;
}

.post-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  font-weight: 600;
}

.post-meta .author img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Post content */
.post-content {
  font-size: 17px;
  line-height: 1.85;
  color: #333;
}

.post-content p {
  margin-bottom: 22px;
}

.post-content h2 {
  font-size: 24px;
  margin: 36px 0 16px;
  color: var(--black);
  border-left: 4px solid var(--red);
  padding-left: 14px;
}

.post-content h3 {
  font-size: 20px;
  margin: 28px 0 14px;
  color: var(--black);
}

.post-content h4 {
  font-size: 17px;
  margin: 24px 0 12px;
  color: var(--black);
}

.post-content img {
  border-radius: var(--radius);
  margin: 28px 0;
  width: 100%;
  height: auto;
}

.post-content figcaption {
  font-size: 13px;
  color: var(--gray-mid);
  text-align: center;
  margin-top: -18px;
  margin-bottom: 28px;
  font-style: italic;
}

.post-content blockquote {
  border-left: 4px solid var(--red);
  padding: 18px 24px;
  margin: 28px 0;
  background: var(--off-white);
  font-style: italic;
  font-size: 18px;
  color: var(--black-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content blockquote p {
  margin: 0;
}

.post-content ul, .post-content ol {
  margin: 20px 0;
  padding-left: 26px;
}

.post-content li {
  margin-bottom: 9px;
}

.post-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover {
  color: var(--red-dark);
}

/* Tags */
.post-tags {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
}

.post-tags-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
  display: block;
  letter-spacing: 0.5px;
}

.post-tags a {
  display: inline-block;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  padding: 5px 14px;
  font-size: 12px;
  border-radius: 2px;
  margin: 3px;
  color: var(--gray-text);
  transition: var(--transition);
}

.post-tags a:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* Social Share */
.social-share {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 3px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.share-btn:hover {
  opacity: 0.88;
  color: var(--white);
  transform: translateY(-1px);
}

.share-facebook  { background: #1877f2; }
.share-twitter   { background: #1da1f2; }
.share-whatsapp  { background: #25d366; }
.share-telegram  { background: #0088cc; }
.share-linkedin  { background: #0a66c2; }

/* Post navigation */
.post-navigation {
  display: flex;
  gap: 16px;
  margin: 32px 0;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.nav-previous, .nav-next {
  flex: 1;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: var(--transition);
}

.nav-previous:hover, .nav-next:hover {
  border-color: var(--red);
  background: var(--white);
}

.nav-next {
  text-align: right;
}

.nav-subtitle {
  display: block;
  font-size: 11px;
  color: var(--gray-mid);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.nav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
}

.nav-links a:hover .nav-title {
  color: var(--red);
}

/* ============================================
   AUTHOR BIO — IN FOOTER OF SINGLE POST
   ============================================ */
.author-bio-section {
  background: var(--off-white);
  border-top: 4px solid var(--red);
  padding: 40px 0;
  margin-top: 0;
}

.author-bio {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-bio .avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--red);
}

.author-bio .author-info h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 3px;
  color: var(--black);
}

.author-bio .author-info .author-role {
  font-size: 11px;
  color: var(--red);
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
}

.author-bio .author-info p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.65;
  margin: 0 0 14px;
}

.author-bio .author-social {
  display: flex;
  gap: 8px;
}

.author-bio .author-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}

.author-bio .author-social a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

/* ============================================
   RELATED POSTS — SINGLE POST FOOTER
   ============================================ */
.related-posts-section {
  background: var(--white);
  padding: 44px 0;
  border-top: 1px solid var(--gray-light);
}

.related-posts-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.related-posts-title {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--black);
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 12px;
}

.related-posts-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--red);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  background: var(--white);
}

.related-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.related-card .card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.related-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .card-image img {
  transform: scale(1.06);
}

.related-card .card-content {
  padding: 14px;
}

.related-card .card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 8px;
}

.related-card .card-title a {
  color: inherit;
}

.related-card .card-title a:hover {
  color: var(--red);
}

.related-card .card-meta {
  font-size: 11px;
  color: var(--gray-mid);
}

/* ============================================
   COMMENTS SECTION
   ============================================ */
.comments-section {
  background: var(--off-white);
  padding: 44px 0;
  border-top: 1px solid var(--gray-light);
}

.comments-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
}

.comments-area {
  /* nothing special, see inner */
}

.comments-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Comment list */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}

.comment-list .comment {
  margin-bottom: 0;
}

.comment-body {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-card);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-author .fn {
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
}

.comment-author .fn a {
  color: var(--black);
}

.comment-author img {
  border-radius: 50%;
  border: 2px solid var(--red);
}

.comment-metadata {
  font-size: 12px;
  color: var(--gray-mid);
}

.comment-metadata a {
  color: var(--gray-mid);
}

.comment-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-text);
  margin: 0;
}

.comment-reply-link,
.comment-edit-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
  display: inline-block;
  transition: var(--transition);
}

.comment-reply-link:hover {
  color: var(--red-dark);
}

.children {
  list-style: none;
  padding-left: 28px;
  margin-top: 0;
}

/* Comment form */
.comment-respond {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-card);
}

.comment-reply-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comment-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  transition: var(--transition);
  margin-bottom: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--red);
}

.comment-form textarea {
  height: 130px;
  resize: vertical;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
  margin-bottom: 0;
}

.comment-form .comment-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.form-submit {
  margin-top: 4px;
}

.comment-form #submit,
.submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  border-radius: 3px;
  font-family: var(--font-heading);
  transition: var(--transition);
}

.comment-form #submit:hover,
.submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.no-comments {
  font-size: 15px;
  color: var(--gray-mid);
  font-style: italic;
  padding: 20px 0;
}

/* ============================================
   PAGE TEMPLATE — FULL WIDTH, NO SIDEBAR
   ============================================ */
.page-wrap {
  padding: 36px 0 56px;
}

.page-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-wrap .post-title {
  font-size: 32px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--red);
}

/* ============================================
   ARCHIVE / CATEGORY PAGE
   ============================================ */
.archive-header {
  background: var(--black);
  color: var(--white);
  padding: 36px 0;
  margin-bottom: 32px;
}

.archive-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.archive-description {
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  font-size: 15px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

/* ============================================
   FOOTER — WHITE BACKGROUND
   ============================================ */
.site-footer {
  background: var(--white);
  border-top: 3px solid var(--red);
  margin-top: 0;
}

.footer-logo-section {
  background: var(--off-white);
  padding: 36px 0;
  text-align: center;
  border-bottom: 1px solid var(--gray-light);
}

.footer-logo-section img {
  max-height: 120px;
  width: auto;
  margin: 0 auto;
}

.footer-site-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.footer-site-title span {
  color: var(--red);
}

.footer-tagline {
  font-size: 13px;
  color: var(--gray-mid);
  margin-top: 5px;
  letter-spacing: 0.5px;
}

.footer-body {
  background: var(--white);
  padding: 44px 0 32px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-widget {}

.footer-widget-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
  color: var(--black);
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--red);
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--gray-light);
}

.footer-widget ul li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-widget ul li a {
  color: var(--gray-text);
  font-size: 13px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-widget ul li a::before {
  content: "›";
  color: var(--red);
  font-weight: 900;
  font-size: 15px;
}

.footer-widget ul li a:hover {
  color: var(--red);
  padding-left: 4px;
}

.footer-widget p {
  color: var(--gray-text);
  font-size: 13px;
  line-height: 1.7;
}

/* Footer Social */
.footer-social-wrap {
  background: var(--black);
  padding: 20px 0;
}

.footer-social-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-social-inner a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.footer-social-inner a:hover {
  background: var(--red);
  transform: translateY(-2px);
  color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  text-align: center;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.footer-copyright a {
  color: rgba(255,255,255,0.7);
}

.footer-copyright a:hover {
  color: var(--red-bright);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  font-size: 13px;
  color: var(--gray-mid);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 0;
}

.breadcrumb a {
  color: var(--gray-mid);
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb .sep {
  margin: 0 6px;
}

.breadcrumb .current {
  color: var(--black);
  font-weight: 600;
}

/* ============================================
   SEARCH RESULTS & ARCHIVE
   ============================================ */
.search-wrap, .archive-wrap {
  padding: 32px 0 56px;
}

/* ============================================
   404 PAGE
   ============================================ */
.not-found-wrap {
  text-align: center;
  padding: 80px 16px;
}

.not-found-wrap h1 {
  font-size: 120px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.not-found-wrap h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.not-found-wrap p {
  color: var(--gray-mid);
  margin-bottom: 28px;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.skeleton {
  background: linear-gradient(90deg, var(--off-white) 25%, var(--gray-light) 50%, var(--off-white) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--red);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus { top: 0; }

.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;
}

/* ============================================
   RESPONSIVE — TABLET (≤992px)
   ============================================ */
@media (max-width: 992px) {
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-layout-grid .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-layout-overlay .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-layout-newslist .cat-grid {
    grid-template-columns: 1fr;
  }

  .cat-layout-newslist .cat-list {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--gray-light);
    padding-top: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .cat-layout-newslist .article-card-list {
    flex: 0 0 calc(50% - 6px);
    border-bottom: none;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 10px;
  }

  .cat-layout-magazine .cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
  /* Nav */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 8px 0;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-bottom-width: 1px;
    border-bottom-color: rgba(255,255,255,0.08);
    font-size: 14px;
  }

  .nav-menu a:hover,
  .nav-menu li.current-menu-item a {
    background: var(--red);
    border-bottom-color: transparent;
  }

  .header-search {
    display: none;
  }

  /* Slider */
  .slide {
    height: 320px;
  }

  .slide-title {
    font-size: 18px;
  }

  .slide-overlay {
    padding: 50px 18px 22px;
  }

  .slide-meta {
    font-size: 12px;
    gap: 12px;
  }

  /* Category layouts */
  .cat-layout-grid .cat-grid,
  .cat-layout-overlay .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-layout-magazine .cat-grid {
    grid-template-columns: 1fr;
  }

  .cat-layout-magazine .article-card:nth-child(1) {
    grid-row: auto;
    min-height: 280px;
    position: relative;
  }

  .cat-layout-magazine .article-card:nth-child(n+2) {
    flex-direction: row;
  }

  /* Post */
  .post-title {
    font-size: 24px;
  }

  .post-content {
    font-size: 16px;
  }

  /* Author bio */
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-bio .author-social {
    justify-content: center;
  }

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

  /* Footer */
  .footer-widgets {
    grid-template-columns: 1fr 1fr;
  }

  .footer-logo-section img {
    max-height: 90px;
  }

  .footer-site-title {
    font-size: 26px;
  }

  /* Nav links */
  .nav-links {
    flex-direction: column;
  }

  /* Comment form fields */
  .comment-form .comment-form-fields {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤576px)
   ============================================ */
@media (max-width: 576px) {
  .site-title {
    font-size: 20px;
  }

  .slide {
    height: 240px;
  }

  .slide-title {
    font-size: 15px;
  }

  .slide-meta {
    display: none;
  }

  .cat-layout-grid .cat-grid,
  .cat-layout-overlay .cat-grid {
    grid-template-columns: 1fr;
  }

  .cat-layout-overlay .article-card {
    aspect-ratio: 16/9;
  }

  .post-title {
    font-size: 20px;
  }

  .social-share {
    flex-wrap: wrap;
  }

  .share-btn {
    flex: 1;
    min-width: 100px;
    justify-content: center;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .footer-logo-section img {
    max-height: 80px;
  }

  .footer-site-title {
    font-size: 22px;
  }

  .category-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .view-all-link {
    position: static;
    margin-top: 8px;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .site-header, .main-nav, .site-footer,
  .social-share, .slider-controls, .slider-dots,
  .breaking-news, .related-posts-section,
  .comments-section, .author-bio-section { display: none !important; }
  .post-content { font-size: 12pt; line-height: 1.5; }
  a { text-decoration: underline; color: #000; }
}

/* ============================================================
   V3 OVERRIDES — Fonts, Responsive Typography, Hamburger Fix,
   TOC, Internal Links, Infinite Strip, Footer, Spacing
   ============================================================ */

/* ── FONT SYSTEM ─────────────────────────────────────────── */
:root {
  --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.22;
  letter-spacing: -0.2px;
}

/* ── RESPONSIVE TYPOGRAPHY (clamp) ───────────────────────── */
h1 { font-size: clamp(20px, 4vw, 34px); }
h2 { font-size: clamp(17px, 2.8vw, 28px); }
h3 { font-size: clamp(15px, 2.2vw, 22px); }
h4 { font-size: clamp(14px, 1.8vw, 18px); }
h5 { font-size: clamp(13px, 1.5vw, 15px); }

.post-title,
.entry-title {
  font-size: clamp(20px, 4vw, 32px) !important;
  line-height: 1.28 !important;
  letter-spacing: -0.3px !important;
}
.slide-title  { font-size: clamp(15px, 2.8vw, 28px) !important; }
.archive-title { font-size: clamp(18px, 3vw, 28px) !important; }
.category-title { font-size: clamp(13px, 1.4vw, 15px); font-family: var(--font-ui); font-weight: 800; letter-spacing: 0.5px; }
.card-title   { font-family: var(--font-heading); }
.nav-menu a   { font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.3px; }
.menu-toggle  { font-family: var(--font-ui); }
.expand-btn   { font-family: var(--font-ui); }

/* ── HEADER: centered logo + search ──────────────────────── */
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Override the more-specific .header-main .container rule so logo is truly centred */
.header-main .header-main-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.site-logo { flex-shrink: 0; }
.site-logo img  { max-height: 60px; width: auto; }
/* Search sits beside the centered logo — fixed width, not flex-grow */
.header-search  { flex: 0 0 auto; width: 220px; }
.header-search input { width: 100%; }

/* ── HAMBURGER — fix z-index + touch area ─────────────────── */
.main-nav { position: relative; z-index: 1100; }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 1200;
  background: rgba(0,0,0,0.25);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 12px 18px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  min-height: 44px;
  min-width: 80px;
}
.menu-toggle:active { background: var(--red); }
.menu-toggle .menu-icon { font-size: 18px; }

/* Desktop only: nav sits inline. On mobile the media query controls position. */
@media (min-width: 769px) {
  .nav-menu {
    position: static;
    z-index: auto;
  }
}

/* ── SPACING & READABILITY ────────────────────────────────── */
.homepage-main    { padding: 20px 0 36px; }
.category-block   { margin-bottom: 40px; }
.category-header  { margin-bottom: 18px; }
.single-post-wrap { padding: 24px 0 0; }
.single-post-inner { max-width: 820px; }
.post-header      { margin-bottom: 20px; }
/* Post content — optimised for mobile reading */
.post-content {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.88;
  color: #2c2c2c;
  letter-spacing: 0.01em;
}
.post-content p   { margin-bottom: 22px; }
.post-content h2  { margin: 38px 0 16px; font-size: clamp(18px, 3vw, 24px); }
.post-content h3  { margin: 30px 0 14px; font-size: clamp(16px, 2.4vw, 20px); }
.post-content li  { margin-bottom: 10px; line-height: 1.75; }
.post-meta        { font-family: var(--font-ui); font-size: 13px; gap: 14px; }
.post-categories  { gap: 6px; margin-bottom: 16px; }
.author-bio-section { padding: 28px 0; }
.author-bio       { padding: 20px 24px; gap: 20px; }
.related-posts-section { padding: 28px 0 36px; }
.related-posts-inner { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.comments-section { padding: 28px 0 36px; }
.comments-inner   { max-width: 820px; margin: 0 auto; padding: 0 16px; }
/* Card titles more readable */
.card-title       { font-size: clamp(13px, 1.6vw, 15px) !important; line-height: 1.45 !important; font-weight: 700; }
/* Navigation & UI font */
.site-title       { font-family: var(--font-heading); }
.widget-title     { font-family: var(--font-ui); letter-spacing: 0.8px; }
.footer-widget-title { font-family: var(--font-ui); }

/* ── NEWSLIST LAYOUT (v3 rewrite) ────────────────────────── */
.cat-grid-newslist {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
}
.nl-main { display: flex; flex-direction: column; }
.nl-list  { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--gray-light); padding-left: 16px; }

.cat-layout-newslist .article-card-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  min-height: 300px;
  display: block;
}
.cat-layout-newslist .article-card-main .card-image {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
}
.cat-layout-newslist .article-card-main .card-image img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
.cat-layout-newslist .article-card-main:hover .card-image img { transform: scale(1.05); }
.cat-layout-newslist .article-card-main .card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 70px 18px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
  color: #fff;
}
.cat-layout-newslist .article-card-main .card-title {
  font-size: clamp(14px, 1.8vw, 20px); font-weight: 800; color: #fff; line-height: 1.2;
}
.cat-layout-newslist .article-card-main .card-title a { color: #fff; }
.cat-layout-newslist .article-card-main .card-title a:hover { color: #ffaaaa; }
.cat-layout-newslist .article-card-main .card-meta { font-size: 11px; color: rgba(255,255,255,0.75); display: flex; gap: 12px; margin-top: 6px; }

.cat-layout-newslist .article-card-list {
  display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-light);
}
.cat-layout-newslist .article-card-list:last-child { border-bottom: none; }
.cat-layout-newslist .article-card-list .card-image {
  width: 90px; min-width: 90px; height: 68px; overflow: hidden; flex-shrink: 0; border-radius: 4px;
}
.cat-layout-newslist .article-card-list .card-image img { width: 100%; height: 100%; object-fit: cover; }
.cat-layout-newslist .article-card-list .card-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cat-layout-newslist .article-card-list .card-title { font-size: 13px; font-weight: 700; color: var(--black); line-height: 1.35; margin-bottom: 4px; }
.cat-layout-newslist .article-card-list .card-title a { color: inherit; }
.cat-layout-newslist .article-card-list .card-title a:hover { color: var(--red); }
.cat-layout-newslist .article-card-list .card-meta { font-size: 11px; color: var(--gray-mid); }

/* ── MAGAZINE LAYOUT FIX (min-height for big card) ────────── */
.cat-layout-magazine .article-card:nth-child(1) {
  min-height: 300px;
}

/* ── EXPAND BUTTON ROW ─────────────────────────────────────── */
.expand-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 8px 16px;
  border-radius: 2px;
  transition: var(--transition);
}
.view-all-btn:hover { background: var(--red); color: #fff; }

/* ── TABLE OF CONTENTS ─────────────────────────────────────── */
.toc-box {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 0;
  margin: 22px 0;
  font-family: var(--font-body);
  overflow: hidden;
}
.toc-header {
  background: #f1f1f1;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e0e0e0;
}
.toc-header i { color: var(--red); }
.toc-toggle {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  font-size: 13px;
  padding: 0 4px;
  line-height: 1;
}
.toc-list {
  margin: 0;
  padding: 12px 16px 12px 36px;
  list-style: decimal;
}
.toc-list li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
}
.toc-list li a {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.toc-list li a:hover { color: var(--red); text-decoration: underline; }

/* ── AUTO INTERNAL "READ ALSO" LINKS ───────────────────────── */
.auto-read-also {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 1px solid #ffd0d0;
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 20px 0;
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.25s;
}
.auto-read-also:hover { box-shadow: 0 4px 14px rgba(212,0,0,0.15); transform: translateY(-1px); }
.read-also-img {
  flex-shrink: 0;
  width: 90px;
  height: 65px;
  border-radius: 4px;
  overflow: hidden;
  display: block;
}
.read-also-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.read-also-text { flex: 1; min-width: 0; }
.read-also-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 5px;
}
.read-also-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--black);
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s;
}
.read-also-title:hover { color: var(--red); }

/* ── INFINITE ARTICLE SCROLL STRIP ─────────────────────────── */
.article-strip-section {
  background: #0d0d0d;
  overflow: hidden;
}
.strip-label-bar {
  background: var(--red);
  padding: 8px 0;
}
.strip-label {
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.article-strip-track-wrap {
  overflow: hidden;
  padding: 16px 0;
}
.article-strip-track {
  display: flex;
  gap: 14px;
  animation: stripScroll 38s linear infinite;
  width: max-content;
}
.article-strip-track:hover { animation-play-state: paused; }

@keyframes stripScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.strip-card {
  position: relative;
  width: 200px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
  text-decoration: none;
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
}
.strip-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.strip-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.strip-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.strip-card:hover .strip-card-img img { transform: scale(1.08); }
.strip-card-cat {
  position: absolute;
  top: 7px; left: 7px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-ui);
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}
.strip-card-title {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.9);
  line-height: 1.35;
}

/* ── FOOTER — simplified (logo + description + social) ─────── */
.site-footer {
  background: #fff;
  border-top: 3px solid var(--red);
}
.footer-main {
  padding: 36px 0 28px;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  max-height: 110px;
  width: auto;
  margin: 0 auto;
}
.footer-site-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  font-family: var(--font-ui);
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1;
}
.footer-site-title span { color: var(--red); }
.footer-description {
  max-width: 480px;
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin: 0 auto;
}
.footer-social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: background 0.25s, transform 0.25s;
}
.footer-social a:hover { background: var(--red); transform: translateY(-2px); color: #fff; }
.footer-bottom {
  background: var(--black);
  padding: 14px 0;
  text-align: center;
}
.footer-copyright { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-copyright a { color: rgba(255,255,255,0.7); }
.footer-copyright a:hover { color: var(--red-bright); }

/* Hide old footer-body / footer-logo-section / footer-widgets */
.footer-body, .footer-logo-section, .footer-widgets,
.footer-social-wrap { display: none !important; }

/* ── BREADCRUMB BAR ─────────────────────────────────────────── */
.breadcrumb-bar {
  background: #f7f7f7;
  border-bottom: 1px solid #ebebeb;
}
.post-nav-bar {
  background: #f7f7f7;
  border-top: 1px solid #ebebeb;
  padding: 20px 0;
}

/* ── RELATED CARDS ──────────────────────────────────────────── */
.card-cat-badge {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 5px;
  text-decoration: none;
}

/* ── SINGLE POST CONTENT ─────────────────────────────────────── */
.post-content h2 { font-size: clamp(16px, 2.5vw, 24px); margin: 24px 0 12px; }
.post-content h3 { font-size: clamp(15px, 2vw, 20px); margin: 20px 0 10px; }
.post-content h4 { font-size: clamp(14px, 1.8vw, 17px); margin: 16px 0 8px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 16px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 18px;
  background: #fdf5f5;
  font-style: italic;
  margin: 20px 0;
  font-size: 16px;
  color: #555;
}
.post-content img { border-radius: 6px; margin: 16px 0; max-width: 100%; }

/* ── RESPONSIVE OVERRIDES ───────────────────────────────────── */
@media (max-width: 768px) {
  /* Hamburger */
  .menu-toggle { display: flex !important; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 6px 0;
    z-index: 1100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .nav-menu.active { display: flex !important; }
  .nav-menu li { width: 100%; }
  .nav-menu a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 14px; }

  /* Header */
  .header-main-inner { flex-direction: column; gap: 8px; padding: 8px 0; }
  .header-search { display: block; width: 100%; }
  .header-search form { display: flex; width: 100%; }
  .site-logo img { max-height: 44px; }

  /* Newslist */
  .cat-grid-newslist { grid-template-columns: 1fr; }
  .nl-list { border-left: none; padding-left: 0; border-top: 1px solid var(--gray-light); padding-top: 12px; }

  /* Grid override → 2 col */
  .cat-layout-grid .cat-grid,
  .cat-layout-overlay .cat-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Magazine */
  .cat-layout-magazine .cat-grid { grid-template-columns: 1fr !important; }
  .cat-layout-magazine .article-card:nth-child(1) { grid-row: auto; min-height: 240px; }

  /* Strip */
  .strip-card { width: 155px; }

  /* Read also */
  .auto-read-also { flex-direction: column; align-items: flex-start; }
  .read-also-img { width: 100%; height: 120px; border-radius: 4px; }

  .expand-btn-wrap { flex-direction: column; }
}

@media (max-width: 576px) {
  /* Grid → 1 col */
  .cat-layout-grid .cat-grid,
  .cat-layout-overlay .cat-grid { grid-template-columns: 1fr !important; }

  .cat-layout-overlay .article-card { aspect-ratio: 16/9; }

  .slide { height: 230px !important; }
  .slide-title { font-size: 14px !important; }
  .slide-meta  { display: none !important; }
  .slide-overlay { padding: 40px 14px 16px; }

  /* TOC */
  .toc-list { padding-left: 24px; }
  .toc-list li { font-size: 13px; }

  /* Strip */
  .strip-card { width: 140px; }
  .strip-card-title { font-size: 11px; }

  /* Header */
  .header-top { display: none; }
  .site-logo img { max-height: 38px; }
}

/* ── PAGE.PHP — proper main tag ─────────────────────────────── */
.page-wrap main,
.page-template main { display: block; }

/* ── SLIDER DOTS BELOW (outside the slider) ─────────────────── */
.slider-dots-below {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 0 4px;
  background: var(--black);
}

.slider-dots-below .slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dots-below .slider-dot.active {
  background: var(--red);
  border-color: var(--red);
  width: 26px;
  border-radius: 5px;
}

.slider-dots-below .slider-dot:hover {
  background: rgba(255,255,255,0.7);
  border-color: #fff;
}

/* Hide the old absolute-positioned dots since we moved them below */
.hero-slider .slider-dots {
  display: none;
}

/* ══════════════════════════════════════════════════════════════
   EQUAL-HEIGHT CARD FIX + PROFESSIONAL LAYOUT IMPROVEMENTS
   All card images enforce a consistent aspect-ratio so rows are
   always visually balanced regardless of source image dimensions.
   ══════════════════════════════════════════════════════════════ */

/* ── Global: every card image is a fixed-ratio box ──────────── */
.article-card .card-image,
.related-card .card-image {
  overflow: hidden;
  flex-shrink: 0;
}
.article-card .card-image img,
.related-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Grid layout: enforce uniform image ratio ───────────────── */
.cat-layout-grid .cat-grid {
  grid-template-columns: repeat(3, 1fr); /* 3 columns desktop (was 4 — better balance) */
  align-items: stretch;
}
.cat-layout-grid .article-card {
  display: flex;
  flex-direction: column;
}
.cat-layout-grid .card-image {
  aspect-ratio: 16 / 10;
}
.cat-layout-grid .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cat-layout-grid .card-title {
  flex: 1;
}

/* ── Magazine layout: desktop — big left + 3 list right ─────── */
/* Ensure big left card always fills its full column height */
.cat-layout-magazine .cat-grid {
  min-height: 320px;
}
.cat-layout-magazine .article-card:nth-child(1) {
  min-height: 320px;
}
/* Smaller right-column cards: equal height rows */
.cat-layout-magazine .article-card:nth-child(n+2) {
  align-items: stretch;
}
.cat-layout-magazine .article-card:nth-child(n+2) .card-image {
  width: 110px;
  min-width: 110px;
  height: auto;
  aspect-ratio: 1 / 1; /* square thumbnails for consistent right-column height */
}

/* ── Magazine layout: MOBILE — equal 2-col cards ─────────────
 *  On mobile the mixed "big card + horizontal list" layout
 *  creates wildly unequal row heights. We rewrite all cards
 *  to be uniform vertical cards (image on top, text below).
 * ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* 2-column equal grid */
  .cat-layout-magazine .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 10px;
    min-height: unset;
  }

  /* Reset ALL magazine cards to the same vertical card structure */
  .cat-layout-magazine .article-card,
  .cat-layout-magazine .article-card:nth-child(1),
  .cat-layout-magazine .article-card:nth-child(n+2) {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--white) !important;
    border: 1px solid var(--gray-light) !important;
    border-radius: var(--radius) !important;
    overflow: hidden !important;
    min-height: unset !important;
    grid-row: auto !important;
    grid-column: auto !important;
  }

  /* Uniform aspect-ratio image for every magazine card on mobile */
  .cat-layout-magazine .article-card .card-image,
  .cat-layout-magazine .article-card:nth-child(1) .card-image,
  .cat-layout-magazine .article-card:nth-child(n+2) .card-image {
    position: relative !important;
    width: 100% !important;
    min-width: unset !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden;
  }
  .cat-layout-magazine .article-card .card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  .cat-layout-magazine .article-card:hover .card-image img {
    transform: scale(1.06);
  }

  /* First card content: remove the dark overlay, show as normal white card */
  .cat-layout-magazine .article-card:nth-child(1) .card-content {
    position: relative !important;
    background: var(--white) !important;
    color: var(--black) !important;
    padding: 10px 12px 12px !important;
    min-height: unset !important;
    justify-content: flex-start !important;
  }
  .cat-layout-magazine .article-card:nth-child(1) .card-title {
    color: var(--black) !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
  }
  .cat-layout-magazine .article-card:nth-child(1) .card-title a { color: var(--black) !important; }
  .cat-layout-magazine .article-card:nth-child(1) .card-title a:hover { color: var(--red) !important; }
  .cat-layout-magazine .article-card:nth-child(1) .card-meta { color: var(--gray-mid) !important; }
  .cat-layout-magazine .article-card:nth-child(1) .card-category {
    position: static !important;
    display: inline-block !important;
    margin-bottom: 6px;
    background: var(--red);
    color: var(--white);
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Side cards: also become vertical on mobile */
  .cat-layout-magazine .article-card:nth-child(n+2) {
    flex-direction: column !important;
  }
  .cat-layout-magazine .article-card:nth-child(n+2) .card-content {
    padding: 10px 12px 12px !important;
    justify-content: flex-start !important;
  }
  .cat-layout-magazine .article-card:nth-child(n+2) .card-category {
    display: inline-block !important;
    margin-bottom: 4px;
  }
  .cat-layout-magazine .article-card:nth-child(n+2) .card-title {
    font-size: 12px !important;
  }

  /* 4-column grid → 2-column on mobile */
  .cat-layout-grid .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Overlay: 4-col → 2-col */
  .cat-layout-overlay .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .cat-layout-overlay .article-card {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 576px) {
  /* Small phones: keep 2-col for grid/magazine (looks fine at small width) */
  .cat-layout-grid .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .cat-layout-magazine .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .cat-layout-overlay .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  /* Newslist: single column */
  .cat-layout-newslist .cat-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Desktop: restore grid to 3 columns (was 4 — too cramped) ── */
@media (min-width: 769px) {
  .cat-layout-grid .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cat-layout-overlay .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Category section header — stronger professional look ────── */
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 10px 0;
  border-bottom: 3px solid var(--red);
  margin-bottom: 16px;
  position: relative;
}
.category-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  background: var(--black);
  padding: 7px 16px;
  border-radius: 0;
  white-space: nowrap;
  position: relative;
  left: 0;
}
.view-all-link {
  position: static;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 4px 12px;
  border-radius: 2px;
  transition: var(--transition);
  white-space: nowrap;
}
.view-all-link:hover {
  background: var(--red);
  color: var(--white);
}
.category-block {
  background: var(--white);
  border-radius: 8px;
  padding: 0 0 8px;
  margin-bottom: 32px;
}

/* ══════════════════════════════════════════════════════════════
   TASK 1 — NAV: hide Privacy Policy & Disclaimer (CSS backup)
   In case the PHP filter misses any edge case.
   ══════════════════════════════════════════════════════════════ */
.nav-menu .menu-item a[href*="privacy-policy"],
.nav-menu .menu-item a[href*="privacy_policy"],
.nav-menu .menu-item a[href*="disclaimer"] {
  display: none !important;
  visibility: hidden !important;
}
/* :has() supported Chrome 105+, Safari 15.4+, Firefox 121+ */
.nav-menu .menu-item:has(> a[href*="privacy-policy"]),
.nav-menu .menu-item:has(> a[href*="privacy_policy"]),
.nav-menu .menu-item:has(> a[href*="disclaimer"]) {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════
   TASK 2 — MOBILE LOGO CENTERING (high-specificity override)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-header .header-main .header-main-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 16px !important;
  }
  .site-header .header-main .site-logo {
    order: 1;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
    flex: unset !important;
    max-width: unset !important;
  }
  .site-header .header-main .site-logo .custom-logo-link,
  .site-header .header-main .site-logo > a {
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }
  .site-header .header-main .header-search {
    order: 2;
    width: 100% !important;
    max-width: none !important;
  }
  .site-header .header-main .header-search form {
    width: 100%;
    display: flex;
  }
  .site-header .header-main .header-search input {
    flex: 1;
  }
}

/* ══════════════════════════════════════════════════════════════
   TASK 3 — EMPTY CATEGORY PLACEHOLDER
   ══════════════════════════════════════════════════════════════ */
.cat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 10px;
  color: var(--gray-mid);
}
.cat-empty-state i {
  font-size: 32px;
  opacity: 0.35;
}
.cat-empty-state p {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  font-style: italic;
  opacity: 0.6;
}
/* Slightly fade empty category blocks */
.category-block.is-empty .category-header {
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════════
   TASK 4 — CATEGORY BROWSE STRIP (horizontal scrollable pills)
   Text-only category label buttons before the footer.
   ══════════════════════════════════════════════════════════════ */
.cat-nav-strip {
  background: #111111;
  padding: 20px 0 24px;
  margin-top: 0;
}
.cat-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cat-nav-heading {
  font-family: var(--font-ui, sans-serif);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid var(--red);
  padding-left: 10px;
}
.cat-nav-heading i {
  color: var(--red);
  font-size: 13px;
}
.cat-nav-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.cat-nav-scroll::-webkit-scrollbar {
  display: none;
}
.cat-nav-pill {
  flex: 0 0 auto;
  display: inline-block;
  padding: 7px 16px;
  border: 1.5px solid var(--red);
  border-radius: 20px;
  font-family: var(--font-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--white);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cat-nav-pill:hover,
.cat-nav-pill:focus {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  outline: none;
}

/* ══════════════════════════════════════════════════════════════
   TASK 5 — TIGHTER GRID CARD SPACING (no excessive line gaps)
   ══════════════════════════════════════════════════════════════ */
/* 3-column grid tighter gaps */
.cat-layout-grid .cat-grid {
  gap: 10px !important;
}
.cat-layout-grid .card-content {
  padding: 10px 11px 11px !important;
}
.cat-layout-grid .card-title {
  font-size: 13px !important;
  line-height: 1.35 !important;
  margin-bottom: 5px !important;
}
.cat-layout-grid .card-meta {
  font-size: 10px !important;
  margin-top: 4px !important;
  gap: 6px !important;
}

/* Magazine side-card tighter */
.cat-layout-magazine .article-card:nth-child(n+2) .card-content {
  padding: 8px 12px !important;
}
.cat-layout-magazine .article-card:nth-child(n+2) .card-title {
  font-size: 12px !important;
  line-height: 1.3 !important;
}

/* Overlay tighter */
.cat-layout-overlay .cat-grid {
  gap: 8px !important;
}
.cat-layout-overlay .card-title {
  font-size: 12px !important;
  line-height: 1.3 !important;
}

/* Newslist tighter */
.article-card-list .card-content {
  padding: 6px 10px !important;
}
.article-card-list .card-title {
  font-size: 12px !important;
  line-height: 1.3 !important;
}

/* ══════════════════════════════════════════════════════════════
   v7 FIXES — Privacy Policy/Disclaimer hide, Logo center,
   Image layout, Footer label redesign
   ══════════════════════════════════════════════════════════════ */

/* ── TASK 1: Hide Privacy Policy & Disclaimer in ALL nav states ── */
.nav-menu .menu-item a[href*="privacy-policy"],
.nav-menu .menu-item a[href*="privacy_policy"],
.nav-menu .menu-item a[href*="disclaimer"],
.nav-menu .menu-item a[href*="Disclaimer"],
.nav-menu .menu-item a[href*="Privacy"] {
  display: none !important;
  pointer-events: none !important;
}
.nav-menu .menu-item:has(> a[href*="privacy-policy"]),
.nav-menu .menu-item:has(> a[href*="privacy_policy"]),
.nav-menu .menu-item:has(> a[href*="disclaimer"]) {
  display: none !important;
}

/* ── TASK 2: Logo perfectly centered on ALL mobile pages ─────── */
@media (max-width: 768px) {
  /* Force the header-main container to center everything */
  .site-header .header-main {
    padding: 10px 0 !important;
  }
  .site-header .header-main .container,
  .site-header .header-main .header-main-inner,
  .site-header .header-main > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0 !important;
    width: 100% !important;
  }
  /* Show search bar on mobile */
  .site-header .header-main .header-search {
    display: block !important;
    width: 100% !important;
    padding: 6px 16px 10px !important;
  }
  .site-header .header-main .header-search form {
    display: flex !important;
    width: 100% !important;
  }
  /* Logo wrapper: full width, centered */
  .site-header .header-main .site-logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    flex: unset !important;
  }
  /* Custom logo image link: center */
  .site-header .site-logo .custom-logo-link,
  .site-header .site-logo > a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    width: auto !important;
  }
  /* Text-based logo fallback: center text */
  .site-header .site-logo .site-title,
  .site-header .site-logo .site-tagline {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
  }
}

/* ── TASK 3: Fix image layout issues in magazine/grid sections ── */
/* Prevent absolute-positioned content from bleeding outside its block */
.category-block {
  position: relative;
  overflow: hidden;
  contain: layout;
}

/* Magazine first-card overlay: clip properly */
.cat-layout-magazine .article-card:nth-child(1) {
  overflow: hidden;
}

/* Ensure cat-extra hidden cards don't bleed in collapsed state */
.cat-extra {
  display: none !important;
}
.cat-extra.visible {
  display: block !important;
}

/* Mobile magazine cards: fully uniform, no overflow bleed */
@media (max-width: 768px) {
  .cat-layout-magazine .article-card,
  .cat-layout-magazine .article-card:nth-child(1),
  .cat-layout-magazine .article-card:nth-child(n+2) {
    overflow: hidden !important;
    contain: layout !important;
  }
  .cat-layout-magazine .article-card:nth-child(1) .card-image {
    position: relative !important;
    aspect-ratio: 16 / 10 !important;
    width: 100% !important;
    height: auto !important;
  }
  .cat-layout-magazine .article-card:nth-child(1) .card-content {
    position: relative !important;
    background: var(--white) !important;
    color: var(--black) !important;
    padding: 10px 12px 12px !important;
    background: none !important;
  }
  .cat-layout-magazine .article-card:nth-child(n+2) {
    flex-direction: column !important;
  }
  .cat-layout-magazine .article-card:nth-child(n+2) .card-image {
    width: 100% !important;
    min-width: unset !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    position: relative !important;
  }
  .cat-layout-magazine .article-card:nth-child(n+2) .card-content {
    padding: 10px 12px !important;
  }
  /* Grid: 2 columns on mobile, uniform image */
  .cat-layout-grid .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .cat-layout-grid .card-image {
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
  }
}

/* ── TASK 4: Footer "Latest Stories" strip label — redesigned ── */
/* Red accent bar above the strip */
.article-strip-section {
  border-top: none;
}
.strip-label-bar {
  background: linear-gradient(90deg, #a80000 0%, var(--red) 60%, #cc0000 100%);
  padding: 10px 0;
  position: relative;
  overflow: hidden;
}
.strip-label-bar::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: rgba(255,255,255,0.4);
}
.strip-label {
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-ui, sans-serif);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.strip-label i {
  font-size: 14px;
  animation: flamePulse 1.2s ease-in-out infinite alternate;
}
@keyframes flamePulse {
  from { transform: scale(1);   opacity: 1; }
  to   { transform: scale(1.2); opacity: 0.75; }
}
/* Strip cards — slightly polished */
.article-strip-track-wrap {
  padding: 14px 0 18px;
}
.strip-card {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.strip-card-title {
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px 10px;
  line-height: 1.4;
  color: rgba(255,255,255,0.92);
}

/* Footer brand area — cleaner, more editorial */
.site-footer {
  border-top: 4px solid var(--red);
}
.footer-main {
  padding: 40px 0 30px;
  background: #fff;
}
.footer-brand {
  gap: 16px;
}
.footer-description {
  font-size: 14px;
  line-height: 1.7;
  color: #777;
  max-width: 460px;
  margin: 0 auto;
}
/* Social icons — slightly larger, more spacing */
.footer-social {
  gap: 10px;
  margin-top: 6px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.25s, transform 0.25s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.footer-social a:hover {
  background: var(--red);
  transform: translateY(-3px);
  color: #fff;
}
/* Footer bottom bar */
.footer-bottom {
  background: #111;
  padding: 16px 0;
  text-align: center;
}
.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-ui, sans-serif);
  letter-spacing: 0.3px;
}
.footer-copyright a {
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}
.footer-copyright a:hover {
  color: var(--red-bright);
}

/* ── TASK 4 responsive: footer fully responsive on mobile ────── */
@media (max-width: 576px) {
  .footer-main {
    padding: 28px 16px 20px;
  }
  .footer-brand {
    gap: 12px;
  }
  .footer-description {
    font-size: 13px;
    padding: 0 8px;
  }
  .footer-social {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .footer-social a {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .strip-label {
    font-size: 10px;
    letter-spacing: 1.8px;
  }
  .article-strip-track-wrap {
    padding: 10px 0 14px;
  }
  .strip-card {
    width: 140px;
  }
}

/* ================================================================
   v9 FINAL FIXES — Celebrity News PH
   ================================================================ */

/* ── 1. MOBILE LOGO CENTERING (block approach, most reliable) ─── */
@media (max-width: 768px) {
  /* Switch parent from flex to block so text-align centering works */
  .site-header .header-main .container,
  .site-header .header-main .header-main-inner {
    display: block !important;
    text-align: center !important;
    padding: 12px 16px !important;
  }
  /* Center the logo wrapper itself */
  .site-header .header-main .site-logo {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto 4px !important;
    padding: 0 !important;
  }
  /* Center the anchor tag WP outputs */
  .site-header .site-logo .custom-logo-link,
  .site-header .site-logo a {
    display: inline-block !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  /* Center the actual img */
  .site-header .site-logo img,
  .site-header .site-logo .custom-logo {
    display: block !important;
    margin: 0 auto !important;
    max-height: 50px !important;
    width: auto !important;
  }
	/* Show search on mobile */
    .site-header .header-search {
        display: block !important;
        width: 100% !important;
        padding: 6px 16px 10px !important;
    }
    .site-header .header-search form {
        display: flex !important;
        width: 100% !important;
    }
    .site-header .header-main-inner {
        flex-wrap: wrap !important;
    }
} /* end media 768px */

/* ── 2. BROWSE CATEGORIES — solid colour pill buttons ──────────── */
.cat-nav-strip {
  background: #111 !important;
  padding: 18px 0 !important;
  border-top: 3px solid #d40000 !important;
}
.cat-nav-inner {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
}
.cat-nav-heading {
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #fff !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.cat-nav-scroll {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding-bottom: 4px !important;
  scrollbar-width: none !important;
}
.cat-nav-scroll::-webkit-scrollbar { display: none !important; }
.cat-nav-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 7px 16px !important;
  border-radius: 50px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: #fff !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  border: none !important;
  opacity: 0.9 !important;
  transition: opacity 0.2s, transform 0.15s !important;
  /* background set via inline style per category */
}
.cat-nav-pill:hover {
  opacity: 1 !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ── 3. CAT-EXTRA-GROUP — hidden wrapper, no grid leakage ─────── */
.cat-extra-group {
  display: none !important;
  margin-top: 16px !important;
}
.cat-extra-group.visible {
  display: block !important;
}
.cat-extra-group .cat-grid {
  margin-top: 0 !important;
}

/* ── 4. GENERAL CLEANUP — remove stale cat-extra rules if any ─── */
.cat-extra {
  display: block !important; /* extra items no longer individually hidden */
}


/* ================================================================
   CP-PREFIX COMPONENT STYLES v10
   All classes use "cp-" prefix — zero conflict with existing CSS.
   ================================================================ */

/* ── Homepage wrapper ─────────────────────────────────────────── */
.cp-homepage {
  padding: 24px 0 40px;
}

/* ── Section wrapper ──────────────────────────────────────────── */
.cp-section {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 36px;
  padding: 0 0 6px;
}

/* ── Section header ───────────────────────────────────────────── */
.cp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #111;
  padding-bottom: 0;
  margin-bottom: 16px;
}
.cp-section-title {
  font-family: var(--font-ui, 'Nunito', sans-serif);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: #111;
  padding: 9px 18px;
  border-left: 5px solid #d40000;
  white-space: nowrap;
  margin: 0;
  line-height: 1;
}
.cp-view-all {
  font-family: var(--font-ui, 'Nunito', sans-serif);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1.5px solid #d40000;
  color: #d40000;
  padding: 5px 12px;
  border-radius: 2px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cp-view-all:hover {
  background: #d40000;
  color: #fff !important;
}

/* ── Empty state ──────────────────────────────────────────────── */
.cp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 8px;
  color: #999;
}
.cp-empty i { font-size: 28px; opacity: 0.35; }
.cp-empty p { font-size: 13px; font-style: italic; margin: 0; }

/* ── View All button at bottom of each section ────────────────── */
.cp-view-all-wrap {
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e8e8e8;
}
.cp-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #d40000;
  color: #d40000;
  padding: 9px 22px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-ui, 'Nunito', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cp-view-all-btn:hover {
  background: #d40000;
  color: #fff !important;
}

/* ================================================================
   LAYOUT 1 — GRID
   3 columns of uniform cards (image top, text bottom)
   ================================================================ */
.cp-grid__wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cp-card {
  display: flex;
  flex-direction: column;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.09);
  border: 1px solid #e8e8e8;
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}
.cp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}
.cp-card__img-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}
.cp-card__img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.cp-card:hover .cp-card__img-link img {
  transform: scale(1.07);
}
.cp-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d40000;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-ui, 'Nunito', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 2;
}
.cp-card__body {
  padding: 12px 13px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cp-card__title {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  flex: 1;
  margin: 0 0 8px;
}
.cp-card__title a {
  color: inherit;
  text-decoration: none;
}
.cp-card__title a:hover { color: #d40000; }
.cp-card__meta {
  font-size: 11px;
  color: #999;
  display: flex;
  gap: 10px;
  margin-top: auto;
  font-family: var(--font-ui, sans-serif);
}

/* ================================================================
   LAYOUT 2 — MAGAZINE
   Big featured card (left, overlay text) + compact list of 5 (right)
   ================================================================ */
.cp-mag__wrap {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  min-height: 340px;
}
/* Featured: full-image overlay card */
.cp-mag__featured {
  position: relative;
  overflow: hidden;
  border-radius: 7px 0 0 7px;
  flex-shrink: 0;
}
.cp-mag__featured-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
  text-decoration: none;
}
.cp-mag__featured-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.cp-mag__featured:hover .cp-mag__featured-link img {
  transform: scale(1.05);
}
.cp-mag__featured-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 80px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0) 100%);
  z-index: 2;
}
.cp-mag__badge {
  display: inline-block;
  background: #d40000;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-ui, 'Nunito', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.cp-mag__featured-title {
  font-family: var(--font-heading, Georgia, serif);
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 8px;
}
.cp-mag__featured-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-ui, sans-serif);
}
/* Compact list on the right */
.cp-mag__list {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-left: none;
  border-radius: 0 7px 7px 0;
  overflow: hidden;
  background: #fff;
}
.cp-mag__item {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #efefef;
  text-decoration: none;
  transition: background 0.2s;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.cp-mag__item:last-child { border-bottom: none; }
.cp-mag__item:hover { background: #f9f9f9; }
.cp-mag__item-img {
  width: 90px;
  min-width: 90px;
  flex-shrink: 0;
  overflow: hidden;
  align-self: stretch;
}
.cp-mag__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cp-mag__item-body {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.cp-mag__item-title {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 12px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cp-mag__item-meta {
  font-size: 10px;
  color: #999;
  font-family: var(--font-ui, sans-serif);
}

/* ================================================================
   LAYOUT 3 — OVERLAY
   3 portrait cards with full-image and gradient text overlay
   ================================================================ */
.cp-overlay__wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cp-overlay__card {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  background: #111;
  aspect-ratio: 2 / 3;
  transition: transform 0.25s, box-shadow 0.25s;
}
.cp-overlay__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.cp-overlay__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  top: 0; left: 0;
  transition: transform 0.6s ease;
}
.cp-overlay__card:hover .cp-overlay__card-img {
  transform: scale(1.06);
}
.cp-overlay__card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0) 100%);
  z-index: 2;
}
.cp-overlay__badge {
  display: inline-block;
  background: #d40000;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-ui, 'Nunito', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 7px;
}
.cp-overlay__title {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cp-overlay__meta {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-ui, sans-serif);
}

/* ================================================================
   LAYOUT 4 — NEWSLIST
   Large hero image (left) + compact horizontal list of 5 (right)
   ================================================================ */
.cp-news__wrap {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 14px;
  min-height: 300px;
}
/* Hero: full-image overlay card */
.cp-news__hero {
  display: block;
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  text-decoration: none;
  background: #111;
  min-height: 300px;
}
.cp-news__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0; left: 0;
  transition: transform 0.6s ease;
}
.cp-news__hero:hover .cp-news__hero-img {
  transform: scale(1.05);
}
.cp-news__hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 80px 18px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0) 100%);
  z-index: 2;
}
.cp-news__badge {
  display: inline-block;
  background: #d40000;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-ui, 'Nunito', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.cp-news__hero-title {
  font-family: var(--font-heading, Georgia, serif);
  font-size: clamp(14px, 1.8vw, 22px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 8px;
}
.cp-news__hero-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-ui, sans-serif);
}
/* Right list */
.cp-news__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e8e8e8;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
.cp-news__item {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #efefef;
  text-decoration: none;
  transition: background 0.2s;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.cp-news__item:last-child { border-bottom: none; }
.cp-news__item:hover { background: #f9f9f9; }
.cp-news__item-img {
  width: 84px;
  min-width: 84px;
  flex-shrink: 0;
  overflow: hidden;
  align-self: stretch;
}
.cp-news__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cp-news__item-body {
  flex: 1;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.cp-news__item-title {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 12px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cp-news__item-meta {
  font-size: 10px;
  color: #999;
  font-family: var(--font-ui, sans-serif);
}

/* ================================================================
   BROWSE CATEGORIES — responsive colorful icon grid
   ================================================================ */
.cp-browse {
  background: #111;
  padding: 36px 0 44px;
  border-top: 4px solid #d40000;
}
.cp-browse__header {
  text-align: center;
  margin-bottom: 28px;
}
.cp-browse__title {
  font-family: var(--font-ui, 'Nunito', sans-serif);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cp-browse__title i { color: #d40000; }
.cp-browse__sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  font-family: var(--font-ui, sans-serif);
}
.cp-browse__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.cp-browse__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 10px 14px;
  border-radius: 10px;
  background: #d40000; /* overridden per-card via inline style */
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.2s;
  opacity: 0.88;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.cp-browse__card:hover {
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  text-decoration: none;
}
.cp-browse__icon {
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cp-browse__icon i {
  color: #fff;
  font-size: 18px;
}
.cp-browse__name {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-ui, 'Nunito', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.2;
}
.cp-browse__count {
  font-size: 10px;
  color: rgba(255,255,255,0.72);
  font-family: var(--font-ui, sans-serif);
  font-weight: 600;
}

/* ================================================================
   RESPONSIVE — TABLET (≤992px)
   ================================================================ */
@media (max-width: 992px) {
  .cp-grid__wrap {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .cp-overlay__wrap {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .cp-browse__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

/* ================================================================
   RESPONSIVE — MOBILE LANDSCAPE / LARGE PHONE (≤768px)
   ================================================================ */
@media (max-width: 768px) {
  /* ── Grid: 2 columns ── */
  .cp-grid__wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* ── Magazine: stack (big on top, list below) ── */
  .cp-mag__wrap {
    display: block; /* simple stack, not grid */
    min-height: unset;
  }
  .cp-mag__featured {
    border-radius: 7px;
    margin-bottom: 0;
  }
  .cp-mag__featured-link {
    min-height: 220px;
  }
  .cp-mag__list {
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 7px 7px;
  }
  .cp-mag__item-img { width: 78px; min-width: 78px; }

  /* ── Overlay: 3 columns (portrait cards stay compact) ── */
  .cp-overlay__wrap {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .cp-overlay__card { aspect-ratio: 1 / 1.4; }
  .cp-overlay__title { font-size: 11px; -webkit-line-clamp: 2; }
  .cp-overlay__card-info { padding: 40px 10px 12px; }

  /* ── Newslist: stack (hero on top, list below) ── */
  .cp-news__wrap {
    display: block;
    min-height: unset;
  }
  .cp-news__hero {
    min-height: 220px;
    border-radius: 7px 7px 0 0;
  }
  .cp-news__list {
    border-radius: 0 0 7px 7px;
    border-top: none;
  }
  .cp-news__item-img { width: 76px; min-width: 76px; }

  /* ── Browse categories: 3 columns ── */
  .cp-browse__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .cp-browse {
    padding: 24px 0 30px;
  }
  .cp-browse__icon { width: 38px; height: 38px; }
  .cp-browse__icon i { font-size: 15px; }
  .cp-browse__card { padding: 14px 8px 12px; gap: 6px; }
  .cp-browse__name { font-size: 10px; }
}

/* ================================================================
   RESPONSIVE — SMALL PHONE (≤480px)
   ================================================================ */
@media (max-width: 480px) {
  /* ── Grid stays 2 columns ── */
  .cp-grid__wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .cp-card__title { font-size: 12px; }

  /* ── Overlay: 2 columns on tiny screens ── */
  .cp-overlay__wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  /* ── Browse: 2 columns ── */
  .cp-browse__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .cp-browse__count { display: none; }
  .cp-browse__title { font-size: 13px; }
}

/* ── Hide old cat-nav-strip (replaced by cp-browse) ── */
.cat-nav-strip { display: none !important; }
