<style>
/* ==========================================================================
   1) Root Variables & Base Helpers
   ========================================================================== */
:root {
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-gray-100: #f5f5f5;
  --color-gray-300: #e0e0e0;
  --color-gray-500: #a3a3a3;
  --color-gray-700: #404040;

  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-subtle: 0 8px 32px rgba(0, 0, 0, 0.1);

  --transition-fast: 120ms ease;
  --transition-medium: 240ms ease;
}

/* Accessibility helper for screen readers */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  word-wrap: normal !important;
}

/* ==========================================================================
   2) Layout: Page Container & Grid
   ========================================================================== */
.post-archive-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 30px 20px;
  font-family: var(--font-primary);
  color: var(--color-black);
  background-color: var(--color-gray-100);
}

.site-main {
  display: grid;
  grid-template-columns: 335px 1fr 335px;
  align-items: start;
  gap: 1.5rem;
  max-width: -webkit-fill-available;
  margin: 0 auto;
}

.archive-main-content {
  min-width: 0; /* Prevents content from shrinking in grid */
}

.post-filter-sidebar,
.post-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 2rem;
}

/* ==========================================================================
   3) Archive Header: Breadcrumbs, Title, Description
   ========================================================================== */

/* Keep any images in the description stable and non-stretchy */
.page-description img {
  max-width: 100%;
  height: auto;
}

.post-archive-header {
  margin-bottom: 3rem;
}

.breadcrumb-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

.breadcrumb-nav li:not(:last-child)::after {
  margin-left: 0.5rem;
  color: var(--color-gray-300);
  content: "/";
}

.breadcrumb-nav a {
  color: var(--color-gray-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
  color: var(--color-black);
}

.page-title {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-black);
}

.page-description {
  max-width: 65ch;
  margin-top: 0.75rem;
  font-size: 1.125rem;
  color: var(--color-gray-700);
}

/* ==========================================================================
   4) Filters: Search Toolbar (CLS-reserved space)
   ========================================================================== */

/* CLS FIX: Reserve space for the search input bar to prevent content shift */
.post-filters-toolbar {
  display: flex;
  align-items: center;
  min-height: 74px;
  margin-bottom: 2rem;
}

.search-filter-wrapper {
  position: relative;
  width: 100%;
}

.search-filter-icon {
  position: absolute;
  top: 50%;
  left: 1.25rem;
  width: 20px;
  height: 20px;
  color: var(--color-gray-500);
  pointer-events: none;
  transform: translateY(-50%);
}

#post-search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  -webkit-appearance: none;
  transition: border-color var(--transition-medium), 
              box-shadow var(--transition-medium);
}

#post-search-input::placeholder {
  color: var(--color-gray-500);
  opacity: 1;
}

#post-search-input:focus {
  border-color: rgba(0, 0, 0, 0.2);
  outline: none;
  box-shadow: 
    0 0 0 4px rgba(0, 0, 0, 0.05), 
    var(--shadow-subtle);
}

/* ==========================================================================
   5) Post Grid & Cards (images, title, meta chips, button, NEW badge)
   ========================================================================== */

/* CLS FIX: Prevent grid from collapsing during content loads */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
  gap: 2rem;
  min-height: 400px;
  transition: opacity 0.2s ease;
}

.post-grid.is-filtering {
  opacity: 0;
}

.post-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12),
              0 0 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-10px);
}

.post-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* CLS FIX: Reserve space for thumbnails */
.post-card__image-container {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background-color: var(--color-gray-100);
}

.post-card__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card__image-container img {
  transform: scale(1.05);
}

.post-card__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* NEW badge */
.post-card__new-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
}

/* Card Content */
.post-card__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 10px;
  text-align: center;
}

/* CLS FIX: Reserve space for 2 lines in titles */
.post-card__title {
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  margin: 10px auto;
  min-height: calc(1.3em * 2);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

/* Meta row */
.post-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  color: var(--color-gray-700);
}

.post-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e6e6e6 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6),
              0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, background-color 0.25s ease,
              color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.post-card__meta-item:hover {
  background: #fafafa;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8),
              0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.post-card__meta-item a {
  color: inherit;
  text-decoration: none;
}

.post-card__meta-item:hover a {
  color: var(--color-black);
}

.post-card__meta-item .meta-icon {
  padding: 0.1rem;
  font-size: 1.1em;
  line-height: 1;
  opacity: 0.8;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Read More button */
.post-card__button {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-white);
  background-color: var(--color-black);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.post-card__button:hover {
  background-color: var(--color-gray-700);
}

.post-card__button svg {
  transition: transform 0.3s ease;
}

.post-card__button:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   6) “No Results” Message
   ========================================================================== */
.no-results-message {
  margin-top: 2rem;
  padding: 2.5rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
}

.no-results-message h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-black);
}

.no-results-message p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-gray-700);
}


/* ==========================================================================
   7) Left Sidebar: Category Filter (Glassmorphism with Improved Hover + Active)
   ========================================================================== */

.post-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Base pill (glass style) */
.post-category-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937; /* dark text */
  text-decoration: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Icon + text */
