/* design-v7.css: load AFTER home-v4.css. Every rule is scoped, so nothing else changes. */

#hero-v4,
#intro-v6,
#foot-v6 {
  --navy: #062a63;
  --navy-deep: #041d47;
  --teal: #07596f;
  --teal-light: #19627a;
  --cream: #fcf0df;
  --paper: #fff5e9;
  --mist: #e6ebf1;
  --ink: #14182b;
  --ink-soft: #444f6b;
  --steel: #8fb4c4;
  /* replaces ANY gold or yellow still left on the site */
  --gutter: clamp(18px, 4vw, 56px);
}

/* =========== 1. Hero card: a little wider, no Registan inside it =========== */
/* The card now spans the page minus the side gutters (up to 1600px). On a 1440px screen that is about 6% wider than before. */
#hero-v4 .hero-card {
  max-width: none;
  width: min(calc(100% - 2 * var(--gutter)), 1600px);
}

/* No picture inside the card: it keeps only its soft mist gradient and the light rosette pattern.
   (Antigravity: if the Registan inside the card is a different element or a background-image on .hero-card, delete it there.) */
#hero-v4 .hero-card>.hero-bg,
#hero-v4 .hero-card .hero-registan,
#hero-v4 .hero-card>img.registan {
  display: none !important;
}

/* =========== 2. Registan photo BEHIND the card (a real <img>, made by design-v7.js) =========== */
/* Needs assets/registan-bg.jpg (Unsplash, Hans-Jurgen Weinhardt). Falls back to assets/registan-hero.jpg.
   Tune: --reg-opacity (visibility), --reg-tint (navy wash). */
#hero-v4 {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  --reg-opacity: .38;
  --reg-tint: .22;
}

#hero-v4>*:not(.hv6-bg) {
  position: relative;
  z-index: 1;
}

#hero-v4>section,
#hero-v4>div:not(.hv6-bg):not(.hero-card),
#hero-v4>header {
  background: transparent !important;
}

.hv6-bg {
  position: absolute !important;
  z-index: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  top: -64px;
  bottom: -80px;
  overflow: hidden;
  pointer-events: none;
  background: var(--mist);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

.hv6-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: var(--reg-opacity);
  filter: grayscale(.6) saturate(.8) contrast(.92);
}

.hv6-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 42, 99, var(--reg-tint)), rgba(7, 89, 111, calc(var(--reg-tint)*.6)));
  mix-blend-mode: multiply;
}

.hv6-bg .hv6-miss {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 .8rem/1.4 var(--font-primary, sans-serif);
  color: var(--navy);
  opacity: .55;
  text-align: center;
}

@media (max-width: 900px) {
  .hv6-bg img {
    opacity: .3;
  }
}

/* The card is the star: a solid, calm panel above the photo, so its text and Davron's portrait always read clearly */
#hero-v4 .hero-card {
  background: linear-gradient(135deg, rgba(255, 247, 236, .97), rgba(232, 238, 244, .95)) !important;
  box-shadow: 0 24px 60px -28px rgba(6, 42, 99, .45), 0 0 0 1px rgba(6, 42, 99, .10);
}

/* =========== 3. Fade In/Out Greeting (#hv4Greet) Restored Inline =========== */
#hero-v4 .greet,
#hero-v4 #hv4Greet,
#hero-v4 .hv7-greet-badge {
  position: static !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 8px 12px !important;
  min-height: 2.2em !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
  background: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: auto;
  box-sizing: border-box;
  width: auto !important;
  white-space: normal !important;
}

#hero-v4 .greet-word {
  font-family: var(--serif) !important;
  font-size: 1.3rem !important;
  font-style: italic !important;
  font-weight: 500 !important;
  color: var(--teal) !important;
  line-height: 1.2 !important;
  transition: opacity .35s ease;
}

#hero-v4 .greet-tr {
  font-size: 0.96rem !important;
  font-weight: 500 !important;
  color: var(--ink-soft) !important;
  line-height: 1.2 !important;
  transition: opacity .35s ease;
}

#hero-v4 .greet-tr::before {
  content: "—";
  margin-right: 10px;
  opacity: .45;
}

#hero-v4 .greet.is-fading .greet-tr,
#hero-v4 .greet.is-fading .greet-word,
#hero-v4 .greet.is-fading span {
  opacity: 0;
}

