:root {
  --bg-header: #0f0d0e;
  --bg-main: #121826;
  --text-primary: #ebbf65;
  --text-secondary: #eeeeee;
}

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

body {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--bg-main);
  background-image: url("images/website/Background.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  body {
    background-image: url("images/website/MobileBackground1.png");
    background-attachment: scroll;
    background-repeat: repeat-y;
    background-size: auto 360px;
    background-position: top center;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

.site-header {
  background: transparent;
  padding: 0 2rem 0 0;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  height: 80px;
  width: 320px;
  flex-shrink: 0;
  display: flex;
}

.logo-container a {
  display: flex;
  text-decoration: none;
}

.site-logo {
  height: 80px;
  width: 320px;
  object-fit: contain;
  display: block;
}

.nav-placeholder {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
}

/* Container link around the Battlegrounds image */
.battlegrounds-link {
  display: block;
  max-width: 1000px;
  width: 100%;
  margin: 1.5rem auto;
}

/* The Battlegrounds image itself */
.battlegrounds-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* ── Stats Table ─────────────────────────────────────────────────────── */
.stats-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-secondary);
  font-size: 1rem;
}

.stats-table thead tr {
  border-bottom: 2px solid #2d3748;
}

.stats-table th {
  padding: 0.6rem 1rem;
  text-align: right;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.stats-table th:first-child {
  text-align: left;
}

.stats-table td {
  padding: 0.55rem 1rem;
  text-align: right;
  border-bottom: 1px solid #1e293b;
  white-space: nowrap;
}

.stats-table td:first-child {
  text-align: left;
}

.stats-table .stat-positive {
  color: #4ade80;
}

.stats-table .stat-negative {
  color: #f87171;
}

.stats-table.stats-table-combos th:nth-child(2),
.stats-table.stats-table-combos td:nth-child(2) {
  text-align: left;
  white-space: normal;
}

/* ── Table of Contents ─────────────────────────────────────────────── */
.table-of-contents {
  margin: 1.5rem 0 1.5rem;
  background: rgba(10, 15, 26, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(45, 55, 72, 0.7);
  border-left: 3px solid var(--text-primary);
  border-radius: 8px;
  overflow: hidden;
}

.table-of-contents .toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 0.9rem 1.5rem;
  margin: 0;
  border-bottom: 1px solid rgba(45, 55, 72, 0.55);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Decorative dot before the title */
.table-of-contents .toc-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-primary);
  opacity: 0.6;
  flex-shrink: 0;
}

.table-of-contents ul {
  list-style: none;
  padding: 0.5rem 0 0;
  margin: 0;
  counter-reset: toc-counter;
}

.table-of-contents li {
  margin: 0;
  counter-increment: toc-counter;
}

.table-of-contents a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1.5rem;
  color: #a8b3c4;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    padding-left 0.15s ease;
}

/* Numbered counter rendered in gold */
.table-of-contents a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  opacity: 0.4;
  min-width: 1.75rem;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.table-of-contents a:hover {
  background-color: rgba(235, 191, 101, 0.07);
  color: var(--text-primary);
  padding-left: 1.85rem;
  text-decoration: none;
}

.table-of-contents a:hover::before {
  opacity: 1;
}

/* Hamburger Menu Button */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu:hover span {
  background-color: var(--text-primary);
}

/* Hamburger Menu Active State */
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0;
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  flex-direction: column;
  background: transparent;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 1rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  gap: 0.5rem;
  z-index: 1001;
}

.nav-links.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.nav-button {
  width: 100%;
  text-align: left;
}

.nav-links li {
  display: flex;
}

.nav-button {
  padding: 0.75rem 1rem;
  background-color: #1a2235;
  color: var(--text-primary);
  border: 1px solid #2d3748;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  white-space: nowrap;
  font-family: inherit;
}

.nav-button:hover {
  background-color: #1e2a3f;
  border-color: #4a5568;
  color: var(--text-primary);
}

.nav-button:focus {
  outline: none;
  border-color: #4a5568;
  box-shadow: 0 0 0 2px rgba(74, 85, 104, 0.3);
}

.main-content {
  max-width: 1000px;
  margin: 0.5rem auto;
  padding: 0 2rem;
}

.text-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.text-section p {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.text-section h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid #b9b9b9;
  padding-bottom: 0.5rem;
}

.text-section h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.text-section h4 {
  font-size: 1.125rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.text-section ul {
  color: var(--text-secondary);
  line-height: 1.8;
}

.text-section li {
  margin-bottom: 0.5rem;
}

/* Slideshow Container Layout */
.slideshow-wrapper {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Dropdown Menu Styling */
.champion-dropdown {
  padding: 0.75rem 1rem;
  background-color: #1a2235;
  color: var(--text-secondary);
  border: 1px solid #2d3748;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  font-family: inherit;
}

.champion-dropdown option:disabled {
  color: #888;
}

.champion-dropdown:focus {
  outline: none;
  border-color: #4a5568;
}

/* Slideshow Image Area */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  background-color: #0c0d11;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e293b;
  margin: 0 auto;
}

/* Base Slide State (Hidden) */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  display: block;
}

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

