/* ============================================================
   INTERIOR PAGE STYLES
   Brand Guidelines, Visual Assets, News & Updates
   ============================================================
   These styles cover all interior page templates. They build on
   the base variables and reset defined in main.css and complement
   the header/footer styles already in place.
   ============================================================ */

/* ============================================================
   SEMANTIC COLORS — File type badges & category tags
   ============================================================ */
:root {
  /* File type badge colors */
  --badge-pdf: #BF0D3E;
  --badge-svg: #059669;
  --badge-png: #7c3aed;
  --badge-eps: #d97706;
  --badge-pptx: #2563eb;
  --badge-docx: #2563eb;
  --badge-zip: #6b7280;
  --badge-jpg: #0891b2;
  --badge-mp4: #dc2626;

  /* Status colors */
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
}

/* ============================================================
   PAGE HERO — Compact interior version
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: var(--dark-bg);
  padding: 72px 0 0;
  overflow: hidden;
}

.page-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      var(--dark-bg) 0%,
      #3e1a2a 25%,
      var(--dark-bg) 50%,
      #1a2a4e 75%,
      var(--dark-bg) 100%);
  background-size: 400% 400%;
  animation: interiorGradientShift 20s ease infinite;
}

@keyframes interiorGradientShift {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 100% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  75% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Dot particles */
.page-hero-dots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.2;
}

.dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(191, 13, 62, 0.5);
  animation: interiorFloatDot 8s ease-in-out infinite;
}

@keyframes interiorFloatDot {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-20px) scale(1.3);
    opacity: 0.6;
  }
}

.page-hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 13, 62, 0.12) 0%, transparent 70%);
  top: -100px;
  right: 10%;
  animation: interiorPulseGlow 8s ease-in-out infinite;
}

@keyframes interiorPulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px 48px;
  width: 100%;
}

.page-hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.6;
}

/* Hero stats row (downloads page) */
.page-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* ============================================================
   BREADCRUMBS — Interior hero style
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

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

.breadcrumb .breadcrumb-sep,
.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
}

.breadcrumb .current,
.breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Breadcrumb list style (from breadcrumbs.php template part) */
.breadcrumbs {
  margin-bottom: 20px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  padding: 0;
}

.breadcrumb-list a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

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

.breadcrumb-item.current span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
}

/* ============================================================
   CONTENT LAYOUT — Sidebar + Main (Guidelines page)
   ============================================================ */
.content-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

/* ============================================================
   SIDEBAR — Sticky glass navigation
   ============================================================ */
.sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-nav {
  background: var(--glass-bg-light);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.sidebar-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-600);
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.sidebar-links a:hover {
  color: var(--gray-900);
  background: rgba(0, 0, 0, 0.03);
}

.sidebar-links a.active {
  color: var(--cooper-red);
  background: rgba(191, 13, 62, 0.06);
  border-left-color: var(--cooper-red);
  font-weight: 600;
}

.sidebar-links .link-number {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-400);
  min-width: 18px;
}

.sidebar-links a.active .link-number {
  color: var(--cooper-red);
}

/* Progress indicator */
.sidebar-progress {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.sidebar-progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.sidebar-progress-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.sidebar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cooper-red), var(--cooper-red-light));
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s ease;
}

/* ============================================================
   MAIN CONTENT AREA — Section patterns
   ============================================================ */
.page-content {
  min-width: 0;
}

/* Section spacing */
.content-section {
  margin-bottom: 72px;
  /* Scroll reveal */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.content-section:nth-child(1) {
  transition-delay: 0s;
}

.content-section:nth-child(2) {
  transition-delay: 0.08s;
}

.content-section:nth-child(3) {
  transition-delay: 0.12s;
}

.content-section:nth-child(4) {
  transition-delay: 0.16s;
}

.content-section:nth-child(5) {
  transition-delay: 0.2s;
}

/* Section header pattern */
.content-section .section-label {
  margin-bottom: 12px;
}

.content-section .section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 8px;
}

.content-section .section-subtitle {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
  font-weight: 300;
  max-width: 640px;
  margin-bottom: 32px;
  margin-top: 0;
}

/* ============================================================
   GUIDELINES PAGE — Logo display grid
   ============================================================ */
