/* ============================================== */
/* Full-Width Page Section Bands                  */
/* Reusable colored section bands for any page    */
/* ============================================== */

.page-section {
  padding: 2.5rem 2.5rem 2rem;
}

.page-section-title {
  font-size: 2rem;
  color: #fff;
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 1200px;
}

.page-section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 1200px;
  margin: -0.5rem auto 1.5rem;
}

/* Nav bar at top of page */
.page-section-nav {
  padding: 1.25rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
  text-align: center;
}

.page-section-nav p {
  margin: 0;
}

/* Card grid inside sections — up to 4 columns */
.page-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

/* Individual cards */
.page-section-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 2px 3px 12px rgb(0 0 0 / 15%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 500px;
  min-height: 200px;
}

a.page-section-card:hover,
a .page-section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgb(0 0 0 / 20%);
}

.page-section-card h3 {
  font-size: 1.5rem;
  color: #1c375b;
  margin: 0 0 0.5rem;
}

.page-section-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin: 0 0 0.75rem;
  flex: 1;
}

.page-section-card ul {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  padding-left: 1.25rem;
  margin: 0 0 0.75rem;
  flex: 1;
}

.page-section-card .resource-card-badge {
  margin-top: auto;
}

/* Logo container inside cards */
.page-section-card-logo {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.page-section-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Back to top link */
.page-section-top {
  text-align: center;
  margin-top: 1.5rem;
}

.page-section-top p {
  margin: 0;
}

.page-section-top .fancy-link {
  color: rgba(255, 255, 255, 0.85);
}

.page-section-top .fancy-link:hover {
  color: #fff;
}

/* ── Section Color Themes ── */
/* Gradient progression from #cd4236 (red) → #1c375b (navy) */
/* Each section is a stop along the spectrum, with a subtle internal gradient + texture */

.page-section.section-blue {
  background:
    url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23fff' stroke-width='1' stroke-opacity='0.08'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #cd4236, #b8403a);
  background-size: 28px 50px, 100% 100%;
}

.page-section.section-white {
  background:
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='3' fill='%23fff' fill-opacity='0.08'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #b04040, #944a50);
  background-size: 40px 40px, 100% 100%;
}

.page-section.section-gold {
  background:
    url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 0L36 18L18 36L0 18Z' fill='%23fff' fill-opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #8a4a54, #6e4d5e);
  background-size: 36px 36px, 100% 100%;
}

.page-section.section-green {
  background:
    url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='15' cy='15' r='4' fill='none' stroke='%23fff' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #6e4d5e, #544f64);
  background-size: 30px 30px, 100% 100%;
}

.page-section.section-navy {
  background:
    url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 0L44 22L22 44L0 22Z' fill='none' stroke='%23fff' stroke-width='1' stroke-opacity='0.07'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #544f64, #3d4f66);
  background-size: 44px 44px, 100% 100%;
}

.page-section.section-rose {
  background:
    url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='2' fill='%23fff' fill-opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #3d4f66, #2c4762);
  background-size: 32px 32px, 100% 100%;
}

.page-section.section-purple {
  background:
    url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='2' height='2' x='11' y='11' fill='%23fff' fill-opacity='0.07'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #2c4762, #213f5e);
  background-size: 24px 24px, 100% 100%;
}

.page-section.section-grey {
  background:
    url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23fff' stroke-width='1' stroke-opacity='0.08'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #213f5e, #1c375b);
  background-size: 28px 50px, 100% 100%;
}

/* Compact card variant for simple link lists */
.page-section-card.card-compact {
  padding: 1rem 1.25rem;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.page-section-card.card-compact h3 {
  font-size: 1.25rem;
  margin: 0;
}

.page-section-card.card-compact p {
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

/* Year/date pill cards */
.page-section-card.card-pill {
  padding: 0.75rem 1rem;
  text-align: center;
  align-items: center;
  justify-content: center;
  background-color: #f2f2f2;
}

.page-section-card.card-pill p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #1c375b;
}

@media (max-width: 768px) {
  .page-section {
    padding: 2rem 1rem 1.5rem;
  }

  .page-section-nav {
    padding: 1rem;
  }

  .page-section-grid {
    grid-template-columns: 1fr;
  }

  .page-section-card {
    max-width: none;
  }
}

/* ============================================== */
/* Split Section — text + image layouts           */
/* Two variants:                                  */
/*   .split-section          = no gradient bleed  */
/*   .split-section.split-bleed = gradient bleed  */
/* Apply background-color inline                  */
/* ============================================== */

/* Base */
.split-section {
  padding: 0;
}

.split-section:has(.split-section-image) {
  overflow: hidden;
}

.split-section .split-section-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: none;
  margin: 0 auto;
  min-height: 550px;
}

/* Text side */
.split-section .split-section-inner > div:not(.split-section-image) {
  flex: 1 1 50%;
  max-width: 50%;
  padding: 6rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Image side */
.split-section .split-section-image {
  flex: 1 1 50%;
  max-width: 50%;
  overflow: hidden;
  position: relative;
}

.split-section .split-section-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Typography */
.split-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.split-section .flex-row h2 {
  margin-bottom: 0;
}

.split-section .flex-row i.i-lg,
.section-centered .flex-row i.i-lg {
  font-size: 2.5rem;
}

.split-section p,
.split-section li,
.split-section a:not(.redButton):not(.blueButton) {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ── Bleed variant — gradient fades over image ── */
.split-section.split-bleed {
  position: relative;
}

.split-section.split-bleed > .split-section-inner > div:not(.split-section-image) {
  position: relative;
  z-index: 2;
  flex: 1 1 55%;
}

.split-section.split-bleed .split-section-image {
  flex: 1 1 45%;
  max-width: 45%;
  z-index: 1;
}

.split-section.split-bleed .split-section-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to right, var(--bleed-bg, #1c375b) 0%, transparent 40%);
}

/* When image is on the left, fade from the right edge */
.split-section.split-bleed .split-section-image:first-child::after {
  background: linear-gradient(to left, var(--bleed-bg, #1c375b) 0%, transparent 40%);
}

/* ── Fade-in animation (desktop) ── */
.split-section .split-section-inner > div {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.split-section .split-section-inner > div:first-child {
  transform: translateX(-30px);
}

.split-section .split-section-inner > div:last-child {
  transform: translateX(30px);
  transition-delay: 0.35s;
}

.split-section .split-section-inner.visible > div {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .split-section .split-section-inner > div {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .split-section .split-section-inner {
    flex-direction: column;
    gap: 0;
    min-height: auto;
  }

  .split-section .split-section-inner > div:not(.split-section-image),
  .split-section.split-bleed > .split-section-inner > div:not(.split-section-image) {
    padding: 3rem 2rem;
    max-width: none;
    flex: 1 1 100%;
  }

  .split-section .split-section-image {
    display: none;
  }

  .split-section .split-section-image.show-mobile {
    display: block;
    height: 250px;
    overflow: hidden;
    max-width: none;
    flex: 1 1 100%;
  }

  .split-section .split-section-image.show-mobile img {
    position: relative;
    width: 100%;
    height: 250px;
    object-fit: cover;
  }

  .split-section .split-section-image.show-mobile::after {
    display: none;
  }

  .split-section .split-section-inner > div,
  .split-section .split-section-inner > div:first-child,
  .split-section .split-section-inner > div:last-child {
    opacity: 1;
    transform: none !important;
    transition: none;
  }

  .split-section h2 {
    font-size: 2rem;
  }

  .split-section .flex-row i.i-lg,
  .section-centered .flex-row i.i-lg {
    font-size: 2rem;
  }
}

/* ============================================== */
/* Centered Section (no image, card grids, etc.)  */
/* ============================================== */

.section-centered {
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem;
}

.section-centered h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

.section-centered .flex-row h2 {
  margin-bottom: 0;
}

.section-centered p,
.section-centered li,
.section-centered a:not(.redButton):not(.blueButton) {
  font-size: 1.1rem;
  line-height: 1.6;
}

.section-centered .section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .section-centered {
    min-height: auto;
    padding: 3rem 2rem;
  }

  .section-centered h2 {
    font-size: 2rem;
  }

  .section-centered .section-grid {
    grid-template-columns: 1fr;
  }
}
