﻿:root {
  --pdf-home-max: 1940px;
}

.home-shell {
  width: min(var(--pdf-home-max), calc(100% - 48px));
  margin-inline: auto;
}

.site-shell {
  width: min(1860px, calc(100% - 48px));
}

.narrow-shell {
  width: min(1600px, calc(100% - 48px));
}

.topbar {
  font-size: 1rem;
}

.topbar__inner {
  min-height: 62px;
}

.topbar__left {
  gap: 26px;
}

.header-inner {
  height: 96px;
}

.brand img {
  width: 330px;
}

.main-nav a,
.main-nav button {
  font-size: .92rem;
  padding: 14px 18px;
}

.trial-button {
  border-radius: 7px;
  font-size: .9rem;
  padding: 15px 28px;
}

.hero-home {
  border-top: 1px solid #e8edf5;
}

.hero-home__grid {
  display: grid;
  grid-template-columns: 39% 17% 44%;
  min-height: 420px;
  align-items: stretch;
  background: #fff;
}

.hero-poster {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 34px 30px 28px 70px;
}

.hero-poster img {
  width: 100%;
  max-width: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.hero-actions .btn {
  min-width: 260px;
  min-height: 66px;
  border-radius: 7px;
  font-size: .98rem;
}

.hero-cambridge {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px 14px;
  background: #fff;
}

.hero-cambridge img {
  width: 100%;
  object-fit: contain;
}

.hero-cambridge img:first-child {
  border-bottom: 2px solid #f47920;
  padding-bottom: 13px;
}

.home-carousel {
  height: auto;
  min-height: 420px;
  border-left: 1px solid #eef2f7;
  background: #f9fbfe;
}

.carousel-control,
.carousel-dots {
  display: none;
}

.features-strip {
  border-color: #edf0f5;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  align-items: center;
  gap: 24px;
  min-height: 138px;
  padding: 22px 68px;
}

.feature-card img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.feature-card:nth-child(4) img {
  width: 86px;
}

.feature-card h3 {
  font-size: 1.04rem;
  line-height: 1.12;
}

.feature-card p {
  font-size: .95rem;
}

.feature-icon--line,
.feature-card .feature-icon {
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 0;
  color: var(--navy);
  font-size: 3rem;
}

.courses-section {
  padding-top: 22px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 1.75rem;
}

.course-image-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.course-img-card {
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(5, 35, 87, .08);
}

.course-img-card img {
  height: auto;
  object-fit: contain;
}

.cambridge-section {
  padding: 24px 0 28px;
}

.home-cambridge {
  grid-template-columns: 285px 1fr;
  gap: 48px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  padding: 18px 70px;
  box-shadow: none;
}

.home-cambridge > img {
  width: 100%;
  height: 210px;
  align-self: stretch;
  border-radius: 7px;
  object-fit: cover;
}

.home-cambridge__copy {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  column-gap: 48px;
  align-items: center;
}

.home-cambridge__copy .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 4px;
}

.home-cambridge__copy h2,
.home-cambridge__copy p {
  grid-column: 1;
}

.home-cambridge__copy h2 {
  font-size: 1.75rem;
}

.home-cambridge__copy .exam-row {
  grid-column: 2;
  grid-row: 2 / 5;
  margin: 0;
}

.home-cambridge__copy .btn {
  grid-column: 2;
  justify-self: center;
  min-width: 420px;
  margin-top: 14px;
}

.exam-row {
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.exam-pill {
  border-radius: 6px;
  padding: 18px 14px;
}

.home-mini-icons {
  padding: 30px 0;
}

.mini-icon-row {
  gap: 54px;
}

.mini-item {
  gap: 18px;
}

.mini-item .feature-icon {
  width: 54px;
  height: 54px;
  border: 0;
  font-size: 2rem;
}

.mini-item h3 {
  font-size: 1rem;
}

.mini-item p {
  font-size: .9rem;
}

.testimonials {
  gap: 28px;
}

.testimonial {
  border-radius: 8px;
  padding: 18px 26px;
}

.footer-top {
  padding: 20px 0;
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr .8fr 1fr;
  padding: 18px 0;
}

.legal-row {
  padding: 12px 0 16px;
}

@media (max-width: 1280px) {
  .home-shell,
  .site-shell,
  .narrow-shell {
    width: min(1180px, calc(100% - 34px));
  }

  .brand img {
    width: 230px;
  }

  .main-nav a,
  .main-nav button {
    font-size: .78rem;
    padding: 12px 9px;
  }

  .trial-button {
    font-size: .76rem;
    padding: 12px 16px;
  }

  .hero-home__grid {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .hero-poster {
    padding: 32px 20px;
  }

  .hero-cambridge {
    display: none;
  }

  .home-carousel {
    min-height: 390px;
  }

  .feature-card {
    padding: 22px 24px;
  }

  .home-cambridge,
  .home-cambridge__copy {
    grid-template-columns: 1fr;
  }

  .home-cambridge {
    gap: 22px;
    padding: 18px;
  }

  .home-cambridge__copy .exam-row,
  .home-cambridge__copy .btn {
    grid-column: 1;
    grid-row: auto;
  }

  .home-cambridge__copy .btn {
    justify-self: start;
    min-width: 0;
  }

  .course-image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .home-shell,
  .site-shell,
  .narrow-shell {
    width: min(680px, calc(100% - 24px));
  }

  .header-inner {
    height: 72px;
  }

  .brand img {
    width: 170px;
  }

  .hero-home__grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    padding: 24px 0;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }

  .home-carousel {
    height: 330px;
    min-height: 330px;
  }

  .feature-grid,
  .course-image-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card {
    padding: 18px 12px;
  }

  .mini-icon-row,
  .testimonials,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .course-image-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-right: 0;
  }

  .section-title h2 {
    font-size: 1.35rem;
  }

  .home-carousel {
    height: 270px;
    min-height: 270px;
  }

  .exam-row {
    grid-template-columns: 1fr 1fr;
  }

  .home-cambridge > img {
    height: auto;
  }
}

/* Online course page: preserve the supplied artwork while keeping every block aligned. */
.online-course-page {
  background: #fff;
}

.online-course-layout {
  --online-shell: min(1120px, calc(100% - clamp(24px, 4vw, 56px)));
  display: grid;
  gap: clamp(16px, 2.6vw, 30px);
  padding: clamp(14px, 2vw, 24px) 0 clamp(28px, 4vw, 52px);
}

.online-course-breadcrumbs,
.online-course-artwork,
.online-course-cards,
.online-course-cta {
  width: var(--online-shell);
  margin-inline: auto;
}

.online-course-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #63728d;
  font-size: .82rem;
}

.online-course-breadcrumbs a {
  color: var(--navy);
}

.online-course-breadcrumbs strong {
  color: var(--orange);
}

.online-course-artwork,
.online-course-cta {
  display: block;
  overflow: hidden;
}

.online-course-artwork img,
.online-course-cta img {
  display: block;
  width: 100%;
  height: auto;
}

.online-course-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 1.8vw, 22px);
}

.online-course-card {
  display: flex;
  min-width: 0;
  aspect-ratio: 0.588 / 1;
  background: #fff;
  overflow: hidden;
}

.online-course-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.online-course-cta {
  border-radius: 8px;
}

.online-course-cta:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .online-course-layout {
    --online-shell: calc(100% - 24px);
    gap: 16px;
    padding-top: 12px;
  }

  .online-course-cards {
    grid-template-columns: 1fr;
    width: min(520px, var(--online-shell));
  }

  .online-course-card {
    aspect-ratio: auto;
  }

  .online-course-card img {
    width: 100%;
    height: auto;
  }
}

