/*
Theme Name: WP-Press
Theme URI: https://example.com/wp-press
Author: WP-Press Team
Author URI: https://example.com
Description: A modern, magazine-style WordPress theme optimized for daily content publishing. Features 10+ color schemes, fully customizable layout, and Core Web Vitals optimization.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-flavor
Tags: blog, news, magazine, grid-layout, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */
:root {
  /* Default: Classic Gold */
  --color-primary: #C8A951;
  --color-primary-rgb: 200, 169, 81;
  --color-secondary: #2D2D2D;
  --color-accent: #E8D48B;
  --color-bg: #FFFFFF;
  --color-surface: #F8F8F8;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B6B6B;
  --color-border: #E0E0E0;
  --color-overlay: rgba(0, 0, 0, 0.55);

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --fs-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --fs-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --fs-md: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  --fs-lg: clamp(1.15rem, 1rem + 0.75vw, 1.5rem);
  --fs-xl: clamp(1.4rem, 1.1rem + 1.5vw, 2rem);
  --fs-2xl: clamp(1.8rem, 1.3rem + 2.5vw, 2.8rem);
  --fs-3xl: clamp(2.2rem, 1.5rem + 3.5vw, 3.5rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --container-max: 1280px;
  --container-wide: 1400px;
  --sidebar-width: 320px;
  --gap: 1.5rem;

  /* Misc */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-secondary);
}

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

h1 {
  font-size: var(--fs-3xl);
}

h2 {
  font-size: var(--fs-2xl);
}

h3 {
  font-size: var(--fs-xl);
}

h4 {
  font-size: var(--fs-lg);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: var(--container-wide);
}

.content-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 1024px) {
  .content-area--sidebar {
    grid-template-columns: 1fr var(--sidebar-width);
  }
}

.section {
  padding: var(--space-2xl) 0;
}

/* ==========================================================================
   SECTION STYLE VARIANTS (cycling 1–6 per homepage category section)
   ========================================================================== */

/* Style 1 – Clean white (default baseline) */
.section--style-1 {
  background: var(--color-bg);
}

/* Style 2 – Subtle surface tint with top/bottom borders */
.section--style-2 {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Style 3 – Left-accent ruled, light primary wash */
.section--style-3 {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.04) 0%, var(--color-bg) 60%);
  position: relative;
}

.section--style-3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Style 4 – Bold section header band */
.section--style-4 {
  background: var(--color-bg);
}

.section--style-4 .section__title {
  background: var(--color-secondary);
  color: #fff;
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border-bottom: none;
  margin-bottom: var(--space-lg);
}

.section--style-4 .section__title a {
  color: #fff;
}

.section--style-4 .section__title a:hover {
  color: var(--color-accent);
}

/* Style 5 – Dark/inverted card feel */
.section--style-5 {
  background: var(--color-secondary);
  color: var(--color-bg);
}

.section--style-5 .section__title {
  color: #fff;
  border-bottom-color: var(--color-accent);
}

.section--style-5 .section__title a {
  color: #fff;
}

.section--style-5 .section__title a:hover {
  color: var(--color-accent);
}

.section--style-5 .post-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section--style-5 .post-card__title a,
.section--style-5 .post-list-item__title a {
  color: #f0f0f0;
}

.section--style-5 .post-card__excerpt,
.section--style-5 .post-card__meta,
.section--style-5 .post-list-item__excerpt,
.section--style-5 .post-list-item__meta {
  color: rgba(255, 255, 255, 0.6);
}

/* Style 6 – Diagonal gradient accent strip */
.section--style-6 {
  background: linear-gradient(160deg, rgba(var(--color-primary-rgb), 0.07) 0%, var(--color-surface) 40%, var(--color-bg) 100%);
  border-top: 3px solid var(--color-accent);
}

.section--style-6 .section__title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.section--style-6 .section__title::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}


.section__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
}


.section__title a {
  color: inherit;
}

.section__title a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   4. TOP BAR
   ========================================================================== */