/* Mobile: Fixed min-height & flex-column layout to prevent vertical layout shifts */
@media (max-width: 767px) {
  #hero-v4 .greet,
  #hero-v4 #hv4Greet,
  #hero-v4 .hv7-greet-badge {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-height: 56px !important;
    gap: 3px !important;
    margin: 0 0 14px 0 !important;
    width: 100% !important;
  }

  #hero-v4 .greet-word {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
  }

  #hero-v4 .greet-tr {
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
  }

  #hero-v4 .greet-tr::before {
    content: "— " !important;
    margin-right: 6px !important;
  }
}

/* =========== 4. Intro video =========== */
#intro-v6 {
  color: var(--ink);
  line-height: 1.5;
}

#intro-v6 *,
#intro-v6 *::before,
#intro-v6 *::after {
  box-sizing: border-box;
}

#intro-v6 .iv6-wrap {
  max-width: 1360px;
  margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter) 0;
}

#intro-v6 .iv6-head {
  margin-bottom: 26px;
}

#intro-v6 .iv6-kicker {
  margin: 0;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
}

#intro-v6 .iv6-head h2 {
  margin: 10px 0 0;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--navy);
}

#intro-v6 .iv6-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: var(--cream);
  background: var(--navy-deep);
  box-shadow: 0 40px 70px -44px rgba(6, 42, 99, .65);
  transition: transform .25s ease, box-shadow .25s ease;
}

#intro-v6 .iv6-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 48px 80px -44px rgba(6, 42, 99, .8);
}

#intro-v6 .iv6-card:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 4px;
}

#intro-v6 .iv6-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#intro-v6 .iv6-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  font-weight: 600;
  font-size: .95rem;
  color: rgba(252, 240, 223, .85);
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 34px), linear-gradient(160deg, #0a3a74, var(--navy-deep) 70%);
}

#intro-v6 .iv6-ph small {
  font-weight: 500;
  font-size: .72rem;
  opacity: .65;
}

#intro-v6 .iv6-thumb~.iv6-ph {
  display: none;
}

/* the slot hides itself once a real thumbnail exists */
#intro-v6 .iv6-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 29, 71, 0) 45%, rgba(4, 29, 71, .78));
}

#intro-v6 .iv6-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(68px, 8vw, 96px);
  height: clamp(68px, 8vw, 96px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6);
  transition: transform .25s ease;
}

#intro-v6 .iv6-card:hover .iv6-play {
  transform: translate(-50%, -50%) scale(1.06);
}

#intro-v6 .iv6-tri {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 24px solid var(--navy);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

#intro-v6 .iv6-label {
  position: absolute;
  left: clamp(18px, 3vw, 36px);
  bottom: clamp(16px, 2.6vw, 30px);
  display: grid;
  gap: 2px;
}

#intro-v6 .iv6-label strong {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
}

#intro-v6 .iv6-label small {
  font-size: .85rem;
  opacity: .8;
}

/* the expanded player */
.iv6-dialog {
  width: min(1180px, 94vw, calc(90vh * 16 / 9));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #000;
  overflow: hidden;
  color: #fff;
}

.iv6-dialog::backdrop {
  background: rgba(4, 29, 71, .86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.iv6-dialog[open] {
  animation: iv6in .25s ease;
}

@keyframes iv6in {
  from {
    opacity: 0;
    transform: scale(.97);
  }
}

.iv6-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: grid;
  place-items: center;
  background: #000;
}

.iv6-frame video,
.iv6-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.iv6-frame p {
  margin: 0;
  padding: 24px;
  text-align: center;
  opacity: .8;
}

.iv6-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  border: 1.5px solid rgba(252, 240, 223, .5);
  border-radius: 12px;
  background: rgba(4, 29, 71, .72);
  color: #fcf0df;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.iv6-close:hover {
  background: rgba(4, 29, 71, .95);
}

.iv6-close:focus-visible {
  outline: 3px solid #fcf0df;
  outline-offset: 3px;
}

.iv6-close svg {
  width: 22px;
  height: 22px;
}

/* =========== 5 to 8. Footer =========== */
#foot-v6 {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-deep);
  color: var(--cream);
  border: 0;
  line-height: 1.55;
}