.logo-display-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.logo-display-card {
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-display-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.logo-display-card.light-bg {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.logo-display-card.light-bg:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
}

.logo-display-card.dark-bg {
  background: var(--dark-bg);
  box-shadow: var(--shadow-md);
}

.logo-display-card.dark-bg:hover {
  box-shadow: var(--shadow-xl);
}

.logo-display-card img {
  max-height: 56px;
  width: auto;
}

.logo-display-card.dark-bg img {
  filter: brightness(0) invert(1);
}

.logo-display-label {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.light-bg .logo-display-label {
  color: var(--gray-400);
}

.dark-bg .logo-display-label {
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   GUIDELINES PAGE — Clear space diagram
   ============================================================ */
.clearspace-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clearspace-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.clearspace-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.clearspace-logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.clearspace-logo-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px dashed var(--cooper-red);
  border-radius: var(--radius-xs);
  opacity: 0.35;
}

.clearspace-logo-wrapper img {
  max-height: 48px;
  width: auto;
  position: relative;
  z-index: 1;
}

/* Measurement arrows */
.measure {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.measure-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cooper-red);
  background: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.measure-top {
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.measure-bottom {
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.measure-left {
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.measure-right {
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.clearspace-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--gray-500);
  font-weight: 300;
  line-height: 1.6;
}

.clearspace-note strong {
  color: var(--gray-700);
  font-weight: 600;
}

/* ============================================================
   GUIDELINES PAGE — Minimum size
   ============================================================ */
.min-size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.min-size-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.min-size-card:hover {
  transform: translateY(-4px);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
}

.min-size-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  margin-bottom: 16px;
}

.min-size-preview img {
  width: auto;
}

.min-size-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.min-size-value {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 400;
}

.min-size-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-ok {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-caution {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-no {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error-border);
}

/* ============================================================
   GUIDELINES PAGE — Do's and don'ts grid
   ============================================================ */
.dos-donts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.dd-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dd-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.dd-card.do-card {
  background: var(--white);
  border: 2px solid var(--success-border);
}

.dd-card.do-card:hover {
  border-color: var(--success);
}

.dd-card.dont-card {
  background: var(--white);
  border: 2px solid var(--error-border);
}

.dd-card.dont-card:hover {
  border-color: var(--error);
}

.dd-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 32px;
  position: relative;
  background: var(--gray-50);
}

.dd-preview img {
  max-height: 44px;
  width: auto;
}

/* Misuse visual treatments */
.dd-preview.stretched img {
  transform: scaleX(1.4);
}

.dd-preview.rotated img {
  transform: rotate(15deg);
}

.dd-preview.low-contrast img {
  opacity: 0.25;
}

.dd-preview.wrong-color img {
  filter: hue-rotate(180deg) saturate(0.6);
}

.dd-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.do-card .dd-status {
  color: var(--success);
}

.dont-card .dd-status {
  color: var(--error);
}

.dd-status-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.do-card .dd-status-icon {
  background: var(--success);
  color: white;
}

.dont-card .dd-status-icon {
  background: var(--error);
  color: white;
}

.dd-text {
  padding: 0 20px 20px;
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 300;
  line-height: 1.5;
}

/* ============================================================
   GUIDELINES PAGE — Download cards (dark tiles)
   ============================================================ */
.download-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.download-card {
  background: var(--dark-bg);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.download-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cooper-red-light);
}

.download-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.download-card-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.download-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cooper-red-light);
  cursor: pointer;
  transition: gap 0.2s ease;
}

.download-card:hover .download-card-action {
  gap: 10px;
}

/* ============================================================
   PREV / NEXT NAVIGATION
   ============================================================ */
.page-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}

.page-nav-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.page-nav-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

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

.page-nav-direction {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-nav-card.next .page-nav-direction {
  justify-content: flex-end;
}

.page-nav-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.page-nav-card:hover .page-nav-title {
  color: var(--cooper-red);
}

/* WP post navigation styling */
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}

.post-navigation .nav-links a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}

.post-navigation .nav-links a:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.post-navigation .nav-previous {
  text-align: left;
}

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

.post-navigation .nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

.post-navigation .nav-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.post-navigation a:hover .nav-title {
  color: var(--cooper-red);
}

/* ============================================================
   FILTER BAR — Sticky glassmorphic strip (Downloads page)
   ============================================================ */
.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 900;
  background: rgba(248, 249, 251, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease;
}

.filter-bar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.filter-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-500);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--gray-700);
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.filter-tab.active {
  color: var(--white);
  background: var(--cooper-red);
  border-color: var(--cooper-red);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(191, 13, 62, 0.25);
}

.filter-tab .tab-count {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 7px;
  border-radius: 100px;
  opacity: 0.7;
}

.filter-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

/* Filter search input */
.filter-search {
  position: relative;
  flex-shrink: 0;
}

.filter-search input {
  width: 220px;
  padding: 9px 14px 9px 36px;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xs);
  color: var(--gray-800);
  outline: none;
  transition: all 0.2s ease;
}

.filter-search input::placeholder {
  color: var(--gray-400);
}

.filter-search input:focus {
  border-color: var(--cooper-red);
  box-shadow: 0 0 0 3px rgba(191, 13, 62, 0.08);
}

.filter-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

/* ============================================================
   ASSET GRID — Bento-inspired download cards
   ============================================================ */
.asset-section {
  padding: 48px 0 80px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

/* Asset card base */
.asset-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.asset-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

.asset-card.revealed:hover {
  transform: translateY(-6px);
}

/* Card spanning */
.card-2col {
  grid-column: span 2;
}

/* Featured card — dark */
.card-featured {
  background: var(--dark-bg);
  color: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.card-featured:hover {
  box-shadow: var(--shadow-xl);
}

.card-featured-preview {
  position: relative;
  height: 200px;
  background: var(--dark-bg-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-featured-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(191, 13, 62, 0.08) 0%, transparent 50%, rgba(42, 59, 107, 0.08) 100%);
}

.card-featured-preview img {
  max-height: 140px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.card-featured-preview .preview-placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.25);
}

.card-featured-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-featured .card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.card-featured .card-title {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.card-featured .card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
  margin-bottom: 20px;
}

.card-featured .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Standard card — white */
.card-standard {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card-standard:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
}

.card-standard-preview {
  position: relative;
  height: 180px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
}

.card-standard-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-standard:hover .card-standard-preview img {
  transform: scale(1.04);
}

.card-standard-preview .preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gray-400);
}

