/* ============================================================
   TRAVELLON UK — Main Stylesheet v1.0.0
   Font: Inter (Google Fonts)
   Header: orange-400 #fb923c → pink-500 #ec4899 gradient
   Page BG: blue-400 #60a5fa → green-300 #86efac gradient
   Footer: indigo-900 #1e1b4b
   Accent: yellow-400 #facc15
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand */
  --c-header-from:   #fb923c;
  --c-header-to:     #ec4899;
  --c-footer-bg:     #1e1b4b;
  --c-page-from:     #60a5fa;
  --c-page-to:       #86efac;
  --c-yellow:        #facc15;
  --c-yellow-light:  #fde047;
  --c-yellow-hover:  #eab308;
  --c-pink:          #ec4899;
  --c-orange:        #fb923c;

  /* Indigo scale */
  --c-indigo-100:    #e0e7ff;
  --c-indigo-600:    #4f46e5;
  --c-indigo-700:    #4338ca;
  --c-indigo-900:    #1e1b4b;

  /* Teal (prose links) */
  --c-teal:          #2A94B8;
  --c-teal-dark:     #1C6A8C;

  /* Neutrals */
  --c-white:         #ffffff;
  --c-gray-50:       #f9fafb;
  --c-gray-100:      #f3f4f6;
  --c-gray-200:      #e5e7eb;
  --c-gray-300:      #d1d5db;
  --c-gray-400:      #9ca3af;
  --c-gray-500:      #6b7280;
  --c-gray-600:      #4b5563;
  --c-gray-700:      #374151;
  --c-gray-800:      #1f2937;
  --c-gray-900:      #111827;

  /* Layout */
  --container-max:   1280px;
  --header-h:        72px;
  --radius:          0.5rem;
  --radius-lg:       0.75rem;
  --radius-xl:       1rem;
  --radius-full:     9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);

  /* Transitions */
  --t-fast:  150ms ease;
  --t-base:  200ms ease;
  --t-slow:  300ms ease;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-gray-700);
  background: var(--c-gray-50);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-teal);
  text-decoration: none;
  transition: color var(--t-base);
}
a:hover { color: var(--c-teal-dark); }

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

/* Full-page gradient wrapper — header is OUTSIDE this div */
.page-wrapper {
  min-height: calc(100vh - var(--header-h));
  background: linear-gradient(to bottom, var(--c-page-from), var(--c-page-to));
  /* No padding-block here: each template adds its own top/bottom space */
}

/* White semi-transparent card */
.content-card {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}
@media (min-width: 768px) { .content-card { padding: 2.5rem; } }

/* ============================================================
   4. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(to right, var(--c-header-from), var(--c-header-to));
  box-shadow: var(--shadow-lg);
  color: white;
  overflow: visible; /* must be visible so dropdowns can escape */
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: white;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--c-yellow-light); }

.site-logo-icon {
  width: 32px;
  height: 32px;
  color: var(--c-yellow-light);
  flex-shrink: 0;
}

.site-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Desktop nav */
.site-nav { display: none; }
@media (min-width: 768px) { .site-nav { display: block; } }

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-nav a {
  color: white;
  font-size: .9375rem;
  font-weight: 500;
  padding: .25rem 0;
  transition: color var(--t-base);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--c-yellow-light);
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius);
  transition: background var(--t-base);
  line-height: 1;
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,.12); }
.mobile-menu-toggle svg   { width: 24px; height: 24px; display: block; }
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }

/* ============================================================
   5. MOBILE NAVIGATION
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset-x: 0;
  top: var(--header-h);
  z-index: 99;
  background: linear-gradient(to right, var(--c-header-from), var(--c-header-to));
  box-shadow: var(--shadow-lg);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--t-slow), opacity var(--t-slow), visibility var(--t-slow);
}
.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav nav { padding: 1rem; }

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  list-style: none;
}

.mobile-nav a {
  display: block;
  padding: .625rem 1rem;
  color: white;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--t-base);
  text-decoration: none;
}
.mobile-nav a:hover { background: rgba(255,255,255,.12); color: white; }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-inline: 1rem;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,.95);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.hero-icons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.9);
}

.hero-icon-item svg {
  width: 40px;
  height: 40px;
  color: var(--c-yellow-light);
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 2rem;
  height: 2.5rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--t-slow);
  white-space: nowrap;
  line-height: 1;
}
.btn-lg {
  height: 2.75rem;
  padding: .75rem 2.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--c-yellow);
  color: #111;
}
.btn-primary:hover {
  background: var(--c-yellow-hover);
  color: #111;
  transform: scale(1.05);
}

.btn-secondary {
  background: white;
  color: var(--c-pink);
}
.btn-secondary:hover {
  background: #fef9c3;
  color: var(--c-pink);
}

.btn-indigo {
  background: var(--c-indigo-600);
  color: white;
}
.btn-indigo:hover {
  background: var(--c-indigo-700);
  color: white;
}

/* ============================================================
   8. POST CARDS
   ============================================================ */