.top-bar {
  background: var(--color-secondary);
  color: #fff;
  font-size: var(--fs-xs);
  padding: var(--space-xs) 0;
}

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

.top-bar__date {
  opacity: 0.85;
}

.top-bar__social {
  display: flex;
  gap: var(--space-sm);
}

.top-bar__social a {
  color: #fff;
  opacity: 0.7;
  transition: opacity var(--transition);
  display: inline-flex;
  align-items: center;
}

.top-bar__social a:hover {
  opacity: 1;
  color: #fff;
}

.top-bar__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Top Bar secondary navigation (right side) */
.top-bar__nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.top-bar__menu {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.top-bar__menu li {
  display: inline-flex;
  align-items: center;
}

.top-bar__menu li + li {
  margin-left: var(--space-md);
}

.top-bar__menu a {
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 0;
  transition: opacity var(--transition);
  white-space: nowrap;
  text-decoration: none;
  opacity: 0.9;
}

.top-bar__menu a:hover {
  opacity: 1;
  color: #fff;
}

.top-bar__social {
  margin-left: var(--space-md);
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  gap: var(--space-lg);
}

.site-branding {
  flex-shrink: 0;
}

.site-branding img {
  max-height: 80px;
  width: auto;
}

.site-branding .site-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  margin: 0;
  line-height: 1;
}

.site-branding .site-title a {
  color: var(--color-secondary);
}

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

/* Primary Navigation */
.primary-nav {
  flex-grow: 1;
}

.primary-nav .menu {
  display: flex;
  gap: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.primary-nav .menu li {
  position: relative;
}

.primary-nav .menu>li>a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color var(--transition), background var(--transition);
}

.primary-nav .menu>li>a:hover,
.primary-nav .menu>li.current-menu-item>a,
.primary-nav .menu>li.current-menu-parent>a {
  color: var(--color-primary);
}

/* Dropdown */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

.primary-nav .menu li:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.primary-nav .sub-menu li:last-child a {
  border-bottom: 0;
}

.primary-nav .sub-menu a:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

/* Header Search */
.header-search {
  flex-shrink: 0;
}

.header-search form {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.header-search input[type="search"] {
  border: 0;
  background: transparent;
  padding: var(--space-sm) var(--space-md);
  width: 180px;
  outline: none;
  font-size: var(--fs-sm);
}

.header-search button {
  background: var(--color-primary);
  border: 0;
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition);
}

.header-search button:hover {
  background: var(--color-secondary);
}

.header-search button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--space-sm);
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   6. HERO SECTION (Homepage)
   ========================================================================== */
.hero-section {
  padding: var(--space-xl) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .hero-grid .hero-main {
    grid-row: 1 / 3;
  }
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-main .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #fff;
}

.hero-main .hero-overlay .cat-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.hero-main .hero-overlay h2 {
  color: #fff;
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.hero-main .hero-overlay h2 a {
  color: #fff;
}

.hero-main .hero-overlay h2 a:hover {
  color: var(--color-accent);
}

.hero-main .hero-overlay .post-meta {
  font-size: var(--fs-xs);
  opacity: 0.8;
}

/* Small hero items */
.hero-small {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 190px;
}

.hero-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-small .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #fff;
}

.hero-small .hero-overlay .cat-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.hero-small .hero-overlay h3 {
  color: #fff;
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.hero-small .hero-overlay h3 a {
  color: #fff;
}

.hero-small .hero-overlay h3 a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   7. HOMEPAGE H1 / TEXT SECTION
   ========================================================================== */
.homepage-heading {
  text-align: center;
  padding: 60px 0 40px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.homepage-heading h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.homepage-heading p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Homepage additional HTML content */
.homepage-html-content {
  max-width: 740px;
  margin: var(--space-xl) auto 0;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  text-align: left;
}

.homepage-html-content a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary);
  transition: all var(--transition);
}

