/* schools-nursery-pta.css */

/* Page-level variables used by the legacy page content. Global layout/header/footer styles live in core.css. */
:root {
  --clr-white: #fff;
  --clr-black: #000;
  --clr-red: #e5152f;
}

/* ================= PAGE UTILITIES ================= */
.m-w-100 {
  max-width: 100%;
}

.text-orange {
  color: #fd893b;
}

.fw-400 {
  font-weight: 400;
}

.fw-700 {
  font-weight: 800;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-center {
  text-align: center;
}

.btn--primary {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  color: var(--clr-white);
  background-color: var(--clr-red);
  overflow: hidden;
  border: 1px solid transparent;
  transition: 0.2s;
  font-weight: 700;
  font-family: "Quicksand", sans-serif;
}

.btn--primary:hover {
  border-color: var(--clr-red);
  color: var(--clr-black);
  background-color: transparent;
}

/* ================= SPLIDE CORE - PAGE LOCAL ================= */
.splide {
  position: relative;
  visibility: hidden;
}

.splide.is-initialized,
.splide.is-rendered {
  visibility: visible;
}

.splide__track {
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.splide__list {
  backface-visibility: hidden;
  display: flex;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.splide__slide {
  backface-visibility: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
  list-style-type: none !important;
  margin: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.splide__slide img {
  vertical-align: bottom;
}

/* ================= HERO ================= */
.hero.teacher {
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.hero__content.teacher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 5rem;
  gap: 5rem;
  align-items: center;
}

.hero__content.teacher > .text-center img {
  margin-left: clamp(1rem, 3vw, 3rem);
}

.hero__content.teacher .heading-2 {
  margin-top: 0;
  line-height: 1.1;
  max-width: 30ch;
}

.hero__content.teacher .heading-2 .sub {
  font-size: 4.7rem;
}

.hero__content.teacher .break-line {
  margin-top: 2rem;
  display: block;
}

.hero__content.teacher p {
  margin-bottom: 1.5rem;
}

/* ================= ENCOURAGEMENT SECTIONS ================= */
.encouragement {
  margin-block: 10rem;
}

.encouragement__content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
  align-items: center;
}

.encouragement__content .heading-2 {
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.encouragement__content ul {
  margin-top: 1rem;
}

.encouragement__content li {
  margin-block: 0.7rem;
  align-items: center;
  gap: 0.3rem;
}

.encouragement__content li span.check {
  position: relative;
  padding-left: 2.5rem;
}

.encouragement__content li p > span.check::before {
  position: absolute;
  content: "";
  margin-right: 0.5rem;
  width: 2rem;
  height: 2rem;
  left: 0;
  top: 0;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAiCAYAAADGUiAIAAADfklEQVRYhcXYzWtcVRjH8c9MSrSWklVB3GlFxHSR0I1/gIK1roWx9SVYYy02pAW1Be0kEVR8TUsiEpM0EEqsgisLYms3grgZrVKlK8FFi1uxWBtNrotzxkzi3Ll37jjkB5e5c89zn+c75zznnOdMKUkSjRr79jGbrB7sx1VcaGwobwpOunqwiAV8gUONjeVSqaTx2kT14DQq8XsJU3hGw4ONug8HsAd34pYOAG7iZ3yO2Wqt8lOKXQlzGGrSlkSe+UbYXryL53QnPVbxIY5Ua5UbG0BnIlCa/sY9ddhenMMDWI5Oz+BytVb5vSjd+O6l7diFfcJw9uIi9lRrleUI+j4OZrhaxt112Gkhma/hkWqt8l1RwBbgg/gMd2C6WqscxiRGMl5dEX7s2TL68Wyk39sNUIh+98Y4B3/79Y+FnKBDOEvIzQPCTJzBpW6A1lWtVS5h5sHRwZ6+2297IsN8VUidxfqDLXgo3p/pDuJ6Hfr44e07dvZlmSUYFpayf1XGXfE+rVeP4wbmhRHoRGM7dvY9mWGTCPNnbmNDWZih8GeTF0/gNdwq5M6C4sCvoJoDdAQfNGtstZ4ex/iGZ/uFZa3dre4YJnLYHRV2raZKgx0WerSZhoRfnhf4KF7PYfeCsJSlKg320QzHw9FxFvAo3smwIYzi21lGabDvCWtcK41kgDwvbN9ZquKNHHapsOfwuGzgI5oP8TBOye75CflyGa0n2JKwYaxm+DiGsYbvT8uR01/N/0j26rBOWdXVgrAVJxl2VbyMp4SdsCXo14tXXJz+IR9hg/KUgrM4LBv4VWEhz/I5eX6yWPmRt26dFpagTv2dyumnkPNGTeKlooGEPB6VPUKpavdE8KY2J0XUnLDfFwal2PFlQsjPvDotlHodgVL8rHUCb+WwW/Q/gdLZwfBFYcKk6SOhjsjaWHKrLBwzCGVguxrVvJz7RKjQ/gMaD5Fwvd1gZeFcDwPtvmytUJ5tePapcMBL69H++PlLu8G2CH9A3BsDfNOuA2tHkO+xFSfxVwv7ffHzQgubpioLy8pKDFikdwnAU8KkW04zGt+9NBDjrFg/Gm1pOga8isGiTjI0EP0nMR5IkiT3VVcvzkdHN4WhvB/bOgTcFv2cjH4TfGnt3FcItg48JQxR0oVrRVg5tjYGLQpbV79QB1wR8q8TwOu4HP3tahasHdh/AF22cvgV7bgtAAAAAElFTkSuQmCC");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.encouragement__content .image {
  border-radius: 1.5rem;
  max-width: 100%;
}

/* First encouragement block: centre the "Encourage parents" section while keeping list readability. */
.hero.teacher + .encouragement .encouragement__content {
  justify-items: center;
  text-align: center;
}

.hero.teacher + .encouragement .encouragement__content ul {
  display: inline-block;
  text-align: left;
}

.hero.teacher + .encouragement .encouragement__content .image {
  margin-inline: auto;
}

/* ================= TEACHER SAYS ================= */
.teacherSays {
  padding: 0 0 clamp(2rem, 4vw, 5rem);
}

.teacherSays__content {
  margin-top: 5rem;
  margin-bottom: 0;
}

.teacherSays__item {
  position: relative;
  color: #fff;
  width: 100%;
  max-width: 390px;
  margin-inline: auto;
}

.teacherSays__item > .image {
  width: 100%;
  height: auto;
  display: block;
}

.teacherSays__item .item__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.1rem, 3.5vw, 4.6rem) clamp(1.8rem, 3vw, 3.6rem);
  font-weight: 500;
  font-size: clamp(0.78rem, 0.55vw + 0.62rem, 1rem);
  line-height: 1.35;
  overflow: hidden;
}

.teacherSays__item .item__content p {
  margin: 0;
}

.teacherSays__item .person {
  margin-top: clamp(0.75rem, 2vw, 2rem);
  display: flex;
  justify-content: space-between;
  line-height: 1.2;
}

.teacherSays__item .name,
.teacherSays__item .title {
  margin: 0;
}

/* Removed .my-slider-progress and .my-slider-progress-bar because the progress markup was removed from the HTML. */

/* ================= FAQ ================= */
.faq {
  margin-top: 5rem;
  margin-bottom: 7rem;
  padding-block: 3.5rem;
}

.faq .container {
  max-width: 90rem;
}

.faq__inner {
  display: grid;
  grid-template-columns: 0.75fr 1.5fr;
  gap: 3rem;
}

.faq__left {
  margin-top: 6rem;
}

.accordion details {
  border-bottom: 1px solid #c7c5c5;
  padding-block: 1.8rem;
}

.accordion details summary {
  transition: margin 150ms ease-out;
  cursor: pointer;
  list-style: none;
  font-family: "Quicksand", sans-serif;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.2;
  font-weight: 600;
  position: relative;
  display: flex;
  align-items: center;
  padding-right: 2rem;
}

.accordion details summary::-webkit-details-marker {
  display: none;
}

.accordion details summary::after {
  content: "⌄";
  position: absolute;
  right: 0;
  transition: 0.3s;
  font-weight: 700;
  transform: rotate(0);
}

.accordion details[open] summary {
  margin-bottom: 1.5rem;
  user-select: none;
}

.accordion details[open] summary::after {
  transform: rotate(180deg);
}

.accordion details > p {
  padding-inline: 2rem;
  position: relative;
}

.accordion details > p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background-color: #1ca4ed;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 75em) {
  .teacherSays__item .item__content {
    font-size: clamp(0.7rem, 0.65vw + 0.54rem, 0.95rem);
  }
}

@media (max-width: 68.4375em) {
  .teacherSays .container {
    max-width: 80rem;
    padding-inline: 1rem;
  }
}

@media (max-width: 65.625em) {
  .encouragement__content {
    gap: 3rem;
    grid-template-columns: 1.2fr 1fr;
  }
}

@media only screen and (max-width: 56.25em) {
  .hero.teacher .container,
  .encouragement .container {
    max-width: 60rem;
    padding-inline: 1rem;
  }

  .encouragement {
    margin-block: 5rem;
  }

  .teacherSays__content {
    margin-top: 3rem;
  }

  .hero__content.teacher {
    gap: 1rem;
    margin-top: 2rem;
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 70ch;
    margin-inline: auto;
  }

  .hero__content.teacher .heading-2 {
    margin-top: 0;
    max-width: unset;
    margin-bottom: 0.5rem;
  }

  .hero__content.teacher .heading-2 .sub {
    font-size: 3.5rem;
  }

  .hero__content.teacher .break-line {
    margin-top: 1.5rem;
  }

  .hero__content.teacher img {
    max-width: 35ch;
    margin-inline: auto;
  }

  .hero__content.teacher > .text-center img {
    margin-left: auto;
  }

  .encouragement__content,
  .encouragement__content[dir="rtl"] {
    display: flex;
    flex-direction: column-reverse;
    gap: 1.5rem;
    text-align: center;
  }

  .encouragement__content ul {
    display: inline-block;
    text-align: left;
  }
}

@media (max-width: 46.875em) {
  .teacherSays .container {
    max-width: 40rem;
    padding-inline: 1rem;
  }

  .teacherSays__item .item__content {
    font-size: clamp(0.82rem, 2.7vw, 1.05rem);
    padding: clamp(2.2rem, 8vw, 4rem) clamp(2rem, 7vw, 3.5rem);
  }
}

@media only screen and (max-width: 31.25em) {
  .hero__content.teacher {
    max-width: 90%;
  }

  .hero__content.teacher .heading-2 .sub {
    font-size: 3.2rem;
  }

  .faq__left img {
    height: 4rem;
    margin-inline: auto;
  }

  .accordion details summary {
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  }
}

@media (max-width: 25em) {
  .hero__content.teacher {
    max-width: 100%;
  }

  .hero__content.teacher .heading-2 {
    max-width: 30ch;
    margin-inline: auto;
  }

  .encouragement__content li span.hidden {
    display: none;
  }

  .teacherSays__item .item__content {
    font-size: 0.78rem;
    padding: 2.5rem 2.1rem;
  }
}

@media only screen and (max-width: 56.25em) {
  .faq__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .faq__left {
    margin-top: 0;
    text-align: center;
  }

  .faq__left img {
    margin-inline: auto;
    height: 5rem;
  }
}