#foot-v6 *,
#foot-v6 *::before,
#foot-v6 *::after {
  box-sizing: border-box;
}

#foot-v6 p,
#foot-v6 h2,
#foot-v6 ul {
  margin: 0;
}

#foot-v6 a {
  color: inherit;
  text-decoration: none;
}

/* ornaments: 4 corners + left and right edges */
#foot-v6 .fv6-orn {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
}

#foot-v6 .fv6-orn--tl,
#foot-v6 .fv6-orn--tr,
#foot-v6 .fv6-orn--bl,
#foot-v6 .fv6-orn--br {
  width: clamp(120px, 15vw, 260px);
  aspect-ratio: 1;
  background-image: url("assets/orn-corner.svg");
  background-size: contain;
  opacity: .26;
}

#foot-v6 .fv6-orn--tl {
  top: 0;
  left: 0;
}

#foot-v6 .fv6-orn--tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

#foot-v6 .fv6-orn--bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

#foot-v6 .fv6-orn--br {
  bottom: 0;
  right: 0;
  transform: scale(-1, -1);
}

#foot-v6 .fv6-orn--l,
#foot-v6 .fv6-orn--r {
  top: clamp(130px, 16vw, 270px);
  bottom: clamp(130px, 16vw, 270px);
  width: 56px;
  background-image: url("assets/orn-tile.svg");
  background-repeat: repeat-y;
  background-size: 56px 56px;
  opacity: .14;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

#foot-v6 .fv6-orn--l {
  left: clamp(6px, 1.6vw, 28px);
}

#foot-v6 .fv6-orn--r {
  right: clamp(6px, 1.6vw, 28px);
}

#foot-v6 .fv6-orn--bb {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: url("assets/orn-band.svg") repeat-x center / auto 22px;
  opacity: .25;
  pointer-events: none;
  z-index: 1;
}

#foot-v6 .fv6-grid {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin-inline: auto;
  padding: clamp(64px, 8vw, 112px) clamp(40px, 7vw, 120px) 40px;
  display: grid;
  grid-template-columns: .85fr 1.15fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

#foot-v6 .fv6-logo {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
}

#foot-v6 .fv6-desc {
  margin-top: 16px;
  font-size: 1.04rem;
  max-width: 40ch;
  color: rgba(252, 240, 223, .9);
}

#foot-v6 .fv6-note {
  margin-top: 18px;
  font-size: .86rem;
  color: rgba(252, 240, 223, .7);
}

#foot-v6 .fv6-h {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}

#foot-v6 .fv6-pages ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 4px;
}

#foot-v6 .fv6-pages a {
  display: inline-block;
  padding: 7px 0;
  font-size: 1rem;
  color: rgba(252, 240, 223, .92);
  transition: color .2s ease;
}

#foot-v6 .fv6-pages a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

#foot-v6 .fv6-contact {
  display: grid;
  gap: 12px;
}

#foot-v6 .fv6-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 16px;
  border: 1.5px solid rgba(252, 240, 223, .26);
  border-radius: 12px;
  background: rgba(252, 240, 223, .06);
  color: var(--cream);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

#foot-v6 .fv6-card:hover {
  background: rgba(252, 240, 223, .12);
  border-color: rgba(252, 240, 223, .5);
  transform: translateY(-1px);
}

#foot-v6 .fv6-card:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

#foot-v6 .fv6-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(252, 240, 223, .12);
}

#foot-v6 .fv6-ico svg {
  width: 22px;
  height: 22px;
}

#foot-v6 .fv6-txt {
  display: grid;
  gap: 1px;
  min-width: 0;
}

#foot-v6 .fv6-txt strong {
  font-size: 1.04rem;
  font-weight: 700;
}

#foot-v6 .fv6-txt small {
  font-size: .84rem;
  color: rgba(252, 240, 223, .78);
  overflow-wrap: anywhere;
}

#foot-v6 .fv6-go {
  width: 20px;
  height: 20px;
  opacity: .8;
}

#foot-v6 .fv6-bottom {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin-inline: auto;
  padding: 22px clamp(40px, 7vw, 120px) 34px;
  border-top: 1px solid rgba(252, 240, 223, .14);
  font-size: .86rem;
  color: rgba(252, 240, 223, .75);
}