.category-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.category-name {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Count pill */
.category-count {
  flex-shrink: 0;
  min-width: 28px;
  text-align: center;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  color: #222;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Hover → brighter frosted glass with glow */
.post-category-list a:hover {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 20px rgba(139,92,246,0.25); /* soft purple glow */
  transform: translateY(-2px) scale(1.01);
}
.post-category-list a:hover .category-count {
  background: rgba(255, 255, 255, 0.55);
  color: #111;
}
.post-category-list a:hover .category-icon {
  color: #6b21a8; /* purple accent */
}

/* Active → dark frosted glass with inner glow */
.post-category-list a.active {
    background: rgb(0 0 0 / 89%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px) scale(1.02);
}
.post-category-list a.active .category-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.post-category-list a.active .category-icon {
  color: #fff;
}

/* ✅ Parent also active when a child is active */
.post-category-list details:has(.submenu a.active) > summary > a {
    background: rgb(0 0 0);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px) scale(1.02);
}
.post-category-list details:has(.submenu a.active) > summary > a .category-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.post-category-list details:has(.submenu a.active) > summary > a .category-icon {
  color: #fff;
}

/* Parent container + toggle */
.post-category-list details {
  margin: 0;
}
.post-category-list summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  margin-bottom: 0.25rem;
}
.post-category-list summary::-webkit-details-marker {
  display: none;
}
.toggle-arrow {
    margin-left: auto;
    font-size: 0.9rem;
    color: rgb(0 0 0);
    transition: transform 0.25s ease, color 0.25s ease;
}
details[open] .toggle-arrow {
  transform: rotate(90deg);
  color: #6b21a8;
}

/* Submenu (child categories) */
.submenu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 0 2rem;
  padding: 0;
  list-style: none;
}
details[open] .submenu {
  display: flex;
  animation: slideDown 0.25s ease-out;
}
.submenu a {
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  width: 85%;
  border-radius: 12px;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.submenu a:hover {
  background: rgba(255,255,255,0.4);
  box-shadow: 0 4px 12px rgba(139,92,246,0.25);
  color: #000;
}
.submenu a.active {
  background: rgba(20,20,20,0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Animation */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* 📱 Mobile-only styles */
@media (max-width: 768px) {

  .sidebar-widget {
    padding: 15px;
    background: #ffffffba;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    width: 100%;
    justify-items: center;
  }

  a.button:hover,
  a.wp-block-button__link:not(.has-background):hover,
  button:hover,
  html input[type=button]:hover,
  input[type=reset]:hover,
  input[type=submit]:hover {
    background-color: #1e1e1e;
    box-shadow: 0 15px 20px rgba(46, 229, 157, .4);
    color: #fff;
    width: -webkit-fill-available;
    place-content: center;
  }

  #mobile-category-widget.is-open .post-category-list {
    display: flex;
    width: -webkit-fill-available;
  }
}


@media (max-width: 768px) {
    .mobile-category-toggle {
        display: flex
;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
        cursor: pointer;
        font-weight: 500;
        color: #000000;
        width: -webkit-fill-available;
        justify-content: center;
    }
}

/* Hide on desktop by default */
.mobile-category-toggle {
  display: none;
}

/* Show only on mobile (≤768px) */
@media (max-width: 768px) {
  .mobile-category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    color: #000000;
    width: 100%;
    justify-content: center;
  }
}



/* ==========================================================================
   8) Right Sidebar: Widgets (Recent/Popular, Subscribe)
   ========================================================================== */

/* Sidebar container */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem; /* slightly tighter than 2rem */
}

/* Generic widget card */
.sidebar-widget {
    padding: 15px;
    background: #ffffffba;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    width: 100%;
}
/* Make the first widget (tabs) tighter vertically */
.post-sidebar .sidebar-widget:first-child {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.sidebar-widget__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.sidebar-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Tabs header (pill style) */
.tab-switcher__header {
  display: flex;
  align-items: center;
  margin: 10px 0 0.75rem;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-pill);
}

/* Tab buttons */
.tab-switcher__button {
  flex: 1;
  margin: 5px;
  padding: 15px 5px;
  font-size: 0.875rem;
  line-height: 1.2;
  font-weight: 500;
  color: var(--color-gray-700);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease,
              box-shadow .2s ease, transform .2s ease;
}

.tab-switcher__button.active {
  color: var(--color-black);
  background-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

/* Panels */
.tab-switcher__content {
  display: none;
}
.tab-switcher__content.active {
  display: block;
}

.tab-switcher__content ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Stable row height for list items */
.tab-switcher__content li a {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 58px;
  text-decoration: none;
  padding: 4px 0;
}

.tab-switcher__content li a:hover .widget-post-title {
  color: var(--color-gray-700);
}

/* Fixed thumbnail box */
.tab-switcher__content img,
.widget-post-placeholder {
  display: block;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  object-fit: cover;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-sm);
}

.widget-post-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.widget-post-title {
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-black);
  transition: color var(--transition-fast);
}