.post-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow var(--t-slow), transform var(--t-slow);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.post-card > a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 16:9 image */
.post-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-gray-100);
  flex-shrink: 0;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.post-card:hover .post-card-image img { transform: scale(1.05); }

/* Category badge */
.post-card-category {
  position: absolute;
  bottom: .75rem;
  left: .75rem;
  background: rgba(79,70,229,.9);
  backdrop-filter: blur(4px);
  color: white;
  padding: .375rem 1rem;
  border-radius: var(--radius-full);
  font-size: .8125rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  text-transform: capitalize;
}

/* Card body */
.post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-gray-800);
  margin-bottom: .75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-base);
}
.post-card:hover .post-card-title { color: var(--c-indigo-900); }

.post-card-excerpt {
  font-size: .875rem;
  color: var(--c-gray-600);
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--c-gray-100);
}
.post-card-date  { color: var(--c-gray-500); }
.post-card-more  { color: var(--c-teal); font-weight: 500; }
.post-card:hover .post-card-more { color: var(--c-teal-dark); }

/* ============================================================
   9. SECTION HEADER (title + gradient line)
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-header-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--c-gray-800);
  white-space: nowrap;
  flex-shrink: 0;
}
.section-header-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, var(--c-orange), var(--c-pink), transparent);
  border-radius: var(--radius-full);
}

/* On gradient bg (archive header), use white text */
.section-header--light .section-header-title { color: white; }
.section-header--light .section-header-line  {
  background: linear-gradient(to right, rgba(255,255,255,.8), rgba(255,255,255,.2), transparent);
}

/* ============================================================
   10. ARCHIVE / BLOG GRID
   ============================================================ */
.archive-header {
  margin-bottom: 2rem;
}
.archive-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: .5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.archive-description {
  color: rgba(255,255,255,.85);
  font-size: 1.0625rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   11. SINGLE POST — LAYOUT (single centred column)
   ============================================================ */

/* Narrow container for single posts and pages */
.container--narrow {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container--narrow { padding-inline: 1.5rem; } }

.single-post-wrapper {
  padding-block: 2rem 4rem;
}

/* ============================================================
   12. POST HEADER
   ============================================================ */
.post-header { margin-bottom: 1.75rem; }

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .875rem;
  background: var(--c-indigo-600);
  color: white;
  font-size: .8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--t-base);
}
.category-badge:hover {
  background: var(--c-indigo-700);
  color: white;
}

.post-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--c-indigo-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
  color: var(--c-gray-500);
  margin-bottom: 1.5rem;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: .375rem;
}
.post-meta svg { width: 14px; height: 14px; }

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16 / 9;
}
.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   13. POST CONTENT (PROSE)
   ============================================================ */
.post-content {
  color: var(--c-gray-700);
  font-size: 15px;
  line-height: 1.75;
}

.post-content p  { margin-bottom: 1.25rem; }
.post-content ul,
.post-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .375rem; }

.post-content a {
  color: var(--c-indigo-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content a:hover { color: var(--c-indigo-700); }

.post-content blockquote {
  border-left: 4px solid var(--c-pink);
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  background: #fdf2f8;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--c-gray-600);
}

.post-content strong { font-weight: 700; color: var(--c-gray-800); }
.post-content em     { font-style: italic; }
.post-content code {
  font-family: 'Courier New', monospace;
  background: var(--c-gray-100);
  padding: .125rem .375rem;
  border-radius: .25rem;
  font-size: .875em;
  color: var(--c-pink);
}
.post-content pre {
  background: var(--c-gray-900);
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: .875rem;
  line-height: 1.6;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* H2 — Pink banner with flanking lines
   JS in main.js wraps h2 text in <span> on page load */
.post-content h2 {
  position: relative;
  width: 100%;
  margin: 2.5rem 0 1.25rem;
  display: flex;
  align-items: center;
  text-align: center;
  gap: 0;
  font-size: 1.0625rem;
  color: white;
}
.post-content h2::before,
.post-content h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--c-pink);
}
.post-content h2 > span {
  display: inline-block;
  background-color: var(--c-pink);
  color: white;
  padding: .625rem 2rem;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  line-height: 1.4;
}
/* Fallback when no span (no JS) */
.post-content h2:not(:has(span)) {
  background: var(--c-pink);
  color: white;
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  display: block;
  text-align: left;
}
.post-content h2:not(:has(span))::before,
.post-content h2:not(:has(span))::after { display: none; }

/* H3 — Indigo pill */
.post-content h3 {
  display: inline-block;
  background: var(--c-indigo-100);
  color: var(--c-indigo-700);
  padding: .25rem 1rem .375rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: .25rem;
  margin: 1.75rem 0 .875rem;
  line-height: 1.4;
}

/* H4 */
.post-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-gray-800);
  margin: 1.5rem 0 .625rem;
}