@media (max-width: 900px) {
  #foot-v6 .fv6-grid {
    grid-template-columns: 1fr;
    padding: 72px 24px 24px;
    gap: 32px;
  }

  #foot-v6 .fv6-bottom {
    padding: 18px 24px 96px;
  }

  /* room for the floating "Trial available" pill */
  #foot-v6 .fv6-orn--l,
  #foot-v6 .fv6-orn--r {
    display: none;
  }

  #foot-v6 .fv6-orn--tl,
  #foot-v6 .fv6-orn--tr,
  #foot-v6 .fv6-orn--bl,
  #foot-v6 .fv6-orn--br {
    width: 96px;
    opacity: .22;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iv6-dialog[open] {
    animation: none;
  }

  #intro-v6 *,
  #foot-v6 * {
    transition: none !important;
  }
}

/* =========== v7: turunj-style ornaments on light pages (original drawings, navy/teal + a slight bronze) =========== */
.v7-main {
  position: relative;
  isolation: isolate;
}

.v7-orn {
  position: absolute;
  inset: 0;
  z-index: 3; /* Elevate above section backgrounds so side ornaments run continuously */
  pointer-events: none;
  overflow: hidden;
}

/* Ensure containers and interactive content sit above the side ornaments */
.v7-main .container,
.v7-main .hero-card,
.v7-main .iv6-wrap,
.v7-main .marquee-wrapper,
.v7-main .review-card,
.v7-main .tutoring-card,
.v7-main .lesson-card,
.v7-main .who-card,
.v7-main .phrase-card,
.v7-main .faq-item,
.v7-main .card,
.v7-main form {
  position: relative;
  z-index: 4;
}

.v7-o {
  position: absolute;
  background-repeat: no-repeat;
  opacity: .22;
}

.v7-o--tl,
.v7-o--tr,
.v7-o--bl,
.v7-o--br {
  width: 170px;
  height: 170px;
  background-image: url("assets/orn-light-corner.svg");
  opacity: .28;
}

.v7-o--tl {
  top: 0;
  left: 0;
}

.v7-o--tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.v7-o--bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.v7-o--br {
  bottom: 0;
  right: 0;
  transform: scale(-1, -1);
}

/* Continuous vertical side border ornaments down the entire page */
.v7-o--l,
.v7-o--r {
  top: 0;
  bottom: 0;
  width: 36px;
  background-image: url("assets/orn-side.svg");
  background-repeat: repeat-y;
  background-size: 36px 86px;
  opacity: .22;
  z-index: 3;
  pointer-events: none;
}

.v7-o--l {
  left: 14px;
}

.v7-o--r {
  right: 14px;
}

@media (max-width: 1024px) {
  .v7-o--l,
  .v7-o--r {
    width: 24px;
    background-size: 24px 58px;
    opacity: .14;
    left: 8px;
    right: 8px;
  }
}

@media (max-width: 639px) {
  .v7-o--l,
  .v7-o--r {
    display: none !important;
  }

  .v7-o--tl,
  .v7-o--tr,
  .v7-o--bl,
  .v7-o--br {
    width: 96px;
    height: 96px;
    background-size: 96px 96px;
    opacity: .2;
  }
}

/* band under the navbar (replaces the old one) */
.v7-band {
  height: 28px;
  background: url("assets/orn-band.svg") repeat-x center / auto 28px;
  opacity: .85;
  border-bottom: 1px solid rgba(176, 141, 87, .35);
}

/* =========== v8: full-size video, end-screen button, navbar not pinned =========== */
.iv6-dialog {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  border-radius: 0;
  margin: 0;
}

.iv6-dialog::backdrop {
  background: #000;
}

.iv6-frame {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
}

.iv6-end {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(4, 29, 71, .82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: iv6in .3s ease;
}

.iv6-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 12px;
  background: #fcf0df;
  color: #062a63;
  font: 700 1.05rem/1 var(--font-primary, sans-serif);
  text-decoration: none;
  text-align: center;
}

.iv6-cta:hover {
  background: #fff;
}

.iv6-cta:focus-visible,
.iv6-replay:focus-visible {
  outline: 3px solid #fcf0df;
  outline-offset: 3px;
}