.card-standard-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-standard .card-title {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-standard .card-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 300;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.card-standard .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-file-size {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 400;
}

/* ============================================================
   FILE TYPE BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 100px;
  line-height: 1;
}

.badge-pdf {
  background: rgba(191, 13, 62, 0.12);
  color: var(--badge-pdf);
}

.badge-svg {
  background: rgba(5, 150, 105, 0.12);
  color: var(--badge-svg);
}

.badge-png {
  background: rgba(124, 58, 237, 0.12);
  color: var(--badge-png);
}

.badge-eps {
  background: rgba(217, 119, 6, 0.12);
  color: var(--badge-eps);
}

.badge-pptx {
  background: rgba(37, 99, 235, 0.12);
  color: var(--badge-pptx);
}

.badge-docx {
  background: rgba(37, 99, 235, 0.12);
  color: var(--badge-docx);
}

.badge-zip {
  background: rgba(107, 114, 128, 0.12);
  color: var(--badge-zip);
}

.badge-jpg {
  background: rgba(8, 145, 178, 0.12);
  color: var(--badge-jpg);
}

.badge-mp4 {
  background: rgba(220, 38, 38, 0.12);
  color: var(--badge-mp4);
}

/* Dark card badge overrides */
.card-featured .badge-pdf {
  background: rgba(191, 13, 62, 0.2);
  color: #f87171;
}

.card-featured .badge-svg {
  background: rgba(5, 150, 105, 0.2);
  color: #6ee7b7;
}

.card-featured .badge-png {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}

.card-featured .badge-eps {
  background: rgba(217, 119, 6, 0.2);
  color: #fcd34d;
}

.card-featured .badge-pptx {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
}

.card-featured .badge-zip {
  background: rgba(107, 114, 128, 0.2);
  color: #d1d5db;
}

/* ============================================================
   DOWNLOAD BUTTONS
   ============================================================ */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-download-primary {
  background: var(--cooper-red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(191, 13, 62, 0.25);
}

.btn-download-primary:hover {
  background: var(--cooper-red-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(191, 13, 62, 0.35);
}

.btn-download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-download-icon.light {
  background: var(--gray-100);
  color: var(--gray-600);
}

.btn-download-icon.light:hover {
  background: var(--cooper-red);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(191, 13, 62, 0.25);
}

.btn-download-icon.dark {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.btn-download-icon.dark:hover {
  background: var(--cooper-red);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(191, 13, 62, 0.25);
}

/* ============================================================
   RECENTLY ADDED — Horizontal scroll row
   ============================================================ */
.recent-section {
  padding: 0 0 80px;
}

.recent-scroll-wrapper {
  position: relative;
}

.recent-scroll {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

.recent-scroll::-webkit-scrollbar {
  height: 4px;
}

.recent-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.recent-scroll::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

.recent-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(20px);
}

.recent-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.recent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.recent-card-preview {
  height: 140px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
}

.recent-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-card:hover .recent-card-preview img {
  transform: scale(1.04);
}

.recent-card-body {
  padding: 16px;
}

.recent-card-date {
  font-size: 0.7rem;
  color: var(--cooper-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.recent-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.recent-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Load more */
.load-more-wrapper {
  text-align: center;
  padding: 20px 0 0;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.btn-load-more:hover {
  color: var(--cooper-red);
  border-color: var(--cooper-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   NEWS PAGE — Featured post card
   ============================================================ */
.featured-section {
  padding: 48px 0 0;
}

.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(30px);
}

.featured-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.featured-card.revealed:hover {
  transform: translateY(-6px);
}

.featured-card>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover>img {
  transform: scale(1.03);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(26, 26, 46, 0.92) 0%,
      rgba(26, 26, 46, 0.5) 40%,
      rgba(26, 26, 46, 0.15) 70%,
      transparent 100%);
}

.featured-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 680px;
}

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

.featured-content h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.featured-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 20px;
}

/* ============================================================
   NEWS PAGE — Category tags
   ============================================================ */
.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
}

.tag-announcement {
  background: rgba(191, 13, 62, 0.2);
  color: var(--cooper-red-light);
  border: 1px solid rgba(191, 13, 62, 0.3);
}

.tag-guidelines {
  background: rgba(42, 59, 107, 0.2);
  color: var(--navy-light);
  border: 1px solid rgba(42, 59, 107, 0.3);
}

.tag-asset {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tag-tips {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Light variants (on white cards) */
.tag-announcement-light {
  background: rgba(191, 13, 62, 0.08);
  color: var(--cooper-red);
  border: 1px solid rgba(191, 13, 62, 0.15);
}

.tag-guidelines-light {
  background: rgba(42, 59, 107, 0.08);
  color: var(--navy);
  border: 1px solid rgba(42, 59, 107, 0.15);
}

.tag-asset-light {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.tag-tips-light {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.date-badge {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.date-badge-dark {
  color: var(--gray-400);
}

/* Read more link */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cooper-red-light);
  transition: all 0.2s ease;
}

.read-more:hover {
  gap: 10px;
}

.read-more-dark {
  color: var(--cooper-red);
}

.read-more-dark:hover {
  color: var(--cooper-red-light);
}

/* ============================================================
   NEWS PAGE — Category filter pills
   ============================================================ */
.filters-section {
  padding: 48px 0 0;
}

.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.filter-pill:hover {
  color: var(--gray-800);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.filter-pill.active {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}

.filter-pill.active:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
}

/* ============================================================
   NEWS PAGE — Post grid
   ============================================================ */
.posts-section {
  padding: 40px 0 80px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* Post card */
.post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
}

.post-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-hover);
}

.post-card.revealed:hover {
  transform: translateY(-6px);
}

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

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.post-card-image .category-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Placeholder gradient for cards without thumbnails */
.post-card-placeholder {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #3e1a2a 50%, var(--dark-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-placeholder svg {
  color: rgba(255, 255, 255, 0.15);
}

.post-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-date {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-card-title {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  margin-top: 20px;
}

/* Post card category badge */
.post-card-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  background: rgba(191, 13, 62, 0.08);
  color: var(--cooper-red);
  border: 1px solid rgba(191, 13, 62, 0.15);
}

/* ============================================================
   NEWS PAGE — Subscribe CTA card (dark)
   ============================================================ */
.cta-card {
  background: var(--dark-bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(30px);
}

.cta-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.cta-card.revealed:hover {
  transform: translateY(-6px);
}

.cta-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cooper-red-light);
}

.cta-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.cta-card-title {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.cta-card-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 24px;
}

.cta-email-form {
  display: flex;
  gap: 8px;
}

.cta-email-input {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  color: var(--white);
  outline: none;
  transition: all 0.2s ease;
}

.cta-email-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.cta-email-input:focus {
  border-color: rgba(191, 13, 62, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 80px;
}

.page-btn,
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 4px;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
}

.page-btn:hover,
.pagination .page-numbers:hover {
  color: var(--gray-800);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.page-btn.active,
.pagination .page-numbers.current {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}

.page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.page-dots,
.pagination .dots {
  font-size: 0.88rem;
  color: var(--gray-400);
  padding: 0 4px;
  user-select: none;
}

/* WP paginate_links styling */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 80px;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 4px;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pagination-wrapper .page-numbers:hover {
  color: var(--gray-800);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.pagination-wrapper .page-numbers.current {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}

/* ============================================================
   CONTENT TYPOGRAPHY — Prose styles for WYSIWYG
   ============================================================ */
.prose {
  max-width: 800px;
  margin: 0 auto;
  color: var(--gray-700);
  line-height: 1.75;
}

.prose h1 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 48px;
  margin-bottom: 24px;
}

.prose h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 40px;
  margin-bottom: 20px;
}

.prose h3 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 16px;
}

.prose h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.35;
  margin-top: 28px;
  margin-bottom: 12px;
}

.prose h5,
.prose h6 {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  margin-top: 24px;
  margin-bottom: 12px;
}

.prose p {
  margin-bottom: 28px;
  font-size: 1.2rem;
  color: var(--gray-700);
}

.prose a {
  color: var(--cooper-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--cooper-red-light);
}

.prose strong {
  font-weight: 700;
  color: var(--gray-900);
}

.prose ul,
.prose ol {
  margin-bottom: 28px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.prose ul li::marker {
  color: var(--cooper-red);
}

.prose ol li::marker {
  color: var(--cooper-red);
  font-weight: 700;
}

.prose blockquote {
  margin: 48px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--cooper-red);
  background: var(--gray-50);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray-600);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose img {
  margin: 48px 0;
}

.prose figure {
  margin: 48px 0;
}

.prose figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--gray-400);
  text-align: center;
  font-style: italic;
}