/* Home methodology artwork: equal sizing without distorting supplied images. */
.home-page .home-mini-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.home-page .home-mini-icon-card {
  min-width: 0;
  aspect-ratio: 2.6 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.home-page .home-mini-icons-grid .home-mini-icon-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.home-page .home-mini-icon-card:nth-child(2) img {
  object-position: 50% calc(50% - 12px);
}

.home-page .home-mini-icon-card:nth-child(3) img {
  object-position: 50% calc(50% - 14px);
}

.home-page .home-mini-icon-card:nth-child(4) img {
  object-position: 50% calc(50% - 6px);
}

@media (max-width: 900px) {
  .home-page .home-mini-icons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .home-page .home-mini-icons-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.about-page .site-header {
  box-shadow: 0 4px 18px rgba(6, 38, 90, .04);
}

.about-page .main-nav .is-active {
  color: var(--orange);
  background: transparent;
  border-bottom: 3px solid var(--orange);
  border-radius: 0;
}

.about-hero {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 470px;
  background: #fff;
}

.about-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 52px 58px max(52px, calc((100vw - 1540px) / 2 + 52px));
}

.about-eyebrow {
  margin: 0 0 20px;
  color: var(--orange);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.about-hero h1 {
  margin: 0;
  color: #070d70;
  font-size: clamp(3.7rem, 5.2vw, 5.55rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.about-title-line {
  width: 82px;
  height: 5px;
  margin: 28px 0 22px;
  border-radius: 99px;
  background: var(--orange);
}

.about-hero p:not(.about-eyebrow) {
  max-width: 650px;
  margin: 0;
  color: #071066;
  font-size: 1.23rem;
  line-height: 1.55;
}

.about-hero__image {
  position: relative;
  overflow: hidden;
}

.about-hero__image::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 24%;
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.86) 32%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.about-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-grid-section {
  padding: 24px 0 34px;
  background: #fff;
}

.about-grid {
  width: min(1648px, calc(100% - 84px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.15fr .68fr;
  gap: 24px 28px;
  align-items: stretch;
}

.about-info-card,
.about-cambridge-card,
.about-quote-card {
  min-height: 140px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #f7f8fb 100%);
  box-shadow: 0 12px 32px rgba(6, 38, 90, .06);
}

.about-info-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 30px 20px 22px;
}

.about-info-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  justify-self: center;
}

.about-info-card .about-crest {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: left center;
}

.about-info-card p,
.about-quote-card p {
  margin: 0;
  color: #071066;
  font-size: .91rem;
  line-height: 1.5;
}

.about-info-card strong,
.about-quote-card strong {
  color: #06105f;
  font-weight: 900;
}

.about-cambridge-card {
  grid-row: span 2;
  display: grid;
  place-items: center;
  padding: 28px;
}

.about-cambridge-card img {
  width: 100%;
  max-width: 500px;
}

.about-quote-card {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px 26px;
}

.about-quote-mark {
  height: 44px;
  color: var(--orange);
  font-size: 5.2rem;
  font-weight: 900;
  line-height: .75;
}

.about-quote-card strong {
  color: var(--orange);
  font-size: 1.05rem;
}

.about-quote-card img {
  width: 78px;
  margin: 14px auto 0;
}

.about-bottom-banner {
  width: min(1000px, calc(100% - 36px));
  margin: 8px auto 28px;
}

.about-bottom-banner img {
  width: 100%;
  border-radius: 12px;
}

.about-cta {
  display: none;
  padding: 0 0 34px;
  text-align: center;
}

.about-cta a {
  display: inline-block;
}

.about-cta img {
  width: min(500px, calc(100vw - 48px));
}

@media (max-width: 1320px) {
  .about-hero {
    grid-template-columns: 45% 55%;
  }

  .about-hero__copy {
    padding-left: 34px;
  }

  .about-grid {
    width: min(1100px, calc(100% - 40px));
    grid-template-columns: 1fr 1fr;
  }

  .about-cambridge-card,
  .about-quote-card {
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero__copy {
    padding: 44px 24px 28px;
  }

  .about-hero__image {
    min-height: 360px;
  }

  .about-hero__image::before {
    width: 100%;
    height: 18%;
    inset: 0 0 auto;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 100%);
  }

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

  .about-cambridge-card {
    order: 5;
  }

  .about-quote-card {
    order: 6;
  }

  .about-bottom-banner {
    display: none;
  }

  .about-cta {
    display: block;
  }
}

@media (max-width: 560px) {
  .about-hero h1 {
    font-size: clamp(2.8rem, 15vw, 3.8rem);
  }

  .about-hero p:not(.about-eyebrow) {
    font-size: 1.03rem;
  }

  .about-hero__image {
    min-height: 280px;
  }

  .about-info-card {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
    padding: 22px;
  }

  .about-info-card img {
    justify-self: start;
  }

  .about-cambridge-card {
    padding: 18px;
  }

  .about-quote-card {
    padding: 24px;
  }
}

/* About page final PDF alignment fixes. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 270px;
}

.brand img {
  width: 70px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand span {
  color: #0828d9;
  font-family: "Segoe Print", "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: 2.05rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

/* Keep the desktop wordmark treatment identical on responsive headers. */
.site-header .brand span {
  font-family: "Kalam", "Segoe Print", "Comic Sans MS", "Trebuchet MS", cursive !important;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.about-page .brand {
  min-width: 330px;
}

.about-page .header-inner {
  overflow: visible;
}

.about-grid.about-grid--pdf {
  width: min(1120px, calc(100% - 44px));
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: 34px 56px;
  align-items: start;
}

.about-story-list,
.about-side-column {
  display: grid;
  gap: 26px;
}

.about-grid--pdf .about-info-card,
.about-grid--pdf .about-cambridge-card {
  min-height: 0;
  box-shadow: none;
  background: transparent;
}

.feature-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-grid--pdf .about-info-card {
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 0;
  align-items: center;
}

.about-grid--pdf .about-info-card--top {
  min-height: 206px;
  padding: 30px 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #f7f8fb 100%);
  box-shadow: 0 12px 32px rgba(6, 38, 90, .06);
}

.about-grid--pdf .about-info-card img {
  width: 92px;
  height: 92px;
  padding: 14px;
  border-radius: 999px;
  background: #f1f3f9;
  object-fit: contain;
}

.about-grid--pdf .about-info-card--top img {
  width: 76px;
  height: 76px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.about-grid--pdf .about-info-card p {
  font-size: 1rem;
  line-height: 1.58;
}

.about-grid--pdf .about-cambridge-card {
  grid-row: auto;
  padding: 0;
}

.about-grid--pdf .about-cambridge-card img {
  width: 100%;
  max-width: none;
  border-radius: 8px;
}

.about-bottom-banner {
  width: min(1000px, calc(100% - 44px));
  margin-top: 8px;
}

.about-quote-card {
  display: none;
}

@media (max-width: 1280px) {
  .brand {
    min-width: 235px;
    gap: 10px;
  }

  .brand img {
    width: 56px;
    height: 50px;
  }

  .brand span {
    font-size: 1.55rem;
  }

  .about-page .brand {
    min-width: 235px;
  }
}

@media (max-width: 900px) {
  .about-grid.about-grid--pdf {
    width: min(720px, calc(100% - 34px));
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about-side-column {
    gap: 26px;
  }

  .about-grid--pdf .about-info-card--top {
    min-height: 0;
  }

  .about-bottom-banner {
    display: block;
  }

  .about-cta {
    display: none;
  }
}

@media (max-width: 820px) {
  .brand {
    min-width: 0;
  }

  .brand img {
    width: 48px;
    height: 42px;
  }

  .brand span {
    font-size: 1.35rem;
  }
}

@media (max-width: 560px) {
  .about-grid.about-grid--pdf {
    width: min(100% - 26px, 430px);
  }

  .about-grid--pdf .about-info-card,
  .about-grid--pdf .about-info-card--top {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .about-grid--pdf .about-info-card img,
  .about-grid--pdf .about-info-card--top img {
    width: 82px;
    height: 82px;
    justify-self: start;
    padding: 12px;
    border-radius: 999px;
    background: #f1f3f9;
  }

  .about-grid--pdf .about-info-card p {
    font-size: .96rem;
  }

  .brand span {
    display: inline-block;
    font-size: clamp(1.05rem, 6vw, 1.22rem);
  }
}

/* Jóvenes / Teens page aligned to supplied layout. */
.jovenes-layout {
  --jovenes-frame: clamp(24px, 4vw, 56px);
  display: grid;
  gap: clamp(18px, 2.2vw, 28px);
  width: min(1000px, calc(100% - var(--jovenes-frame)));
  margin: clamp(18px, 2.4vw, 30px) auto clamp(34px, 4vw, 54px);
}

.jovenes-hero,
.jovenes-benefits-banner {
  width: 100%;
  height: auto;
  display: block;
}

.jovenes-content-grid {
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(420px, 1fr);
  align-items: center;
  column-gap: clamp(22px, 3vw, 42px);
  row-gap: clamp(14px, 1.6vw, 18px);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.jovenes-round-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jovenes-copy-list,
.jovenes-image-stack {
  display: grid;
}

.jovenes-copy-list {
  gap: clamp(18px, 3vw, 36px);
  align-content: space-between;
  min-height: 100%;
}

.jovenes-copy-card {
  display: grid;
  grid-template-columns: clamp(74px, 7vw, 92px) 1fr;
  align-items: start;
  gap: clamp(18px, 2vw, 28px);
  padding: 0;
}

.jovenes-copy-card h2 {
  margin: 0 0 10px;
  color: #08275a;
  font-size: clamp(1.18rem, 1.55vw, 1.55rem);
  line-height: 1.12;
}

.jovenes-copy-card p {
  max-width: none;
  margin: 0;
  color: #08275a;
  font-size: clamp(.96rem, 1.15vw, 1.12rem);
  line-height: 1.6;
}

.jovenes-copy-card:nth-of-type(2) h2 {
  color: #ff5a1f;
}

.jovenes-round-icon {
  display: grid;
  place-items: center;
  width: clamp(74px, 7vw, 92px);
  height: clamp(74px, 7vw, 92px);
  border-radius: 999px;
}

.jovenes-round-icon--blue {
  color: #1333c5;
  background: #eef1ff;
}

.jovenes-round-icon--orange {
  color: #ff5a1f;
  background: #fff1e9;
}

.jovenes-round-icon--green {
  color: #13804a;
  background: #eefaf3;
}

.jovenes-round-icon--purple {
  color: #5d38db;
  background: #f2efff;
}

.jovenes-image-stack {
  gap: clamp(12px, 1.5vw, 18px);
  align-self: center;
}

.jovenes-image-stack img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 24px 24px;
}

.jovenes-detail-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 24px 24px;
  align-self: center;
  transform: translateY(clamp(42px, 4.5vw, 58px));
}

.jovenes-quote-banner {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: clamp(18px, 2vw, 24px);
  border-radius: 10px;
  background: #08275a;
  color: #fff;
  text-align: center;
}

.jovenes-quote-banner strong {
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
}

.jovenes-quote-banner span {
  color: #ff7a1a;
  font-size: clamp(1.1rem, 1.45vw, 1.45rem);
  font-weight: 900;
}

@media (max-width: 900px) {
  .jovenes-layout {
    width: min(760px, calc(100% - 28px));
  }

  .jovenes-content-grid {
    grid-template-columns: 1fr;
    gap: clamp(18px, 3.2vw, 26px);
  }

  .jovenes-detail-image:not(:last-of-type) {
    margin-bottom: clamp(10px, 2vw, 18px);
  }

  .jovenes-detail-image {
    width: min(100%, 620px);
    margin-inline: auto;
    justify-self: center;
    transform: none;
  }

  .jovenes-copy-card p {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .jovenes-copy-card {
    grid-template-columns: clamp(62px, 18vw, 74px) 1fr;
    gap: 14px;
  }

  .jovenes-round-icon {
    width: clamp(62px, 18vw, 74px);
    height: clamp(62px, 18vw, 74px);
  }

  .jovenes-copy-card h2 {
    font-size: 1.05rem;
  }

  .jovenes-copy-card p {
    font-size: .94rem;
    line-height: 1.55;
  }
}

/* Kids / Cursos > Niños */
.kids-page {
  background: #fff;
}

.kids-hero,
.kids-benefits,
.kids-main,
.kids-bottom-banner,
.kids-cta {
  width: min(1000px, calc(100% - 48px));
  margin-inline: auto;
}

.kids-hero {
  padding: 22px 0 18px;
}

.kids-hero img,
.kids-benefits img,
.kids-bottom-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.kids-hero img {
  border-radius: 0;
}

.kids-benefits {
  padding: 10px 0 28px;
}

.kids-detail {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 430px 500px;
  justify-content: center;
  align-items: stretch;
  gap: 48px;
  padding: 4px 0 28px;
}

.kids-detail__text {
  display: grid;
  gap: 30px;
}

.kids-detail-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 22px;
  align-items: start;
}

.kids-detail-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3f5fb;
}

.kids-detail-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.kids-detail-item h2 {
  margin: 0 0 10px;
  color: #06105f;
  font-size: 1.12rem;
  line-height: 1.2;
}

.kids-detail-item p {
  margin: 0 0 10px;
  color: #071066;
  font-size: .92rem;
  line-height: 1.55;
}

.kids-detail-item strong {
  font-weight: 900;
}

.kids-detail__images {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 14px;
  height: 100%;
  min-height: 100%;
}

.kids-detail__images img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 7px;
  object-fit: cover;
}

.kids-detail__images img:nth-child(3) {
  object-position: center;
}

.kids-detail__images img:nth-child(4) {
  object-fit: cover;
  object-position: center;
}

.kids-bottom-banner {
  padding: 4px 0 34px;
}

.kids-bottom-banner img {
  border-radius: 22px;
}

.kids-cta {
  padding: 0 0 42px;
  text-align: center;
}

.kids-cta .btn {
  min-height: 58px;
  padding-inline: 34px;
  border-radius: 8px;
  font-size: .92rem;
}

@media (max-width: 1280px) {
  .kids-hero,
  .kids-benefits,
  .kids-main,
  .kids-detail,
  .kids-bottom-banner,
  .kids-cta {
    width: min(1000px, calc(100% - 34px));
  }

  .kids-detail {
    grid-template-columns: minmax(0, 430px) minmax(0, 500px);
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .kids-hero,
  .kids-benefits,
  .kids-main,
  .kids-detail,
  .kids-bottom-banner,
  .kids-cta {
    width: min(100% - 24px, 620px);
  }

  .kids-hero {
    padding-top: 14px;
  }

  .kids-hero img,
  .kids-benefits img,
  .kids-bottom-banner img {
    border-radius: 14px;
  }

  .kids-benefits {
    overflow-x: auto;
    padding-bottom: 22px;
  }

  .kids-benefits img {
    min-width: 720px;
  }

  .kids-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .kids-detail-item {
    grid-template-columns: 72px 1fr;
    gap: 16px;
  }

  .kids-detail-icon {
    width: 62px;
    height: 62px;
  }

  .kids-detail-icon img {
    width: 40px;
    height: 40px;
  }

  .kids-detail__images img {
    height: auto;
    min-height: 132px;
  }
}

@media (max-width: 460px) {
  .kids-hero img {
    min-height: 0;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .kids-bottom-banner img {
    min-height: 170px;
    object-fit: cover;
    object-position: center;
  }
}

/* Little English Works */
.little-page {
  background: #fff;
}

.little-breadcrumbs,
.little-hero,
.little-detail,
.little-bottom-banner {
  width: min(1000px, calc(100% - 48px));
  margin-inline: auto;
}

.little-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  color: #071066;
  font-size: .72rem;
  font-weight: 700;
}

.little-breadcrumbs a {
  color: #071066;
}

.little-breadcrumbs strong {
  color: var(--orange);
}

.little-hero {
  padding: 6px 0 24px;
}

.little-hero img,
.little-bottom-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.little-detail {
  width: min(930px, calc(100% - 48px));
  display: grid;
  gap: 14px;
  padding: 0 0 34px;
}

.little-detail-row {
  display: grid;
  grid-template-columns: 88px 300px 430px;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  min-height: 104px;
}

.little-detail-icon {
  width: 78px;
  height: 78px;
  align-self: center;
  justify-self: center;
  object-fit: contain;
}

.little-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.little-detail-copy p {
  margin: 0;
  color: #071066;
  font-size: .93rem;
  line-height: 1.5;
}

.little-detail-copy strong {
  font-weight: 900;
}

.orange-text {
  color: var(--orange);
}

.little-detail-photo {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  min-height: 104px;
}

.little-detail-row:nth-child(1) .little-detail-photo {
  object-position: center 42%;
}

.little-detail-row:nth-child(3) .little-detail-photo,
.little-detail-row:nth-child(6) .little-detail-photo {
  object-position: 72% center;
}

.little-detail-photo--contain {
  object-fit: contain;
  background: #fff;
  border: 1px solid #d8deee;
}

.little-bottom-banner {
  padding: 2px 0 30px;
}

.little-bottom-banner img {
  border-radius: 14px;
}

@media (max-width: 1280px) {
  .little-detail {
    width: min(930px, calc(100% - 34px));
  }

  .little-detail-row {
    grid-template-columns: 78px minmax(0, 300px) minmax(0, 430px);
    gap: 22px;
  }

  .little-detail-icon {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 840px) {
  .little-hero,
  .little-detail,
  .little-bottom-banner,
  .little-breadcrumbs {
    width: min(100% - 24px, 680px);
  }

  .little-hero img {
    min-height: 0;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
    object-position: center;
  }

  .little-detail {
    grid-template-columns: 1fr;
  }

  .little-detail-row {
    grid-template-columns: 72px 1fr;
    gap: 16px;
  }

  .little-detail-photo {
    grid-column: 1 / -1;
    height: auto;
    min-height: 0;
  }

  .little-detail-icon {
    width: 62px;
    height: 62px;
  }

  .little-bottom-banner img {
    min-height: 180px;
    object-fit: cover;
    object-position: 58% center;
  }
}

@media (max-width: 480px) {
  .little-detail-copy p {
    font-size: .92rem;
  }
}

/* Home page exact scheme sizing */
.home-page .site-shell,
.home-page .home-shell,
.home-page .narrow-shell {
  width: min(1000px, calc(100% - 34px));
}

.home-page .topbar__inner {
  min-height: 38px;
}

.home-page .header-inner {
  height: 96px;
}

.home-page .brand {
  min-width: 360px;
}

.home-page .brand img {
  width: 70px;
  height: 62px;
}

.home-page .brand span {
  font-size: 1.58rem;
}

.home-page .main-nav a,
.home-page .main-nav button {
  font-size: .86rem;
  padding: 14px 14px;
}

.home-page .trial-button {
  font-size: .86rem;
  padding: 14px 24px;
}

.home-page .hero-home__grid {
  grid-template-columns: 38% 18% 44%;
  min-height: 285px;
}

.home-page .hero-poster {
  padding: 22px 20px;
  gap: 14px;
}

.home-page .hero-actions {
  gap: 18px;
}

.home-page .hero-actions a {
  display: block;
  width: 150px;
}

.home-page .hero-actions a:nth-child(2) {
  width: 170px;
}

.home-page .hero-actions img {
  width: 100%;
  height: auto;
}

.home-page .hero-cambridge {
  padding: 26px 10px;
  gap: 8px;
}

.home-page .home-carousel {
  height: 285px;
  min-height: 285px;
  overflow: hidden;
  background: #fff;
}

.home-page .carousel-track,
.home-page .carousel-slide {
  height: 100%;
}

.home-page .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home-page .features-strip .home-shell {
  width: min(1000px, calc(100% - 34px));
}

.home-page .feature-card {
  min-height: 92px;
  padding: 14px 22px;
  gap: 14px;
}

.home-page .feature-card img,
.home-page .feature-card:nth-child(4) img {
  width: 54px;
  height: 54px;
}

.home-page .feature-card .feature-icon {
  width: 54px;
  height: 54px;
  font-size: 2rem;
}

.home-page .feature-card h3 {
  font-size: .78rem;
}

.home-page .feature-card p {
  font-size: .72rem;
  line-height: 1.35;
}

.home-page .courses-section {
  padding: 18px 0 14px;
}

.home-page .section-title {
  margin-bottom: 12px;
}

.home-page .section-title h2 {
  font-size: 1.15rem;
}

.home-page .course-image-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-page .course-img-card {
  border-radius: 7px;
  box-shadow: none;
}

.home-cambridge-visual {
  padding: 8px 0 16px;
}

.home-cambridge-visual img,
.home-mini-icons-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.home-mini-icons-visual {
  padding: 0 0 18px;
}

.home-page .section.section-soft {
  padding: 18px 0;
}

.home-page .testimonials {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-page .testimonial {
  border-radius: 8px;
  padding: 14px 18px;
}

@media (max-width: 900px) {
  .home-page .hero-home__grid {
    grid-template-columns: 1fr;
  }

  .home-page .hero-cambridge {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .home-page .home-carousel {
    height: min(58vw, 430px);
    min-height: 260px;
  }

  .home-page .feature-grid,
  .home-page .course-image-grid,
  .home-page .testimonials {
    grid-template-columns: 1fr;
  }

  .home-page .hero-actions a,
  .home-page .hero-actions a:nth-child(2) {
    width: min(240px, 100%);
  }
}

/* Home full-width PDF frame: keep only a small side margin on wide screens. */
.home-page {
  --home-frame: clamp(24px, 4vw, 76px);
  --home-max: 1828px;
}

.home-page .site-shell,
.home-page .home-shell,
.home-page .narrow-shell,
.home-page .features-strip .home-shell {
  width: min(var(--home-max), calc(100% - var(--home-frame)));
}

.home-page .hero-home__grid {
  grid-template-columns: 38% 18% 44%;
  min-height: clamp(330px, 25vw, 440px);
}

.home-page .home-carousel {
  height: clamp(330px, 25vw, 440px);
  min-height: 330px;
}

.home-page .hero-poster {
  padding-inline: clamp(28px, 4vw, 70px) clamp(18px, 2vw, 36px);
}

.home-page .hero-actions a {
  width: clamp(170px, 12vw, 230px);
}

.home-page .hero-actions a:nth-child(2) {
  width: clamp(200px, 15vw, 280px);
}

.home-page .features-strip {
  border-top: 1px solid #e5eaf2;
  border-bottom: 1px solid #e5eaf2;
}

.home-page .feature-card {
  min-height: 140px;
  padding: 22px clamp(26px, 3.2vw, 64px);
}

.home-page .feature-card h3 {
  font-size: clamp(.9rem, .86vw, 1.06rem);
}

.home-page .feature-card p {
  font-size: clamp(.82rem, .78vw, .98rem);
}

.home-page .courses-section {
  padding: 28px 0 18px;
}

.home-page .section-title h2 {
  font-size: clamp(1.35rem, 1.6vw, 2rem);
}

.home-page .course-image-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.2vw, 24px);
  align-items: start;
}

.home-page .course-img-card {
  border: 1px solid #e5eaf2;
  box-shadow: 0 8px 24px rgba(6, 38, 90, .07);
}

.home-page .course-img-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.home-page .home-cambridge-visual,
.home-page .home-mini-icons-visual,
.home-page .section.section-soft {
  padding-inline: 0;
}

.home-page .home-cambridge-visual img,
.home-page .home-mini-icons-visual img {
  border-radius: 8px;
}

.home-page .section.section-soft .home-shell {
  border-top: 1px solid #e5eaf2;
  padding-top: 18px;
}

.home-page .testimonials {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 40px);
}

.home-page .testimonial {
  min-height: 126px;
}

.home-page .footer .site-shell {
  width: min(var(--home-max), calc(100% - var(--home-frame)));
}

.home-page .footer-top {
  padding: 16px 0;
}

.home-page .footer-grid {
  grid-template-columns: 1.4fr 1.35fr .75fr 1fr;
  padding: 16px 0;
}

.home-page .legal-row {
  display: flex;
}

.footer-credit {
  margin-top: 14px !important;
  font-size: .9rem;
  color: #d7e3f5;
}

.footer-credit a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wa-float {
  display: grid !important;
  place-items: center;
  background: #25d366 !important;
  color: #fff;
}

.wa-float svg {
  width: 30px;
  height: 30px;
  display: block;
  fill: currentColor;
}

.home-page .wa-float {
  display: grid !important;
}

.home-page .to-top {
  display: none;
}

@media (max-width: 1100px) {
  .home-page .course-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .feature-grid,
  .home-page .testimonials,
  .home-page .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .home-page .hero-home__grid {
    grid-template-columns: 1fr;
  }

  .home-page .home-carousel {
    height: min(64vw, 430px);
    min-height: 260px;
  }

  .home-page .feature-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .home-page {
    --home-frame: 24px;
  }

  .home-page .feature-grid,
  .home-page .course-image-grid,
  .home-page .testimonials,
  .home-page .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared wide layout: all pages follow the homepage side frame. */
body {
  --site-frame: clamp(24px, 4vw, 76px);
  --site-wide: 1828px;
}

body:not(.home-page) .site-shell,
body:not(.home-page) .narrow-shell {
  width: min(var(--site-wide), calc(100% - var(--site-frame)));
}

body:not(.home-page) .page-hero-grid,
body:not(.home-page) .content-grid,
body:not(.home-page) .contact-main {
  gap: clamp(28px, 3vw, 58px);
}

body:not(.home-page) .quick-cards,
body:not(.home-page) .panel-grid,
body:not(.home-page) .contact-info-grid {
  gap: clamp(14px, 1.4vw, 28px);
}

body:not(.home-page) .legal-content {
  width: min(1200px, calc(100% - var(--site-frame)));
}

body:not(.home-page) .hero-img img {
  height: clamp(360px, 28vw, 560px);
}

.about-grid.about-grid--pdf,
.about-bottom-banner {
  width: min(1500px, calc(100% - var(--site-frame)));
}

.about-grid.about-grid--pdf {
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
}

.kids-hero,
.kids-benefits,
.kids-detail,
.kids-bottom-banner,
.kids-cta {
  width: min(1500px, calc(100% - var(--site-frame)));
}

.kids-detail {
  grid-template-columns: minmax(420px, .9fr) minmax(520px, 1.1fr);
}

.little-breadcrumbs,
.little-hero,
.little-bottom-banner {
  width: min(1500px, calc(100% - var(--site-frame)));
}

.little-detail {
  width: min(1180px, calc(100% - var(--site-frame)));
}

.little-detail-row {
  grid-template-columns: 96px minmax(310px, .9fr) minmax(480px, 1.25fr);
}

@media (max-width: 900px) {
  body {
    --site-frame: 24px;
  }

  body:not(.home-page) .page-hero-grid,
  body:not(.home-page) .content-grid,
  body:not(.home-page) .contact-main,
  .kids-detail,
  .little-detail-row,
  .about-grid.about-grid--pdf {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .hero-img img {
    height: auto;
    min-height: 280px;
  }
}

/* Kids page: keep a comfortable reading scale instead of the wide homepage zoom. */
.kids-page .kids-hero,
.kids-page .kids-benefits,
.kids-page .kids-detail,
.kids-page .kids-bottom-banner,
.kids-page .kids-cta {
  width: min(1080px, calc(100% - var(--site-frame)));
}

.kids-page .kids-hero {
  padding: 18px 0 14px;
}

.kids-page .kids-benefits {
  padding: 8px 0 22px;
}

.kids-page .kids-detail {
  grid-template-columns: minmax(360px, 420px) minmax(430px, 500px);
  column-gap: 36px;
  row-gap: 18px;
  padding-bottom: 24px;
  align-items: center;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.kids-page .kids-detail__text {
  gap: 24px;
}

.kids-page .kids-detail-item {
  grid-template-columns: 76px 1fr;
  gap: 18px;
}

.kids-page .kids-detail-icon {
  width: 82px;
  height: 82px;
}

.kids-page .kids-detail-icon img {
  width: 58px;
  height: 58px;
}

.kids-page .kids-detail-item h2 {
  font-family: inherit;
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.kids-page .kids-detail-item p {
  font-family: inherit;
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.kids-page .kids-detail__images {
  grid-template-rows: none;
  align-content: start;
  gap: 18px;
  height: auto;
  min-height: 0;
}

.kids-page .kids-detail__images img {
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  background: #fff;
}

.kids-page .kids-detail-image {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  border-radius: 7px;
  object-fit: contain;
  object-position: center center;
  background: #fff;
}

.kids-page .kids-bottom-banner {
  padding-bottom: 26px;
}

.kids-page .kids-cta {
  padding-bottom: 34px;
}

.kids-page .kids-cta .btn {
  min-height: 50px;
  font-size: .84rem;
}

@media (max-width: 900px) {
  .kids-page .kids-hero,
  .kids-page .kids-benefits,
  .kids-page .kids-detail,
  .kids-page .kids-bottom-banner,
  .kids-page .kids-cta {
    width: min(680px, calc(100% - 24px));
  }

  .kids-page .kids-detail {
    grid-template-columns: 1fr;
    gap: clamp(18px, 3vw, 26px);
    margin-inline: auto;
  }

  .kids-page .kids-detail-image:not(:last-of-type) {
    margin-bottom: clamp(12px, 2.5vw, 22px);
  }

  .kids-page .kids-detail-image {
    width: min(100%, 620px);
    margin-inline: auto;
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .kids-page .kids-detail-item {
    grid-template-columns: 62px 1fr;
    gap: 14px;
  }

  .kids-page .kids-detail-icon {
    width: 66px;
    height: 66px;
  }

  .kids-page .kids-detail-icon img {
    width: 46px;
    height: 46px;
  }

  .kids-page .kids-detail-item h2 {
    font-size: 1.08rem;
  }

  .kids-page .kids-detail-item p {
    font-size: .92rem;
    line-height: 1.55;
  }
}

/* Home feature icons: use real line icons instead of cropped image thumbnails. */
.home-page .feature-card .feature-icon,
.home-page .feature-card .feature-icon--line {
  width: clamp(68px, 4.8vw, 92px);
  height: clamp(68px, 4.8vw, 92px);
  font-size: 0;
  flex: 0 0 clamp(68px, 4.8vw, 92px);
}

/* Home course row and lower Cambridge band final sizing. */
.home-page .courses-section .home-shell {
  width: min(1760px, calc(100% - var(--home-frame)));
}

.home-page .course-image-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.15vw, 22px);
  align-items: stretch;
}

.home-page .course-img-card {
  height: clamp(190px, 13vw, 245px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.home-page .course-img-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-page .home-cambridge-visual .home-shell,
.home-page .home-mini-icons-visual .home-shell {
  width: min(1320px, calc(100% - var(--home-frame)));
}

.home-page .home-cambridge-visual {
  padding: 24px 0 12px;
}

.home-page .home-mini-icons-visual {
  padding: 0 0 26px;
}

.home-page .home-cambridge-visual img,
.home-page .home-mini-icons-visual img {
  width: 100%;
  height: auto;
  box-shadow: none;
}

.home-page .home-cambridge-compact {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .95fr);
  gap: 18px;
  align-items: stretch;
}

.home-page .home-cambridge-crop {
  height: clamp(210px, 16vw, 285px);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.home-page .home-cambridge-crop img {
  width: 100%;
  height: auto;
  object-fit: initial;
}

.home-page .home-cambridge-levels {
  width: 100%;
  height: clamp(210px, 16vw, 285px) !important;
  object-fit: contain;
  align-self: center;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 1100px) {
  .home-page .course-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .course-img-card {
    height: auto;
    min-height: 0;
  }

  .home-page .course-img-card img {
    height: auto;
  }

  .home-page .home-cambridge-compact {
    grid-template-columns: 1fr;
  }

  .home-page .home-cambridge-crop,
  .home-page .home-cambridge-levels {
    height: auto !important;
  }

  .home-page .home-cambridge-crop img {
    height: auto;
  }
}

@media (max-width: 620px) {
  .home-page .course-image-grid {
    grid-template-columns: 1fr;
  }
}

/* Home course cards readability refinement: text is embedded in the PNG cards. */
.home-page .courses-section {
  padding: 38px 0 30px;
}

.home-page .courses-section .home-shell {
  width: min(1880px, calc(100% - 24px));
}

.home-page .courses-section .section-title {
  margin-bottom: 24px;
}

.home-page .course-image-grid {
  gap: clamp(10px, .85vw, 16px);
}

.home-page .course-img-card {
  aspect-ratio: 1.34;
  height: auto;
}

.home-page .course-img-card img {
  object-fit: fill;
}

@media (max-width: 1100px) {
  .home-page .courses-section {
    padding: 30px 0 24px;
  }

  .home-page .courses-section .home-shell {
    width: min(720px, calc(100% - 24px));
  }

  .home-page .course-img-card {
    height: auto;
    aspect-ratio: auto;
  }

  .home-page .course-img-card img {
    object-fit: contain;
  }
}

/* Home course cards rebuilt as real content: equal photos and outline buttons. */
.home-page .courses-section:not(.courses-section--html) .course-image-grid {
  display: none;
}

.home-page .courses-section:not(.courses-section--html) {
  padding-bottom: 8px;
}

.home-page .courses-section--html {
  padding: 0 0 34px;
}

.home-page .courses-section--html .home-shell {
  width: min(1880px, calc(100% - 24px));
}

.home-page .course-stage-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, .9vw, 18px);
  align-items: stretch;
}

.home-page .course-stage-card {
  --stage-color: #0a47ff;
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: stretch;
  gap: 0;
  min-height: clamp(260px, 15vw, 306px);
  padding: 8px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(7, 16, 102, .06);
  color: #071066;
  text-decoration: none;
  overflow: hidden;
}

.home-page .course-stage-card--pink { --stage-color: #f0144b; }
.home-page .course-stage-card--green { --stage-color: #0b7c2e; }
.home-page .course-stage-card--blue { --stage-color: #0a47ff; }
.home-page .course-stage-card--orange { --stage-color: #ff4e12; }
.home-page .course-stage-card--purple { --stage-color: #5c26b8; }

.home-page .course-stage-card__photo {
  display: block;
  height: 100%;
  min-height: 230px;
  overflow: hidden;
  border-radius: 6px 0 0 6px;
  background: #f7f9fc;
}

.home-page .course-stage-card__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.home-page .course-stage-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, .8vw, 16px);
  min-width: 0;
  padding: clamp(14px, 1vw, 20px);
  border: 1px solid color-mix(in srgb, var(--stage-color) 22%, #e8edf5);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: linear-gradient(90deg, rgba(255,255,255,.98), #fff);
}

.home-page .course-stage-card__heading {
  display: grid;
  grid-template-columns: clamp(34px, 2.4vw, 46px) 1fr;
  align-items: center;
  gap: 10px;
  color: var(--stage-color);
  font-weight: 900;
  font-size: clamp(1.02rem, .92vw, 1.22rem);
  line-height: 1.18;
}

.home-page .course-stage-card__icon {
  width: clamp(34px, 2.4vw, 46px);
  height: clamp(34px, 2.4vw, 46px);
  border: 3px solid currentColor;
  border-radius: 10px;
  opacity: .95;
}

.home-page .course-stage-card--green .course-stage-card__icon,
.home-page .course-stage-card--pink .course-stage-card__icon {
  border-radius: 50%;
}

.home-page .course-stage-card--blue .course-stage-card__icon {
  border-radius: 2px 2px 10px 10px;
  transform: skewX(-8deg);
}

.home-page .course-stage-card--purple .course-stage-card__icon {
  border-radius: 4px;
}

.home-page .course-stage-card__text {
  color: #111;
  font-size: clamp(.86rem, .72vw, .98rem);
  line-height: 1.55;
}

.home-page .course-stage-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 14px;
  border: 2px solid var(--stage-color);
  border-radius: 5px;
  color: var(--stage-color);
  background: #fff;
  font-size: clamp(.82rem, .7vw, .95rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

@media (max-width: 1380px) {
  .home-page .course-stage-card {
    grid-template-columns: 42% 58%;
    min-height: 250px;
  }

  .home-page .course-stage-card__body {
    padding: 12px;
  }
}

@media (max-width: 1100px) {
  .home-page .course-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .course-stage-card {
    min-height: 260px;
    aspect-ratio: auto;
  }
}

@media (max-width: 620px) {
  .home-page .course-stage-grid {
    grid-template-columns: 1fr;
  }

  .home-page .course-stage-card {
    grid-template-columns: 40% 60%;
  }
}

/* Restore the original image-based course cards requested by the client. */
.home-page .courses-section:not(.courses-section--html) .course-image-grid {
  display: grid;
}

.home-page .courses-section--html {
  display: none;
}

/* Adults page from provided PDF layout. */
.adultos-page {
  background: #fff;
}

.adultos-layout {
  --adultos-frame: clamp(18px, 2.2vw, 40px);
  --adultos-shell: min(1000px, calc(100% - var(--adultos-frame)));
  padding-bottom: 30px;
}

.adultos-breadcrumbs,
.adultos-hero,
.adultos-split,
.adultos-content,
.adultos-seniors,
.adultos-banner {
  width: var(--adultos-shell);
  margin-inline: auto;
}

.adultos-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 8px;
  color: #071066;
  font-size: .78rem;
  font-weight: 800;
}

.adultos-breadcrumbs a {
  color: #071066;
  text-decoration: none;
}

.adultos-breadcrumbs strong {
  color: var(--orange);
}

.adultos-hero {
  padding: 0 0 clamp(18px, 2vw, 30px);
}

.adultos-hero img,
.adultos-split img,
.adultos-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}

.adultos-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
  align-items: stretch;
  padding: 0 0 clamp(18px, 2vw, 30px);
}

.adultos-split img {
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.adultos-banner {
  padding: 0 0 clamp(18px, 2vw, 30px);
}

.adultos-banner a {
  display: block;
}

.adultos-content {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  column-gap: clamp(26px, 4vw, 58px);
  row-gap: clamp(22px, 2.6vw, 34px);
  align-items: center;
  padding: 0 0 clamp(34px, 4vw, 52px);
}

.adultos-info-item {
  display: grid;
  grid-template-columns: clamp(82px, 8vw, 108px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 26px);
  align-items: start;
}

.adultos-info-icon {
  width: clamp(70px, 7vw, 94px);
  height: clamp(70px, 7vw, 94px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  align-self: start;
}

.adultos-info-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.adultos-info-item h2 {
  margin: 0 0 12px;
  color: #071066;
  font-size: clamp(1.15rem, 1.45vw, 1.55rem);
  line-height: 1.18;
  font-weight: 900;
}

.adultos-info-item p {
  margin: 0;
  color: #071066;
  font-size: clamp(.9rem, .82vw, 1rem);
  line-height: 1.62;
  font-weight: 650;
}

.adultos-media-item {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.adultos-seniors {
  padding: 0 0 clamp(26px, 3vw, 40px);
}

.adultos-seniors img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}

.adultos-banner--cambridge img,
.adultos-banner--icons img,
.adultos-banner--cta img {
  box-shadow: none;
}

@media (max-width: 900px) {
  .adultos-layout {
    --adultos-frame: 24px;
  }

  .adultos-split {
    grid-template-columns: 1fr;
    width: min(680px, calc(100% - var(--adultos-frame)));
  }

  .adultos-content {
    grid-template-columns: 1fr;
    width: min(680px, calc(100% - var(--adultos-frame)));
    row-gap: clamp(18px, 3.4vw, 28px);
  }

  .adultos-info-item {
    grid-template-columns: 76px 1fr;
  }

  .adultos-info-icon {
    width: 68px;
    height: 68px;
  }

  .adultos-media-item {
    width: min(100%, 600px);
    margin-inline: auto;
  }

  .adultos-hero img {
    min-height: 0;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .adultos-banner--cambridge img,
  .adultos-banner--icons img,
  .adultos-banner--cta img {
    min-height: 130px;
    object-fit: contain;
    background: #fff;
  }
}

@media (max-width: 520px) {
  .adultos-layout {
    --adultos-frame: 18px;
  }

  .adultos-breadcrumbs {
    flex-wrap: wrap;
  }

  .adultos-hero img {
    min-height: 0;
    height: auto;
  }

  .adultos-info-item {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }

  .adultos-info-icon {
    width: 58px;
    height: 58px;
  }
}

/* Linguaskill page from provided PDF layout. */
.linguaskill-page {
  background: #fff;
}

.linguaskill-layout {
  --linguaskill-frame: clamp(18px, 2.2vw, 40px);
  --linguaskill-shell: min(1000px, calc(100% - var(--linguaskill-frame)));
  padding-bottom: 30px;
}

.linguaskill-breadcrumbs,
.linguaskill-hero,
.linguaskill-banner,
.linguaskill-ideal {
  width: var(--linguaskill-shell);
  margin-inline: auto;
}

.linguaskill-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 8px;
  color: #071066;
  font-size: .78rem;
  font-weight: 800;
}

.linguaskill-breadcrumbs a {
  color: #071066;
  text-decoration: none;
}

.linguaskill-breadcrumbs strong {
  color: var(--orange);
}

.linguaskill-hero,
.linguaskill-banner,
.linguaskill-ideal {
  padding-bottom: clamp(18px, 2.5vw, 30px);
}

.linguaskill-hero img,
.linguaskill-banner img,
.linguaskill-ideal img {
  display: block;
  width: 100%;
  height: auto;
}

.linguaskill-ideal {
  width: min(620px, calc(100% - var(--linguaskill-frame)));
}

.linguaskill-banner--bottom a {
  display: block;
}

.linguaskill-banner--bottom {
  padding-top: clamp(4px, 1vw, 10px);
}

@media (max-width: 900px) {
  .linguaskill-layout {
    --linguaskill-frame: 24px;
  }

  .linguaskill-hero img {
    min-height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
  }

  .linguaskill-banner--why img,
  .linguaskill-banner--eval img,
  .linguaskill-banner--bottom img {
    min-height: 150px;
    object-fit: contain;
  }
}

@media (max-width: 520px) {
  .linguaskill-layout {
    --linguaskill-frame: 18px;
  }

  .linguaskill-breadcrumbs {
    flex-wrap: wrap;
  }
}

/* Official exams page from provided PDF layout. */
.oficiales-page {
  background: #fff;
}

.oficiales-layout {
  --oficiales-frame: clamp(18px, 2.2vw, 40px);
  --oficiales-shell: min(1260px, calc(100% - var(--oficiales-frame)));
  padding-bottom: 30px;
}

.oficiales-breadcrumbs,
.oficiales-hero,
.oficiales-split,
.oficiales-banner {
  width: var(--oficiales-shell);
  margin-inline: auto;
}

.oficiales-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 8px;
  color: #071066;
  font-size: .78rem;
  font-weight: 800;
}

.oficiales-breadcrumbs a {
  color: #071066;
  text-decoration: none;
}

.oficiales-breadcrumbs strong {
  color: var(--orange);
}

.oficiales-hero {
  padding-bottom: clamp(28px, 3vw, 42px);
}

.oficiales-split {
  padding-bottom: clamp(26px, 2.6vw, 38px);
}

.oficiales-banner {
  padding-bottom: clamp(20px, 2.2vw, 30px);
}

.oficiales-hero img,
.oficiales-split img,
.oficiales-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.oficiales-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2vw, 26px);
  align-items: start;
  width: min(1100px, calc(100% - var(--oficiales-frame)));
}

.oficiales-split--exams img {
  width: 100%;
}

.oficiales-banner--skills {
  padding-top: 0;
}

.oficiales-banner--cta a {
  display: block;
}

@media (max-width: 900px) {
  .oficiales-layout {
    --oficiales-frame: 24px;
  }

  .oficiales-split {
    grid-template-columns: 1fr;
    width: min(900px, calc(100% - var(--oficiales-frame)));
  }

  .oficiales-hero img {
    min-height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
  }

  .oficiales-banner img {
    min-height: 140px;
    object-fit: contain;
  }
}

@media (max-width: 520px) {
  .oficiales-layout {
    --oficiales-frame: 18px;
  }

  .oficiales-breadcrumbs {
    flex-wrap: wrap;
  }
}

/* Contact page exact visual layout */
.contact-page {
  background: #f6f8fb;
}

.contact-page .site-shell,
.contact-page .narrow-shell,
.contact-shell {
  width: min(1100px, calc(100% - 34px));
  margin-inline: auto;
}

.contact-page .site-header {
  box-shadow: 0 5px 18px rgba(6, 38, 90, .06);
}

.contact-page .main-nav .is-active {
  color: var(--orange);
  background: transparent;
  border-bottom: 3px solid var(--orange);
  border-radius: 0;
}

.contact-hero-v2 {
  background: #fff;
  padding: 20px 0 0;
}

.contact-hero-v2__grid {
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  align-items: stretch;
  gap: 24px;
}

.contact-hero-v2__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0 30px 8px;
}

.contact-hero-v2 h1 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: .94;
  letter-spacing: 0;
}

.contact-hero-v2 h1 span,
.contact-form-v2 h2 span,
.contact-help-card h2 span,
.contact-final-cta h2 span {
  color: var(--orange);
}

.contact-hero-v2__copy > p {
  max-width: 460px;
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.5;
}

.contact-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-action {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 12px 18px;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: .72rem;
  line-height: 1.15;
  font-weight: 900;
}

.contact-action span {
  margin-top: 3px;
  font-size: .67rem;
  font-weight: 700;
  text-transform: none;
}

.contact-action--whatsapp {
  background: #13b66b;
  color: #fff;
}

.contact-action--level {
  background: #fff;
  color: var(--orange);
  border: 2px solid #ffcab8;
}

.contact-note {
  margin-top: 14px !important;
  padding-left: 28px;
  position: relative;
  font-size: .78rem !important;
  color: #314668 !important;
}

.contact-note::before {
  content: "↳";
  position: absolute;
  left: 4px;
  top: -1px;
}

.contact-hero-v2__image {
  min-height: 350px;
  overflow: hidden;
  border-radius: 0 0 0 12px;
}

.contact-hero-v2__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.contact-proof {
  background: #fff;
  padding: 14px 0 24px;
}

.contact-proof__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(6, 38, 90, .07);
  overflow: hidden;
}

.contact-proof article {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-right: 1px solid #e3e9f2;
}

.contact-proof article:last-child {
  border-right: 0;
}

.contact-proof span,
.contact-info-v2 > article > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  border: 1px solid #cfd9ea;
  flex: 0 0 auto;
  font-size: 1.35rem;
}

.contact-proof h2,
.contact-info-v2 h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: .92rem;
}

.contact-proof p,
.contact-info-v2 p,
.contact-info-v2 small {
  margin: 0;
  color: #425579;
  font-size: .78rem;
  line-height: 1.35;
}

.contact-body {
  padding: 18px 0 18px;
}

.contact-main-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 24px;
  align-items: stretch;
}

.contact-form-v2,
.contact-help-card,
.contact-info-v2,
.contact-final-cta__inner {
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(6, 38, 90, .07);
}

.contact-form-v2 {
  padding: 28px;
}

.contact-form-v2 h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 1.25rem;
}

.contact-page .form-grid {
  gap: 14px;
}

.contact-page .field label {
  color: var(--navy);
  font-size: .78rem;
}

.contact-page .field input,
.contact-page .field select,
.contact-page .field textarea {
  border-radius: 5px;
  min-height: 42px;
  border-color: #d9e1ee;
  font-size: .86rem;
}

.contact-page .field textarea {
  min-height: 96px;
}

.contact-page .policy label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #65738d;
  font-weight: 600;
}

.contact-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff7226, #ff3d10);
  color: #fff;
  text-transform: uppercase;
  font-weight: 900;
  cursor: pointer;
}

.contact-security {
  margin: 12px 0 0;
  color: #7a879d;
  font-size: .78rem;
}

.contact-help-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--navy);
}