.iv6-replay {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid rgba(252, 240, 223, .5);
  border-radius: 12px;
  background: none;
  color: #fcf0df;
  font: 600 .92rem/1 var(--font-primary, sans-serif);
  cursor: pointer;
}

/* Navbar stays where it appears at the top of the page and scrolls away with the page (not pinned) */
header,
.site-header,
.nav,
.navbar,
nav.nav {
  position: static !important;
  top: auto !important;
}

.iv6-ext {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(4, 29, 71, .7);
  color: #fcf0df;
  font: 600 .8rem/1 var(--font-primary, sans-serif);
  text-decoration: none;
}

/* =========== v9: Davron's portrait in the hero card (wrapper class .hv7-portrait) =========== */
/* Plain cut-out photo, cropped by the card's bottom edge at the end of the arms. No background panel. */
#hero-v4 .hero-card {
  position: relative;
  overflow: hidden;
}

#hero-v4 .hv7-portrait {
  position: absolute !important;
  right: clamp(36px, 7%, 110px) !important;
  left: auto !important;
  top: auto !important;
  bottom: 0 !important;
  height: min(96%, 820px) !important;
  aspect-ratio: 0.82 / 1;
  width: auto !important;
  transform: none !important;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  border-radius: 0 0 20px 0;
}

#hero-v4 .hv7-portrait picture,
#hero-v4 .hv7-portrait img {
  display: block;
}

#hero-v4 .hv7-portrait img {
  position: absolute !important;
  z-index: 1;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  top: 2% !important;
  height: 114% !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  filter: drop-shadow(0 10px 14px rgba(4, 29, 71, .16));
}

@media (max-width: 768px) {
  #hero-v4 .hero-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: auto !important;
    padding: 32px 20px 0 !important;
    margin-top: 16px !important;
  }

  #hero-v4 .hero-copy {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
  }

  #hero-v4 .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  #hero-v4 .cta-row .btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  #hero-v4 .stats {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-around !important;
    gap: 16px 12px !important;
    margin-top: 28px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(6, 42, 99, 0.08);
  }

  #hero-v4 .stats .stat-nationalities {
    padding-right: 0 !important;
    align-items: center !important;
  }

  #hero-v4 .stats .stat-nationalities .flagchip {
    position: static !important;
    transform: none !important;
    margin-top: 6px !important;
    margin-left: 0 !important;
  }

  #hero-v4 .hv7-portrait {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: 0 !important;
    width: min(92%, 360px) !important;
    height: auto !important;
    aspect-ratio: 0.85 / 1 !important;
    margin: 12px auto 0 !important;
    border-radius: 0 !important;
  }

  #hero-v4 .hv7-portrait img {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

/* ornaments filling the hero card, behind the text and the portrait (faint, original) */
#hero-v4 .hero-card {
  isolation: isolate;
}

.hv7-orn {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
}

.hv7-orn--tl,
.hv7-orn--bl,
.hv7-orn--tr {
  width: 300px;
  height: 300px;
  background-image: url("assets/orn-light-corner.svg");
  background-size: 300px 300px;
  opacity: .24;
}

.hv7-orn--tl {
  top: 0;
  left: 0;
}

.hv7-orn--bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.hv7-orn--tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.hv7-orn--bt,
.hv7-orn--bb {
  left: 0;
  right: 0;
  height: 28px;
  background: url("assets/orn-band.svg") repeat-x center / auto 28px;
  opacity: .24;
}

.hv7-orn--bt {
  top: 14px;
}

.hv7-orn--bb {
  bottom: 14px;
}

@media (max-width: 1100px) {

  .hv7-orn--tl,
  .hv7-orn--bl,
  .hv7-orn--tr {
    width: 160px;
    height: 160px;
    background-size: 160px 160px;
  }

  .hv7-orn--bb {
    display: none;
  }
}

/* =========== v10: alphabet block, video description, "Free trial" pill =========== */
#alpha-v10 {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px var(--gutter, 20px);
  color: #062a63;
}

#alpha-v10 .av10-kicker {
  margin: 0 0 8px;
  font: 700 .78rem/1 var(--font-primary, sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #07596f;
}

#alpha-v10 h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: #062a63;
}

#alpha-v10 .av10-sub {
  margin: 0 0 22px;
  color: #444f6b;
}