.slide:hover img {
  transform: scale(1.02);
}

/* Optional Caption Overlay */
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--text-secondary);
  padding: 2rem 1rem 1rem;
  font-weight: 500;
}

/* Active Slide State (Shown) */
.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Standalone guide card (e.g., homepage highlights) */
.home-guide-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  margin: 1.5rem auto;
  background-color: #0c0d11;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e293b;
}

.home-guide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.home-guide-card:hover img {
  transform: scale(1.02);
}

.inline-video {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  background-color: #0c0d11;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e293b;
}

.inline-video video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.inline-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  aspect-ratio: 16 / 9;
}

.youtube-lazy {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  position: relative;
  cursor: pointer;
  background-color: #000;
}

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

.youtube-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background-color: rgba(23, 23, 23, 0.8);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
}

.youtube-play-btn::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 24px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

.youtube-lazy:hover .youtube-play-btn {
  background-color: #f00;
}

@media (max-width: 600px) {
  .inline-video {
    aspect-ratio: auto;
  }
}

/* The main box */
.expandable-box {
  background-color: rgba(26, 34, 53, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid #2d3748;
  border-radius: 8px;
  margin: 3rem 0;
  transition: all 0.2s ease;
}

/* Hover effect for the box */
.expandable-box:hover {
  border-color: #4a5568;
  background-color: rgba(30, 42, 63, 0.9);
}

/* The clickable header part */
.expandable-box summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  user-select: none;
}

/* Adding space inside the box so text doesn't touch the edges */
.expandable-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* A subtle line to separate the title from the content when open */
.expandable-box[open] summary {
  border-bottom: 1px solid #2d3748;
  margin-bottom: 1.5rem;
}

/* Fixes the margins for the headers specifically inside the expandable box so they don't break the container */
.expandable-content h3:first-of-type {
  margin-top: 0;
}

.text-section ul,
.expandable-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.125rem;
}

@media (max-width: 768px) {
  .site-header {
    background: transparent;
    padding: 0;
    height: auto;
    min-height: 80px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    top: 0;
    z-index: 100;
  }

  .logo-container {
    height: 80px;
    flex-shrink: 0;
  }

  .nav-placeholder {
    flex: 1;
    position: static;
    display: block;
    z-index: 1001;
  }

  .hamburger-menu {
    position: absolute;
    top: 25px;
    right: 1.5rem;
    z-index: 1002;
  }

  .nav-links {
    position: static;
    clear: both;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    min-width: unset;
    border-radius: 0;
    background: transparent;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    transition:
      max-height 0.35s ease,
      opacity 0.35s ease,
      padding 0.35s ease;
  }

  .nav-links.active {
    max-height: 600px;
    opacity: 1;
    padding: 0.75rem 1rem 1rem;
    transform: none;
    visibility: visible;
  }

  .nav-button {
    width: 100%;
    white-space: normal;
    text-align: left;
  }
}

.bg-tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* desktop: wrap onto multiple lines if needed */
  background-color: transparent;
  padding: 0 1rem;
  position: sticky;
  top: 80px;
  z-index: 90;
}

.bg-tab-btn {
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: #9aa5b8;
  border: none;
  /* Use a bottom border on the button itself as the indicator */
  border-bottom: 3px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
  /* Keeps the tab flush with the nav's own border-bottom */
  margin-bottom: -1px;
}

.bg-tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(235, 191, 101, 0.06); /* gold-tinted instead of plain white */
}

/* Keyboard-focus style for accessibility */
.bg-tab-btn:focus-visible {
  outline: 2px solid var(--tab-accent);
  outline-offset: -2px;
  border-radius: 2px;
}

.bg-tab-btn.active {
  color: var(--tab-accent);
  border-bottom-color: var(--tab-accent);
  background-color: rgba(235, 191, 101, 0.08); /* subtle gold wash */
}

/* ── Tab Panels ──────────────────────────────────────────────────────── */
.bg-tab-panel {
  display: none;
}

.bg-tab-panel.active {
  display: block;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bg-tab-nav {
    top: 0;
    flex-wrap: nowrap; /* REQUIRED for overflow-x scroll to work */
    justify-content: flex-start; /* left-align so scroll starts from tab 1 */
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0.5rem;
  }

  .bg-tab-nav::-webkit-scrollbar {
    display: none;
  }

  .bg-tab-btn {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    flex-shrink: 0; /* prevents tabs from squishing instead of scrolling */
  }
}

/* ── Blog ────────────────────────────────────────────────────────────── */

/* Feed container holds the stack of post cards */
.blog-feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

