/* ============================================
   BLOG PAGE - REDESIGN + INTERACTION UPGRADE
   ============================================ */

.page-blog {
  background: #051a20;
}

/* ============================================
   INTERMEDIATE WIDTH STABILITY OVERRIDES
   ============================================ */

@media (min-width: 769px) and (max-width: 1199px) {
  .page-blog .section-inner {
    width: min(100% - 2.5rem, 100%);
    padding-inline: 0;
  }

  .blog-hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }
}

.page-blog main {
  position: relative;
  isolation: isolate;
}

.blog-world-video-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blog-world-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.34;
  filter: saturate(72%) brightness(0.45) contrast(0.95);
  transform: scale(1.06);
}

.blog-world-video-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 22, 28, 0.8) 0%, rgba(4, 22, 28, 0.7) 45%, rgba(4, 22, 28, 0.84) 100%),
    radial-gradient(60rem 40rem at 12% 8%, rgba(58, 211, 220, 0.14) 0%, rgba(58, 211, 220, 0) 56%),
    radial-gradient(55rem 40rem at 88% 18%, rgba(255, 182, 88, 0.12) 0%, rgba(255, 182, 88, 0) 52%);
}

.page-blog .section {
  position: relative;
  z-index: 1;
}

/* Hero */
.blog-hero {
  min-height: 52vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: var(--space-xl);
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.hero-glow-1 {
  width: 430px;
  height: 430px;
  background: #27b7cb;
  top: -170px;
  left: -110px;
  animation: blog-hero-glow 9s ease-in-out infinite;
}

.hero-glow-2 {
  width: 380px;
  height: 380px;
  background: #f2a24f;
  bottom: -140px;
  right: -90px;
  animation: blog-hero-glow 9s ease-in-out infinite reverse;
}

@keyframes blog-hero-glow {
  0%, 100% { transform: scale(1); opacity: 0.26; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  margin-bottom: 0.9rem;
  color: #e8fbff;
}

.blog-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(207, 234, 238, 0.9);
  line-height: 1.7;
  margin: 0 auto 1.15rem;
  max-width: 62ch;
}

.blog-search-form {
  display: grid;
  gap: 0.5rem;
  width: min(100%, 560px);
  margin: 0 auto;
  text-align: left;
}

.blog-search-label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(182, 224, 230, 0.92);
}

.blog-search-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(102, 205, 216, 0.36);
  background: rgba(8, 40, 49, 0.72);
  color: #ecfbff;
  padding: 0.78rem 1rem;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.blog-search-input:focus-visible {
  border-color: rgba(90, 213, 226, 0.92);
  box-shadow: 0 0 0 3px rgba(90, 213, 226, 0.26);
}

.blog-search-input::placeholder {
  color: rgba(177, 214, 220, 0.72);
}

