/* ================= BACK TO SCHOOL PAGE ================= */

:target {
  scroll-margin-top: 10rem;
}

.bts-orange {
  color: orange;
}

.bts-purple {
  color: mediumpurple;
}

.bts-turquoise {
  color: darkturquoise;
}

.bts-btn {
  margin-top: 2.5rem;
}

.bts-secondary-btn {
  margin-top: 2rem;
  font-size: clamp(0.85rem, 0.7rem + 0.5vw, 1.125rem);
}

.bts-hero {
  padding: clamp(3rem, 7vw, 7rem) 0 clamp(3rem, 6vw, 6rem);
}

.bts-hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 120rem;
  margin-inline: auto;
}

.bts-hero__image img {
  max-width: 100%;
  margin-inline: auto;
}

.bts-hero__title {
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.bts-hero__subtitle {
  display: inline-block;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem);
}

.bts-hero__text p {
  max-width: 65ch;
}

.bts-hero__text a:not(.btn) {
  color: var(--button-color);
}

/* ================= STORY / CHOOSE SECTIONS ================= */

.chose-area {
  padding: 0 0 clamp(4rem, 7vw, 8rem);
}

.chose-area .container {
  max-width: 120rem;
}

.chose-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
  max-width: 108.5rem;
  margin-inline: auto;
  margin-top: 5rem;
}

.chose-left img {
  width: 100%;
  border-radius: 2rem;
  margin-inline: auto;
}

.chose-right {
  min-width: 0;
}

.chose-right p {
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.1rem);
}

.alice-image {
  max-width: 36.5rem;
  max-height: 37.5rem;
  justify-self: center;
  padding-top: 8px;
}

.rotate-image {
  transform: rotate(-5deg);
  max-width: 40rem;
  max-height: 30rem;
  justify-self: center;
}

.rotate-image-2 {
  transform: rotate(5deg);
  max-width: 40rem;
  max-height: 30rem;
  justify-self: center;
}

/* ================= TABS ================= */

.tab-area {
  padding: 0 0 clamp(4rem, 6vw, 8rem);
}

.tab-area .container {
  max-width: 120rem;
}

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

.tab-title .heading-2 {
  margin-bottom: 1rem;
}

.tab-title p {
  font-weight: 400;
  color: var(--color-black);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.tab-main {
  margin-top: 2.4rem;
}

#tab-wrap {
  max-width: 110rem;
  margin-inline: auto;
}

.skltbs-tab-group {
  max-width: 105rem;
  display: flex;
  justify-content: center;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

.skltbs-tab-item {
  width: 20%;
  margin: 0 1rem;
}

.skltbs-tab {
  font-family: "Quicksand", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--color-white);
  background: #46c8db;
  cursor: pointer;
  width: 105%;
  height: 5rem;
  border-radius: 1rem 1rem 0 0;
  margin-bottom: 0;
  border: 0;
  appearance: none;
  display: block;
}

.skltbs-tab:focus {
  outline: 0;
}

.skltbs-tab:disabled {
  cursor: not-allowed;
}

.skltbs-tab-group li:nth-child(2) button {
  background: #fec02b;
}

.skltbs-tab-group li:nth-child(3) button {
  background: #c089cf;
}

.skltbs-tab-group li:nth-child(4) button {
  background: #64d09a;
}

.skltbs-panel {
  padding: 3rem 5rem;
  border-radius: 10px;
}

.skltbs-panel:focus,
.skltbs-panel:focus-visible {
  outline: 0;
}

.skltbs-panel1 {
  background: #5ccaeb29;
}

.skltbs-panel2 {
  background: #fdbf2b29;
}

.skltbs-panel3 {
  background: #a67ab629;
}

.skltbs-panel4 {
  background: #8fc85d29;
}

.wraper-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.tab-cnt-item {
  padding-right: 25px;
}

.tab-cnt-item1,
.tab-cnt-item2 {
  width: 24%;
}

.tab-cnt-item3 {
  width: 50%;
  padding-right: 0;
}

.tab-cnt-item img {
  width: 100%;
  border-radius: 2rem;
}

.tab-cnt-item p {
  font-weight: 400;
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.0625rem);
  color: var(--color-black);
  padding-right: 0;
}

.tab-cnt-item p a {
  text-decoration: underline;
}

/* Skeletabs transition support */
.skltbs-mode-tabs .skltbs-panel-group {
  position: relative;
}

.skltbs-mode-tabs.use-fade .skltbs-panel {
  position: relative;
  transition: opacity 500ms;
}

.skltbs-mode-tabs.use-fade .skltbs-leave {
  position: absolute;
  top: 0;
  display: block !important;
  opacity: 1;
}

.skltbs-mode-tabs.use-fade .skltbs-leave-active {
  opacity: 0;
}

.skltbs-mode-tabs.use-fade .skltbs-enter {
  opacity: 0;
}

.skltbs-mode-tabs.use-fade .skltbs-enter-active {
  opacity: 1;
}

/* ================= PARENT REVIEWS / SPLIDE ================= */

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

.teacherSays__item {
  position: relative;
  color: var(--color-white);
}

.teacherSays__item .image {
  width: 100%;
}

