/* ===========================
   RESOURCE-CENTER.CSS
   Layout for industry resource center hub pages.
   Loads after page-common.css.
   =========================== */

/* ───────────────────────────
   HERO OVERRIDE
   ─────────────────────────── */
.hero-inner { max-width: 820px; }

h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.0;
  margin: 0 0 20px;
  letter-spacing: -2px;
}

/* ───────────────────────────
   HUB LAYOUT
   ─────────────────────────── */
.hub-layout {
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.hub-main h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}

/* ───────────────────────────
   ARTICLE CARDS (hub listing)
   ─────────────────────────── */
.article-list { display: flex; flex-direction: column; gap: 28px; }

.article-card {
  background: var(--white);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(7,27,51,.07);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  text-decoration: none;
  transition: box-shadow .2s, border-color .2s;
}

.article-card:hover { box-shadow: 0 16px 44px rgba(7,27,51,.13); border-color: var(--orange); }

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 900;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 12px;
}

.article-card h3 { font-size: 21px; color: var(--navy); margin: 0 0 10px; line-height: 1.25; }
.article-card p  { font-size: 15px; color: var(--gray); margin: 0; line-height: 1.65; }

.article-arrow {
  width: 44px;
  height: 44px;
  background: var(--soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--navy);
  flex-shrink: 0;
  transition: background .2s;
}

.article-card:hover .article-arrow { background: var(--orange); color: var(--white); }

/* ───────────────────────────
   HUB SIDEBAR
   ─────────────────────────── */
.hub-sidebar { position: sticky; top: 100px; }

/* ───────────────────────────
   TOPIC LIST
   ─────────────────────────── */
.topic-list { list-style: none; padding: 0; margin: 0; }

.topic-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.topic-list li:last-child a { border-bottom: none; }
.topic-list li a:hover { color: var(--orange); }
.topic-list li a::before { content: "›"; color: var(--orange); font-weight: 900; font-size: 16px; }

/* ───────────────────────────
   HIPAA / BADGE (healthcare hub)
   ─────────────────────────── */
.hipaa-badge-sidebar {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--white);
}

.hipaa-badge-sidebar .badge-icon { font-size: 32px; margin-bottom: 8px; }
.hipaa-badge-sidebar strong { display: block; font-size: 16px; font-weight: 900; color: var(--white); line-height: 1.2; margin-bottom: 4px; }
.hipaa-badge-sidebar span { font-size: 13px; color: rgba(255,255,255,.65); }

/* ───────────────────────────
   RESPONSIVE
   ─────────────────────────── */
@media (max-width: 900px) {
  .hub-layout { grid-template-columns: 1fr; }
  .hub-sidebar { position: static; }
}

@media (max-width: 560px) {
  .article-card { grid-template-columns: 1fr; }
}

/* ───────────────────────────
   LONG-FORM RESOURCE HUB
   Shared by all industry resource centers.
   ─────────────────────────── */
section { padding: 82px 0; }

.section-title {
  max-width: 870px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-title h2 {
  color: var(--navy);
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -1px;
  line-height: 1.05;
  margin: 0 0 18px;
}

.section-title p {
  color: var(--gray);
  font-size: 19px;
  margin: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 54px;
  align-items: center;
}

.hub-panel {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 25px 80px rgba(0,0,0,.3);
}

.hub-card-title {
  color: var(--white);
  font-size: 25px;
  font-weight: 900;
  margin-bottom: 22px;
}

.hub-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #e6f0fb;
  font-weight: 800;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}

.hub-item:last-child { border-bottom: 0; }
.hub-item span { color: var(--orange); }

.hub-item:hover,
.hub-item:focus-visible {
  color: var(--white);
  padding-left: 8px;
}

.hub-item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 4px;
}

.intro { background: var(--soft); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}

.intro h2 {
  color: var(--navy);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.05;
  margin: 0 0 24px;
}

.intro p {
  color: var(--gray);
  font-size: 18px;
}

.callout {
  background: var(--white);
  border-left: 6px solid var(--orange);
  padding: 34px;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(7,27,51,.08);
}

.callout h3 {
  color: var(--navy);
  font-size: 26px;
  margin: 0 0 14px;
}

.proof-line {
  display: block;
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .8px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.quick-nav {
  background: var(--white);
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(7,27,51,.08);
  margin-top: 34px;
}

.quick-nav h3 {
  color: var(--navy);
  margin: 0 0 18px;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quick-nav a {
  background: var(--soft);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 800;
  padding: 15px;
  text-decoration: none;
}

.topic-section { border-bottom: 1px solid #e7edf5; }

.topic-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 54px;
  align-items: start;
}

.topic-grid[id],
.assessment[id] {
  scroll-margin-top: 110px;
}

.topic-label {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.topic-copy h2 {
  color: var(--navy);
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.05;
  margin: 0 0 22px;
}

.topic-copy p {
  color: var(--gray);
  font-size: 18px;
  margin: 0 0 18px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-grid .article-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-grid .article-card p { margin: 0 0 18px; }
.article-grid .text-link { margin-top: auto; }

.text-link {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.coming-soon {
  color: var(--gray);
  cursor: default;
}

.assessment {
  background: var(--navy);
  color: var(--white);
}

.assessment .section-title h2,
.assessment .section-title p {
  color: var(--white);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.check-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: #e6f0fb;
  font-weight: 800;
  padding: 22px;
}

.check-item::before {
  color: var(--orange);
  content: "✓ ";
  font-weight: 900;
}

.assessment-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--white);
  border-left: 6px solid var(--orange);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
  margin: 34px auto 0;
  max-width: 940px;
  padding: 28px 32px;
}

.assessment-action h3 {
  color: var(--navy);
  font-size: 23px;
  margin: 0 0 8px;
}

.assessment-action p {
  color: var(--gray);
  margin: 0;
}

.assessment-action .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.related-services { background: var(--white); }

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.related-service-card {
  display: block;
  background: var(--soft);
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  border-radius: 12px;
  color: var(--navy);
  padding: 26px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.related-service-card:hover,
.related-service-card:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(7,27,51,.1);
  transform: translateY(-3px);
}

.related-service-card h3 {
  color: var(--navy);
  font-size: 21px;
  margin: 0 0 10px;
}

.related-service-card p {
  color: var(--gray);
  margin: 0 0 14px;
}

.related-service-card span {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.lead-magnets { background: var(--soft); }

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-card {
  background: var(--white);
  border-radius: 12px;
  border-top: 5px solid var(--orange);
  box-shadow: 0 12px 35px rgba(7,27,51,.08);
  padding: 30px;
}

.download-card h3 {
  color: var(--navy);
  font-size: 23px;
  margin: 0 0 14px;
}

.download-card p {
  color: var(--gray);
  margin: 0 0 22px;
}

@media (max-width: 900px) {
  .hero-grid,
  .intro-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .related-services-grid,
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .quick-nav-grid,
  .article-grid,
  .checklist,
  .related-services-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .assessment-action {
    align-items: flex-start;
    flex-direction: column;
  }
}