.homepage-html-content a:hover {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

/* ==========================================================================
   7b. TABLE OF CONTENTS
   ========================================================================== */
.toc-box {
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
  border: none;
  border-left: 8px solid var(--color-primary);
  border-radius: var(--radius-md) var(--radius-xl) var(--radius-xl) var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  max-width: 100%;
}

.toc-box__title {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-bottom: 0;
  border-bottom: none;
}

.toc-box__list {
  margin: 0;
  padding-left: var(--space-lg);
  list-style: decimal;
}

.toc-box__sub {
  margin: var(--space-xs) 0 0;
  padding-left: var(--space-lg);
  list-style: lower-alpha;
}

.toc-box__list li,
.toc-box__sub li {
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.toc-box__list a,
.toc-box__sub a {
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color var(--transition);
}

.toc-box__list a:hover,
.toc-box__sub a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==========================================================================
   8. POST CARDS (Grid)
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 576px) {
  .posts-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .posts-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .posts-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.post-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.post-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.05);
}

.post-card__image .cat-badge {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  top: auto;
  background: var(--color-primary);
  color: #fff;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
  max-width: calc(100% - var(--space-md));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card__content {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__title {
  font-size: var(--fs-md);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.post-card__title a {
  color: var(--color-text);
}

.post-card__title a:hover {
  color: var(--color-primary);
}

.post-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  flex-wrap: wrap;
}

.post-card__meta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  margin-right: 4px;
  vertical-align: -2px;
}

/* Author name badge – always readable over any background */
.post-card__meta .byline a,
.post-list-item__meta .byline a {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background var(--transition);
}

.post-card__meta .byline a:hover,
.post-list-item__meta .byline a:hover {
  background: var(--color-secondary);
}

/* ==========================================================================
   9. POST LIST ITEMS (Sidebar Layout)
   ========================================================================== */
.post-list-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.post-list-item:last-child {
  border-bottom: 0;
}

.post-list-item__image {
  flex-shrink: 0;
  width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.post-list-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-list-item:hover .post-list-item__image img {
  transform: scale(1.05);
}

.post-list-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-list-item__cat {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.post-list-item__title {
  font-size: var(--fs-md);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.post-list-item__title a {
  color: var(--color-text);
}

.post-list-item__title a:hover {
  color: var(--color-primary);
}

.post-list-item__excerpt {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-list-item__meta {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

/* ==========================================================================
  10. FULL-WIDTH BANNER POST
   ========================================================================== */
.banner-post {
  position: relative;
  min-height: 480px; /* Taller to fit long titles easily */
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
}

.banner-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.banner-post .banner-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xl);
  background: linear-gradient(rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.85) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.banner-post .cat-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.banner-post h2 {
  color: #fff;
  font-size: var(--fs-xl);
  line-height: 1.3;
  max-width: 800px;
  margin-bottom: var(--space-md);
}

.banner-post h2 a {
  color: #fff;
}

.banner-post h2 a:hover {
  color: var(--color-accent);
}

.banner-post .post-meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.banner-post .post-meta .byline a {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background var(--transition);
}

.banner-post .post-meta .byline a:hover {
  background: var(--color-secondary);
}


/* ==========================================================================
  11. BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

.breadcrumbs a {
  color: var(--color-text-secondary);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs .sep {
  margin: 0 var(--space-sm);
}

/* ==========================================================================
  12. SINGLE POST
   ========================================================================== */
.single-post-header {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.single-post-header .cat-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.single-post-header h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-md);
}

.single-post-header .post-meta {
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.single-post-header .post-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.single-featured-image {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 500px;
}

.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post Content */
.entry-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: var(--fs-base);
  line-height: 1.8;
}

.entry-content p {
  margin-bottom: var(--space-lg);
}

.entry-content h2 {
  font-size: var(--fs-xl);
  margin: var(--space-2xl) 0 var(--space-md);
}

.entry-content h3 {
  font-size: var(--fs-lg);
  margin: var(--space-xl) 0 var(--space-md);
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 var(--space-lg) var(--space-xl);
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: var(--space-sm);
}

.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: var(--space-xl) 0;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: var(--fs-md);
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
}

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

.entry-content th,
.entry-content td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  text-align: left;
}

.entry-content th {
  background: var(--color-surface);
  font-weight: 600;
}

.entry-content pre {
  background: var(--color-secondary);
  color: #e0e0e0;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-lg) 0;
  font-size: var(--fs-sm);
}

.entry-content code {
  background: var(--color-surface);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

.entry-content pre code {
  background: none;
  padding: 0;
}

/* Author Box */
.author-box {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin: var(--space-2xl) auto;
  max-width: 780px;
}

.author-box__avatar {
  flex-shrink: 0;
}

.author-box__avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box__info h4 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-xs);
}

.author-box__info p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.author-box__social {
  margin-top: var(--space-md);
}

.author-box-social__links {
  display: flex;
  gap: var(--space-sm);
}

.author-box-social__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-surface) 50%, var(--color-border));
  color: var(--color-text-secondary);
  transition: all var(--transition);
}