.contact-help-card__top {
  position: relative;
  min-height: 330px;
  padding: 24px;
  color: #fff;
  overflow: hidden;
}

.contact-help-card__top h2 {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.contact-help-card__top img {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 72%;
  object-fit: cover;
  object-position: center 68%;
}

.contact-help-card__top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,38,90,.94), rgba(6,38,90,.18) 42%, rgba(6,38,90,.04));
}

.contact-help-card__bottom {
  position: relative;
  z-index: 2;
  padding: 22px 24px 26px;
  color: #fff;
  background: var(--navy);
}

.contact-help-card__bottom h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.contact-help-card__bottom p {
  margin: 0 0 18px;
  color: #dbe7f8;
  font-size: .9rem;
}

.contact-help-card__bottom a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  border-radius: 8px;
  background: #13b66b;
  color: #fff;
  text-transform: uppercase;
  font-weight: 900;
  font-size: .78rem;
}

.contact-info-v2 {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.contact-info-v2 article {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-right: 1px solid #e3e9f2;
}

.contact-info-v2 article:last-child {
  border-right: 0;
}

.contact-info-v2 a {
  display: inline-block;
  margin-top: 6px;
  color: var(--orange);
  font-weight: 900;
  font-size: .76rem;
}

.contact-final-cta {
  padding: 12px 0 20px;
}

.contact-final-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 34px;
  background: var(--navy);
  color: #fff;
}