#alpha-v10 .av10-chg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 22px;
}

#alpha-v10 .av10-chg-h {
  font-weight: 700;
  font-size: .85rem;
  color: #07596f;
  margin-right: 4px;
}

#alpha-v10 .av10-pair {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(6, 42, 99, .07);
  font-size: .95rem;
}

#alpha-v10 .av10-pair s {
  color: #444f6b;
  text-decoration-thickness: 1px;
}

#alpha-v10 .av10-pair b {
  color: #062a63;
}

#alpha-v10 .av10-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

#alpha-v10 .av10-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: #fff8ee;
  border: 1.5px solid rgba(6, 42, 99, .12);
  min-height: 104px;
}

#alpha-v10 .av10-let {
  font-size: 2.1rem;
  line-height: 1.1;
  color: #062a63;
}

#alpha-v10 .av10-word {
  margin-top: 6px;
  font-weight: 700;
  color: #062a63;
}

#alpha-v10 .av10-mean {
  font-size: .85rem;
  color: #444f6b;
}

#alpha-v10 .av10-new {
  background: linear-gradient(160deg, #0b6277, #062a63);
  border: 2px solid #0077b6;
  box-shadow: 0 4px 16px rgba(6, 42, 99, .22);
}

#alpha-v10 .av10-new .av10-let,
#alpha-v10 .av10-new .av10-word {
  color: #fcf0df;
}

#alpha-v10 .av10-new .av10-mean {
  color: rgba(252, 240, 223, .85);
}

#alpha-v10 .av10-was {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: .7rem;
  font-weight: 700;
  background: #0077b6;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#alpha-v10 .av10-apos {
  border-style: dashed;
}

#alpha-v10 .av10-apos .av10-was {
  background: rgba(6, 42, 99, .08);
  color: #07596f;
}

#alpha-v10 .av10-note {
  margin: 18px 0 0;
  font-size: .92rem;
  color: #444f6b;
}

@media (max-width: 560px) {
  #alpha-v10 .av10-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  #alpha-v10 .av10-card {
    padding: 14px;
    min-height: 116px;
  }
}

.iv6-desc {
  margin: 8px 0 0;
  color: #444f6b;
  max-width: 60ch;
}

/* ==========================================================================
   FLOATING TRIAL LESSON WIDGET & OVERLAY CARD
   ========================================================================== */
.trial-floating-widget {
  position: fixed !important;
  right: 24px !important;
  bottom: 20px !important;
  z-index: 999 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  pointer-events: none !important;
}

.trial-floating-widget > * {
  pointer-events: auto !important;
}

/* Floating Trigger Button ("• Free Trial Lesson") */
.trial-widget-trigger,
.v10-trial {
  position: fixed !important;
  right: 24px !important;
  bottom: 20px !important;
  left: auto !important;
  z-index: 999 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  height: 42px !important;
  width: auto !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  background: #062a63 !important;
  color: #fcf0df !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 26px -6px rgba(4, 29, 71, 0.5), 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  user-select: none !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.trial-widget-trigger:hover,
.v10-trial:hover {
  transform: translateY(-2px) !important;
  background: #0a367c !important;
  box-shadow: 0 14px 32px -6px rgba(4, 29, 71, 0.6) !important;
}

.trial-widget-trigger:focus-visible,
.v10-trial:focus-visible {
  outline: 2px solid #3ddc97 !important;
  outline-offset: 2px !important;
}

.v10-trial::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #3ddc97 !important;
  flex: none !important;
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.7) !important;
  animation: v10Pulse 2s infinite !important;
}

@keyframes v10Pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(61, 220, 151, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0);
  }
}

.v10-trial > * {
  display: none !important;
}

.v10-trial::after {
  content: attr(data-label) !important;
  font: 700 0.88rem/1 var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  color: #fcf0df !important;
  letter-spacing: 0.01em !important;
}

/* Floating Overlay Card (HIDDEN BY DEFAULT) */
.trial-widget-card {
  display: block !important;
  position: fixed !important;
  bottom: 76px !important;
  right: 24px !important;
  left: auto !important;
  top: auto !important;
  width: 340px !important;
  max-width: calc(100vw - 32px) !important;
  z-index: 1000 !important;
  background: #ffffff !important;
  border: 1px solid rgba(6, 42, 99, 0.16) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 48px -8px rgba(6, 42, 99, 0.28), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  padding: 22px 24px !important;
  color: #062a63 !important;
  box-sizing: border-box !important;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  
  /* Hidden by default */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(12px) scale(0.96) !important;
  transform-origin: bottom right !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s !important;
}