.author-box-social__links a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.author-box-social__links svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Related Posts */
.related-posts {
  padding: var(--space-xl) 0;
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.related-posts__title {
  font-size: var(--fs-base);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

/* Smaller titles in related/homepage cards */
.related-posts .post-card__title {
  font-size: var(--fs-sm);
}

.related-posts .post-card__excerpt {
  -webkit-line-clamp: 2;
}

/* ==========================================================================
  13. SIDEBAR / WIDGETS
   ========================================================================== */
.sidebar .widget {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.sidebar .widget-title {
  font-size: var(--fs-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-primary);
}

.sidebar .widget ul li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}

.sidebar .widget ul li:last-child {
  border-bottom: 0;
}

.sidebar .widget ul li a {
  color: var(--color-text);
}

.sidebar .widget ul li a:hover {
  color: var(--color-primary);
}

/* Popular Posts Widget */
.popular-post-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.popular-post-item:last-child {
  border-bottom: 0;
}

.popular-post-item__num {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.3;
  line-height: 1;
  min-width: 30px;
}

.popular-post-item__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
}

.popular-post-item__title a {
  color: var(--color-text);
}

.popular-post-item__title a:hover {
  color: var(--color-primary);
}

.popular-post-item__date {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

/* Social Widget */
.social-links-widget {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.social-links-widget a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  transition: all var(--transition);
}

.social-links-widget a:hover {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px);
}

.social-links-widget a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Newsletter Widget */
.newsletter-widget p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.newsletter-widget input[type="email"] {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
  background: var(--color-bg);
}

.newsletter-widget button {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-size: var(--fs-sm);
}

.newsletter-widget button:hover {
  background: var(--color-secondary);
}

/* ==========================================================================
  14. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 0;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-widgets {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-widgets .widget-title {
  color: #fff;
  font-size: var(--fs-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
}

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

.footer-widgets .widget a:hover {
  color: var(--color-primary);
}

.footer-widgets .widget ul li {
  padding: var(--space-xs) 0;
  font-size: var(--fs-sm);
}

/* Footer navigation menu (above footer-bottom) */
.footer-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) 0;
  text-align: center;
}

.footer-nav__menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.footer-nav__menu li {
  display: inline-flex;
  align-items: center;
}

.footer-nav__menu li + li {
  margin-left: var(--space-lg);
}

.footer-nav__menu a {
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity var(--transition);
  white-space: nowrap;
  opacity: 0.85;
}

.footer-nav__menu a:hover {
  opacity: 1;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: var(--fs-xs);
}

.footer-bottom a {
  color: var(--color-primary);
}

/* ==========================================================================
  15. COMMENTS
   ========================================================================== */
.comments-area {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.comments-title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-xl);
}

.comment-list {
  margin-bottom: var(--space-2xl);
}