/* Featured summary (exact projects-hub slider styles) */
.page-blog .hub-blog-highlight {
  background: transparent;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.page-blog .hub-blog-highlight .section-inner,
.page-blog .blog-controls .section-inner,
.page-blog .blog-grid-section .section-inner {
  max-width: min(1500px, 97vw);
}

.blog-slider {
  width: min(860px, 94%);
  margin: 0 auto;
  padding: 18px;
  border-radius: 24px;
  height: 360px;
  position: relative;
  background:
    radial-gradient(110% 120% at 92% 18%, rgba(242, 162, 79, 0.28) 0%, rgba(242, 162, 79, 0.1) 34%, rgba(242, 162, 79, 0) 62%),
    linear-gradient(135deg, rgba(5, 26, 32, 0.94) 0%, rgba(9, 40, 48, 0.9) 58%, rgba(20, 64, 70, 0.86) 100%);
  border: 1px solid rgba(242, 162, 79, 0.36);
  box-shadow:
    0 20px 52px rgba(5, 11, 33, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(5px);
  overflow: visible;
}

.blog-slider__wrp {
  width: 100%;
  height: 100%;
  position: relative;
}

.blog-slider__item {
  display: none;
  height: 100%;
  align-items: center;
  gap: 1.2rem;
  padding-left: 34px;
}

.blog-slider__item.is-active {
  display: flex;
}

.blog-slider__img {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  transform: translateX(-90px);
  background: linear-gradient(147deg, #61e0ff 0%, #7d6bff 74%);
  box-shadow: 4px 13px 30px rgba(91, 143, 255, 0.25);
  position: relative;
  z-index: 3;
}

.blog-slider__img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(147deg, rgba(105, 223, 255, 0.28) 0%, rgba(125, 107, 255, 0.36) 74%);
}

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

.blog-slider__content {
  padding-right: 18px;
}

.blog-slider__code {
  color: rgba(229, 245, 249, 0.88);
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
}

.blog-slider__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  color: #f2fbff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.blog-slider__text {
  color: rgba(229, 245, 249, 0.9);
  margin-bottom: 18px;
  line-height: 1.55;
  font-size: 0.95rem;
}

.blog-slider__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 11px 24px;
  border-radius: 50px;
  color: #f3fbff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(112deg, #051a20 0%, #f2a24f 100%);
  box-shadow: 0 12px 30px rgba(5, 26, 32, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-slider__button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 34px rgba(5, 26, 32, 0.42);
}

.blog-slider__pagination {
  position: absolute;
  z-index: 3;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.blog-slider__bullet {
  width: 11px;
  height: 11px;
  border-radius: 10px;
  border: 0;
  background: #1e3d45;
  opacity: 0.24;
  cursor: pointer;
  transition: all 180ms ease;
}

.blog-slider__bullet.is-active {
  opacity: 1;
  background: linear-gradient(155deg, rgba(5, 26, 32, 0.95) 0%, rgba(242, 162, 79, 0.78) 100%);
  height: 28px;
  box-shadow: 0 0 20px rgba(242, 162, 79, 0.4);
}

.blog-slider__button:focus-visible,
.blog-slider__bullet:focus-visible {
  outline: 2px solid rgba(88, 131, 247, 0.82);
  outline-offset: 2px;
}

/* Continue page styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem 1.8rem;
  overflow: hidden;
}

/* Controls */
.blog-controls {
  padding-top: 2rem;
  padding-bottom: var(--space-md);
}

.blog-controls-bar {
  display: grid;
  gap: 0.85rem;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.category-pill {
  border: 1px solid rgba(147, 170, 255, 0.26);
  border-radius: 999px;
  background: rgba(16, 33, 79, 0.66);
  color: rgba(220, 229, 255, 0.92);
  padding: 0.55rem 0.94rem;
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.category-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 164, 255, 0.72);
}

.category-pill.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(118deg, #58a8ff 0%, #6e57ef 100%);
}

.category-pill:focus-visible {
  outline: 2px solid rgba(118, 161, 255, 0.92);
  outline-offset: 2px;
}

.category-count {
  font-size: 0.75rem;
  color: rgba(231, 252, 255, 0.95);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  min-width: 1.4rem;
  text-align: center;
  padding: 0.08rem 0.4rem;
}

.blog-results-count {
  display: none;
}

/* Grid */
.blog-grid-section {
  padding-top: var(--space-md);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem 1.8rem;
}

.blog-card {
  border: 1px solid rgba(138, 160, 245, 0.18);
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(11, 22, 57, 0.78);
  backdrop-filter: blur(3px);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 171, 255, 0.44);
  box-shadow: 0 14px 24px rgba(7, 16, 48, 0.44);
}

.blog-card-image-link {
  display: block;
  aspect-ratio: 16 / 10;
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 0.92rem 0.94rem 1rem;
}

.blog-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.post-category {
  padding: 0.2rem 0.64rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #c8e6ff;
  background: rgba(66, 134, 255, 0.2);
}

.post-date,
.post-read {
  font-size: 0.77rem;
  color: rgba(170, 191, 246, 0.85);
}

.blog-content h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  line-height: 1.28;
  font-size: 1.12rem;
}

.blog-content h3 a {
  color: #edf1ff;
}

.blog-content p {
  margin: 0 0 0.72rem;
  color: rgba(198, 212, 252, 0.9);
  line-height: 1.58;
  font-size: 0.91rem;
}

.blog-link {
  color: #8bc9ff;
  font-weight: 700;
  font-size: 0.84rem;
}

.blog-link:hover {
  color: #b3ddff;
}

.blog-card a:focus-visible {
  outline: 2px solid rgba(119, 173, 255, 0.94);
  outline-offset: 2px;
}

.blog-card[hidden] {
  display: none !important;
}

.blog-empty-state {
  margin-top: 0.9rem;
  border: 1px dashed rgba(146, 171, 244, 0.34);
  border-radius: 1rem;
  background: rgba(17, 30, 69, 0.52);
  padding: 1.2rem;
  text-align: center;
}

.blog-empty-state h3 {
  margin: 0;
  color: #e7eeff;
}

.blog-empty-state p {
  margin: 0.4rem 0 0;
  color: rgba(183, 203, 248, 0.9);
}

/* Pagination */
.blog-pagination {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.blog-pagination button {
  border: 1px solid rgba(145, 171, 255, 0.28);
  background: rgba(16, 31, 76, 0.64);
  color: #dbe5ff;
  border-radius: 0.66rem;
  padding: 0.44rem 0.72rem;
  min-width: 2.2rem;
  font-size: 0.86rem;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.blog-pagination button:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 165, 255, 0.72);
}

