/* =======================================================
   BLOG INDEX — LOCKED BASELINE (Posts page via home.php)
   3 / 2 / 1 columns, inline-block cards
   ======================================================= */

/* Container on the Posts page */
.blog-index .container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Centre the card rows */
.blog-index .blog-grid {
  text-align: center;
  font-size: 0; /* kills whitespace between inline-block cards */
}

/* Cards as tiles */
.blog-index .post-card {
  display: inline-block;
  vertical-align: top;
  text-align: left;

  width: calc((100% - 4rem) / 3);
  margin: 0 2rem 2.5rem 0;

  font-size: 16px; /* restore text size inside cards */
}

/* Remove right margin every 3rd card */
.blog-index .post-card:nth-of-type(3n) {
  margin-right: 0;
}

/* Tablet: 2 columns */
@media (max-width: 980px) {
  .blog-index .post-card {
    width: calc((100% - 2rem) / 2);
  }

  .blog-index .post-card:nth-of-type(3n) {
    margin-right: 2rem;
  }

  .blog-index .post-card:nth-of-type(2n) {
    margin-right: 0;
  }
}

/* Mobile: 1 column */
@media (max-width: 599px) {
  .blog-index .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .blog-index .post-card {
    width: 100%;
    margin-right: 0;
  }
}

/* -------------------------------------------------------
   Card surface
   ------------------------------------------------------- */

