/* ============================================================
   Resource Hub Page Styles
   ============================================================ */

/* Hero Section */
.rh-hero {
  padding: 80px 0;
  background-color: #fdfdfd;
}

.rh-hero .welcome-label {
  color: #d97d54;
  font-size: 20px;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.rh-hero h1 {
  font-size: 52px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.rh-hero .hero-desc {
  font-size: 17px;
  color: #6a7a6a;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 36px;
}

.rh-btn-primary {
  background-color: #f3a316;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 14px 38px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.rh-btn-primary:hover { background-color: #d98e0e; color: #fff; text-decoration: none; }

.rh-btn-outline {
  background-color: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 14px 38px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.rh-btn-outline:hover { background-color: #f8f9f8; color: #0f172a; text-decoration: none; }

.rh-hero-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 420px;
}
.rh-hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: rgba(243, 163, 22, 0.18);
  filter: blur(18px);
  border-radius: 20px;
  z-index: 0;
}
.rh-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.22);
}

/* ───────────────────────────────── Crisis Banner */
.rh-crisis {
  background: #fff;
  border-left: 4px solid #f3a316;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.rh-crisis-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.rh-crisis-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.rh-crisis-desc {
  font-size: 15px;
  color: #6a7a6a;
  margin: 0;
}
.rh-btn-crisis {
  background: rgba(243,163,22,0.1);
  border: 1px solid rgba(243,163,22,0.25);
  border-radius: 8px;
  padding: 12px 22px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s;
}
.rh-btn-crisis:hover { background: rgba(243,163,22,0.2); color: #0f172a; text-decoration: none; }

/* ───────────────────────────────── Quick Relief */
.rh-section {
  padding: 64px 0;
}
.rh-section-bg {
  background-color: #f8f9f8;
}
.rh-label {
  font-size: 15px;
  color: #222;
  font-weight: 500;
  margin-bottom: 4px;
}
.rh-label-desc {
  font-size: 14px;
  color: #6a7a6a;
  margin-bottom: 48px;
}

.rh-technique-card {
  background: #fff;
  border: 1px solid #f0f2f0;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 52px 40px;
  text-align: center;
  height: 100%;
  min-height: 320px;
}
.rh-technique-icon {
  width: 96px;
  height: 96px;
  background: rgba(43,182,115,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}
.rh-technique-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.rh-technique-card h5 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}
.rh-technique-card p {
  font-size: 15px;
  color: #6a7a6a;
  line-height: 1.75;
  margin: 0;
}

/* ───────────────────────────────── Self-Assessment */
.rh-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin-bottom: 6px;
}
.rh-section-note {
  font-size: 13px;
  color: #6a7a6a;
  text-align: center;
  font-style: italic;
  margin-bottom: 48px;
}

.rh-quiz-card {
  background: #fff;
  border: 1px solid #f0f2f0;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 220px;
}
.rh-quiz-card h6 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.rh-quiz-card p {
  font-size: 14px;
  color: #849984;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}
.rh-btn-assess {
  background: #f8f9f8;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: #0f172a;
  text-align: center;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}
.rh-btn-assess:hover { background: #e8eae8; color: #0f172a; text-decoration: none; }

.rh-cta-dashed {
  background: #fff;
  border: 2px dashed #c2ccc2;
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
  margin-top: 32px;
}
.rh-cta-dashed p {
  font-size: 17px;
  color: #0f172a;
  margin-bottom: 18px;
}

/* ───────────────────────────────── Articles / Tabs */
.rh-tabs {
  background: #f0f2f0;
  border-radius: 12px;
  padding: 4px;
  display: inline-flex;
  gap: 0;
}
.rh-tab-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #849984;
  cursor: pointer;
  transition: all 0.2s;
}
.rh-tab-btn.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.rh-media-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}
.rh-media-thumb {
  position: relative;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.rh-media-thumb img.thumb-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rh-media-thumb .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}
.rh-media-thumb .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rh-media-thumb .play-icon img {
  width: 40px;
  height: 40px;
}
.rh-media-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}
.rh-media-card h5 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 8px;
}
.rh-media-card p {
  font-size: 14px;
  color: #6a7a6a;
  line-height: 1.7;
  margin: 0;
}

