/* ==========================================================================
   Sections Page Template
   ========================================================================== */

/* Section Spacing */
.page-content {
  margin: 0;
}
.sections-page .page-section {
  padding: 50px 0;
}

.sections-page .page-section:first-child {
  padding-top: 0;
}

/* Alternating Section Backgrounds */
.sections-page .page-section:nth-of-type(even) {
  background-color: #e1f3f8;
}

/* ---------- Introduction ---------- */
.sections-page .intro-section .section-header {
  text-align: center;
  font-size: 2rem;
}

.sections-page .intro-section .section-header::before,
.sections-page .intro-section .section-header::after {
  display: none;
}

/* ---------- Section Header (star icon + underline) ---------- */
.sections-page .section-header {
  font-weight: 700;
}

.sections-page .section-header::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url(../../images/star.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.sections-page .section-header::after {
  content: "";
  display: block;
  width: 24px;
  padding-block-start: 4px;
  border-block-start: 4px solid #41b6e6;
  margin-top: 8px;
}

/* ---------- Section Body ---------- */
.sections-page .section-body {
  font-size: 18px;
  margin-top: 20px;
}

.sections-page .section-content ul,
.sections-page .section-content ol {
  margin-left: 0px;
  padding-left: 32px;
}

.sections-page .section-body.has-image {
  display: flex;
  align-items: center;
  gap: 30px;
}

.sections-page .section-body.has-image > * {
  flex: 1;
}

.sections-page .section-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1023px) {
  .sections-page .section-body.has-image {
    flex-direction: column;
  }
}

/* ---------- Accordion ---------- */
.sections-page .custom-accordion .accordion-toggle {
  display: none;
}

.sections-page .custom-accordion .accordion-item {
  border: none;
  background-color: transparent;
}

.sections-page .custom-accordion .accordion-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
  border-bottom: none;
  position: relative;
  padding-top: 0;
}

/* Blue chevron caret */
.sections-page .custom-accordion .accordion-title::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  width: 28px;
  height: 28px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2341B6E6" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translateY(-50%);
  transition: transform 0.3s ease-in-out;
  border: none;
}

.sections-page .custom-accordion .accordion-title .section-header {
  margin: 0;
}

.sections-page
  .custom-accordion
  .accordion-toggle:checked
  ~ .accordion-title::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Collapse the underline when closed */
.sections-page
  .custom-accordion
  .accordion-toggle:not(:checked)
  ~ .accordion-title
  .section-header::after {
  padding-block-end: 0;
}

.sections-page .custom-accordion .accordion-content {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin: 0;
}

.sections-page .custom-accordion .accordion-content .section-body {
  margin-top: 0;
}

.sections-page
  .custom-accordion
  .accordion-toggle:checked
  ~ .accordion-content {
  max-height: none;
  overflow: visible;
}

/* ---------- Yearly Calendar ---------- */
.sections-page .yearly-calendar .yearly-calendar-content {
  margin-bottom: 30px;
  justify-content: flex-start;
}

.sections-page .yearly-calendar .yearly-calendar-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.sections-page .yearly-calendar .yearly-calendar-header {
  margin: 0;
  font-size: 1.75rem;
}

.sections-page .yearly-calendar .yearly-calendar-link {
  font-size: 18px;
  color: #0072ce;
  text-decoration: underline;
}

.sections-page .yearly-calendar .yearly-calendar-link:hover,
.sections-page .yearly-calendar .yearly-calendar-link:focus {
  text-decoration: none;
}