/* H5, H6 */
.post-content h5,
.post-content h6 {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--c-gray-700);
  margin: 1.25rem 0 .5rem;
}

/* ============================================================
   14. TABLES
   ============================================================ */
.post-content .table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  min-width: 400px;
}

.post-content table th {
  background: var(--c-indigo-900);
  color: white;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .875rem;
  white-space: nowrap;
}
.post-content table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.post-content table th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }

.post-content table td {
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--c-gray-200);
  vertical-align: top;
  line-height: 1.5;
}

.post-content table tr:nth-child(even) td { background: var(--c-gray-50); }
.post-content table tr:hover td          { background: var(--c-indigo-100); }
.post-content table tr:last-child td     { border-bottom: none; }

/* ============================================================
   15. IMAGES IN CONTENT
   ============================================================ */
.post-content img {
  border-radius: var(--radius-lg);
  margin-block: 1.5rem;
}
.post-content figure {
  margin-block: 1.5rem;
}
.post-content figcaption {
  font-size: .8125rem;
  color: var(--c-gray-500);
  text-align: center;
  margin-top: .5rem;
}
.post-content .wp-block-image,
.post-content .aligncenter {
  text-align: center;
  margin-inline: auto;
}
.post-content .alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  max-width: 50%;
}
.post-content .alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  max-width: 50%;
}
.post-content::after {
  content: '';
  display: table;
  clear: both;
}

/* iframe / embeds */
.post-content iframe,
.post-content .wp-block-embed__wrapper {
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ============================================================
   16. AMAZON PRODUCT CARD
   ============================================================ */
.amazon-product-card {
  max-width: 320px;
  margin: 1.75rem 0;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--t-slow), transform var(--t-slow);
}
.amazon-product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}
.amazon-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.amazon-product-image {
  background: var(--c-gray-50);
  padding: 1rem;
  text-align: center;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amazon-product-image img {
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  margin-inline: auto;
}
.amazon-product-info {
  padding: 1rem;
  border-top: 1px solid var(--c-gray-200);
}
.amazon-product-title {
  margin: 0 0 .75rem;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}
.amazon-product-cta {
  display: inline-block;
  background: var(--c-yellow);
  color: #111;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #a88734;
  transition: background var(--t-base);
}
.amazon-product-card:hover .amazon-product-cta {
  background: var(--c-yellow-hover);
}

/* ============================================================
   17. FLOATING PRODUCT BUTTON (posts > products category)
   ============================================================ */
.featured-product-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--c-yellow) 0%, var(--c-yellow-hover) 100%);
  color: #111;
  padding: .875rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 2px solid #a88734;
  transition: all var(--t-slow);
  white-space: nowrap;
}
.featured-product-btn:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  color: #111;
  background: linear-gradient(135deg, var(--c-yellow-hover) 0%, #daa520 100%);
}
.featured-product-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .featured-product-btn {
    bottom: 1rem;
    padding: .75rem 1.25rem;
    min-width: 180px;
    justify-content: center;
  }
}

/* ============================================================
   18. POST DATE BADGE
   ============================================================ */
