/* Shared hero banner for the individual tools in resources/tools. */
section.resource-tool-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  min-height: 320px;
  margin: 0 calc(50% - 50vw) 2rem;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.resource-tool-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 38, 95, 0.28),
    rgba(73, 31, 112, 0.18)
  );
  content: "";
}

.resource-tool-hero-content {
  width: min(100%, 900px);
  margin: 0 auto;
}

.resource-tool-hero h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.resource-tool-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.resource-tool-hero .resource-tool-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-tool-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.resource-tool-breadcrumb a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.flashcard-page-title {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

@media (max-width: 600px) {
  .resource-tool-hero {
    min-height: 260px;
    margin-bottom: 1.5rem;
  }
}
