/* Shared spacing and content styles for fixed and CMS information pages. */
.be-page-hero {
  position: relative;
  isolation: isolate;
  min-height: 14rem;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
}

.be-page-hero > [aria-hidden="true"] {
  z-index: -1;
  pointer-events: none;
}

.be-page-hero__content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2.5rem), 80rem);
  margin-inline: auto;
}

.be-page-hero__title {
  margin: 0.75rem 0 0;
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}

.be-page-hero__description {
  max-width: 48rem;
  margin-top: 1rem;
  color: rgb(255 255 255 / 0.82);
  line-height: 1.65;
}

.be-page-hero__breadcrumb {
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 0.7);
}

.be-page-hero__breadcrumb a,
.be-page-hero__breadcrumb span {
  color: inherit;
}

.be-static-page {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background: #f8fafc;
}

.be-courses-page {
  overflow-x: clip;
}

.be-courses-page > section {
  width: 100%;
  max-width: 100%;
}

.be-static-page > section:first-child {
  scroll-margin-top: 5rem;
}

.be-static-page > section:not(:first-child) {
  padding-top: clamp(2.75rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.be-static-page .container,
.be-static-page > section:not(:first-child) > .max-w-7xl,
.be-static-page > section:not(:first-child) > .mx-auto {
  width: min(calc(100% - 2.5rem), 80rem);
}

.be-static-page .rounded-3xl,
.be-static-page .rounded-\[2\.5rem\] {
  border-radius: 1.5rem;
}

.be-static-page table {
  max-width: 100%;
}

.be-static-page table th,
.be-static-page table td {
  overflow-wrap: anywhere;
}

.be-static-page .grid {
  min-width: 0;
}

.be-static-page .grid > * {
  min-width: 0;
}

.be-static-page .prose,
.be-fixed-content .prose {
  max-width: none;
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
}

.be-static-page .prose :where(h2, h3, h4),
.be-fixed-content .prose :where(h2, h3, h4) {
  color: var(--primary);
  line-height: 1.3;
}

.be-fixed-content {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
}

.be-static-container {
  width: min(calc(100% - 2.5rem), 80rem);
  margin-inline: auto;
}

.page-layout-container {
  width: min(calc(100% - 2.5rem), 75rem) !important;
  margin: clamp(1.5rem, 4vw, 3rem) auto !important;
  padding: 0 !important;
}

.page-article-card {
  padding: clamp(1.25rem, 4vw, 2.75rem) !important;
  border-radius: 1.5rem !important;
}

.page-content-body {
  font-size: clamp(1rem, 1.5vw, 1.075rem) !important;
  line-height: 1.85 !important;
  overflow-wrap: anywhere;
}

.page-content-body img,
.page-content-body iframe,
.page-content-body video {
  max-width: 100%;
}

.page-content-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.contact-form-box {
  padding: clamp(1.25rem, 3vw, 2rem) !important;
}

.contact-form-box form > div:first-child {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.contact-form-box .form-control {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .be-page-hero {
    min-height: 12rem;
    padding: 4.5rem 0 2.75rem;
  }

  .be-static-page .container,
  .be-static-page > section:not(:first-child) > .max-w-7xl,
  .be-static-page > section:not(:first-child) > .mx-auto,
  .be-static-container,
  .page-layout-container {
    width: min(calc(100% - 2rem), 80rem) !important;
  }

  .be-static-page table th,
  .be-static-page table td {
    padding: 1rem !important;
  }

  .contact-form-box form > div:first-child {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .be-static-page *,
  .page-layout-container * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