.post-card__link {
  display: block;
  overflow: hidden;
  border-radius: 30px;
  background: #f5f5f5;
  text-decoration: none;
  box-shadow: 10px 15px 20px rgba(0, 86, 62, 0.20);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card__link:hover {
  transform: translateY(-2px);
  box-shadow: 10px 20px 30px rgba(0, 86, 62, 0.25);
}

/* Thumbnail (16:9) */
.post-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ff7f01;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content */
.post-card__content {
  padding: 1.5rem 1.5rem 1.75rem;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #666668;
}

.post-card__category {
  font-weight: 700;
  color: #00563e;
}

.post-card__date {
  color: #666668;
}

.post-card__title {
  margin: 0 0 0.75rem;
  font-family: Foregen, ui-sans-serif, system-ui;
  font-size: 2rem;
  line-height: 1.05;
  color: 666668;
}

.post-card__excerpt {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 500;
  color: #666668;
}

.post-card__cta {
  font-weight: 700;
  color: #00563e;
}

.post-card__link:hover .post-card__cta {
  color: #ff7f01;
}

/* -------------------------------------------------------
   Pagination (tennis balls + curly arrows either side)
   Works with paginate_links() as list OR plain output
   ------------------------------------------------------- */

.blog-pagination {
  margin: 2.25rem 0 3.5rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

/* If paginate_links() outputs a UL */
.blog-pagination ul.page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.blog-pagination ul.page-numbers > li {
  margin: 0;
  padding: 0;
}

/* If paginate_links() outputs plain anchors/spans */
.blog-pagination > .page-numbers,
.blog-pagination > a.page-numbers,
.blog-pagination > span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* -------------------------------------------------------
   Curly arrows (prev / next) — use theme SVGs
   ------------------------------------------------------- */

/* Common sizing for prev/next links (both list + plain output) */
.blog-pagination a.prev,
.blog-pagination a.next,
.blog-pagination a.page-numbers.prev,
.blog-pagination a.page-numbers.next {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;

  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;

  display: inline-grid;
  place-items: center;
}

/* Arrow button graphic */
.blog-pagination a.prev::before,
.blog-pagination a.next::before,
.blog-pagination a.page-numbers.prev::before,
.blog-pagination a.page-numbers.next::before {
  content: "";
  width: 44px;
  height: 44px;
  display: inline-block;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 44px 44px;

  background-image: url("/wp-content/themes/gingerandtails/resources/images/curly-arrow.svg");
}

/* Hover graphic */
.blog-pagination a.prev:hover::before,
.blog-pagination a.next:hover::before,
.blog-pagination a.page-numbers.prev:hover::before,
.blog-pagination a.page-numbers.next:hover::before {
  background-image: url("/wp-content/themes/gingerandtails/resources/images/curly-arrow-circle-button-hover.svg");
}

/* If you have separate left/right arrow SVGs later, we can swap per side */


/* -------------------------------------------------------
   Tennis ball dots (ALL page numbers)
   ------------------------------------------------------- */

.blog-pagination a.page-numbers,
.blog-pagination span.page-numbers {
  width: 18px;
  height: 18px;
  border-radius: 999px;

  display: inline-block;
  box-sizing: border-box;

  /* Hide number text but keep clickable */
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;

  background-image: url("https://gingerandtails-co-uk.stackstaging.com/wp-content/uploads/2023/01/tenni-ball.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 0.35;            /* inactive */
  filter: grayscale(100%);  /* mute */
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

/* Active page */
.blog-pagination span.page-numbers.current {
  opacity: 1;
  filter: none;
  transform: scale(1.05);
}

/* Hover on inactive dots */
.blog-pagination a.page-numbers:hover {
  opacity: 0.7;
  filter: none;
  transform: scale(1.05);
}

/* Do NOT turn arrows into balls */
.blog-pagination a.prev,
.blog-pagination a.next,
.blog-pagination a.page-numbers.prev,
.blog-pagination a.page-numbers.next {
  background-image: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Keep it tidy on small screens */
@media (max-width: 599px) {
  .blog-pagination ul.page-numbers {
    gap: 0.7rem;
  }
}
/* =======================================================
   SINGLE POST — LOCKED STRUCTURE
   - Hide theme hero title above
   - Use in-card title
   - Keep related posts as a grid
   ======================================================= */

/* 1) Kill the theme hero title area on single posts only */
.single-post .hero,
.single .hero,
.single-post #content > .hero,
.single #content > .hero {
  display: none !important;
}

/* Safety: hide any top-level single-post title the theme might output */
.single-post .entry-header,
.single .entry-header {
  display: none !important;
}

/* 2) Card stays centred and wide (matches your current setup) */
.single-post .blog-post,
.single .blog-post {
  width: min(1400px, 100%) !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* In-card title styling (centred, but contained) */
.single-post .blog-post__title,
.single .blog-post__title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: Foregen, ui-sans-serif, system-ui;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.05;
  color: 666668;
}

/* 3) Related posts grid stays 3/2/1 */
.gt-related-posts__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 981px) {
  .gt-related-posts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 980px) {
  .gt-related-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .gt-related-posts__grid {
    grid-template-columns: 1fr;
  }
}
/* =======================================================
   SINGLE POST — CARD + RELATED POSTS (RESTORE)
   (Hero already killed elsewhere)
   ======================================================= */

/* Make sure the single post area isn't constrained by theme wrappers */
.single-post .site-main,
.single-post .content-area,
.single-post .site-content,
.single-post .container {
  max-width: none !important;
}

/* The main single post card */
.single-post .blog-post {
  width: min(1400px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 2.5rem;

  background: #f5f5f5;
  border-radius: 30px;
  box-shadow: 10px 15px 20px rgba(0, 86, 62, 0.20);
  padding: 2.5rem;
}

/* Meta + title inside card */
.single-post .blog-post__meta {
  margin-bottom: 1.25rem;
}

.single-post .blog-post__title {
  margin: 0 0 1.5rem;
  text-align: left;
  font-family: Foregen, ui-sans-serif, system-ui;
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  line-height: 1.05;
  color: 666668;
}

/* Featured image: force 16:9 crop */
.single-post .blog-post__featured {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.single-post .blog-post__featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Old browser fallback */
@supports not (aspect-ratio: 16 / 9) {
  .single-post .blog-post__featured {
    padding-top: 56.25%;
  }
  .single-post .blog-post__featured img {
    position: absolute;
    inset: 0;
  }
}

/* Related posts container */
.single-post .gt-related-posts {
  width: min(1400px, 100%) !important;
  margin: 0 auto 3.5rem;
  padding: 0 2rem;
}

.single-post .gt-related-posts__title {
  text-align: center;
  margin: 0 0 1.5rem;
}

/* Related posts grid: 3 / 2 / 1 */
.single-post .gt-related-posts__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 981px) {
  .single-post .gt-related-posts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 980px) {
  .single-post .gt-related-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .single-post .blog-post {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .single-post .gt-related-posts {
    padding: 0 1.25rem;
  }

  .single-post .gt-related-posts__grid {
    grid-template-columns: 1fr;
  }
}
/* =======================================================
   BLOG FILTER BAR (categories)
   SAFE: does not affect grid or cards
   ======================================================= */

.blog-filter {
  max-width: 1400px;
  margin: 0 auto 2.25rem;
  padding: 0 2rem;
}

.blog-filter ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.blog-filter li {
  margin: 0;
  padding: 0;
}

.blog-filter a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;

  background: #f5f5f5;
  color: #00563e;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;

  box-shadow: 6px 8px 14px rgba(0, 86, 62, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.blog-filter a:hover {
  transform: translateY(-1px);
  box-shadow: 8px 12px 18px rgba(0, 86, 62, 0.18);
  color: #ff7f01;
}

/* Active category */
.blog-filter li.is-active a {
  background: #00563e;
  color: #ffffff;
}

/* Mobile breathing room */
@media (max-width: 599px) {
  .blog-filter {
    padding: 0 1.25rem;
  }

  .blog-filter ul {
    justify-content: flex-start;
  }
}
/* =======================================================
   BLOG FILTER BAR (categories) — HARD OVERRIDE
   Targets multiple likely wrappers + beats theme specificity
   ======================================================= */

.blog-index .blog-filter,
.blog-index .gt-blog-filter,
.blog-index .blog-categories,
.blog-index .category-filter,
.blog-index .post-filter,
.blog-index .blog-results__filter {
  max-width: 1400px;
  margin: 0 auto 2.25rem !important;
  padding: 0 2rem !important;
}

/* UL layout (covers most “category list” outputs) */
.blog-index .blog-filter ul,
.blog-index .gt-blog-filter ul,
.blog-index .blog-categories ul,
.blog-index .category-filter ul,
.blog-index .post-filter ul,
.blog-index .blog-results__filter ul,
.blog-index .blog-filter .cat-item,
.blog-index .gt-blog-filter .cat-item,
.blog-index .blog-categories .cat-item,
.blog-index .category-filter .cat-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  justify-content: center !important;
}

/* Reset LI spacing */
.blog-index .blog-filter li,
.blog-index .gt-blog-filter li,
.blog-index .blog-categories li,
.blog-index .category-filter li,
.blog-index .post-filter li,
.blog-index .blog-results__filter li,
.blog-index .blog-filter .cat-item,
.blog-index .gt-blog-filter .cat-item,
.blog-index .blog-categories .cat-item,
.blog-index .category-filter .cat-item {
  margin: 0 !important;
  padding: 0 !important;
}

/* Pill links */
.blog-index .blog-filter a,
.blog-index .gt-blog-filter a,
.blog-index .blog-categories a,
.blog-index .category-filter a,
.blog-index .post-filter a,
.blog-index .blog-results__filter a {
  display: inline-block !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px !important;

  background: #f5f5f5 !important;
  color: #00563e !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;

  box-shadow: 6px 8px 14px rgba(0, 86, 62, 0.12) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease !important;
}

.blog-index .blog-filter a:hover,
.blog-index .gt-blog-filter a:hover,
.blog-index .blog-categories a:hover,
.blog-index .category-filter a:hover,
.blog-index .post-filter a:hover,
.blog-index .blog-results__filter a:hover {
  transform: translateY(-1px) !important;
  box-shadow: 8px 12px 18px rgba(0, 86, 62, 0.18) !important;
  color: #ff7f01 !important;
}

/* “Active” state for common WordPress outputs */
.blog-index .blog-filter .current-cat > a,
.blog-index .gt-blog-filter .current-cat > a,
.blog-index .blog-categories .current-cat > a,
.blog-index .category-filter .current-cat > a,
.blog-index .post-filter .current-cat > a,
.blog-index .blog-results__filter .current-cat > a,
.blog-index .blog-filter li.is-active > a,
.blog-index .gt-blog-filter li.is-active > a,
.blog-index .blog-categories li.is-active > a,
.blog-index .category-filter li.is-active > a {
  background: #00563e !important;
  color: #ffffff !important;
}

/* Mobile */
@media (max-width: 599px) {
  .blog-index .blog-filter,
  .blog-index .gt-blog-filter,
  .blog-index .blog-categories,
  .blog-index .category-filter,
  .blog-index .post-filter,
  .blog-index .blog-results__filter {
    padding: 0 1.25rem !important;
  }

  .blog-index .blog-filter ul,
  .blog-index .gt-blog-filter ul,
  .blog-index .blog-categories ul,
  .blog-index .category-filter ul,
  .blog-index .post-filter ul,
  .blog-index .blog-results__filter ul {
    justify-content: flex-start !important;
  }
}
/* =======================================================
   BLOG FILTERS (your actual markup: .blog-filters__*)
   ======================================================= */

.blog-index nav.blog-filters {
  max-width: 1400px;
  margin: 0 auto 2.25rem;
  padding: 0 2rem;
}

.blog-index .blog-filters__list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.blog-index .blog-filters__item {
  margin: 0;
  padding: 0;
}

.blog-index a.blog-filters__link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;

  background: #f5f5f5;
  color: #00563e;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1;

  box-shadow: 6px 8px 14px rgba(0, 86, 62, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.blog-index a.blog-filters__link:hover {
  transform: translateY(-1px);
  box-shadow: 8px 12px 18px rgba(0, 86, 62, 0.18);
  color: #ff7f01;
}

/* Active state: your PHP should add aria-current="page" or .is-active
   This supports both (plus a URL-style fallback class if you add it). */
.blog-index a.blog-filters__link[aria-current="page"],
.blog-index .blog-filters__item.is-active > a.blog-filters__link,
.blog-index a.blog-filters__link.is-active {
  background: #00563e;
  color: #ffffff;
}

@media (max-width: 599px) {
  .blog-index nav.blog-filters {
    padding: 0 1.25rem;
  }

  .blog-index .blog-filters__list {
    justify-content: flex-start;
  }
}
/* Numbers above pagination tennis balls (additive only) */
.blog-pagination .page-numbers:not(.prev):not(.next) {
  position: relative;
}

.blog-pagination .pagination-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  pointer-events: none;
}
/* =======================================================
   Pagination numbers above tennis balls (additive only)
   ======================================================= */

/* Only numbered dots (not prev/next arrows) need to allow overflow */
.blog-pagination a.page-numbers:not(.prev):not(.next),
.blog-pagination span.page-numbers:not(.prev):not(.next) {
  position: relative;
  overflow: visible; /* allow label outside 18px ball */
}

/* The label itself */
.blog-pagination .pagination-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);

  text-indent: 0;   /* undo parent's -9999px for the label */
  font-size: 12px;
  line-height: 1;
  font-weight: 700;

  pointer-events: none; /* clicking still hits the tennis ball */
}
/* Rotate ONLY the next arrow so it points the right way */
.blog-pagination a.next::before,
.blog-pagination a.page-numbers.next::before {
  transform: rotate(180deg);
}
/* =======================================================
   RELATED POSTS — GREEN CARD STYLE (HARD OVERRIDE)
   Works even if body uses .single instead of .single-post
   ======================================================= */

/* Scope to the related-posts section only */
.single .gt-related-posts .post-card__thumb,
.single-post .gt-related-posts .post-card__thumb {
  display: none !important;
}

/* Green card background */
.single .gt-related-posts .post-card__link,
.single-post .gt-related-posts .post-card__link {
  background: #00563e !important;
  box-shadow: 10px 15px 20px rgba(0, 86, 62, 0.25) !important;
}

/* Make sure content area is readable */
.single .gt-related-posts .post-card__content,
.single-post .gt-related-posts .post-card__content {
  color: #ffffff !important;
}

/* White title + excerpt (forcefully) */
.single .gt-related-posts .post-card__title,
.single-post .gt-related-posts .post-card__title,
.single .gt-related-posts .post-card__excerpt,
.single-post .gt-related-posts .post-card__excerpt,
.single .gt-related-posts .post-card__meta,
.single-post .gt-related-posts .post-card__meta,
.single .gt-related-posts .post-card__date,
.single-post .gt-related-posts .post-card__date {
  color: #ffffff !important;
}

/* Slightly soften excerpt */
.single .gt-related-posts .post-card__excerpt,
.single-post .gt-related-posts .post-card__excerpt {
  opacity: 0.9 !important;
}

/* Category as orange pill */
.single .gt-related-posts .post-card__category,
.single-post .gt-related-posts .post-card__category {
  display: inline-block !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 999px !important;
  background: #ff7f01 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* CTA styling */
.single .gt-related-posts .post-card__cta,
.single-post .gt-related-posts .post-card__cta {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.single .gt-related-posts .post-card__link:hover .post-card__cta,
.single-post .gt-related-posts .post-card__link:hover .post-card__cta {
  color: #ff7f01 !important;
}
/* =======================================================
   RELATED POSTS — move category pill below title
   ======================================================= */

/* Make meta stack vertically */
.single .gt-related-posts .post-card__meta,
.single-post .gt-related-posts .post-card__meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
}

/* Title first */
.single .gt-related-posts .post-card__title,
.single-post .gt-related-posts .post-card__title {
  order: 1;
}

/* Category pill directly under title */
.single .gt-related-posts .post-card__category,
.single-post .gt-related-posts .post-card__category {
  order: 2;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

/* Date (if present) after category */
.single .gt-related-posts .post-card__date,
.single-post .gt-related-posts .post-card__date {
  order: 3;
}
/* =======================================================
   RELATED POSTS — move category pill BELOW title
   Uses CSS Grid, scoped safely
   ======================================================= */

/* Turn content into a grid (related posts only) */
.single .gt-related-posts .post-card__content,
.single-post .gt-related-posts .post-card__content {
  display: grid !important;
  grid-template-areas:
    "title"
    "category"
    "date"
    "excerpt"
    "cta";
  row-gap: 0.75rem;
}

/* Map elements to grid areas */
.single .gt-related-posts .post-card__title,
.single-post .gt-related-posts .post-card__title {
  grid-area: title;
}

.single .gt-related-posts .post-card__category,
.single-post .gt-related-posts .post-card__category {
  grid-area: category;
}

.single .gt-related-posts .post-card__date,
.single-post .gt-related-posts .post-card__date {
  grid-area: date;
}

.single .gt-related-posts .post-card__excerpt,
.single-post .gt-related-posts .post-card__excerpt {
  grid-area: excerpt;
}

.single .gt-related-posts .post-card__cta,
.single-post .gt-related-posts .post-card__cta {
  grid-area: cta;
}

/* Remove meta flex interference */
.single .gt-related-posts .post-card__meta,
.single-post .gt-related-posts .post-card__meta {
  display: contents !important;
}

/* =======================================================
   RELATED POSTS — pill width fix (keep it short, not full-width)
   Additive override only
   ======================================================= */

.single .gt-related-posts .post-card__category,
.single-post .gt-related-posts .post-card__category {
  display: inline-flex !important;
  align-self: flex-start !important;
  width: auto !important;
  max-width: max-content !important;
}
/* =======================================================
   BLOG INDEX — category pill styling (additive only)
   Match related-posts pill, but DARK GREEN background
   ======================================================= */

.blog-index .post-card__category {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #00563e;
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
}
/* =======================================================
   SINGLE POST — category pill styling (additive only)
   Match blog index pill (dark green)
   ======================================================= */

.single-post .blog-post__category,
.single .blog-post__category {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #00563e;
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
}
/* =======================================================
   SINGLE POST — mobile width refinement (additive only)
   ======================================================= */

@media (max-width: 599px) {
  .single-post .blog-post,
  .single .blog-post {
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* =======================================================
   SINGLE POST — typographic hierarchy fix (additive only)
   Keeps H1 as-is, scales H2–H6 progressively
   ======================================================= */

.blog-post .entry-content h2,
.blog-post .entry-content h3,
.blog-post .entry-content h4,
.blog-post .entry-content h5,
.blog-post .entry-content h6 {
  font-family: Foregen, ui-sans-serif, system-ui;
  color: #666668;
  line-height: 1.15;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

/* H2 — primary section heading */
.blog-post .entry-content h2 {
  font-size: clamp(2rem, 2.5vw, 2.4rem);
  font-weight: 800;
}

/* H3 — subsection */
.blog-post .entry-content h3 {
  font-size: clamp(1.6rem, 2vw, 1.9rem);
  font-weight: 800;
}

/* H4 — minor section */
.blog-post .entry-content h4 {
  font-size: 1.4rem;
  font-weight: 700;
}

/* H5 — small heading */
.blog-post .entry-content h5 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* H6 — label-style heading */
.blog-post .entry-content h6 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
/* =======================================================
   SINGLE POST — always 90% width (locked)
   ======================================================= */

.single-post .blog-post,
.single .blog-post {
  width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =======================================================
   RELATED POSTS — swipeable on mobile (CSS scroll-snap)
   ======================================================= */

@media (max-width: 599px) {

  /* Only affect the related posts grid on single posts */
  .single-post .gt-related-posts__grid,
  .single .gt-related-posts__grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem;

    /* optional: a little breathing room inside the scroller */
    padding: 0 1.25rem 0.75rem !important;
  }

  /* Each card becomes a “slide” */
  .single-post .gt-related-posts__grid > .post-card,
  .single .gt-related-posts__grid > .post-card {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: start;
  }

  /* If there’s only one related post, don’t force the swipe layout */
  .single-post .gt-related-posts__grid > .post-card:only-child,
  .single .gt-related-posts__grid > .post-card:only-child {
    flex-basis: 100%;
    max-width: 100%;
  }

  /* Optional: hide scrollbar (keeps swipe working) */
  .single-post .gt-related-posts__grid::-webkit-scrollbar,
  .single .gt-related-posts__grid::-webkit-scrollbar {
    display: none;
  }
  .single-post .gt-related-posts__grid,
  .single .gt-related-posts__grid {
    scrollbar-width: none;
  }
}
/* =======================================================
   Pagination — curly arrow hover (orange)
   ======================================================= */

.blog-pagination a.prev:hover::before,
.blog-pagination a.next:hover::before,
.blog-pagination a.page-numbers.prev:hover::before,
.blog-pagination a.page-numbers.next:hover::before {
  background-image: url("/wp-content/themes/gingerandtails/resources/images/curly-arrow-orange.svg");
}
.blog-index .post-card__category {
  text-decoration: none;
}

.blog-header {
  margin-bottom: 1.8rem;
}

.blog-intro {
  max-width: 760px;
  line-height: 1.6;
  text-align:center;
}
.blog-header {
  margin-bottom: 2rem;
  text-align: center;
}

.blog-intro {
  max-width: 820px;
  margin: 0 auto;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.65;
}
/* =======================================================
   BLOG INDEX — mobile centring fix (cards truly centred)
   ======================================================= */
@media (max-width: 599px) {
  .blog-index .blog-grid {
    text-align: left;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .blog-index .post-card {
    display: block;
    width: 100%;
    margin: 0 0 2.5rem 0;
  }

  .blog-index .post-card__link {
    width: 100%;
  }
}
/* =======================================================
   BLOG INDEX — mobile: kill 3n margin + force true centring
   ======================================================= */
@media (max-width: 599px) {

  /* Make absolutely sure no leftover inline-block spacing rules affect layout */
  .blog-index .blog-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: left !important;
  }

  /* Force every card (including 3rd/6th/9th…) to behave identically */
  .blog-index .post-card,
  .blog-index .post-card:nth-of-type(3n),
  .blog-index .post-card:nth-of-type(2n) {
    display: block !important;
    width: 100% !important;
    margin: 0 0 2.5rem 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Optional: if you prefer a slightly narrower card centred on iPhone */
  /* .blog-index .post-card { max-width: 520px !important; } */
}