/* Resources listing page — Figma node 46:3378 */

.page-resources {
  background: #fff;
}

.resources-main {
  display: flex;
  flex-direction: column;
}

/* ---------- Hero ---------- */
.resources-hero {
  position: relative;
  height: 450px;
  min-height: 450px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #000;
}

.resources-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.resources-hero__bg > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
}

.resources-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 54%
  );
}

.resources-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-nav);
  margin: 0 auto;
  padding: 0 24px;
}

.resources-hero__content h1 {
  font-size: var(--type-hero);
  font-weight: 700;
  font-style: normal;
  line-height: var(--leading-hero);
  color: #fff;
  margin: 0 0 16px;
}

.resources-hero__content p {
  font-size: var(--type-hero-sub);
  line-height: var(--leading-body);
  color: rgba(255, 255, 255, 0.82);
  max-width: 672px;
  margin: 0;
}

/* ---------- Breadcrumb (align with Products: left, full-width) ---------- */
.resources-main .breadcrumb {
  max-width: var(--container-nav);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 29px 40px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
}

.resources-main .breadcrumb a {
  color: #6b7280;
  transition: color 0.2s ease;
}

.resources-main .breadcrumb a:hover {
  color: #e31e24;
}

.resources-main .breadcrumb span {
  color: #111827;
  font-weight: 600;
}

.resources-main .breadcrumb img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Filters ---------- */
.resources-filters {
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}

.resources-filters__inner {
  max-width: var(--container-nav);
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.resources-filters__pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.resources-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  background: transparent;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: #545962;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.resources-pill:hover:not(.is-active) {
  color: #111827;
}

.resources-pill.is-active {
  background: #111827;
  color: #fff;
  padding: 8px 24px;
}

.resources-search {
  position: relative;
  flex-shrink: 0;
  width: 288px;
  max-width: 100%;
}

.resources-search__icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 13.5px;
  height: 13.5px;
  pointer-events: none;
}

.resources-search__input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resources-search__input::placeholder {
  color: #6b7280;
}

.resources-search__input:focus {
  border-color: #e31e24;
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

/* ---------- Article Grid ---------- */
.resources-articles {
  max-width: var(--container-nav);
  margin: 0 auto;
  padding: 32px 40px 80px;
  width: 100%;
}

.resources-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.article-card:hover {
  border-color: #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.article-card.is-hidden {
  display: none;
}

.article-card__img-link {
  display: block;
  overflow: hidden;
  height: 278px;
  background: #f3f4f6;
}

.article-card__img-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.article-card:hover .article-card__img-link img {
  transform: scale(1.03);
}

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px;
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.article-card__category {
  font-size: 14px;
  font-weight: 800;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e31e24;
}

.article-card__date {
  font-size: 14px;
  line-height: 16px;
  color: #9ca3af;
  flex-shrink: 0;
}

.article-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  color: #111827;
  margin: 0 0 16px;
}

.article-card__title a {
  color: inherit;
  transition: color 0.2s ease;
}

.article-card__title a:hover {
  color: #e31e24;
}

.article-card__excerpt {
  font-size: 14px;
  line-height: 22.75px;
  color: #545962;
  flex: 1;
  margin: 0 0 24px;
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #111827;
  margin-top: auto;
  transition: color 0.2s ease;
}

.article-card__link img {
  width: 9.333px;
  height: 9.333px;
}

.article-card__link:hover {
  color: #e31e24;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  gap: 0;
}

.pagination__btn {
  width: 40px;
  height: 40px;
  border: 1px solid #f3f4f6;
  border-radius: 2px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: #545962;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination__btn:first-child {
  margin-left: 0;
}

.pagination__btn img {
  width: 5.55px;
  height: 9px;
}

.pagination__btn--prev img {
  transform: rotate(180deg);
}

.pagination__btn.is-active {
  background: #e31e24;
  border-color: #e31e24;
  color: #fff;
}

.pagination__btn:hover:not(.is-active):not(:disabled) {
  border-color: #e31e24;
  color: #e31e24;
}

.pagination__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination__ellipsis {
  padding: 0 8px 0 16px;
  font-size: 16px;
  color: #545962;
}

/* ---------- Download Center ---------- */
.download-center {
  background: #f8f9fa;
  border-top: 1px solid #f3f4f6;
  padding: 80px 40px;
}

.download-center__inner {
  max-width: var(--container-nav);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.download-center__intro {
  flex-shrink: 0;
  width: 452px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.download-center__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: #111827;
  margin: 0;
}

.download-center__bar {
  width: 48px;
  height: 4px;
  background: #e31e24;
  flex-shrink: 0;
}

.download-center__desc {
  font-size: 18px;
  line-height: 29.25px;
  color: #545962;
  margin: 0;
  padding: 16px 0 8px;
}

.download-center__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 13px 33px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #545962;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.download-center__btn img {
  width: 12px;
  height: 12px;
}

.download-center__btn:hover {
  border-color: #e31e24;
  color: #e31e24;
}

.download-center__items {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  min-width: 0;
}

.download-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  text-align: left;
  transition: opacity 0.2s ease;
}

.download-item:hover {
  opacity: 0.85;
}

.download-item__icon {
  flex-shrink: 0;
  width: 61px;
  height: 55px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.download-item__icon img {
  display: block;
  max-width: 61px;
  max-height: 55px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.download-item h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #111827;
  margin: 0 0 12px;
}

.download-item p {
  font-size: 12px;
  line-height: 19.5px;
  color: #545962;
  margin: 0 0 24px;
  flex: 1;
}

.download-item__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #111827;
}

.download-item__link img {
  width: 9.333px;
  height: 9.333px;
}

.download-item:hover .download-item__link {
  color: #e31e24;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .resources-articles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-center__inner {
    flex-direction: column;
    gap: 48px;
  }

  .download-center__intro {
    width: 100%;
  }

  .download-center__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 992px) {
  .resources-hero {
    height: auto;
    min-height: 320px;
    padding: 64px 0;
  }

  .resources-hero__content h1 {
    font-size: 36px;
    line-height: 48px;
  }

  .resources-hero__content p {
    font-size: 16px;
    line-height: 26px;
  }

  .resources-filters__inner,
  .resources-articles {
    padding-left: 24px;
    padding-right: 24px;
  }

  .resources-main .breadcrumb {
    padding-left: 24px;
    padding-right: 24px;
  }

  .download-center {
    padding: 64px 24px;
  }

  .resources-filters__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .resources-filters__pills {
    gap: 8px;
  }

  .resources-search {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .resources-hero__content {
    padding: 0 16px;
  }

  .resources-hero__content h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .resources-main .breadcrumb,
  .resources-filters__inner,
  .resources-articles {
    padding-left: 16px;
    padding-right: 16px;
  }

  .resources-articles__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-card__img-link {
    height: 220px;
  }

  .article-card__body {
    padding: 24px;
  }

  .download-center {
    padding: 56px 16px;
  }

  .download-center__title {
    font-size: 28px;
    line-height: 34px;
  }

  .download-center__items {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 48px;
  }

  .pagination__btn {
    margin-left: 0;
  }
}
