/* "Tài nguyên" page — mirrors the original resources page structure. */

/* Hero */
.pub-resources-hero {
  padding: 128px 0 64px;
  background: linear-gradient(180deg, var(--pub-navy-900), var(--pub-navy-800));
  text-align: center;
}

.pub-resources-hero__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--pub-blue) 30%, transparent);
  border-radius: var(--pub-radius-pill);
  background: color-mix(in srgb, var(--pub-blue) 10%, transparent);
  color: var(--pub-blue);
  font-size: 0.875rem;
  font-weight: 500;
}

.pub-resources-hero__title {
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.pub-resources-hero__lead {
  max-width: 672px;
  margin: 0 auto;
  color: var(--pub-text-soft);
  font-size: 1.125rem;
}

/* Filter tabs */
.pub-resources-filter {
  padding: 32px 0;
  border-bottom: 1px solid var(--pub-navy-700);
  background: var(--pub-navy-900);
}

.pub-resources-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-resources-filter__btn {
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--pub-navy-700);
  color: var(--pub-text-soft);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pub-resources-filter__btn:hover {
  background: var(--pub-navy-600);
}

.pub-resources-filter__btn.is-active {
  background: var(--pub-blue);
  color: var(--pub-white);
}

/* Resource cards */
.pub-resources-list {
  padding: 80px 0;
  background: var(--pub-navy-900);
}

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

.pub-resource {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pub-navy-600);
  border-radius: 16px;
  background: var(--pub-navy-800);
  transition: border-color 0.15s ease;
}

.pub-resource:hover {
  border-color: color-mix(in srgb, var(--tone) 30%, transparent);
}

.pub-resource__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 192px;
  background: var(--pub-navy-700);
}

.pub-resource__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 20%, transparent);
  color: var(--tone-text, var(--tone));
}

.pub-resource__icon svg {
  width: 32px;
  height: 32px;
}

.pub-resource__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.pub-resource__type {
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: var(--pub-radius-pill);
  background: color-mix(in srgb, var(--tone) 10%, transparent);
  color: var(--tone-text, var(--tone));
  font-size: 0.75rem;
  font-weight: 500;
}

.pub-resource__title {
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.pub-resource__desc {
  flex: 1;
  margin-bottom: 16px;
  color: var(--pub-text-muted);
  font-size: 0.875rem;
}

.pub-resource__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  color: var(--tone-text, var(--tone));
  font-size: 0.875rem;
  font-weight: 500;
}

.pub-resource__link:hover {
  text-decoration: underline;
}

.pub-resource__link svg {
  width: 16px;
  height: 16px;
}

/* Call to action */
.pub-resources-cta {
  padding: 80px 0;
  background: var(--pub-navy-800);
}

.pub-resources-cta__inner {
  max-width: 896px;
  text-align: center;
}

.pub-resources-cta__title {
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 700;
}

.pub-resources-cta__text {
  margin-bottom: 32px;
  color: var(--pub-text-muted);
}

.pub-resources-cta__button {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 12px;
  background: var(--pub-gradient-button);
  color: var(--pub-white);
  font-weight: 600;
  transition: box-shadow var(--pub-transition);
}

.pub-resources-cta__button:hover {
  box-shadow: var(--pub-shadow-glow);
}

/* Responsive (lg = 1024px, md = 768px, sm = 640px as on the original) */
@media (max-width: 1023px) {
  .pub-resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pub-resources-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 639px) {
  .pub-resources-hero__title {
    font-size: 2.25rem;
  }
}