/* Opened / Expanded State */
.trial-floating-widget[data-expanded="true"] .trial-widget-card,
.trial-widget-card.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

/* Keep trigger visible and interactive when open */
.trial-floating-widget[data-expanded="true"] .trial-widget-trigger,
.trial-floating-widget[data-expanded="true"] .v10-trial {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* Card Header */
.trial-widget-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
}

.trial-badge {
  display: inline-block !important;
  background: rgba(8, 99, 123, 0.1) !important;
  color: #08637b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
}

.trial-close-btn {
  appearance: none !important;
  background: rgba(6, 42, 99, 0.07) !important;
  border: none !important;
  color: #062a63 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: background 0.18s ease, transform 0.18s ease !important;
}

.trial-close-btn:hover {
  background: rgba(6, 42, 99, 0.15) !important;
  transform: scale(1.08) !important;
}

/* Card Typography & Content */
.trial-widget-title {
  font-family: var(--font-heading, "Fraunces", serif) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #062a63 !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.28 !important;
}

.trial-widget-desc {
  font-size: 0.88rem !important;
  color: #444f6b !important;
  line-height: 1.5 !important;
  margin: 0 0 14px 0 !important;
}

.trial-widget-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.8rem !important;
  color: #55627d !important;
  margin-bottom: 16px !important;
  padding: 6px 12px !important;
  background: #fbf7ee !important;
  border-radius: 8px !important;
  border: 1px solid rgba(6, 42, 99, 0.06) !important;
}

.trial-widget-meta .tz {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.trial-widget-meta b {
  color: #062a63 !important;
  font-weight: 700 !important;
}

.trial-action-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 42px !important;
  background: #062a63 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(6, 42, 99, 0.22) !important;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}

.trial-action-btn:hover {
  background: #08637b !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(6, 42, 99, 0.3) !important;
}

/* Mobile Responsiveness for Floating Badge */
@media (max-width: 768px) {
  .trial-floating-widget {
    right: 12px !important;
    bottom: 12px !important;
  }
  .trial-widget-trigger,
  .v10-trial {
    right: 12px !important;
    bottom: 12px !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 0.75rem !important;
    gap: 6px !important;
    border-radius: 999px !important;
  }
  .trial-widget-trigger .status-pulse-dot,
  .v10-trial .status-pulse-dot {
    width: 6px !important;
    height: 6px !important;
  }
  .trial-widget-trigger .widget-arrow svg,
  .v10-trial .widget-arrow svg {
    width: 12px !important;
    height: 12px !important;
  }
  .trial-widget-card {
    right: 12px !important;
    left: 12px !important;
    bottom: 52px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    padding: 18px 16px !important;
    transform-origin: bottom right !important;
  }
}

/* Balanced 2-column grid for lessons & textbooks */
.lessons-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: var(--space-8, 32px);
  align-items: stretch;
}

@media (min-width: 768px) {
  .lessons-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .lessons-grid {
    grid-template-columns: 1fr !important;
  }
}

.lesson-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lesson-card-price-section {
  margin-top: auto !important;
}

.lesson-card-price-section ~ .btn,
.lesson-card-price-section ~ a.btn,
.lesson-card-price-section ~ button.btn {
  margin-top: 0 !important;
}

.lesson-card > .btn:first-of-type:not(.lesson-card-price-section ~ .btn) {
  margin-top: auto;
}


/* Ensure horizontal footer divider ornament is completely removed */
.ikat-band {
  display: none !important;
}


/* Flag chip dimensions & snug symmetrical wrapping */
#hero-v4 .flagchip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 10px !important;
  min-width: 46px !important;
  min-height: 30px !important;
  box-sizing: border-box !important;
}

#hero-v4 .flag {
  display: block !important;
  width: 26px !important;
  height: 18px !important;
  min-width: 26px !important;
  min-height: 18px !important;
  object-fit: cover !important;
  border-radius: 3px !important;
}