.widget-post-date,
.widget-post-meta {
  font-size: 0.8rem;
  color: var(--color-gray-500);
}

/* Subscribe widget */
.sidebar-widget--subscribe p {
  margin: -1rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--color-gray-700);
}

.subscribe-form__group {
  display: flex;
  align-items: center;
  background-color: var(--color-gray-100);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
}

.subscribe-form__group:focus-within {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.subscribe-form__group input[type="email"] {
  flex-grow: 1;
  min-width: 0;
  padding: 0.75rem 0 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-black);
  background: transparent;
  border: none;
  outline: none;
}

.subscribe-form__group button {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 4px;
  color: var(--color-white);
  background-color: var(--color-black);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.subscribe-form__group button:hover {
  background-color: var(--color-gray-700);
}

/* ==========================================================================
   9) Utilities & CLS Hotfixes
   ========================================================================== */

/* Grid utility fixes */
.generate-columns.grid-33,
.grid-sizer.grid-33 {
  width: fit-content;
}

/* Limit filter sidebar height with scroll */
.post-filter-sidebar {
  max-height: none;   /* let it expand naturally */
  overflow-y: visible; /* disable scrolling */
}

/* Animation for submenu dropdown */
details[open] .submenu {
    margin-top: 10px;
    margin-bottom: 5px;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Prevent horizontal overflow issues on mobile */
@media (max-width: 992px) {
  .site-main {
    display: grid;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
  .post-filter-sidebar,
  .post-sidebar {
    position: static !important;
    top: auto !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  html, body {
    overflow-x: hidden;
  }
}

/* Modern animated gradient blobs behind the search toolbar (CLS-safe) */
.post-filters-toolbar {
  position: relative;
  isolation: isolate; /* ensures blobs stay behind content */
}

.post-filters-toolbar::before,
.post-filters-toolbar::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.35;
}

.post-filters-toolbar::before {
  top: -40px;
  left: -80px;
  background: radial-gradient(circle at 40% 40%, #a5b4fc 0%, #93c5fd 45%, transparent 70%);
  animation: blobFloat1 18s ease-in-out infinite;
}

.post-filters-toolbar::after {
  right: -80px;
  bottom: -50px;
  background: radial-gradient(circle at 60% 60%, #fda4af 0%, #fb923c 40%, transparent 70%);
  animation: blobFloat2 22s ease-in-out infinite;
}

.search-filter-wrapper {
  position: relative;
  z-index: 2; /* keeps search box above blobs */
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(24px,12px) scale(1.06); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-28px,-16px) scale(0.96); }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .post-filters-toolbar::before,
  .post-filters-toolbar::after {
    animation: none;
  }
}

/* Center alignment for archive header */
header.post-archive-header {
  justify-items: center;
}

/* ==========================================================================
   10) Responsive Breakpoints (1280px, 992px, 768px, 600px)
   ========================================================================== */

/* Large screens down to 1280px */
@media (max-width: 1280px) {
  .site-main {
    grid-template-columns: 1fr 320px;
    gap: 2rem;
  }
  .post-filter-sidebar {
    grid-row: 1;
    grid-column: 1 / -1;
    position: static;
    top: auto;
  }
  .archive-main-content {
    grid-row: 2;
    grid-column: 1 / 2;
  }
  .post-sidebar {
    grid-row: 2;
    grid-column: 2 / 3;
  }
}

/* Medium screens down to 992px */
@media (max-width: 992px) {
  .post-archive-container {
    padding: 2rem 1.5rem;
  }
  .site-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .post-filter-sidebar,
  .archive-main-content,
  .post-sidebar {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .post-sidebar {
    position: static;
    top: auto;
  }
}

/* Tablets down to 768px */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  .post-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Mobile-only: collapse filter */

  .mobile-toggle-arrow {
    display: inline-block;
    color: var(--color-gray-500);
    transition: transform 0.2s ease-in-out;
  }

  #mobile-category-widget .post-category-list {
    display: none;
  }

  #mobile-category-widget.is-open .mobile-category-toggle {
    margin-bottom: 1.5rem;
  }

  #mobile-category-widget.is-open .post-category-list {
    display: flex;
  }

  #mobile-category-widget.is-open .mobile-toggle-arrow {
    transform: rotate(180deg);
  }

  /* Mobile filter sidebar spacing */
  .post-filter-sidebar {
    margin-top: 20px;
  }

  /* Add a mobile-only title above filters */
  .mobile-filter-title {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    text-align: left;
  }
}

/* Desktop: keep filters always visible */
@media (max-width: 768px) {
    .mobile-category-toggle { {
    background-color: #1e1e1e;
    box-shadow: 0 15px 20px rgba(46, 229, 157, .4);
    color: #fff;
    width: -webkit-fill-available;
    place-content: center;
}
/* Small screens down to 600px */
@media (max-width: 600px) {
  .post-archive-container {
    padding: 1.5rem 1rem;
  }
  .page-title {
    font-size: 2rem;
  }
  .page-description {
    font-size: 1rem;
  }
}


</style>