.contact-final-cta h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.18;
}

.contact-final-cta p {
  margin: 0;
  color: #dbe7f8;
}

.contact-final-actions {
  display: grid;
  gap: 12px;
  min-width: 300px;
}

.contact-final-actions .contact-action--level {
  background: #ff5a1f;
  color: #fff;
  border-color: #ff5a1f;
}

.contact-trust-strip {
  padding: 0 0 18px;
}

.contact-trust-strip .contact-shell {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  overflow: hidden;
}

.contact-trust-strip span {
  padding: 13px 18px;
  color: var(--navy);
  font-size: .8rem;
  font-weight: 800;
  border-right: 1px solid #e3e9f2;
}

.contact-trust-strip span:last-child {
  border-right: 0;
}

@media (max-width: 980px) {
  .contact-hero-v2__grid,
  .contact-main-v2,
  .contact-final-cta__inner {
    grid-template-columns: 1fr;
  }

  .contact-hero-v2__copy {
    padding-left: 0;
  }

  .contact-hero-v2__image {
    min-height: 320px;
    border-radius: 12px;
  }

  .contact-proof__grid,
  .contact-info-v2,
  .contact-trust-strip .contact-shell {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-final-actions {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .contact-page .site-shell,
  .contact-page .narrow-shell,
  .contact-shell {
    width: min(100% - 24px, 520px);
  }

  .contact-hero-v2 h1 {
    font-size: 2.65rem;
  }

  .contact-hero-actions,
  .contact-info-v2,
  .contact-proof__grid,
  .contact-trust-strip .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-action,
  .contact-proof article,
  .contact-info-v2 article,
  .contact-trust-strip span {
    border-right: 0;
  }

  .contact-page .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-page .field.full {
    grid-column: auto;
  }
}

/* Home carousel: show every carousel image complete and clear of the header. */
.home-page .hero-home {
  padding-top: clamp(16px, 2vw, 30px);
  border-top: 0;
}

.home-page .hero-home__grid {
  min-height: clamp(440px, 31vw, 570px);
  align-items: stretch;
}

.home-page .home-carousel {
  aspect-ratio: var(--carousel-ratio, 16 / 10);
  height: auto;
  min-height: 0;
  max-height: 570px;
  padding: clamp(10px, 1vw, 18px);
  border-left: 1px solid #eef2f7;
  background: #fff;
  overflow: hidden;
}

.home-page .carousel-track {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform: none !important;
  transition: none;
}

.home-page .carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease;
}

.home-page .carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-page .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 900px) {
  .home-page .hero-home {
    padding-top: 14px;
  }

  .home-page .home-carousel {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .home-page .home-carousel {
    padding: 8px;
  }
}

/* In Company English page from supplied PDF layout. */
.incompany-page {
  background: #fff;
}

.incompany-layout {
  --incompany-frame: clamp(18px, 2.3vw, 42px);
  --incompany-shell: min(1180px, calc(100% - var(--incompany-frame)));
  display: grid;
  gap: clamp(20px, 2.4vw, 34px);
  padding-bottom: clamp(34px, 4vw, 58px);
}

.incompany-breadcrumbs,
.incompany-hero,
.incompany-banner {
  width: var(--incompany-shell);
  margin-inline: auto;
}

.incompany-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  color: #071066;
  font-size: .78rem;
  font-weight: 800;
}