.prose table {
  width: 100%;
  margin: 48px 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose thead th {
  background: var(--gray-100);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--gray-200);
  color: var(--gray-800);
}

.prose tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.prose tbody tr:hover {
  background: var(--gray-50);
}

.prose hr {
  margin: 48px 0;
  border: none;
  height: 1px;
  background: var(--gray-200);
}

.prose code {
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--cooper-red);
}

.prose pre {
  margin: 24px 0;
  padding: 24px;
  background: var(--dark-bg);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  color: rgba(255, 255, 255, 0.8);
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.85rem;
}

/* ============================================================
   ALTERNATING SECTION BANDS — Visual separation for H2 sections
   ============================================================ */
.prose-section {
  padding: 40px 32px;
  margin: 0 -32px;
  border-radius: var(--radius-sm);
}

.prose-section--alt {
  background: #f0f1fa;
}

.prose-section>h2:first-child {
  margin-top: 0;
}

.prose-section>*:last-child {
  margin-bottom: 0;
}

/* ============================================================
   WP BLOCK ACCORDION — Matches mockup-03 scroll-animations
   White card, 1px border, chevron icon, red open state.
   ============================================================ */
.wp-block-accordion-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.wp-block-accordion-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wp-block-accordion-heading,
.prose .wp-block-accordion-heading,
.prose h3.wp-block-accordion-heading {
  padding: 0;
  margin: 0;
}

