.resources-page {
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.resources-page .eb-navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: none;
}

.resources-page .eb-nav-inner {
  max-width: var(--container-max);
  padding: 12px 20px;
}

.resources-page .eb-link {
  color: var(--text);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 10px 6px;
}

.resources-page .eb-link:hover,
.resources-page .eb-link.active,
.resources-page .eb-link.is-active {
  color: var(--blue);
  background: transparent;
  border-bottom-color: var(--blue);
}

.resources-page .eb-link-donate,
.resources-page .eb-link-donate.active,
.resources-page .eb-link-donate:hover {
  border-radius: 999px;
  border-bottom-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: 1px solid rgba(180, 83, 9, 0.35);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.26);
}

.resources-page .eb-link-donate::after {
  animation: donatePulse 2.2s ease-in-out infinite;
}

.resources-page .eb-btn {
  border-radius: 10px;
  height: 40px;
}

.resources-page .eb-btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: none;
}

.resources-page .eb-btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.resources-page .eb-btn-ghost {
  background: #fff;
  border: 1px solid var(--blue);
  color: var(--blue);
}

.resources-page .eb-btn-ghost:hover,
.resources-page .eb-btn-ghost.active {
  background: #eff6ff;
}

.hero.resources-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 64px;
  background:
    radial-gradient(1200px 480px at 20% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(900px 420px at 85% 20%, rgba(245, 158, 11, 0.06), transparent 65%),
    linear-gradient(145deg, var(--navy) 0%, #0a1730 55%, var(--deep-navy) 100%);
}

.hero.resources-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.06) 0, transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.05) 0, transparent 18%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 5vw, 3.7rem);
  line-height: 1.1;
  font-weight: 800;
}

.hero-subtitle {
  margin: 14px auto 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  padding: 11px 18px;
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.btn-outline,
.btn-secondary {
  background: #ffffff;
  color: var(--navy);
  border-color: var(--navy);
  padding: 11px 18px;
}

.btn-outline:hover,
.btn-secondary:hover {
  background: #edf4ff;
}

.btn-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 18px;
}

.btn-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-lg {
  padding: 12px 22px;
}

.hero-trust-bar {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.hero-trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust-bar i {
  color: var(--gold);
}

.icon-badge svg,
.feature-icon svg,
.support-icon svg,
.hero-trust-bar svg,
.btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 auto;
}

.resources-main {
  padding-bottom: 64px;
}

.section-header {
  text-align: center;
  margin: 0 auto 32px;
  max-width: 760px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
}

.section-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-lift);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef3ff;
  border: 1px solid #dbe7ff;
  color: var(--blue);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.feature-card:hover .feature-icon,
.feature-card:focus-within .feature-icon {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.38);
  color: var(--gold);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-card .btn {
  margin-top: 2px;
  width: fit-content;
}

.micro-metric {
  margin-top: auto;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.resources-explore {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.explore-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
}

.explore-list {
  display: grid;
  gap: 12px;
}

.explore-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 16px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.explore-item:hover,
.explore-item.is-active {
  border-color: var(--blue);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.explore-item i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: var(--blue);
}

.explore-item h3 {
  margin: 0;
  font-size: 1.02rem;
}

.explore-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.explore-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  height: 100%;
}

.preview-toggle {
  display: none;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.preview-panel-content {
  display: grid;
  gap: 12px;
}

.preview-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: var(--blue);
  font-size: 1.1rem;
}

#previewTitle {
  margin: 0;
  font-size: 1.3rem;
}

#previewDescription {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.aps-spotlight {
  background: var(--bg);
}

.spotlight-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.spotlight-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(30, 78, 216, 0.45), rgba(245, 158, 11, 0.3), rgba(30, 78, 216, 0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.spotlight-content {
  position: relative;
  z-index: 1;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.spotlight-content h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.7vw, 2.3rem);
}

.spotlight-content p {
  color: var(--muted);
  margin-top: 10px;
}

.spotlight-benefits {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.spotlight-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.spotlight-benefits i {
  color: var(--blue);
}

.spotlight-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.spotlight-card-inner {
  text-align: center;
  padding: 18px;
}

.spotlight-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: #eef4ff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.spotlight-card h3 {
  margin: 10px 0 6px;
  font-size: 1.3rem;
}

.spotlight-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.resources-prospectuses {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.prospectus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.prospectus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.prospectus-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue2);
}

.prospectus-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.prospectus-card p {
  margin: 0;
  color: var(--muted);
}

.prospectus-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.additional-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.support-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.support-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue2);
}

.support-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef3ff;
  border: 1px solid #dbe7ff;
  color: var(--blue);
  margin-bottom: 10px;
}

.support-card:hover .support-icon {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.34);
  color: var(--gold);
}

.support-card h4 {
  margin: 0 0 8px;
}

.support-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.btn-link {
  color: var(--blue);
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: color 0.2s ease, background-size 0.2s ease;
}

.btn-link:hover {
  color: var(--blue-hover);
  background-size: 100% 2px;
}

.resources-cta {
  background: #fff;
}

.cta-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 40px 20px;
  text-align: center;
}

.cta-content h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

.cta-content p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reveal-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prospectus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .additional-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spotlight-wrap {
    grid-template-columns: 1fr;
  }

  .explore-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero.resources-hero {
    padding: 84px 0 52px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .featured-grid,
  .prospectus-grid,
  .additional-grid {
    grid-template-columns: 1fr;
  }

  .preview-toggle {
    display: inline-flex;
    margin-bottom: 12px;
  }

  .preview-panel-content {
    display: none;
  }

  .explore-preview.is-open .preview-panel-content {
    display: grid;
  }

  .explore-preview.is-open .preview-toggle i {
    transform: rotate(180deg);
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }
}
