/**
 * Our Vision for Learning — section layout and spacing.
 */

.vision-for-learning-page {
  background: #fff;
}

.vision-next-wrap {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .vision-next-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .vision-next-wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* —— Hero —— */
.vision-next-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.vision-next-hero__media {
  position: absolute;
  inset: 0;
}

.vision-next-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.vision-next-hero__media--fallback {
  background: linear-gradient(135deg, rgb(22, 78, 108) 0%, rgb(30, 108, 147) 50%, rgb(25, 90, 125) 100%);
}

.vision-next-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.vision-next-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1rem 1rem 2rem;
}

.vision-next-hero__content {
  max-width: 56rem;
  margin: 0 auto;
}

.vision-next-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.vision-next-hero__sub {
  margin: 0 0 1rem;
  font-size: clamp(0.875rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.vision-next-hero__pill {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vision-next-hero__pill-text {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
}

/* —— Intro —— */
.vision-next-intro {
  padding: 4rem 0;
  background: #fff;
}

@media (min-width: 1024px) {
  .vision-next-intro {
    padding: 6rem 0;
  }
}

.vision-next-intro__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .vision-next-intro__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4rem;
    align-items: start;
  }

  .vision-next-intro__main {
    grid-column: span 2;
  }
}

.vision-next-intro__h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: rgb(17, 24, 39);
}

.vision-next-intro__p {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgb(55, 65, 81);
}

.vision-next-intro__cta {
  background: rgb(249, 250, 251);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.vision-next-intro__cta-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: rgb(17, 24, 39);
}

.vision-next-intro__cta-text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgb(75, 85, 99);
}

.vision-next-intro__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff !important;
  background: rgb(30, 108, 147);
  box-shadow: 0 4px 12px rgba(30, 108, 147, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.vision-next-intro__cta-btn:hover,
.vision-next-intro__cta-btn:focus {
  background: rgb(25, 90, 125);
  transform: translateY(-1px);
}

.vision-next-intro__cta-btn svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

/* —— Teal section background —— */
.vision-next-mission,
.vision-next-habits,
.vision-next-democratic {
  position: relative;
  overflow: hidden;
  background-color: rgb(30, 108, 147);
}

.vision-next-teal-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.vision-next-teal-bg__circle {
  position: absolute;
  border-radius: 50%;
  background-color: rgb(25, 90, 125);
}

.vision-next-teal-bg__circle--tr {
  top: -5rem;
  right: -5rem;
  width: 20rem;
  height: 20rem;
  opacity: 0.1;
}

.vision-next-teal-bg__circle--bl {
  bottom: -4rem;
  left: -4rem;
  width: 16rem;
  height: 16rem;
  opacity: 0.15;
}

.vision-next-teal-bg__circle--s1 {
  top: 25%;
  left: 25%;
  width: 4rem;
  height: 4rem;
  opacity: 0.2;
}

.vision-next-teal-bg__circle--s2 {
  top: 75%;
  right: 33%;
  width: 3rem;
  height: 3rem;
  opacity: 0.15;
}

.vision-next-teal-bg__circle--s3 {
  bottom: 25%;
  right: 25%;
  width: 5rem;
  height: 5rem;
  opacity: 0.1;
}

.vision-next-teal-bg__dots {
  position: absolute;
  inset: 0;
}

.vision-next-teal-bg__dot {
  position: absolute;
  top: var(--d-top);
  left: var(--d-left);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgb(25, 90, 125);
  opacity: 0.2;
  animation: vision-next-pulse 2s ease-in-out infinite;
  animation-delay: var(--d-delay);
}

@keyframes vision-next-pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vision-next-teal-bg__dot {
    animation: none;
  }
}

.vision-next-teal-bg__gradient {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background:
    radial-gradient(circle at 30% 20%, rgb(25, 90, 125) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgb(25, 90, 125) 0%, transparent 50%);
}

/* —— Mission —— */
.vision-next-mission {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .vision-next-mission {
    padding: 6rem 0;
  }
}

.vision-next-mission__inner {
  position: relative;
  z-index: 2;
}

.vision-next-mission__grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .vision-next-mission__grid {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .vision-next-mission__img-wrap {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
  }

  .vision-next-mission__text {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
  }
}

.vision-next-mission__img-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.vision-next-mission__img-aspect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vision-next-mission__h4 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.vision-next-mission__body p {
  margin: 0 0 1rem;
  color: #fff;
  line-height: 1.65;
  font-size: 1.0625rem;
}

.vision-next-mission__sig-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin: 1.5rem 0 1rem;
  color: #fff;
}

.vision-next-mission__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vision-next-mission__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  color: #fff;
}