.wp-block-accordion-heading__toggle {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  cursor: pointer;
  transition: color 0.2s ease;
  text-align: left;
}

.wp-block-accordion-heading__toggle:hover {
  color: var(--cooper-red);
}

/* Open state — title turns red */
.wp-block-accordion-heading__toggle[aria-expanded="true"] {
  color: var(--cooper-red);
}

/* Replace + text with a CSS chevron */
.wp-block-accordion-heading__toggle-icon {
  font-size: 0;
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-block-accordion-heading__toggle-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gray-400);
  border-bottom: 2px solid var(--gray-400);
  transform: translate(-50%, -65%) rotate(45deg);
  transition: border-color 0.2s ease;
}

/* Open state — chevron rotates and turns red */
.wp-block-accordion-heading__toggle[aria-expanded="true"] .wp-block-accordion-heading__toggle-icon {
  transform: rotate(180deg);
}

.wp-block-accordion-heading__toggle[aria-expanded="true"] .wp-block-accordion-heading__toggle-icon::before {
  border-color: var(--cooper-red);
}

.wp-block-accordion-panel {
  padding: 0 40px 40px;
  color: var(--gray-500);
  line-height: 1.7;
}

.wp-block-accordion-panel p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   SINGLE POST — Post meta and featured image
   ============================================================ */
.single-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.post-featured-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.post-date {
  font-size: 0.82rem;
  color: var(--gray-400);
  font-weight: 500;
}

.post-category a {
  display: inline-flex;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  background: rgba(191, 13, 62, 0.08);
  color: var(--cooper-red);
  border: 1px solid rgba(191, 13, 62, 0.15);
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-category a:hover {
  background: rgba(191, 13, 62, 0.15);
}

/* ============================================================
   CONTENT AREA — Generic page layout
   ============================================================ */
.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

/* ============================================================
   404 PAGE — Brand gradient treatment
   ============================================================ */
.error-page-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg);
  overflow: hidden;
}

.error-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      var(--dark-bg) 0%,
      #3e1a2a 25%,
      var(--dark-bg) 50%,
      #1a2a4e 75%,
      var(--dark-bg) 100%);
  background-size: 400% 400%;
  animation: interiorGradientShift 20s ease infinite;
}

.error-page-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 40px;
}

.error-title {
  font-family: var(--font-primary);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--cooper-red) 0%, var(--cooper-red-light) 50%, var(--navy-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.error-message {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.error-search {
  max-width: 400px;
  margin: 0 auto 32px;
}

.error-search .search-form {
  display: flex;
  gap: 8px;
}

.error-search .search-field {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--font-primary);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  color: var(--white);
  outline: none;
  transition: all 0.2s ease;
}

.error-search .search-field::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.error-search .search-field:focus {
  border-color: rgba(191, 13, 62, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.error-search .search-submit {
  padding: 14px 24px;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--cooper-red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.error-search .search-submit:hover {
  background: var(--cooper-red-light);
}

/* ============================================================
   SEARCH RESULTS — Empty state
   ============================================================ */
.no-results {
  text-align: center;
  padding: 80px 40px;
}

.no-results h2 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.no-results p {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 300;
  margin-bottom: 32px;
}

.no-results .search-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.no-results .search-field {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--font-primary);
  font-size: 0.92rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xs);
  color: var(--gray-800);
  outline: none;
  transition: all 0.2s ease;
}

.no-results .search-field:focus {
  border-color: var(--cooper-red);
  box-shadow: 0 0 0 3px rgba(191, 13, 62, 0.08);
}

.no-results .search-submit {
  padding: 14px 24px;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--cooper-red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.no-results .search-submit:hover {
  background: var(--cooper-red-light);
}

/* ============================================================
   SCROLL REVEAL STAGGER — Interior page elements
   ============================================================ */
.asset-card:nth-child(1) {
  transition-delay: 0.05s;
}

.asset-card:nth-child(2) {
  transition-delay: 0.1s;
}

.asset-card:nth-child(3) {
  transition-delay: 0.15s;
}

.asset-card:nth-child(4) {
  transition-delay: 0.2s;
}

.asset-card:nth-child(5) {
  transition-delay: 0.25s;
}

.asset-card:nth-child(6) {
  transition-delay: 0.3s;
}

.asset-card:nth-child(7) {
  transition-delay: 0.35s;
}

.asset-card:nth-child(8) {
  transition-delay: 0.4s;
}

.recent-card:nth-child(1) {
  transition-delay: 0.05s;
}

.recent-card:nth-child(2) {
  transition-delay: 0.1s;
}

.recent-card:nth-child(3) {
  transition-delay: 0.15s;
}

.recent-card:nth-child(4) {
  transition-delay: 0.2s;
}

.recent-card:nth-child(5) {
  transition-delay: 0.25s;
}

.recent-card:nth-child(6) {
  transition-delay: 0.3s;
}

.post-card:nth-child(1),
.cta-card:nth-child(1) {
  transition-delay: 0.05s;
}

.post-card:nth-child(2) {
  transition-delay: 0.1s;
}

.post-card:nth-child(3),
.cta-card:nth-child(3) {
  transition-delay: 0.15s;
}

.post-card:nth-child(4) {
  transition-delay: 0.2s;
}

.post-card:nth-child(5) {
  transition-delay: 0.25s;
}

.post-card:nth-child(6) {
  transition-delay: 0.3s;
}

.asset-card,
.recent-card,
.post-card,
.cta-card,
.featured-card {
  transition-property: opacity, transform, box-shadow, border-color, background;
  transition-duration: 0.6s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   GUTENBERG BUTTON BLOCKS — Interior page navigation buttons
   ============================================================ */

/* Container: flexbox grid with consistent spacing */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
}

/* Individual button wrapper — reset Gutenberg defaults */
.wp-block-button {
  margin: 0;
}

/* Base link styles shared by all button variants */
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* Focus state for keyboard navigation */
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--cooper-red);
  outline-offset: 2px;
}

/* ---- Shared red button base (both default and fill) ---- */
.wp-block-button__link {
  background: var(--cooper-red) !important;
  color: var(--white) !important;
  border: 1px solid var(--cooper-red) !important;
  box-shadow: 0 2px 8px rgba(191, 13, 62, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Gradient shine sweep on hover */
.wp-block-button__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.3) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
  z-index: -1;
}
.wp-block-button__link:hover::before {
  left: 100%;
}
.wp-block-button__link:hover {
  box-shadow: 0 4px 16px rgba(191, 13, 62, 0.35);
  transform: translateY(-1px);
}

/* ---- Outline variant — keeps the white/border look ---- */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--white) !important;
  color: var(--cooper-red) !important;
  border: 1px solid var(--cooper-red) !important;
  box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--cooper-red) !important;
  color: var(--white) !important;
}

