/* School Program 2027 page (single-program-school-2027.php) */

.school-2027 .left-block > div + div,
.school-2027 .left-block > div + h2 {
  margin-top: clamp(40px, 3.646vw, 70px);
}

.school-2027 .left-block p {
  font-size: var(--uc-font-size-18);
  line-height: 1.6;
}

.school-2027 .left-block h3 {
  font-size: var(--uc-font-size-22);
  font-weight: 700;
  margin: 24px 0 14px 0;
}

/* Announcement and Hero */
.school-2027 .s27-announcement {
  display: inline-block;
  background-color: var(--dark-color-1);
  color: var(--light-color-1);
  font-size: var(--uc-font-size-16);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 500px;
  margin: 0 0 20px 0;
}

.school-2027 .s27-announcement::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
  margin-right: 10px;
  vertical-align: 1px;
}

.school-2027 .s27-headline {
  font-size: var(--uc-font-size-57);
  line-height: 1.1;
  margin-bottom: 20px;
}

.school-2027 .s27-intro p {
  margin: 0 0 14px 0;
}

.school-2027 .s27-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.school-2027 .s27-btn-group a {
  text-decoration: none;
  display: inline-block;
}

.school-2027 .left-block .s27-btn-group a {
  margin: 0;
}

/* Program options */
.school-2027 .s27-options > * + * {
  margin-top: 15px;
}

.school-2027 .s27-stage {
  border-radius: 40px;
  padding: clamp(25px, 2.083vw, 40px);
}

.school-2027 .left-block .s27-option-title {
  font-size: var(--uc-font-size-32);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 10px 0;
}

.school-2027 .s27-stage p {
  margin: 0;
}

.school-2027 .s27-stage p + p {
  margin-top: 10px;
}

/* Option badge sitting on the card's top border: "Option 1 - 10 Weeks", "Option 2 - 10 Weeks", "Best Value" */
.school-2027 .s27-options .s27-stage {
  position: relative;
}

.school-2027 .s27-options .s27-stage + .s27-stage {
  margin-top: 35px;
}

.school-2027 .s27-options > .s27-stage:first-child {
  margin-top: 18px;
}

.school-2027 .left-block .s27-stage-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--dark-color-1);
  color: var(--light-color-1);
  font-size: var(--uc-font-size-16);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 500px;
  margin: 0;
}

.school-2027 .left-block .s27-stage-tag::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
  margin-right: 8px;
  vertical-align: 1px;
}

.school-2027 .left-block .s27-stage-tag-best {
  overflow: hidden;
}

/* "Best Value" shine: a light band sweeps left to right, then pauses */
.school-2027 .left-block .s27-stage-tag-best::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: translateX(-120%);
  animation: s27-shine 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes s27-shine {
  0% {
    transform: translateX(-120%);
  }

  40%,
  100% {
    transform: translateX(220%);
  }
}

.school-2027 .s27-options .s27-option-title {
  padding-top: 8px;
}

.school-2027 .s27-stage .s27-callout {
  background-color: var(--light-color-1);
  margin-top: 15px;
}

.school-2027 .s27-stage-core {
  background-color: #FCEAF3;
  border: 2px solid var(--primary-color);
}

.school-2027 .left-block .s27-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.school-2027 .left-block .s27-areas-single {
  grid-template-columns: 1fr;
}

.school-2027 .s27-audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.school-2027 .s27-audience-card {
  background-color: #F2F2F2;
  border-radius: 20px;
  padding: 20px;
}

.school-2027 .left-block .s27-audience-card h3 {
  font-family: var(--secondary-font);
  font-size: var(--uc-font-size-28);
  font-weight: 400;
  margin: 0 0 8px 0;
}

.school-2027 .s27-audience-card p {
  margin: 0;
}

.school-2027 .s27-callout {
  background-color: #F2F2F2;
  border-left: 4px solid var(--primary-color);
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0 0 0;
}

.school-2027 .left-block .s27-callout strong {
  display: inline;
  margin: 0;
}

/* 2027 pricing table (also used by the taster table) */
.school-2027 :is(.s27-price-table, .s27-taster-table) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #E0E0E0;
  border-radius: 20px;
  overflow: hidden;
  margin: 20px 0 0 0;
  font-size: var(--uc-font-size-18);
}

.school-2027 :is(.s27-price-table, .s27-taster-table) th,
.school-2027 :is(.s27-price-table, .s27-taster-table) td {
  padding: 16px 14px;
  border-bottom: 1px solid #E0E0E0;
  text-align: right;
  vertical-align: middle;
}

.school-2027 :is(.s27-price-table, .s27-taster-table) tbody tr:last-child th,
.school-2027 :is(.s27-price-table, .s27-taster-table) tbody tr:last-child td {
  border-bottom: 0;
}

.school-2027 :is(.s27-price-table, .s27-taster-table) thead th {
  background-color: var(--dark-color-1);
  color: var(--light-color-1);
  font-weight: 700;
  line-height: 1.2;
}

.school-2027 :is(.s27-price-table, .s27-taster-table) thead th span {
  display: block;
  font-weight: 400;
  font-size: var(--uc-font-size-16);
  opacity: 0.8;
}