.incompany-breadcrumbs a {
  color: #071066;
  text-decoration: none;
}

.incompany-breadcrumbs strong {
  color: var(--orange);
}

.incompany-hero,
.incompany-banner img,
img.incompany-banner {
  display: block;
  height: auto;
}

.incompany-hero {
  width: min(1400px, calc(100% - var(--incompany-frame)));
}

img.incompany-banner {
  width: min(1000px, calc(100% - var(--incompany-frame)));
}

.incompany-hero,
.incompany-banner img,
img.incompany-banner {
  max-width: 100%;
}

.incompany-banner img {
  width: 100%;
}

.incompany-cta {
  display: block;
  width: min(1180px, calc(100% - var(--incompany-frame)));
}

@media (max-width: 900px) {
  .incompany-layout {
    --incompany-frame: 24px;
    gap: 22px;
  }

  .incompany-hero {
    min-height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
  }
}

@media (max-width: 560px) {
  .incompany-layout {
    --incompany-frame: 18px;
  }

  .incompany-breadcrumbs {
    flex-wrap: wrap;
  }
}

/* Final footer logo and credit adjustments. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer .footer-grid {
  grid-template-columns: 1.15fr 1.3fr .72fr 1.2fr;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand .footer-logo {
  width: clamp(76px, 5.2vw, 92px);
  height: auto;
  margin: 0;
  filter: none !important;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

.footer-brand span {
  color: #fff;
  font-family: "Kalam", "Segoe Print", "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  font-weight: 700;
  line-height: 1;
}

.footer .footer-grid > div:last-child {
  text-align: center;
  align-self: center;
}

.footer-script {
  font-family: "Caveat", "Segoe Script", "Segoe Print", cursive !important;
  font-weight: 700;
  font-size: clamp(2rem, 2.35vw, 3rem) !important;
  line-height: 1.05;
  white-space: nowrap;
  margin: 0 0 16px !important;
}

.footer-credit {
  font-size: clamp(.92rem, 1vw, 1.08rem);
  font-weight: 900;
  margin: 0 !important;
}

@media (max-width: 1060px) {
  .footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer .footer-grid > div:last-child {
    text-align: left;
  }

  .footer-script {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand .footer-logo {
    width: 70px;
  }

  .footer-script {
    font-size: 2rem !important;
  }
}

/* Little English Works: aligned rows using the new PDF image set. */
.little-page .little-hero,
.little-page .little-bottom-banner {
  width: min(1500px, calc(100% - var(--site-frame)));
}