/* Each post card: text-forward, no thumbnail */
.blog-card {
  display: block;
  padding: 1.5rem 1.75rem;
  background-color: rgba(26, 34, 53, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid #2d3748;
  border-left: 3px solid var(--text-primary);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-card:hover {
  background-color: rgba(30, 42, 63, 0.9);
  border-color: #4a5568;
  border-left-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Metadata row: badge + date + read time */
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #9aa5b8;
}

.blog-card-date,
.blog-card-readtime {
  letter-spacing: 0.03em;
}

.blog-card-readtime::before {
  content: "·";
  margin-right: 0.75rem;
  color: #4a5568;
}

.blog-card-title {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  line-height: 1.25;
}

.blog-card-excerpt {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category badges */
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.category-badge.active-filter {
  box-shadow: 0 0 0 2px currentColor;
}

.category-badge.cat-event-guide {
  color: #f87171;
  background-color: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.5);
}

.category-badge.cat-event-guide:hover,
.category-badge.cat-event-guide.active-filter {
  background-color: rgba(248, 113, 113, 0.2);
  border-color: #f87171;
}

.category-badge.cat-event {
  color: #7dd3fc;
  background-color: rgba(125, 211, 252, 0.1);
  border-color: rgba(125, 211, 252, 0.5);
}

.category-badge.cat-event:hover,
.category-badge.cat-event.active-filter {
  background-color: rgba(125, 211, 252, 0.2);
  border-color: #7dd3fc;
}

.category-badge.cat-rank-up {
  color: #4ade80;
  background-color: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.5);
}

.category-badge.cat-rank-up:hover,
.category-badge.cat-rank-up.active-filter {
  background-color: rgba(74, 222, 128, 0.2);
  border-color: #4ade80;
}

.category-badge.cat-crystal {
  color: #c084fc;
  background-color: rgba(192, 132, 252, 0.1);
  border-color: rgba(192, 132, 252, 0.5);
}

.category-badge.cat-crystal:hover,
.category-badge.cat-crystal.active-filter {
  background-color: rgba(192, 132, 252, 0.2);
  border-color: #c084fc;
}

.category-badge.cat-first-impressions {
  color: #f472b6;
  background-color: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.5);
}

.category-badge.cat-first-impressions:hover,
.category-badge.cat-first-impressions.active-filter {
  background-color: rgba(244, 114, 182, 0.2);
  border-color: #f472b6;
}

.category-badge.cat-mechanics-explained {
  color: #fb923c;
  background-color: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.5);
}

.category-badge.cat-mechanics-explained:hover,
.category-badge.cat-mechanics-explained.active-filter {
  background-color: rgba(251, 146, 60, 0.2);
  border-color: #fb923c;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0.5rem;
}

/* Filter indicator (hidden until a filter is active) */
.blog-filter-indicator {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
  padding: 0.6rem 1rem;
  background-color: rgba(235, 191, 101, 0.08);
  border: 1px solid rgba(235, 191, 101, 0.35);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.blog-filter-indicator.active {
  display: inline-flex;
}

.blog-filter-label {
  color: var(--text-primary);
  font-weight: 600;
}

.blog-filter-clear {
  margin-left: auto;
  padding: 0.25rem 0.65rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid #2d3748;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.blog-filter-clear:hover {
  background-color: rgba(235, 191, 101, 0.1);
  border-color: var(--text-primary);
}

/* Individual post page */
.blog-post-header {
  margin: 1.5rem 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #2d3748;
}

.blog-post-header h1 {
  font-size: 2.5rem;
  margin: 0.75rem 0 0.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.blog-post-header .blog-card-meta {
  margin-bottom: 0;
}

.blog-byline {
  margin: 0;
  color: #9aa5b8;
  font-style: italic;
  font-size: 0.95rem;
}

.blog-post-body p {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.blog-post-body ul,
.blog-post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.125rem;
}

.blog-post-body li {
  margin-bottom: 0.5rem;
}

.blog-post-body h2 {
  font-size: 1.75rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.blog-post-body h3 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.blog-post-body .blog-post-image {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0.5rem 0 2rem;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

/* Prev / Next post navigation at bottom of post */
.blog-prev-next {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2d3748;
}

.blog-prev-next a {
  flex: 1 1 0;
  padding: 0.75rem 1rem;
  background-color: #1a2235;
  color: var(--text-primary);
  border: 1px solid #2d3748;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.blog-prev-next .prev-post {
  text-align: left;
}

.blog-prev-next .next-post {
  text-align: right;
}

.blog-prev-next a:hover {
  background-color: #1e2a3f;
  border-color: #4a5568;
}

.blog-prev-next a.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .blog-card {
    padding: 1.25rem 1.25rem;
  }

  .blog-card-title {
    font-size: 1.35rem;
  }

  .blog-card-meta {
    font-size: 0.78rem;
    gap: 0.5rem;
  }

  .blog-card-readtime::before {
    margin-right: 0.5rem;
  }

  .blog-post-header h1 {
    font-size: 2rem;
  }

  .blog-prev-next {
    flex-direction: column;
  }

  .blog-prev-next .prev-post,
  .blog-prev-next .next-post {
    text-align: center;
  }
}