/* ───────────────────────────────── Dive Deeper */
.rh-program-card {
  border-radius: 24px;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}
.rh-program-card.dark { background: #f8f9f8; border: 1px solid #e1e5e1; }
.rh-program-card.amber { background: rgba(243,163,22,0.05); border: 1px solid rgba(243,163,22,0.22); }

.rh-program-card .prog-icon {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rh-program-card .prog-icon img { width: 28px; height: 28px; object-fit: contain; }

.rh-program-card h4 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.rh-program-card p {
  font-size: 15px;
  color: #6a7a6a;
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}
.rh-btn-dark {
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: block;
  width: 100%;
  transition: background 0.2s;
}
.rh-btn-dark:hover { background: #1e293b; color: #fff; text-decoration: none; }

.rh-btn-amber {
  background: #f3a316;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: block;
  width: 100%;
  transition: background 0.2s;
}
.rh-btn-amber:hover { background: #d98e0e; color: #fff; text-decoration: none; }

/* ───────────────────────────────── Enhanced Footer */
.rh-footer {
  background: #fff;
  border-top: 1px solid #f0f2f0;
  padding: 64px 0 32px;
}
.rh-footer-brand-desc {
  font-size: 15px;
  color: #6a7a6a;
  line-height: 1.7;
  margin: 12px 0 24px;
}
.rh-footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
}
.rh-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rh-footer-links li { margin-bottom: 12px; }
.rh-footer-links a {
  font-size: 13px;
  color: #6a7a6a;
  text-decoration: none;
  transition: color 0.2s;
}
.rh-footer-links a:hover { color: #0f172a; }

.rh-newsletter-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 400px;
}
.rh-newsletter-wrap input {
  flex: 1;
  background: #f8f9f8;
  border: 1px solid #e1e5e1;
  border-radius: 9999px;
  padding: 12px 22px;
  font-size: 13px;
  outline: none;
}
.rh-newsletter-wrap button {
  background: #f3a316;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.rh-newsletter-wrap button:hover { background: #d98e0e; }

.rh-footer-divider {
  border-top: 1px solid #f0f2f0;
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.rh-footer-divider .copy {
  font-size: 12px;
  color: #a3b3a3;
}
.rh-footer-social { display: flex; gap: 16px; align-items: center; }
.rh-footer-social a img { width: 22px; height: 22px; opacity: 0.7; transition: opacity 0.2s; }
.rh-footer-social a:hover img { opacity: 1; }

/* ───────────────────────────────── Responsive */
@media (max-width: 991px) {
  .rh-hero h1 { font-size: 36px; }
  .rh-hero-img-wrap { height: 280px; margin-top: 40px; }
  .rh-crisis { flex-direction: column; }
  .rh-program-card { padding: 28px; }
}

@media (max-width: 767px) {
  .rh-hero { padding: 48px 0; }
  .rh-hero h1 { font-size: 30px; }
  .rh-section { padding: 48px 0; }
}

/* ═══════════════════════════════════════════════════════════════
   SELF-ASSESSMENT QUIZ MODAL
═══════════════════════════════════════════════════════════════ */

/* Overlay / Backdrop */
.rh-quiz-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overflow-y: auto;
}
.rh-quiz-overlay.active { display: flex; }

/* Modal Container */
.rh-quiz-modal {
  background: #fdfdfd;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 768px;
  position: relative;
  margin: auto;
}

/* Close Button */
.rh-quiz-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  color: #6a7a6a;
  padding: 0;
  z-index: 1;
}
.rh-quiz-close:hover { background: #f0f2f0; }
.rh-quiz-close svg { width: 18px; height: 18px; }

/* Modal Header */
.rh-quiz-modal-header {
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.rh-quiz-modal-title {
  font-size: 36px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.9px;
  line-height: 1.1;
  margin: 0 0 8px;
}
.rh-quiz-modal-subtitle {
  font-size: 18px;
  color: #6a7a6a;
  margin: 0;
}

/* Progress Card */
.rh-quiz-progress-card {
  background: #fff;
  border: 1px solid #f0f2f0;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.rh-quiz-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.rh-quiz-progress-step {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.rh-quiz-progress-pct {
  font-size: 14px;
  font-weight: 700;
  color: #f3a316;
}
.rh-quiz-progress-bar-bg {
  background: #f0f2f0;
  height: 10px;
  border-radius: 9999px;
  overflow: hidden;
}
.rh-quiz-progress-bar-fill {
  background: #f3a316;
  height: 100%;
  border-radius: 9999px;
  width: 0%;
  transition: width 0.4s ease;
}

/* Modal Body */
.rh-quiz-modal-body {
  padding: 0 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Step visibility */
.rh-quiz-step { display: none; }
.rh-quiz-step.active { display: contents; }

/* Email Capture Card */
.rh-quiz-email-card {
  background: #fff;
  border: 1px solid #f0f2f0;
  border-radius: 12px;
  padding: 33px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.rh-quiz-email-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}
.rh-quiz-email-card p {
  font-size: 16px;
  color: #475569;
  margin: 0 0 24px;
  line-height: 1.5;
}
.rh-quiz-email-input {
  width: 100%;
  background: #fdfdfd;
  border: 1px solid #e1e5e1;
  border-radius: 8px;
  padding: 16px 17px;
  font-size: 16px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.rh-quiz-email-input:focus { border-color: #f3a316; }

/* Question Card */
.rh-quiz-question-card {
  background: #fff;
  border: 1px solid #f0f2f0;
  border-left: 4px solid #f3a316;
  border-radius: 12px;
  padding: 33px 33px 33px 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.rh-quiz-question-text {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin: 0;
}

/* Options */
.rh-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rh-quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fdfdfd;
  border: 1px solid #f0f2f0;
  border-radius: 8px;
  padding: 17px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.rh-quiz-option:hover { border-color: #d1d5d1; }
.rh-quiz-option.selected {
  background: rgba(243, 163, 22, 0.05);
  border-color: #f3a316;
}
.rh-quiz-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid #c2ccc2;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.rh-quiz-option.selected input[type="radio"] {
  background: #f3a316;
  border-color: transparent;
}
.rh-quiz-option.selected input[type="radio"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
}
.rh-quiz-option-label {
  font-size: 16px;
  color: #334155;
}
.rh-quiz-option.selected .rh-quiz-option-label {
  font-weight: 700;
  color: #0f172a;
}

/* Navigation Buttons */
.rh-quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
}
.rh-quiz-btn-prev {
  border: 1px solid #c2ccc2;
  background: transparent;
  border-radius: 8px;
  padding: 13px 25px;
  font-size: 16px;
  font-weight: 700;
  color: #6a7a6a;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
}
.rh-quiz-btn-prev:hover { border-color: #94a3b4; }
.rh-quiz-btn-next {
  background: #f3a316;
  border: none;
  border-radius: 8px;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 15px -3px rgba(243, 163, 22, 0.2), 0 4px 6px -4px rgba(243, 163, 22, 0.2);
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s;
}
.rh-quiz-btn-next:hover { background: #e09510; color: #fff; text-decoration: none; }

/* Completion Card */
.rh-quiz-completion {
  background: rgba(243, 163, 22, 0.1);
  border: 1px solid rgba(243, 163, 22, 0.2);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.rh-quiz-completion-icon {
  color: #f3a316;
  flex-shrink: 0;
  margin-top: 2px;
}
.rh-quiz-completion h5 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
.rh-quiz-completion p {
  font-size: 14px;
  color: #334155;
  margin: 0;
  line-height: 1.5;
}

/* Privacy Note */
.rh-quiz-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #849984;
}

/* Responsive Modal */
@media (max-width: 767px) {
  .rh-quiz-modal-header { padding: 32px 24px 24px; }
  .rh-quiz-modal-body { padding: 0 24px 32px; gap: 20px; }
  .rh-quiz-modal-title { font-size: 26px; }
  .rh-quiz-modal-subtitle { font-size: 15px; }
  .rh-quiz-question-card { padding: 20px 20px 20px 22px; }
  .rh-quiz-question-text { font-size: 18px; }
  .rh-quiz-email-card { padding: 20px; }
  .rh-quiz-btn-next { padding: 12px 24px; }
}
