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

.page-section {
  margin-left: -1rem;
  margin-right: -1rem;
  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 {
  margin-left: -1rem;
  margin-right: -1rem;
  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;
  }
}