.blog-pagination button[aria-current="page"] {
  background: linear-gradient(116deg, #58a9ff 0%, #6e58ef 100%);
  color: #ffffff;
  border-color: transparent;
}

.blog-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.blog-pagination button:focus-visible {
  outline: 2px solid rgba(121, 170, 255, 0.88);
  outline-offset: 2px;
}

/* Newsletter */
.blog-newsletter {
  padding-top: var(--space-xl);
}

.newsletter-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.3rem;
  border: 1px solid rgba(156, 180, 255, 0.22);
  background: rgba(11, 20, 51, 0.86);
  padding: var(--space-xl);
}

.newsletter-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.newsletter-content h2 {
  margin: 0 0 0.45rem;
  color: #f1f4ff;
  font-family: var(--font-display);
}

.newsletter-content p {
  color: rgba(193, 209, 247, 0.94);
}

.newsletter-form {
  margin: 1rem auto 0;
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.58rem;
  align-items: end;
}

.newsletter-form label {
  grid-column: 1 / -1;
  text-align: left;
  color: rgba(207, 220, 255, 0.95);
  font-size: 0.86rem;
}

.newsletter-form input {
  border-radius: 999px;
  border: 1px solid rgba(151, 176, 247, 0.36);
  background: rgba(20, 35, 78, 0.68);
  color: #edf1ff;
  padding: 0.7rem 0.95rem;
}

.newsletter-form input:focus-visible {
  outline: 2px solid rgba(123, 170, 255, 0.86);
  outline-offset: 2px;
}

.newsletter-form .btn {
  border-radius: 999px;
}

.newsletter-note {
  margin-top: 0.55rem;
  color: rgba(171, 190, 236, 0.86);
  font-size: 0.82rem;
}

.newsletter-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deco-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.26;
}

.shape-1 {
  width: 220px;
  height: 220px;
  background: #c75eff;
  top: -70px;
  right: -70px;
}

.shape-2 {
  width: 180px;
  height: 180px;
  background: #4d89ff;
  bottom: -60px;
  left: -60px;
}

.shape-3 {
  width: 130px;
  height: 130px;
  background: #7f64ff;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
}

/* Blog CTA upgrade */
.page-blog .section-cta-enhanced {
  padding-top: var(--space-2xl);
  padding-bottom: calc(var(--space-2xl) + 0.5rem);
  background: transparent;
}

.page-blog .section-cta-enhanced .section-inner {
  position: relative;
  z-index: 2;
}

.page-blog .cta-content {
  position: relative;
  max-width: 860px;
  border-radius: 1.55rem;
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1rem, 3vw, 2.3rem);
  background:
    linear-gradient(155deg, rgba(8, 35, 44, 0.84) 0%, rgba(8, 32, 41, 0.78) 50%, rgba(7, 29, 38, 0.86) 100%);
  border: 1px solid rgba(95, 192, 203, 0.3);
  box-shadow:
    0 20px 50px rgba(5, 11, 33, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(5px);
}

