.materials-index-page {
  overflow-x: clip;
}

.materials-index-page .blog-featured-section .container,
.materials-index-page .blog-library-section .container,
.materials-index-page .blog-library-top,
.materials-index-page .blog-featured-grid,
.materials-index-page .blog-article-grid,
.materials-index-page .blog-article-card,
.materials-index-page .blog-filter-bar {
  min-width: 0;
  max-width: 100%;
}

.materials-index-page.proto-ready .blog-featured-section .blog-article-card,
.materials-index-page.proto-ready .blog-library-section .blog-article-card {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.materials-index-page .blog-article-card {
  width: 100%;
  padding: clamp(22px, 2.2vw, 28px);
  border-color: rgba(164, 187, 202, 0.72);
  border-radius: var(--radius-lg, 22px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 252, 0.93));
  box-shadow:
    0 1px 2px rgba(13, 34, 53, 0.04),
    0 14px 34px rgba(13, 34, 53, 0.07),
    0 32px 72px rgba(30, 111, 159, 0.035);
}

.materials-index-page .blog-article-card:hover,
.materials-index-page .blog-article-card:focus-visible {
  transform: none;
}

.materials-index-page .blog-article-card:focus-visible {
  outline: 3px solid rgba(30, 111, 159, 0.34);
  outline-offset: 4px;
  border-color: rgba(30, 111, 159, 0.58);
}

.materials-index-page .blog-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
  gap: 10px;
  padding: 7px 12px 9px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-padding-inline: 12px;
  scrollbar-width: thin;
  border: 1px solid rgba(184, 202, 214, 0.46);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 26px rgba(13, 34, 53, 0.045);
}

.materials-index-page .blog-filter {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #52677b;
  border-color: rgba(164, 187, 202, 0.82);
  background: rgba(255, 255, 255, 0.82);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.materials-index-page .blog-filter.is-active {
  color: #fff;
  border-color: rgba(30, 111, 159, 0.72);
  background: linear-gradient(135deg, #12324d, #1e6f9f);
  box-shadow: 0 8px 18px rgba(13, 34, 53, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.materials-index-page .blog-filter:focus-visible {
  outline: 3px solid rgba(30, 111, 159, 0.34);
  outline-offset: 3px;
}

.materials-index-page .blog-month-section h3::after {
  background: linear-gradient(90deg, rgba(126, 157, 180, 0.72), rgba(184, 202, 214, 0.24) 58%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  .materials-index-page.proto-ready .blog-featured-section .blog-article-card,
  .materials-index-page.proto-ready .blog-library-section .blog-article-card {
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  }

  .materials-index-page .blog-article-card:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 111, 159, 0.48);
    box-shadow:
      0 2px 4px rgba(13, 34, 53, 0.045),
      0 20px 44px rgba(13, 34, 53, 0.095),
      0 38px 82px rgba(30, 111, 159, 0.05);
  }

  .materials-index-page .blog-filter:hover:not(.is-active) {
    color: #244b68;
    border-color: rgba(30, 111, 159, 0.44);
    background: #fff;
  }
}

@media (max-width: 860px) {
  .materials-index-page .blog-filter-bar {
    margin-inline: 0;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .materials-index-page .blog-article-card,
  .materials-index-page .blog-filter {
    transition: none;
  }

  .materials-index-page .blog-article-card:hover,
  .materials-index-page .blog-article-card:focus-visible {
    transform: none;
  }
}
