/* ==========================================================
   RESOURCES PAGES
   ========================================================== */

/* ── Hub grid ───────────────────────────────────────────── */
.resources-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}
.resource-hub-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-8);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--navy);
  text-decoration: none;
  transition: border-top-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.resource-hub-card:hover {
  border-top-color: var(--red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.resource-hub-card__icon {
  width: 52px; height: 52px;
  color: var(--navy);
  margin-bottom: var(--sp-5);
  transition: color var(--dur) var(--ease);
}
.resource-hub-card:hover .resource-hub-card__icon { color: var(--red); }
.resource-hub-card__title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: var(--sp-3);
}
.resource-hub-card__desc {
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--sp-5);
}
.resource-hub-card__cta {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: auto;
  transition: gap var(--dur) var(--ease);
}
.resource-hub-card:hover .resource-hub-card__cta { gap: var(--sp-3); }

@media (max-width: 900px) {
  .resources-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .resources-hub-grid { grid-template-columns: 1fr; }
}

/* ── Resource article ──────────────────────────────────── */
.info-block {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red);
  padding: var(--sp-5) var(--sp-6);
  margin-block: var(--sp-6);
}
.info-block__head {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: var(--sp-2);
}
.info-block p { margin-bottom: 0; font-size: var(--text-sm); }

/* Hospital / clinic listing */
.clinic-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.clinic-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--white);
  border: 1px solid var(--gray-200);
  align-items: start;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.clinic-item:hover { border-color: var(--navy); box-shadow: var(--shadow-xs); }
.clinic-item__num {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--red);
  min-width: 36px;
  line-height: 1;
}
.clinic-item__name {
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--sp-1);
}
.clinic-item__detail {
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: 1.6;
}
.clinic-item__loc {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--sp-1);
}
.clinic-item__loc svg { width: 12px; height: 12px; color: var(--red); }

/* Doctor listing table */
.doctor-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
}
.doctor-table th {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
}
.doctor-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  vertical-align: top;
}
.doctor-table tr:last-child td { border-bottom: none; }
.doctor-table tr:hover td { background: var(--gray-50); }
.doctor-table td:first-child { font-weight: 600; color: var(--navy); }

/* Support group card */
.support-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: var(--sp-6) var(--sp-8);
  display: flex; gap: var(--sp-5); align-items: flex-start;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.support-card:hover { box-shadow: var(--shadow-md); border-color: var(--navy); }
.support-card__icon {
  width: 48px; height: 48px;
  background: var(--red-subtle);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.support-card__icon svg { width: 22px; height: 22px; }
.support-card__title {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}
.support-card__body { font-size: var(--text-sm); color: var(--gray-700); line-height: 1.7; }

/* eBook card */
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.ebook-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0;
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ebook-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ebook-card__cover {
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
}
.ebook-card__cover svg { width: 40px; height: 40px; color: rgba(255,255,255,0.3); }
.ebook-card__cover-num {
  font-family: var(--font-head);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--white);
  opacity: 0.15;
}
.ebook-card__body { padding: var(--sp-5); }
.ebook-card__title {
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}
.ebook-card__meta {
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-3);
}
.ebook-card__desc { font-size: var(--text-sm); color: var(--gray-700); line-height: 1.6; }

@media (max-width: 640px) {
  .ebook-grid { grid-template-columns: 1fr; }
}