.page-blog .cta-content::before {
  content: "Collaborate";
  position: absolute;
  top: -0.65rem;
  left: 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  color: #10313a;
  background: linear-gradient(110deg, #58d6e0 0%, #efb66f 100%);
}

.page-blog .cta-title {
  margin-bottom: 0.68rem;
}

.page-blog .cta-line {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.05;
}

.page-blog .cta-line:first-child {
  color: #edfcff;
}

.page-blog .cta-line-accent {
  background: linear-gradient(120deg, #7be1e8 0%, #90ced7 35%, #f1c180 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-blog .cta-subtitle {
  margin: 0 auto 1rem;
  max-width: 66ch;
  color: rgba(186, 221, 226, 0.92);
}

.page-blog .cta-buttons {
  margin-top: 0.8rem;
}

.page-blog .cta-buttons .btn.btn-primary.btn-large {
  position: relative;
  isolation: isolate;
  min-width: 208px;
  border-radius: 999px;
  padding: 0.88rem 1.45rem;
  background: linear-gradient(112deg, #58d5e0 0%, #f2b970 100%);
  color: #0d2e36;
  border: 1px solid rgba(201, 230, 234, 0.52);
  box-shadow: 0 10px 28px rgba(6, 49, 56, 0.34);
}

.page-blog .cta-buttons .btn.btn-primary.btn-large::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.52;
}

.page-blog .cta-buttons .btn.btn-primary.btn-large:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 34px rgba(7, 61, 69, 0.44);
}

.page-blog .cta-buttons .btn.btn-primary.btn-large:focus-visible {
  outline: 2px solid rgba(111, 220, 230, 0.95);
  outline-offset: 3px;
}

.page-blog .cta-buttons .btn .btn-icon {
  width: 1.12rem;
  height: 1.12rem;
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 960px) {
  .blog-slider {
    min-height: 460px;
    height: auto;
    overflow: hidden;
  }

  .blog-slider__item.is-active {
    flex-direction: column;
    align-items: stretch;
    padding-left: 0;
  }

  .blog-slider__img {
    width: 92%;
    height: 220px;
    transform: translateX(0);
    margin: 0 auto;
  }

  .blog-slider__content {
    padding-right: 0;
    padding-top: 12px;
    text-align: center;
  }

  .blog-slider__pagination {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 14px;
    transform: translateX(-50%);
    flex-direction: row;
  }

  .blog-slider__bullet.is-active {
    width: 28px;
    height: 11px;
  }

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

@media (max-width: 768px) {
  .blog-hero {
    min-height: 46vh;
  }

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

  .blog-categories {
    gap: 0.5rem;
  }

  .category-pill {
    font-size: 0.82rem;
    padding: 0.5rem 0.78rem;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .page-blog .cta-content {
    border-radius: 1.15rem;
    padding: 1.25rem 1rem 1.1rem;
  }

  .page-blog .cta-content::before {
    left: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-world-video {
    display: none;
  }

  .blog-world-video-layer {
    background:
      linear-gradient(180deg, #051a20 0%, #0a2a33 100%);
  }
}

/* Blog post page */
.page-blog-post .post-hero {
  padding-top: 120px;
  padding-bottom: var(--space-lg);
}

.post-back-link {
  display: inline-flex;
  color: #9cd4ff;
  margin-bottom: 0.8rem;
}

.post-meta-line {
  margin: 0 0 0.5rem;
  color: rgba(192, 218, 249, 0.9);
}

.page-blog-post #postTitle {
  margin: 0;
  color: #eef5ff;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.9rem);
}

.post-content-section {
  padding-top: 0;
}

.post-article {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(140, 168, 244, 0.22);
  background: rgba(11, 25, 62, 0.8);
  overflow: hidden;
}

.post-article img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.post-content {
  padding: 1.1rem 1.15rem 1.4rem;
}

.post-content p {
  margin: 0 0 0.85rem;
  color: rgba(211, 224, 252, 0.95);
  line-height: 1.75;
}
/* ============================================
   MOBILE REBUILD OVERRIDES
   ============================================ */
@media (max-width: 1024px) {
  .blog-hero,
  .hub-blog-highlight,
  .blog-grid-section,
  .blog-newsletter,
  .page-blog-post .post-hero,
  .post-content-section {
    overflow: clip;
  }

  .blog-hero .section-inner,
  .page-blog .hub-blog-highlight .section-inner,
  .page-blog .blog-controls .section-inner,
  .page-blog .blog-grid-section .section-inner {
    width: min(100% - 2rem, 100%);
  }

  .blog-controls-bar {
    gap: 0.85rem;
    align-items: flex-start;
  }

  .blog-categories {
    width: 100%;
  }

  .blog-results-count {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding-top: 6.4rem;
    min-height: auto;
  }

  .blog-hero-title,
  .page-blog-post #postTitle {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 0.98;
  }

  .blog-search-form,
  .blog-search-input,
  .newsletter-form,
  .newsletter-form .btn {
    width: 100%;
  }

  .blog-controls-bar,
  .blog-categories,
  .blog-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .category-pill,
  .blog-pagination button,
  .blog-link,
  .blog-slider__button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .blog-card,
  .newsletter-card,
  .post-article {
    border-radius: 1.1rem;
  }

  .post-article {
    padding: 1.1rem;
  }
}
/* ============================================
   DENSE MOBILE REFINEMENT OVERRIDES
   ============================================ */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .blog-card {
    border-radius: 1rem;
  }

  .blog-content {
    padding: 0.85rem;
  }

  .blog-content h3 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .blog-content p,
  .blog-meta,
  .blog-hero-subtitle,
  .post-article p,
  .post-article li {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .blog-controls-bar,
  .blog-categories,
  .blog-pagination {
    gap: 0.6rem;
  }

  .category-pill,
  .blog-pagination button {
    width: auto;
    min-width: 0;
    font-size: 0.78rem;
    padding: 0.58rem 0.7rem;
  }

  .blog-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .blog-grid,
  .blog-categories {
    grid-template-columns: 1fr;
  }
}