.comment {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.comment .comment-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.comment .comment-author img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.comment .comment-author .fn {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.comment .comment-metadata {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.comment .comment-content p {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-sm);
}

.comment .children {
  margin-left: var(--space-xl);
}

/* Comment Form */
.comment-form label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: var(--fs-sm);
  background: var(--color-bg);
}

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

.comment-form .submit {
  background: var(--color-primary);
  color: #fff;
  border: 0;
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-size: var(--fs-sm);
}

.comment-form .submit:hover {
  background: var(--color-secondary);
}

/* ==========================================================================
  16. PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-2xl) 0;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ==========================================================================
  17. ARCHIVE HEADER
   ========================================================================== */
.archive-header {
  padding: var(--space-2xl) 0 var(--space-lg);
  text-align: center;
  background: var(--color-surface);
  margin-bottom: var(--space-xl);
}

.archive-header h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-sm);
}

.archive-header .archive-description {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.archive-social {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
}

.archive-social__links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.archive-social__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
  color: var(--color-primary);
  transition: all var(--transition);
}

.archive-social__links a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.archive-social__links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
  18. 404 PAGE
   ========================================================================== */
.error-404 {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.error-404 .error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.2;
  line-height: 1;
}

.error-404 h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-md);
}

.error-404 p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  font-size: var(--fs-md);
}