/* ---- Override any inline Gutenberg background/color that clashes ---- */
.wp-block-button__link,
.wp-block-button__link:visited {
  /* Let our classes win over WP inline styles */
  text-decoration: none !important;
}

/* ============================================================
   SCROLL REVEAL ANIMATION SYSTEM
   Elements start hidden and animate in as they enter the
   viewport. Applied via JS (IntersectionObserver).
   ============================================================ */

/* Fade up — the default. Content rises gently into place. */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Fade from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Fade from right */
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up — for images, cards, embeds */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children — cascading reveal for lists, grids */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.revealed>*:nth-child(1) {
  transition-delay: 0s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.revealed>*:nth-child(2) {
  transition-delay: 0.08s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.revealed>*:nth-child(3) {
  transition-delay: 0.16s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.revealed>*:nth-child(4) {
  transition-delay: 0.24s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.revealed>*:nth-child(5) {
  transition-delay: 0.32s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.revealed>*:nth-child(6) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.revealed>*:nth-child(n+7) {
  transition-delay: 0.48s;
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   READING PROGRESS BAR
   Fixed to top of viewport, width driven by scroll position JS.
   ============================================================ */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cooper-red), var(--cooper-red-light), #2a3b6b);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(191, 13, 62, 0.4);
  pointer-events: none;
}

/* Shift progress bar below the WP admin bar when logged in */
.admin-bar .reading-progress-bar {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .reading-progress-bar {
    top: 46px;
  }
}

/* ============================================================
   SECTION HEADING ANIMATED UNDERLINE
   .has-large-font-size is WP's way of marking section headings.
   The underline grows in when the heading is revealed.
   ============================================================ */
.prose .has-large-font-size {
  position: relative;
  padding-bottom: 16px;
  line-height: 1.25;
}

.prose .has-large-font-size::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--cooper-red), var(--cooper-red-light));
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.prose .has-large-font-size.revealed::after {
  width: 60px;
}

.prose h2 {
  position: relative;
  padding-bottom: 16px;
}

.prose h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--cooper-red), var(--cooper-red-light));
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.prose h2.revealed::after {
  width: 60px;
}

/* ============================================================
   ANIMATED SECTION DIVIDER — wp-block-separator / hr
   A gradient line that scales in from center on reveal.
   ============================================================ */
.prose .wp-block-separator,
.prose hr {
  border: none;
  margin: 56px 0;
  height: 1px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.prose .wp-block-separator::after,
.prose hr::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200) 20%, var(--cooper-red) 50%, var(--gray-200) 80%, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.prose .wp-block-separator.revealed::after,
.prose hr.revealed::after {
  transform: scaleX(1);
}

/* Inside accordion panels, separators can't be observed for reveal
   (they're display:none when closed), so always show them. */
.wp-block-accordion-panel .wp-block-separator::after,
.wp-block-accordion-panel hr::after {
  transform: scaleX(1);
}

