/* ============================================================
   Resources Page — Supplementary Styles
   ============================================================ */

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5rem 0;
}
.filter-tab {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover {
  background: var(--green-50);
  color: var(--green-700);
  border-color: var(--green-200);
}
.filter-tab.active {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* Free guide card spans full width on its row */
.product-card--free {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  grid-template-rows: auto auto;
}
.product-card--free .product-card__img-wrap {
  grid-row: 1 / 3;
  height: auto;
  min-height: 260px;
}
.product-card--free .product-card__body {
  grid-column: 2;
  grid-row: 1;
}
.product-card--free .product-card__footer {
  grid-column: 3;
  grid-row: 1 / 3;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: none;
  border-left: 1px solid var(--gray-100);
  min-width: 200px;
  padding: 2rem 1.5rem;
  gap: 1rem;
}
.product-card--free .product-card__footer .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .product-card--free {
    grid-column: 1;
    display: flex;
    flex-direction: column;
  }
  .product-card--free .product-card__img-wrap { height: 200px; }
  .product-card--free .product-card__footer {
    border-left: none;
    border-top: 1px solid var(--gray-100);
    flex-direction: row;
    flex-wrap: wrap;
    min-width: unset;
  }
}