.vision-next-mission__bullet {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

/* —— Core values —— */
.vision-next-core {
  padding: 4rem 0;
  background: rgb(249, 250, 251);
}

@media (min-width: 1024px) {
  .vision-next-core {
    padding: 6rem 0;
  }
}

.vision-next-core__header {
  text-align: center;
  margin-bottom: 4rem;
}

.vision-next-core__h4 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: rgb(17, 24, 39);
}

.vision-next-core__lead {
  margin: 0 auto;
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgb(75, 85, 99);
}

.vision-next-core__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .vision-next-core__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

.vision-next-core__card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.vision-next-core__card:hover {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .vision-next-core__card:hover {
    transform: none;
  }
}

.vision-next-core__icon-wrap {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.vision-next-core__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  color: #fff;
}

.vision-next-core__icon--blue {
  background: rgb(37, 99, 235);
}

.vision-next-core__icon--green {
  background: rgb(22, 163, 74);
}

.vision-next-core__icon--purple {
  background: rgb(147, 51, 234);
}

.vision-next-core__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: rgb(17, 24, 39);
}

.vision-next-core__desc {
  margin: 0;
  text-align: center;
  line-height: 1.65;
  color: rgb(75, 85, 99);
}

/* —— Learner habits —— */
.vision-next-habits {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .vision-next-habits {
    padding: 6rem 0;
  }
}

.vision-next-habits__inner {
  position: relative;
  z-index: 2;
}

.vision-next-habits__header {
  text-align: center;
  margin-bottom: 3rem;
}

.vision-next-habits__h4 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: #fff;
}

.vision-next-habits__intro {
  margin: 0 auto 0.75rem;
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.vision-next-habits__cite {
  margin: 0;
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

.vision-next-habits__grid {
  display: grid;
  gap: 1.5rem;
}

.vision-next-habits__grid--3 {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .vision-next-habits__grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .vision-next-habits__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

.vision-next-habits__grid--2 {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .vision-next-habits__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vision-next-habits__card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.vision-next-habits__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
  background: rgb(243, 244, 246);
}

.vision-next-habits__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vision-next-habits__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: rgb(17, 24, 39);
}

.vision-next-habits__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgb(75, 85, 99);
}

/* —— Philosophy —— */
.vision-next-philosophy {
  padding: 4rem 0;
  background: #fff;
}

@media (min-width: 1024px) {
  .vision-next-philosophy {
    padding: 6rem 0;
  }
}

.vision-next-philosophy__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .vision-next-philosophy__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
}

.vision-next-philosophy__h4 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(17, 24, 39);
}

.vision-next-philosophy__p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgb(55, 65, 81);
}

.vision-next-philosophy__img-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  background: rgb(243, 244, 246);
}

.vision-next-philosophy__img-aspect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Democratic —— */
.vision-next-democratic {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .vision-next-democratic {
    padding: 6rem 0;
  }
}

.vision-next-democratic__inner {
  position: relative;
  z-index: 2;
}

/* Match Next: mobile = list first, desktop = title left | list right */
.vision-next-democratic__grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.vision-next-democratic__left {
  order: 2;
}

.vision-next-democratic__right {
  order: 1;
}

@media (min-width: 1024px) {
  .vision-next-democratic__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 5vw, 4rem);
    align-items: center;
  }

  .vision-next-democratic__left,
  .vision-next-democratic__right {
    order: unset;
    min-width: 0;
  }
}

.vision-next-democratic__h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 2.5vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.vision-next-democratic__lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
}

@media (min-width: 1024px) {
  .vision-next-democratic__lead {
    margin-bottom: 0;
  }
}

/* Reset global / WordPress ul rules — flex rows, not list bullets */
.vision-next-democratic__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
}

.vision-next-democratic__list > li {
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
}

.vision-next-democratic__list > li::marker {
  content: none;
}

.vision-next-democratic__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.vision-next-democratic__check {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 0.125rem;
}

.vision-next-democratic__check svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
}

.vision-next-democratic__label {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #fff;
}

/* —— Child safety —— */
.vision-next-child {
  padding: 4rem 0;
  background: #fff;
}

@media (min-width: 1024px) {
  .vision-next-child {
    padding: 6rem 0;
  }
}

.vision-next-child__grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .vision-next-child__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    align-items: center;
  }

  .vision-next-child__img-wrap {
    order: 1;
  }

  .vision-next-child__text {
    order: 2;
  }
}

.vision-next-child__h4 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: rgb(17, 24, 39);
}

.vision-next-child__body p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgb(55, 65, 81);
}

.vision-next-child__body p:last-child {
  margin-bottom: 0;
}

.vision-next-child__img-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  background: rgb(243, 244, 246);
}

.vision-next-child__img-aspect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Optional WP blocks below —— */
.vision-next-wp-extra {
  padding: 3rem 0 4rem;
  background: rgb(249, 250, 251);
}

.vision-next-wp-extra__inner {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgb(55, 65, 81);
}

.vision-next-wp-extra__inner > *:first-child {
  margin-top: 0;
}