/* ============================================================
   PULL QUOTE / BLOCKQUOTE ENHANCEMENTS
   Adds background, decorative open-quote glyph.
   Builds on existing .prose blockquote styles (border-left etc.)
   ============================================================ */
.prose blockquote,
.prose .wp-block-quote {
  position: relative;
  background: #f0f1fa;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  overflow: hidden;
}

.prose blockquote::before,
.prose .wp-block-quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--cooper-red);
  opacity: 0.1;
  line-height: 1;
}

/* Pull quote block — standalone highlighted quote */
.prose .wp-block-pullquote {
  margin: 48px 0;
  padding: 40px 40px 40px 48px;
  background: #f0f1fa;
  border-radius: var(--radius);
  border-left: 4px solid var(--cooper-red);
  border-top: none;
  border-right: none;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.prose .wp-block-pullquote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--cooper-red);
  opacity: 0.1;
  line-height: 1;
}

.prose .wp-block-pullquote blockquote {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.prose .wp-block-pullquote blockquote::before {
  display: none;
}

.prose .wp-block-pullquote p {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.5;
}

.prose .wp-block-pullquote cite {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 400;
  font-style: normal;
  color: var(--gray-400);
}

/* ============================================================
   FEATURE CARD — wp-block-group
   Card-like treatment for grouped content blocks.
   ============================================================ */
.prose .wp-block-group {
  margin: 48px 0;
  padding: 40px;
  padding-left: 44px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Red gradient left border via pseudo-element (border-image breaks border-radius) */
.prose .wp-block-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--cooper-red), #8a0a2a);
  border-radius: var(--radius) 0 0 var(--radius);
}

.prose .wp-block-group:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--gray-300);
}

/* Headings inside groups */
.prose .wp-block-group>h3,
.prose .wp-block-group>.has-large-font-size {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  margin-top: 0;
}

/* Remove double margin on first/last children */
.prose .wp-block-group>*:first-child {
  margin-top: 0;
}

.prose .wp-block-group>*:last-child {
  margin-bottom: 0;
}

/* Nested groups — no double-card effect */
.prose .wp-block-group .wp-block-group {
  padding: 0;
  border: none;
  box-shadow: none;
  margin: 0;
}

.prose .wp-block-group .wp-block-group:hover {
  box-shadow: none;
}

/* ============================================================
   IMAGE BLOCKS
   Rounded corners, subtle shadow, gentle hover zoom.
   ============================================================ */
.prose .wp-block-image {
  margin: 48px 0;
}

.prose .wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   GALLERY BLOCKS
   ============================================================ */
.prose .wp-block-gallery {
  margin: 48px 0;
  gap: 12px;
}

.prose .wp-block-gallery .wp-block-image {
  margin: 0;
}

/* ============================================================
   COLUMNS — Clean structural spacing
   ============================================================ */
.prose .wp-block-columns {
  margin: 48px 0;
}

/* ============================================================
   EMBED BLOCKS
   ============================================================ */