.school-2027 :is(.s27-price-table, .s27-taster-table) th[scope="row"],
.school-2027 :is(.s27-price-table, .s27-taster-table) thead th:first-child {
  text-align: left;
}

.school-2027 :is(.s27-price-table, .s27-taster-table) th[scope="row"] {
  font-weight: 700;
}

.school-2027 :is(.s27-price-table, .s27-taster-table) tbody tr:nth-child(even) {
  background-color: #FAFAFA;
}

/* Mobile accordion toggle (shown only on small screens once school-2027.js runs) */
.school-2027 .s27-tier-toggle {
  display: none;
}

.school-2027 .s27-price-table .s27-price-full {
  background-color: #FCEAF3;
  font-weight: 700;
}

/* Each fixed price shows the +GST amount with its incl. GST amount underneath */
.school-2027 .s27-price-ex,
.school-2027 .s27-price-inc {
  display: block;
  white-space: nowrap;
}

.school-2027 .s27-price-inc {
  font-size: var(--uc-font-size-16);
  font-weight: 400;
  color: var(--dark-color-3);
}

.school-2027 .s27-pricing .program-note {
  margin-top: 20px;
}

.school-2027 .s27-pricing .program-note p {
  margin: 0 0 8px 0;
}

.school-2027 .left-block .s27-example {
  font-style: italic;
}

.school-2027 .s27-pricing .program-note p:last-child {
  margin: 0;
}

/* 2-Hour School Taster Experience */
.school-2027 .s27-taster p {
  margin: 0;
}

/* The theme shows <strong> as a block in .left-block; keep the taster lead-in inline */
.school-2027 .left-block .s27-taster p strong {
  display: inline;
  margin: 0;
}

.school-2027 .s27-taster-table td {
  white-space: nowrap;
}

.school-2027 .s27-taster-table .s27-price-quote {
  white-space: normal;
}

.school-2027 .other-programs-sidebar .title-1 {
  font-size: var(--uc-font-size-40);
}

@media screen and (max-width: 767px) {
  .school-2027 .left-block .s27-areas,
  .school-2027 .s27-audience {
    grid-template-columns: 1fr;
  }

  .school-2027 .s27-btn-group a {
    width: 100%;
  }

  /* Taster table stays a 3-column table, just tighter */
  .school-2027 .s27-taster-table {
    font-size: var(--uc-font-size-16);
  }

  .school-2027 .s27-taster-table th,
  .school-2027 .s27-taster-table td {
    padding: 12px 10px;
  }

  /* Pricing table becomes one card per group size */
  .school-2027 .s27-price-table,
  .school-2027 .s27-price-table tbody,
  .school-2027 .s27-price-table tr,
  .school-2027 .s27-price-table th,
  .school-2027 .s27-price-table td {
    display: block;
    width: 100%;
  }

  .school-2027 .s27-price-table {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .school-2027 .s27-price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .school-2027 .s27-price-table tbody tr {
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
  }

  .school-2027 .s27-price-table tbody tr:nth-child(even) {
    background-color: transparent;
  }

  .school-2027 .s27-price-table th[scope="row"] {
    background-color: var(--dark-color-1);
    color: var(--light-color-1);
    border-bottom: 0;
  }

  .school-2027 .s27-price-table th[scope="row"]::before {
    content: 'Student group: ';
    font-weight: 400;
  }

  .school-2027 .s27-price-table td {
    display: flex;
    justify-content: space-between;
    gap: 15px;
  }

  .school-2027 .s27-price-table td::before {
    content: attr(data-label);
    text-align: left;
    font-weight: 400;
  }

  .school-2027 .s27-price {
    text-align: right;
  }

  .school-2027 .s27-price-table tbody tr:last-child td {
    border-bottom: 1px solid #E0E0E0;
  }

  .school-2027 .s27-price-table tbody tr td:last-child {
    border-bottom: 0;
  }

  /* Accordion: each participant tier opens and closes its prices */
  .school-2027 .s27-accordion th[scope="row"] {
    padding: 0;
  }

  .school-2027 .s27-accordion th[scope="row"]::before,
  .school-2027 .s27-accordion .s27-tier-label {
    display: none;
  }

  .school-2027 .s27-accordion .s27-tier-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 16px 14px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .school-2027 .s27-tier-toggle::before {
    content: 'Student group:';
    font-weight: 400;
  }

  .school-2027 .s27-tier-toggle::after {
    content: '';
    flex: 0 0 30px;
    height: 30px;
    margin-left: auto;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }

  .school-2027 .s27-tier-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }

  .school-2027 .s27-tier-toggle:focus-visible {
    outline: 2px solid var(--primary-color-light);
    outline-offset: -4px;
  }

  .school-2027 .s27-accordion tr:not(.is-open) td {
    display: none;
  }

  .school-2027 .s27-accordion tr.is-open td {
    animation: s27-reveal 0.3s ease;
  }

  @keyframes s27-reveal {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .school-2027 .s27-tier-toggle::after,
  .school-2027 .s27-accordion tr.is-open td {
    transition: none;
    animation: none;
  }

  .school-2027 .left-block .s27-stage-tag-best::after {
    display: none;
  }
}