.post-updated-date {
  color: var(--c-gray-600);
  font-size: .875rem;
  margin-bottom: 1.5rem;
  padding: .5rem .875rem;
  background: var(--c-gray-50);
  border-left: 3px solid var(--c-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: inline-block;
}
.post-updated-date time { font-weight: 500; }

/* ============================================================
   19. FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-footer-bg);
  color: white;
  padding-block: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-brand { align-items: flex-start; text-align: left; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  color: white;
  text-decoration: none;
}
.footer-logo svg     { width: 24px; height: 24px; color: var(--c-yellow); }
.footer-logo-text    { font-size: 1.125rem; font-weight: 700; }
.footer-tagline      { font-size: .875rem; color: rgba(255,255,255,.7); line-height: 1.5; }

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 768px) { .footer-col { align-items: flex-start; } }

.footer-col-title {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  list-style: none;
}
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  text-decoration: none;
  transition: color var(--t-base);
}
.footer-links a:hover { color: var(--c-yellow); }

.footer-social {
  display: flex;
  gap: 1rem;
  list-style: none;
}
.footer-social a {
  color: rgba(255,255,255,.7);
  transition: color var(--t-base);
}
.footer-social a:hover { color: var(--c-yellow); }
.footer-social svg { width: 22px; height: 22px; display: block; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a {
  color: rgba(255,255,255,.5);
  text-decoration: underline;
}
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   20. CTA SECTION
   ============================================================ */
.cta-section {
  padding-block: 5rem;
  background: linear-gradient(to right, var(--c-yellow), #f97316, var(--c-pink));
  text-align: center;
  color: white;
}
.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
.cta-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
  color: rgba(255,255,255,.9);
}

/* ============================================================
   21. FORMS & SEARCH
   ============================================================ */
.search-form {
  display: flex;
  gap: .5rem;
  width: 100%;
  max-width: 480px;
}
.search-input {
  flex: 1;
  padding: .625rem 1rem;
  border: 1px solid var(--c-gray-300);
  border-radius: var(--radius);
  font-size: .9375rem;
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.search-input:focus {
  border-color: var(--c-indigo-600);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.search-submit {
  padding: .625rem 1.25rem;
  background: var(--c-indigo-600);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-base);
  white-space: nowrap;
}
.search-submit:hover { background: var(--c-indigo-700); }

/* ============================================================
   22. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 3rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: .75rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--t-base);
}
.pagination a {
  background: white;
  color: var(--c-indigo-600);
  border: 1px solid var(--c-gray-200);
  box-shadow: var(--shadow-sm);
}
.pagination a:hover {
  background: var(--c-indigo-600);
  color: white;
  border-color: var(--c-indigo-600);
}
.pagination .current,
.pagination span.current {
  background: var(--c-indigo-600);
  color: white;
  border: 1px solid var(--c-indigo-600);
}
.pagination .dots {
  background: transparent;
  color: var(--c-gray-400);
  border: none;
  box-shadow: none;
}

/* ============================================================
   23. RELATED POSTS
   ============================================================ */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-gray-200);
}
.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .related-posts-grid { grid-template-columns: repeat(3, 1fr); }
}
.related-post-item a {
  display: flex;
  gap: .75rem;
  align-items: center;
  color: var(--c-gray-700);
  text-decoration: none;
  padding: .75rem;
  border-radius: var(--radius-lg);
  transition: background var(--t-base);
}
.related-post-item a:hover { background: var(--c-gray-50); }
.related-post-thumb {
  width: 72px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.related-post-title {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-base);
}
.related-post-item a:hover .related-post-title { color: var(--c-pink); }

/* ============================================================
   24. 404 & EMPTY STATES
   ============================================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-orange), var(--c-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.error-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-gray-800);
  margin-bottom: 1rem;
}
.error-message {
  color: var(--c-gray-600);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-inline: auto;
}

/* ============================================================
   25. UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
.text-center  { text-align: center; }
.mt-0         { margin-top: 0; }
.no-results   { color: var(--c-gray-500); font-size: 1.0625rem; padding: 2rem 0; }

/* Spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--c-gray-200);
  border-top-color: var(--c-indigo-600);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-inline: auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pulse skeleton */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
.skeleton { animation: pulse 1.5s cubic-bezier(.4,0,.6,1) infinite; }
.skeleton-line {
  height: 1rem;
  background: var(--c-gray-200);
  border-radius: var(--radius-full);
  margin-bottom: .5rem;
}

/* ============================================================
   26. FIXES & ADDITIONS — align with PHP templates
   ============================================================ */

/* page-wrapper: sits BETWEEN header and footer */
.page-wrapper {
  min-height: 60vh;
  background: linear-gradient(to bottom, var(--c-page-from), var(--c-page-to));
}

/* Hero: no bg image by default — just gradient fallback */
.hero {
  background: linear-gradient(135deg, var(--c-header-from), var(--c-header-to));
}