.error-404 .search-form {
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================================================
  19. SEARCH FORM
   ========================================================================== */
.search-form {
  display: flex;
  gap: 0;
}

.search-form .search-field {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-right: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: var(--fs-sm);
}

.search-form .search-submit {
  background: var(--color-primary);
  color: #fff;
  border: 0;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.search-form .search-submit:hover {
  background: var(--color-secondary);
}

/* ==========================================================================
  20. BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
  21. RESPONSIVE (Mobile First Overrides)
   ========================================================================== */
@media (max-width: 1023px) {
  .menu-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--color-bg);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 1001;
    overflow-y: auto;
    padding: var(--space-2xl) var(--space-lg);
  }

  .primary-nav.active {
    right: 0;
  }

  .primary-nav .menu {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav .menu>li>a {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .primary-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding-left: var(--space-md);
  }

  .header-search {
    display: none;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .menu-overlay.active {
    display: block;
  }
}

@media (max-width: 767px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: 300px;
  }

  .hero-small {
    min-height: 150px;
  }

  .post-list-item {
    flex-direction: column;
  }

  .post-list-item__image {
    width: 100%;
  }

  .banner-post {
    min-height: 250px;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .author-box__avatar {
    display: flex;
    justify-content: center;
  }

  .top-bar__date {
    display: none;
  }
}

@media (max-width: 575px) {

  .posts-grid--2,
  .posts-grid--3,
  .posts-grid--4 {
    grid-template-columns: 1fr;
  }

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

/* ==========================================================================
  22. ACCESSIBILITY
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==========================================================================
  23. WORDPRESS SPECIFIC
   ========================================================================== */
.wp-caption {
  max-width: 100%;
  margin-bottom: var(--space-lg);
}

.wp-caption-text {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  text-align: center;
  padding: var(--space-sm);
}

.alignleft {
  float: left;
  margin: 0 var(--space-lg) var(--space-lg) 0;
}

.alignright {
  float: right;
  margin: 0 0 var(--space-lg) var(--space-lg);
}

.aligncenter {
  display: block;
  margin: var(--space-lg) auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.gallery-item img {
  border-radius: var(--radius-sm);
}

/* ==========================================================================
  24. PRINT STYLES
   ========================================================================== */
@media print {

  .top-bar,
  .site-header,
  .site-footer,
  .sidebar,
  .back-to-top,
  .comments-area,
  .related-posts,
  .pagination {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .entry-content {
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ==========================================================================
   25. PAGINATION
   ========================================================================== */
.pagination {
  margin: var(--space-2xl) auto;
  display: flex;
  justify-content: center;
}

.pagination .nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all var(--transition);
}

.pagination .page-numbers:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pagination .page-numbers.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  cursor: default;
}

.pagination .page-numbers.dots {
  background: none;
  border-color: transparent;
  cursor: default;
}

.pagination .page-numbers.dots:hover {
  background: none;
  color: var(--color-text);
}

/* ==========================================================================
   26. HOMEPAGE HEADING WITH IMAGE
   ========================================================================== */
.homepage-heading__inner--with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.homepage-heading__image {
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
}

.homepage-heading__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg, 12px);
  transition: transform 0.4s ease;
}

.homepage-heading__image img:hover {
  transform: scale(1.02);
}

.homepage-heading__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (max-width: 767px) {
  .homepage-heading__inner--with-image {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   27. CONTENT SECTIONS (About Me etc.)
   ========================================================================== */
.content-section {
  padding: var(--space-3xl) 0;
}

.content-section:nth-child(even) {
  background: var(--color-surface);
}

.content-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* Image on right: reverse column order */
.content-section--image-right .content-section__inner {
  direction: rtl;
}

.content-section--image-right .content-section__inner > * {
  direction: ltr;
}

.content-section__image {
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.content-section__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg, 12px);
  transition: transform 0.45s ease;
}

.content-section__image img:hover {
  transform: scale(1.03);
}

.content-section__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.content-section__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0;
}

.content-section__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.content-section__content {
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.content-section__content p {
  margin-bottom: var(--space-md);
}

.content-section__content p:last-child {
  margin-bottom: 0;
}

.content-section__content a {
  color: var(--color-primary);
  font-weight: 600;
}

.content-section__content a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .content-section__inner {
    grid-template-columns: 1fr;
  }

  .content-section--image-right .content-section__inner {
    direction: ltr;
  }
}

/* ==========================================================================
   28. HERO LAYOUT VARIANTS
   ========================================================================== */

/* ── Magazine layout ────────────────────────────────────────────────────── */
.hero-section--magazine .hero-grid--magazine {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
}

.hero-section--magazine .hero-main {
  grid-row: 1 / 3;
}

.hero-section--magazine .hero-medium {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
}

.hero-section--magazine .hero-medium img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section--magazine .hero-medium .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-section--magazine .hero-medium .hero-overlay .cat-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.hero-section--magazine .hero-medium .hero-overlay h3 {
  color: #fff;
  font-size: var(--fs-lg);
  line-height: 1.35;
  margin: 0;
}

.hero-section--magazine .hero-medium .hero-overlay h3 a {
  color: #fff;
}

.hero-section--magazine .hero-medium .hero-overlay h3 a:hover {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .hero-section--magazine .hero-grid--magazine {
    grid-template-columns: 1fr;
  }
  .hero-section--magazine .hero-main {
    grid-row: auto;
  }
}

/* ── Spotlight layout ───────────────────────────────────────────────────── */
.hero-section--spotlight .hero-spotlight {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 520px;
}

.hero-section--spotlight .hero-spotlight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section--spotlight .hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-2xl);
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}

.hero-section--spotlight .hero-overlay h2 {
  font-size: var(--fs-2xl);
  color: #fff;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.hero-section--spotlight .hero-overlay h2 a {
  color: inherit;
}

.hero-section--spotlight .hero-overlay .post-meta {
  color: rgba(255,255,255,.8);
  font-size: var(--fs-sm);
}

@media (max-width: 767px) {
  .hero-section--spotlight .hero-spotlight {
    min-height: 320px;
  }
}

/* ── Rows layout ────────────────────────────────────────────────────────── */
.hero-section--rows .hero-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.hero-row:hover {
  box-shadow: var(--shadow-md);
}

.hero-row__image {
  height: 180px;
  overflow: hidden;
}

.hero-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-row:hover .hero-row__image img {
  transform: scale(1.05);
}

.hero-row__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.hero-row__body h2,
.hero-row__body h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.hero-row__body h2 a,
.hero-row__body h3 a {
  color: var(--color-text);
}

.hero-row__body h2 a:hover,
.hero-row__body h3 a:hover {
  color: var(--color-primary);
}

.hero-row__body .post-meta {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

@media (max-width: 767px) {
  .hero-row {
    grid-template-columns: 1fr;
  }

  .hero-row__image {
    height: 200px;
  }
}