.little-page .little-hero {
  padding: 8px 0 30px;
}

.little-page .little-detail {
  width: min(1180px, calc(100% - var(--site-frame)));
  gap: 22px;
  padding-bottom: 34px;
}

.little-page .little-detail-row {
  grid-template-columns: 90px minmax(340px, .92fr) minmax(500px, 1.08fr);
  gap: 26px;
  align-items: center;
  min-height: 0;
}

.little-page .little-detail-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  object-position: center center;
}

.little-page .little-detail-copy p {
  font-size: clamp(1.08rem, .98vw, 1.2rem);
  line-height: 1.56;
}

.little-page .little-detail-photo {
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 9px;
  object-fit: contain;
  object-position: center center;
  background: #fff;
}

.little-page .little-detail-photo--contain {
  padding: 10px 18px;
  border: 1px solid #d8deee;
}

@media (min-width: 1180px) {
  .little-page .little-detail {
    width: min(1200px, calc(100% - var(--site-frame)));
  }

  .little-page .little-detail-row {
    grid-template-columns: 92px minmax(360px, .92fr) minmax(520px, 1.08fr);
    min-height: 0;
  }

  .little-page .little-detail-photo {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .little-page .little-detail-row {
    grid-template-columns: 70px 1fr;
    gap: 16px;
    min-height: 0;
  }

  .little-page .little-detail-icon {
    width: 78px;
    height: 78px;
  }

  .little-page .little-detail-photo {
    grid-column: 1 / -1;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
  }

  .little-page .little-detail-photo--contain {
    aspect-ratio: auto;
  }
}

/* Full supplied banner artwork for contact and employment headers. */
.graphic-hero {
  padding: clamp(16px, 2.4vw, 30px) 0;
  margin-inline: auto;
}

.graphic-hero--contact {
  width: min(1000px, calc(100% - var(--site-frame)));
}

.graphic-hero--employment {
  width: min(1024px, calc(100% - var(--site-frame)));
}

.graphic-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.graphic-hero__canvas {
  position: relative;
}

.graphic-hero__hotspot {
  position: absolute;
  display: block;
  border-radius: 8px;
}

.graphic-hero__hotspot:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.graphic-hero__hotspot--whatsapp {
  left: 2.4%;
  top: 53.5%;
  width: 19.4%;
  height: 10%;
}

.graphic-hero__hotspot--level {
  left: 23.8%;
  top: 53.5%;
  width: 19.3%;
  height: 10%;
}

/* Employment page supplied artwork: preserve the approved composition. */
.employment-layout {
  width: min(1024px, calc(100% - var(--site-frame)));
  margin: clamp(16px, 2.4vw, 30px) auto clamp(22px, 3vw, 38px);
  display: grid;
  gap: 0;
}

.employment-layout img {
  display: block;
  width: 100%;
  height: auto;
}

.employment-layout__image-section,
.employment-layout__cta {
  position: relative;
}

.employment-layout__email-link,
.employment-layout__cta-link {
  position: absolute;
  display: block;
  border-radius: 8px;
}

.employment-layout__email-link {
  left: 54.6%;
  top: 71.4%;
  width: 43%;
  height: 22%;
}

.employment-layout__cta-link {
  left: 66.2%;
  top: 29%;
  width: 28.4%;
  height: 41%;
}

.employment-layout__email-link:focus-visible,
.employment-layout__cta-link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* Keep desktop/tablet artwork unchanged; mobile focuses its designed left panel. */
@media (max-width: 560px) {
  .employment-layout {
    width: calc(100% - 24px);
    margin-block: 12px 22px;
  }

  .little-page .little-hero img {
    height: clamp(220px, 66vw, 270px);
    min-height: 0;
    object-fit: cover;
    object-position: left center;
  }

  .kids-page .kids-hero img,
  .jovenes-page .jovenes-hero,
  .adultos-page .adultos-hero img {
    height: clamp(250px, 78vw, 325px);
    min-height: 0;
    object-fit: cover;
    object-position: left center;
  }
}

/* Keep every primary navigation item visible after adding Aula Virtual. */
@media (min-width: 821px) {
  .site-header .header-inner {
    gap: clamp(8px, .8vw, 16px);
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .main-nav {
    min-width: 0;
  }

  .site-header .main-nav ul {
    gap: clamp(0px, .18vw, 4px);
    flex-wrap: nowrap;
  }

  .site-header .main-nav a,
  .site-header .main-nav button {
    padding: 12px clamp(6px, .55vw, 10px);
    font-size: clamp(.68rem, .72vw, .82rem);
    white-space: nowrap;
  }

  .site-header .trial-button {
    flex: 0 0 auto;
    padding: 12px clamp(12px, 1vw, 18px);
    font-size: clamp(.68rem, .72vw, .8rem);
  }

  .home-page .brand {
    min-width: clamp(220px, 20vw, 320px);
  }
}