/* Desktop nav — overflow visible so dropdowns can escape the header */
.site-nav {
  flex: 1 1 0;
  overflow: visible;
  margin-left: 1.5rem;
}
.site-nav > ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  overflow: visible;
}
.site-nav > ul > li {
  flex-shrink: 0;
}
.site-nav > ul > li > a {
  color: white;
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding: .25rem 0;
  transition: color var(--t-base);
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li.current-menu-item > a,
.site-nav > ul > li.current_page_item > a {
  color: var(--c-yellow-light);
}
@media (max-width: 767px) { .site-nav { display: none; } }

/* ── Dropdown sub-menus ──
   Key rules:
   - site-header must be overflow:visible (set above)
   - li must be position:relative for absolute child to anchor to it
   - sub-menu z-index must beat everything on the page
──────────────────────────────────────────────────────── */
.site-nav > ul > li {
  position: relative;
}

/* Hidden by default */
.site-nav ul.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 180px;
  background: #ffffff;
  border-radius: 0 0 6px 6px;
  border-top: 3px solid #ec4899;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 9999;
}

/* Show on hover */
.site-nav > ul > li:hover > ul.sub-menu,
.site-nav > ul > li:focus-within > ul.sub-menu {
  display: block !important;
}

/* Sub-menu links */
.site-nav ul.sub-menu li a {
  display: block;
  padding: 8px 18px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  transition: background 150ms ease, color 150ms ease;
}
.site-nav ul.sub-menu li a:hover {
  background: #e0e7ff;
  color: #4338ca;
}

/* Down-arrow on parent items */
.site-nav > ul > li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: .6em;
  opacity: .75;
  vertical-align: middle;
}

/* Mobile nav: WordPress ul output */
.mobile-nav > nav > ul {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 1rem;
}
.mobile-nav > nav > ul > li > a {
  display: block;
  padding: .625rem 1rem;
  color: white;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--t-base);
  text-decoration: none;
}
.mobile-nav > nav > ul > li > a:hover {
  background: rgba(255,255,255,.12);
  color: white;
}

/* Footer widget title (from WordPress widget area before_title) */
.footer-widget-title {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

/* Footer inner grid wrapper (class="footer-inner container") */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}
/* Also works when class="footer-grid" */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Post nav (prev/next within single) */
.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-gray-200);
}
.post-nav-link {
  display: inline-block;
  color: var(--c-indigo-600);
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: none;
  transition: color var(--t-base);
}
.post-nav-link:hover { color: var(--c-pink); }

/* Sidebar post list */
.sidebar-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-post-list li {
  border-bottom: 1px solid var(--c-gray-100);
  padding: .5rem 0;
}
.sidebar-post-list li:last-child { border-bottom: none; }
.sidebar-post-list a {
  color: var(--c-gray-700);
  font-size: .875rem;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color var(--t-base);
}
.sidebar-post-list a:hover { color: var(--c-pink); }

/* Post card no-image placeholder */
.post-card-no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--c-indigo-100), var(--c-gray-200));
}

/* Page wrapper padding (applied to main content) */
.site-main {
  padding-bottom: 4rem;
}

/* single-post-wrapper top padding */
.single-post-wrapper {
  padding-top: 0;
}
.single-post-wrapper .post-header {
  padding-top: 2rem;
}

/* Ensure post content links are clearly clickable */
.post-content a,
.post-content a:visited {
  position: relative;
  z-index: 1;
}

/* Table wrapper (added by JS) */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  margin: 0;
}

/* WordPress search form defaults */
.wp-block-search__input,
.search-field {
  flex: 1;
  padding: .625rem 1rem;
  border: 1px solid var(--c-gray-300);
  border-radius: var(--radius);
  font-size: .9375rem;
  font-family: inherit;
  outline: none;
}
.search-field:focus {
  border-color: var(--c-indigo-600);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.search-submit {
  padding: .625rem 1.25rem;
  background: var(--c-indigo-600);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t-base);
}
.search-submit:hover { background: var(--c-indigo-700); }

/* WordPress default alignment helpers */
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }

/* WordPress captions */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8125rem; color: var(--c-gray-500); text-align: center; margin-top: .375rem; }

/* Gutenberg block styles reset (don't let WP blocks override our design) */
.wp-block-table table { min-width: auto; }
.wp-block-table { overflow-x: auto; }

/* Fix: make sure nothing blocks pointer events on content */
.page-wrapper,
.site-main,
.container,
.post-content-area,
.post-content {
  pointer-events: auto;
}