.teacherSays__item .item__content {
  padding: 5rem 4rem;
  font-weight: 500;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.teacherSays__item .person {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  line-height: 1.2;
}

.teacherSays__item .name {
  font-weight: 700;
}

/* Splide core styles moved into page CSS */
.splide__container {
  box-sizing: border-box;
  position: relative;
}

.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;
}

.splide__slide:focus {
  outline: 0;
}

.splide__pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  pointer-events: none;
  bottom: 0.5em;
  left: 0;
  padding: 0 1em;
  position: absolute;
  right: 0;
  z-index: 1;
}

.splide__pagination li {
  display: inline-block;
  line-height: 1;
  list-style-type: none;
  margin: 0;
  pointer-events: auto;
}

.splide__pagination__page {
  background: #ccc;
  border: 0;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin: 3px;
  opacity: 0.7;
  padding: 0;
  position: relative;
  transition: transform 0.2s linear;
  width: 8px;
}

.splide__pagination__page.is-active {
  background: #fff;
  transform: scale(1.4);
  z-index: 1;
}

.splide__progress__bar {
  background: #ccc;
  height: 3px;
  width: 0;
}

.my-slider-progress {
  background: #eee;
  margin-top: 1.5rem;
}

.my-slider-progress-bar {
  background: var(--button-color);
  height: 3px;
  transition: width 400ms ease;
  width: 0;
}

/* ================= MORE OPTIONS ================= */

.more-area {
  padding: 0 0 5rem;
}

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

.more-main {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 8rem;
  padding-left: 50px;
  padding-right: 50px;
  max-width: 120rem;
  margin-inline: auto;
}

.more-item {
  position: relative;
  margin-top: 3rem;
}

.more-item img {
  width: 100%;
  max-width: 500px;
  max-height: 300px;
  margin-inline: auto;
}

.more-item p {
  margin-top: 1rem;
}

.more-item details {
  margin-top: 1rem;
}

.more-item summary {
  color: var(--button-color);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

/* ================= ENVIRONMENT SECTION ================= */

.name-area {
  padding: 0 0 2rem;
}

.name-main {
  max-width: 1024px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.name-left {
  width: 20%;
}

.name-left img {
  max-width: 18rem;
  margin-right: 20px;
}

.name-right {
  width: 80%;
}

.name-right .heading-2 {
  margin-bottom: 1.2rem;
}

.name-right p {
  font-weight: 400;
  color: var(--color-black);
}

.name-right p a {
  color: #1ca4ed;
  text-decoration: underline;
}

/* ================= FAQ OVERRIDES ================= */

.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;
}

.faq__left img {
  margin-inline: auto;
}

.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-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;
  font-family: "Quicksand", sans-serif;
}

.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: 1199px) {
  .skltbs-tab {
    font-size: 0.95rem;
  }

  .teacherSays__item .item__content {
    padding: 4rem 2.5rem;
  }

  .teacherSays__item .person {
    margin-top: 2rem;
  }
}

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

  .teacherSays__item .item__content {
    padding: 5rem 4rem;
  }
}

@media (max-width: 900px) {
  .bts-hero__content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    max-width: 70ch;
  }

  .bts-hero__text p {
    margin-inline: auto;
  }

  .chose-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .chose-area--story .chose-left {
    order: -1;
  }

  .rotate-image,
  .rotate-image-2 {
    max-width: 35rem;
  }

  .faq__inner {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 767px) {
  .bts-hero {
    padding-top: 3rem;
  }

  .bts-hero__title {
    max-width: 13ch;
    margin-inline: auto;
  }

  .tab-cnt-item1,
  .tab-cnt-item2 {
    width: 50%;
  }

  .tab-cnt-item3 {
    width: 100%;
    padding-right: 0;
  }

  .tab-cnt-item {
    padding: 0 1rem;
    margin-bottom: 1.6rem;
    margin-top: 1rem;
  }

  .tab-cnt-item p {
    text-align: center;
  }

  .skltbs-tab {
    font-size: 0.75rem;
    margin-bottom: 1.2rem;
    height: 3rem;
  }

  .skltbs-panel {
    padding: 2.5rem 1.5rem;
    margin-top: -1.2rem;
  }

  .skltbs-tab-item {
    margin: 0 0.3rem;
  }

  .skltbs-tab-item:first-child {
    margin-left: 0;
  }

  .skltbs-tab-item:last-child {
    margin-right: 0;
  }

  .teacherSays .container {
    max-width: 40rem;
    padding-inline: 1rem;
  }

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

  .teacherSays__item .item__content {
    padding: 4rem 3rem;
  }

  .more-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-left: 0;
    padding-right: 0;
  }

  .more-item {
    margin-top: 2rem;
  }

  .name-left {
    width: 100%;
  }

  .name-left img {
    display: block;
    margin-inline: auto;
  }

  .name-right {
    width: 100%;
    text-align: center;
  }

  .name-right .heading-2 {
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
  }

  .faq {
    margin-top: 3rem;
    margin-bottom: 4.5rem;
  }
}

@media (max-width: 500px) {
  .teacherSays__item .item__content {
    padding: 3.5rem 2.5rem;
    font-size: 0.9rem;
  }

  .bts-secondary-btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .teacherSays__item .item__content {
    padding: 3rem 2rem;
    font-size: 0.8rem;
  }

  .skltbs-tab {
    font-size: 0.65rem;
  }
}