.prose .wp-block-embed {
  margin: 48px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.prose .wp-block-embed .wp-block-embed__wrapper {
  position: relative;
}

/* ============================================================
   VIDEO BLOCKS
   ============================================================ */
.prose .wp-block-video {
  margin: 48px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.prose .wp-block-video video {
  display: block;
  width: 100%;
}

/* ============================================================
   FILE DOWNLOAD BLOCK
   Dark card with filename and Cooper Red download button.
   ============================================================ */
.prose .wp-block-file {
  margin: 40px 0;
  padding: 20px 24px;
  background: var(--dark-bg, #1a1a2e);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.prose .wp-block-file a:first-child {
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  text-decoration: none;
}

.prose .wp-block-file .wp-block-file__button {
  background: var(--cooper-red);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-xs, 8px);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-primary);
  text-decoration: none;
  transition: background 0.2s ease;
}

.prose .wp-block-file .wp-block-file__button:hover {
  background: var(--cooper-red-light);
}

/* ============================================================
   DETAILS BLOCK — Accordion-like expandable sections
   ============================================================ */
.prose .wp-block-details {
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.prose .wp-block-details:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.prose .wp-block-details summary {
  padding: 20px 24px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  cursor: pointer;
  transition: color 0.2s ease;
  list-style: none;
}

.prose .wp-block-details summary::-webkit-details-marker {
  display: none;
}

.prose .wp-block-details summary:hover {
  color: var(--cooper-red);
}

.prose .wp-block-details[open] summary {
  color: var(--cooper-red);
}

.prose .wp-block-details>*:not(summary) {
  padding: 0 24px 20px;
  color: var(--gray-500);
}

/* ============================================================
   COVER BLOCK
   ============================================================ */
.prose .wp-block-cover {
  margin: 48px 0;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
}

/* ============================================================
   MEDIA & TEXT BLOCK
   ============================================================ */
.prose .wp-block-media-text {
  margin: 48px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.prose .wp-block-media-text__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   DROP CAP
   Large decorative first letter in Cooper Red.
   ============================================================ */
.prose .has-drop-cap:not(:focus)::first-letter {
  float: left;
  font-family: var(--font-primary);
  font-size: 3.5em;
  font-weight: 900;
  line-height: 0.8;
  margin-right: 12px;
  margin-top: 6px;
  color: var(--cooper-red);
}

/* ============================================================
   RESPONSIVE — 1100px (tablets landscape)
   ============================================================ */
@media (max-width: 1100px) {
  .content-layout {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }

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

  .card-2col {
    grid-column: span 2;
  }

  .filter-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-search,
  .filter-search input {
    width: 100%;
  }

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

  .featured-card {
    min-height: 400px;
  }
}

/* ============================================================
   RESPONSIVE — 900px (tablets portrait)
   ============================================================ */
@media (max-width: 900px) {
  .page-hero-content {
    padding: 36px 20px 36px;
  }

  .page-hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .featured-content {
    padding: 32px;
  }

  .download-section-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar-inner {
    padding: 12px 20px;
  }

  .filter-tabs {
    gap: 4px;
  }

  .filter-tab {
    padding: 7px 14px;
    font-size: 0.78rem;
  }

  .error-page-content {
    padding: 60px 20px;
  }
}

/* ============================================================
   RESPONSIVE — 680px (mobile)
   ============================================================ */
@media (max-width: 680px) {
  .content-layout {
    grid-template-columns: 1fr;
    padding: 32px 20px 60px;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .sidebar-nav {
    padding: 16px;
  }

  .sidebar-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .sidebar-links a {
    padding: 8px 12px;
    font-size: 0.78rem;
    border-left: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .sidebar-links a.active {
    border-left: none;
    border-bottom-color: var(--cooper-red);
  }

  .sidebar-links .link-number {
    display: none;
  }

  .sidebar-progress {
    display: none;
  }

  .logo-display-grid {
    grid-template-columns: 1fr;
  }

  .dos-donts-grid {
    grid-template-columns: 1fr;
  }

  .min-size-grid {
    grid-template-columns: 1fr;
  }

  .download-section-grid {
    grid-template-columns: 1fr;
  }

  .page-navigation {
    grid-template-columns: 1fr;
  }

  .page-nav-card.next {
    text-align: left;
  }

  .page-nav-card.next .page-nav-direction {
    justify-content: flex-start;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .card-2col {
    grid-column: span 1;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    min-height: 360px;
  }

  .featured-content h2 {
    font-size: 1.4rem;
  }

  .filters-bar {
    gap: 8px;
  }

  .filter-pill {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .cta-email-form {
    flex-direction: column;
  }

  /* Gutenberg buttons: full-width stack on mobile */
  .wp-block-buttons {
    flex-direction: column;
    gap: 10px;
    margin: 0;
  }

  /* Collapse spacing between adjacent button groups */
  .wp-block-buttons+.wp-block-buttons {
    margin-top: 10px;
  }

  /* Gutenberg columns: consistent spacing when stacked on mobile */
  .wp-block-columns {
    gap: 24px !important;
    margin-bottom: 0;
  }

  .wp-block-columns+.wp-block-columns {
    margin-top: 24px;
  }

  .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  .recent-card {
    flex: 0 0 240px;
  }

  .single-article {
    padding: 32px 0 60px;
  }

  .content-area {
    padding: 32px 0 60px;
  }

  .prose {
    max-width: 100%;
  }

  /* Gutenberg block responsive overrides */
  .prose .wp-block-group {
    padding: 24px;
  }

  .prose .wp-block-pullquote {
    padding: 32px 24px 32px 32px;
  }

  .prose .wp-block-file {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   FULL WIDTH TEMPLATE — removes narrow prose constraint
   ============================================================ */
.prose--full-width {
  max-width: 100%;
}

/* ============================================================
   REDUCED MOTION — Respect user accessibility preferences
   Instantly show all reveal elements, skip all animations.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-stagger>* {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .prose .wp-block-separator::after,
  .prose hr::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  .prose h2::after,
  .prose .has-large-font-size::after {
    width: 60px !important;
    transition: none !important;
  }

  .reading-progress-bar {
    transition: none !important;
  }
}

/* ============================================================
   PAGE HERO — Interactive Grid Variant
   ============================================================ */
.page-hero.page-hero-grid {
    background: radial-gradient(ellipse 80% 70% at 25% 30%, #f8f8fa 0%, #ececf0 45%, #e0e0e8 100%);
}

.page-hero-grid .hero-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-hero-grid .page-hero-content {
    position: relative;
    z-index: 2;
}

/* Reverse text colors for light background */
.page-hero-grid h1 {
    color: #1a1a2e;
}

.page-hero-grid .page-hero-description {
    color: rgba(26, 26, 46, 0.75);
}

.page-hero-grid .breadcrumb-list {
    color: rgba(26, 26, 46, 0.6);
}

.page-hero-grid .breadcrumb-list a {
    color: rgba(26, 26, 46, 0.7);
}

.page-hero-grid .breadcrumb-list a:hover {
    color: var(--cooper-red);
}

.page-hero-grid .breadcrumb-item.current span {
    color: rgba(26, 26, 46, 0.85);
}

.page-hero-grid .breadcrumb-sep {
    color: rgba(26, 26, 46, 0.4);
}