.yfs-flexible-sections{background:#f6f9fd;padding:clamp(44px,7vw,90px) 0}.yfs-container{display:grid;gap:clamp(22px,4vw,38px)}.yfs-section{background:#fff;border:1px solid rgb(34 51 92 / .1);border-radius:30px;box-shadow:0 24px 60px rgb(24 38 72 / .09);overflow:hidden;padding:clamp(24px,4vw,46px)}.yfs-style-light{background:linear-gradient(135deg,#fff,#f4f7fb)}.yfs-style-white{background:#fff}.yfs-style-plain{background:#fff0;border:0;border-radius:0;box-shadow:none;padding-left:0;padding-right:0}.yfs-style-navy,.yfs-style-gold{color:#fff}.yfs-style-navy{background:linear-gradient(135deg,#213760,#132340)}.yfs-style-gold{background:linear-gradient(135deg,#c39235,#9f7627)}.yfs-style-navy .yfs-eyebrow,.yfs-style-gold .yfs-eyebrow{color:#fff0c9}.yfs-width-narrow{margin-left:auto;margin-right:auto;max-width:900px}.yfs-width-normal{margin-left:auto;margin-right:auto;max-width:1240px}.yfs-width-wide{max-width:none}.yfs-spacing-compact{padding-top:clamp(18px,3vw,30px);padding-bottom:clamp(18px,3vw,30px)}.yfs-spacing-large{padding-top:clamp(42px,6vw,72px);padding-bottom:clamp(42px,6vw,72px)}.yfs-align-center{text-align:center}.yfs-type-text_image{align-items:center;display:grid;gap:clamp(24px,4vw,46px);grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.yfs-image-w-35.yfs-type-text_image{grid-template-columns:minmax(0,1.45fr) minmax(0,.7fr)}.yfs-image-w-40.yfs-type-text_image{grid-template-columns:minmax(0,1.25fr) minmax(0,.8fr)}.yfs-image-w-60.yfs-type-text_image{grid-template-columns:minmax(0,.8fr) minmax(0,1.25fr)}.yfs-image-w-65.yfs-type-text_image{grid-template-columns:minmax(0,.7fr) minmax(0,1.45fr)}.yfs-layout-image_right .yfs-media{order:2}.yfs-layout-image_right .yfs-copy{order:1}.yfs-layout-image_left .yfs-media{order:1}.yfs-layout-image_left .yfs-copy{order:2}.yfs-media{margin:0}.yfs-media img{border-radius:24px;display:block;object-fit:cover;width:100%}.yfs-image-h-small .yfs-media img{height:260px}.yfs-image-h-medium .yfs-media img{height:380px}.yfs-image-h-large .yfs-media img{height:500px}.yfs-image-h-xl .yfs-media img{height:620px}.yfs-image-h-auto .yfs-media img{height:auto}.yfs-image-fit-contain .yfs-media img{object-fit:contain}.yfs-copy{align-self:center}.yfs-copy-header{margin-left:auto;margin-right:auto;max-width:900px}.yfs-align-center .yfs-copy-header{text-align:center}.yfs-eyebrow{color:#c39235;font-size:.78rem;font-weight:900;letter-spacing:.15em;margin:0 0 11px;text-transform:uppercase}.yfs-copy h2{color:inherit;font-size:clamp(1.8rem,4vw,2.9rem);letter-spacing:-.035em;line-height:1.08;margin:0 0 15px}.yfs-content p,.yfs-content ul,.yfs-content ol,.yfs-card-text p,.yfs-faq-item p{color:inherit;font-size:1rem;line-height:1.75;margin:0 0 14px}.yfs-content>*:last-child,.yfs-card-text>*:last-child,.yfs-faq-item>div>*:last-child{margin-bottom:0}.yfs-buttons{align-items:center;display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.yfs-align-center .yfs-buttons{justify-content:center}.yfs-button{align-items:center;border-radius:999px;display:inline-flex;font-weight:900;justify-content:center;line-height:1;padding:15px 24px;text-decoration:none;transition:transform .18s ease,opacity .18s ease}.yfs-button:hover{opacity:.92;transform:translateY(-1px)}.yfs-button-size-small{font-size:.9rem;padding:12px 18px}.yfs-button-size-large{font-size:1.05rem;padding:18px 30px}.yfs-button-primary,.yfs-card-link.yfs-button-primary{background:#c39235;color:#fff}.yfs-button-navy,.yfs-card-link.yfs-button-navy{background:#192b54;color:#fff}.yfs-button-white,.yfs-card-link.yfs-button-white{background:#fff;color:#192b54}.yfs-button-outline,.yfs-card-link.yfs-button-outline{background:#fff0;border:2px solid currentColor;color:inherit}.yfs-card-grid,.yfs-gallery-grid{display:grid;gap:22px;margin-top:28px}.yfs-cols-1{grid-template-columns:minmax(0,1fr)}.yfs-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.yfs-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.yfs-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.yfs-card{background:rgb(255 255 255 / .95);border:1px solid rgb(34 51 92 / .1);border-radius:22px;color:inherit;display:flex;flex-direction:column;overflow:hidden;padding:18px;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}.yfs-card:hover{box-shadow:0 14px 34px rgb(24 38 72 / .1);color:inherit;transform:translateY(-2px)}.yfs-card-style-bordered .yfs-card{box-shadow:none}.yfs-card-style-flat .yfs-card{background:#fff0;border:0;box-shadow:none;padding:0}.yfs-card-style-overlay .yfs-card{background:#18294f;color:#fff;padding:0;position:relative}.yfs-card img{border-radius:16px;display:block;height:220px;margin-bottom:16px;object-fit:cover;width:100%}.yfs-card-image-h-small .yfs-card img{height:150px}.yfs-card-image-h-medium .yfs-card img{height:220px}.yfs-card-image-h-large .yfs-card img{height:300px}.yfs-card-image-h-xl .yfs-card img{height:380px}.yfs-card-image-h-auto .yfs-card img{height:auto}.yfs-card-image-fit-contain .yfs-card img{object-fit:contain}.yfs-card-body{display:flex;flex:1;flex-direction:column}.yfs-card h3{color:inherit;font-size:1.22rem;line-height:1.2;margin:0 0 9px}.yfs-card-link{align-self:flex-start;border-radius:999px;font-weight:900;margin-top:auto;padding:10px 15px}.yfs-card-align-center .yfs-card{text-align:center}.yfs-card-align-center .yfs-card-link{align-self:center}.yfs-style-navy .yfs-card,.yfs-style-gold .yfs-card{background:rgb(255 255 255 / .12);border-color:rgb(255 255 255 / .2)}.yfs-faq-list{display:grid;gap:12px;margin:28px auto 0;max-width:920px}.yfs-faq-item{background:rgb(255 255 255 / .94);border:1px solid rgb(34 51 92 / .11);border-radius:17px;color:#213760;overflow:hidden}.yfs-faq-item summary{cursor:pointer;font-weight:900;list-style:none;padding:19px 21px}.yfs-faq-item summary::-webkit-details-marker{display:none}.yfs-faq-item summary::after{content:'+';float:right;font-weight:900}.yfs-faq-item[open] summary::after{content:'–'}.yfs-faq-item>div{border-top:1px solid rgb(34 51 92 / .1);padding:0 21px 19px}.yfs-notice-inner{align-items:flex-start;display:flex;gap:18px}.yfs-notice-icon{align-items:center;background:rgb(195 146 53 / .14);border-radius:999px;display:inline-flex;font-size:28px;height:56px;justify-content:center;min-width:56px}.yfs-type-notice{border-left:7px solid #c39235}.yfs-notice-warning{border-left-color:#d97706}.yfs-notice-important{border-left-color:#b42318}.yfs-notice-success{border-left-color:#07875f}.yfs-gallery-item{margin:0}.yfs-gallery-item img{border-radius:20px;display:block;height:220px;object-fit:cover;width:100%}.yfs-gallery-image-h-small .yfs-gallery-item img{height:160px}.yfs-gallery-image-h-medium .yfs-gallery-item img{height:240px}.yfs-gallery-image-h-large .yfs-gallery-item img{height:330px}.yfs-gallery-image-h-xl .yfs-gallery-item img{height:430px}.yfs-gallery-image-h-auto .yfs-gallery-item img{height:auto}.yfs-gallery-image-fit-contain .yfs-gallery-item img{object-fit:contain}.yfs-gallery-item figcaption{color:inherit;font-size:.92rem;margin-top:9px;opacity:.82}@media(max-width:980px){.yfs-type-text_image,.yfs-image-w-35.yfs-type-text_image,.yfs-image-w-40.yfs-type-text_image,.yfs-image-w-60.yfs-type-text_image,.yfs-image-w-65.yfs-type-text_image,.yfs-cols-2,.yfs-cols-3,.yfs-cols-4{grid-template-columns:1fr}.yfs-layout-image_right .yfs-media,.yfs-layout-image_right .yfs-copy,.yfs-layout-image_left .yfs-media,.yfs-layout-image_left .yfs-copy{order:initial}.yfs-align-center .yfs-copy-header{text-align:left}.yfs-align-center .yfs-buttons{justify-content:flex-start}.yfs-image-h-small .yfs-media img,.yfs-image-h-medium .yfs-media img,.yfs-image-h-large .yfs-media img,.yfs-image-h-xl .yfs-media img{height:auto;max-height:520px}}@media(max-width:540px){.yfs-flexible-sections{padding:32px 0}.yfs-section{border-radius:21px;padding:19px}.yfs-media img,.yfs-card img,.yfs-gallery-item img{border-radius:15px}.yfs-buttons{align-items:stretch;flex-direction:column}.yfs-button{width:100%}.yfs-notice-inner{flex-direction:column}}/* =========================================================
   YATELEY SCHOOL REDESIGN DEMO
   BASE DESIGN SYSTEM
========================================================= */

:root {
  --ys-navy: #062b46;
  --ys-navy-dark: #031b2d;
  --ys-navy-soft: #0b3d63;
  --ys-red: #e53935;
  --ys-red-dark: #c62828;
  --ys-white: #ffffff;
  --ys-cream: #f6f3ee;
  --ys-light: #f4f7fb;
  --ys-border: #dce4ec;
  --ys-text: #172231;
  --ys-muted: #657384;
  --ys-gold: #d7a84f;
  --ys-font-body: "Lato", "Aptos", Arial, Helvetica, sans-serif;

  --ys-shadow-sm: 0 10px 25px rgba(3, 27, 45, 0.08);
  --ys-shadow-md: 0 18px 45px rgba(3, 27, 45, 0.14);
  --ys-shadow-lg: 0 30px 80px rgba(3, 27, 45, 0.22);

  --ys-radius-sm: 12px;
  --ys-radius-md: 20px;
  --ys-radius-lg: 30px;

  --ys-transition: 0.28s ease;
}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--ys-white);
  color: var(--ys-text);
  font-family: var(--ys-font-body);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ys-font-body);
}

::selection {
  background: var(--ys-red);
  color: var(--ys-white);
}

/* =========================================================
   GLOBAL LAYOUT
========================================================= */

.ys-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ys-section {
  padding: 100px 0;
  position: relative;
}

.ys-section-label,
.ys-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ys-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ys-section-label::before,
.ys-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ys-red);
  border-radius: 99px;
}

.ys-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.ys-section-heading.centered {
  justify-content: center;
  text-align: center;
}

.ys-section-heading h2,
.ys-card-heading h2 {
  color: var(--ys-navy);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.ys-section-heading p,
.ys-card-heading p {
  margin-bottom: 8px;
}

.ys-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ys-red);
  font-weight: 800;
  transition: var(--ys-transition);
}

.ys-link-arrow::after {
  content: "→";
  transition: var(--ys-transition);
}

.ys-link-arrow:hover {
  color: var(--ys-red-dark);
}

.ys-link-arrow:hover::after {
  transform: translateX(5px);
}

/* =========================================================
   BUTTONS
========================================================= */

.ys-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform var(--ys-transition),
    box-shadow var(--ys-transition),
    background var(--ys-transition),
    color var(--ys-transition),
    border-color var(--ys-transition);
  white-space: nowrap;
}

.ys-btn:hover {
  transform: translateY(-3px);
}

.ys-btn-red {
  background: var(--ys-red);
  color: var(--ys-white);
  box-shadow: 0 14px 28px rgba(229, 57, 53, 0.28);
}

.ys-btn-red:hover {
  background: var(--ys-red-dark);
  box-shadow: 0 18px 36px rgba(229, 57, 53, 0.36);
}

.ys-btn-dark {
  background: var(--ys-navy);
  color: var(--ys-white);
  box-shadow: var(--ys-shadow-sm);
}

.ys-btn-dark:hover {
  background: var(--ys-navy-dark);
  box-shadow: var(--ys-shadow-md);
}

.ys-btn-light {
  background: var(--ys-white);
  color: var(--ys-navy);
  border: 1px solid var(--ys-border);
}

.ys-btn-light:hover {
  border-color: var(--ys-navy);
}

.ys-btn-outline {
  color: var(--ys-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.ys-btn-outline:hover {
  background: var(--ys-white);
  color: var(--ys-navy);
}

.ys-btn-outline-dark {
  color: var(--ys-navy);
  border: 1px solid var(--ys-border);
}

.ys-btn-outline-dark:hover {
  background: var(--ys-navy);
  color: var(--ys-white);
}

.ys-btn-glass {
  color: var(--ys-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.ys-btn-glass:hover {
  background: var(--ys-white);
  color: var(--ys-navy);
}

/* =========================================================
   PRELOADER - PREMIUM SCHOOL INTRO
========================================================= */

.ys-preloader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #031b2d !important;
  background:
    radial-gradient(circle at center, rgba(229, 57, 53, 0.08), transparent 45%),
    linear-gradient(135deg, #031b2d 0%, #062b46 100%) !important;
  transition: opacity 0.8s ease, visibility 0.8s ease !important;
}

.ys-preloader.hide {
  opacity: 0 !important;
  visibility: hidden !important;
}

.ys-preloader-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 2 !important;
}

.ys-preloader-logo {
  width: 170px !important;
  height: 170px !important;
  object-fit: contain !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 0;
  transform: translateY(32px) scale(0.82);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: ysCrestReveal 2.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ys-preloader-title {
  margin-top: 26px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
  overflow: hidden !important;
}

.ys-preloader-title span {
  color: #ffffff !important;
  font-size: clamp(28px, 4vw, 54px) !important;
  font-weight: 900 !important;
  letter-spacing: -1px !important;
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: ysTextReveal 2.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ys-preloader-title i {
  width: 150px !important;
  height: 4px !important;
  display: block !important;
  border-radius: 99px !important;
  background: #e53935 !important;
  box-shadow: 0 0 24px rgba(229, 57, 53, 0.55) !important;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: ysLineReveal 2.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes ysCrestReveal {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.82);
  }

  35% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
  }

  65% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ysTextReveal {
  0%,
  22% {
    opacity: 0;
    transform: translateY(24px);
  }

  55%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ysLineReveal {
  0%,
  38% {
    opacity: 0;
    transform: scaleX(0);
  }

  72%,
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* =========================================================
   REVEAL ANIMATION BASE
========================================================= */

.reveal-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   COMMON CARDS / UTILITIES
========================================================= */

.ys-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.ys-card-heading a {
  color: var(--ys-red);
  font-weight: 800;
  font-size: 14px;
}

.ys-big-quote {
  display: block;
  color: var(--ys-red);
  font-size: 82px;
  line-height: 0.8;
  font-family: var(--ys-font-body);
}

.ys-dot-blue,
.ys-dot-red {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 99px;
}

.ys-dot-blue {
  background: var(--ys-navy-soft);
}

.ys-dot-red {
  background: var(--ys-red);
}

/* =========================================================
   BACK TO TOP
========================================================= */

.ys-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ys-red);
  color: var(--ys-white);
  box-shadow: var(--ys-shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--ys-transition);
}

.ys-back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ys-back-to-top:hover {
  background: var(--ys-red-dark);
  transform: translateY(-4px);
}

.is-touching {
  transform: scale(0.98) !important;
}

body.ys-loading {
  overflow: hidden;
}

.ys-skip-preloader .ys-preloader {
  display: none !important;
}

/* =========================================================
   MOBILE HORIZONTAL OVERFLOW GUARD
========================================================= */

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body {
    position: relative;
  }

  .ys-container,
  .ys-header,
  .ys-header-inner,
  main,
  section,
  footer,
  .ys-footer,
  .ys-mobile-menu,
  .ys-mobile-overlay {
    max-width: 100vw;
    overflow-x: clip;
  }
}
/* =========================================================
   Header and Navigation
========================================================= */

.ys-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(3, 27, 45, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.ys-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px rgba(3, 27, 45, 0.08);
}

.ys-header .ys-container {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
}

.ys-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  transition: min-height 0.25s ease;
}

.ys-header.scrolled .ys-header-inner {
  min-height: 66px;
}

.ys-brand,
.ys-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ys-navy, #031b2d);
  text-decoration: none;
}

.ys-brand {
  flex: 0 0 auto;
}

.ys-brand-crest {
  width: auto;
  height: 44px;
  aspect-ratio: 1 / 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  transition: height 0.25s ease;
}

.ys-header.scrolled .ys-brand-crest {
  height: 38px;
}

.ys-brand-text,
.ys-mobile-brand span {
  color: var(--ys-navy, #031b2d);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.ys-brand-text {
  display: flex;
  flex-direction: column;
}

/* Desktop navigation */
.ys-desktop-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.ys-nav-item {
  --nav-accent: var(--ys-red, #e53935);
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82px;
  transition: min-height 0.25s ease;
}

.ys-header.scrolled .ys-nav-item {
  min-height: 66px;
}

.ys-nav-item.has-dropdown::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 16px;
  pointer-events: auto;
}

.ys-nav-item[data-nav-theme="years"] {
  --nav-accent: #0e7c6e;
}

.ys-nav-item[data-nav-theme="parents"] {
  --nav-accent: #1d4ed8;
}

.ys-nav-item[data-nav-theme="wellbeing"] {
  --nav-accent: #c0392b;
}

.ys-nav-item[data-nav-theme="community"] {
  --nav-accent: #166534;
}

.ys-nav-item[data-nav-theme="contact"] {
  --nav-accent: var(--ys-red, #e53935);
}

.ys-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 12px;
  color: var(--ys-navy, #031b2d);
  font-family: var(--ys-font-body);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.22px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.ys-header.scrolled .ys-nav-link {
  min-height: 40px;
}

.ys-nav-item.has-dropdown > .ys-nav-link::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.5;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ys-nav-link::before {
  display: none;
}

.ys-nav-item:hover > .ys-nav-link,
.ys-nav-item:focus-within > .ys-nav-link {
  background: rgba(3, 27, 45, 0.055);
  box-shadow: inset 0 -2px 0 var(--nav-accent);
  color: var(--nav-accent);
}

.ys-nav-item:hover > .ys-nav-link::after,
.ys-nav-item:focus-within > .ys-nav-link::after {
  opacity: 1;
  transform: rotate(225deg) translate(-1px, -1px);
}

.ys-dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  width: min(820px, calc(100vw - 48px));
  max-height: calc(100vh - 102px);
  padding: 16px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(6, 43, 70, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(3, 27, 45, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transform-origin: top center;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.ys-nav-item:hover .ys-dropdown,
.ys-nav-item:focus-within .ys-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ys-dropdown--single {
  width: 380px;
}

.ys-nav-item[data-nav-theme="community"] .ys-dropdown {
  width: min(1080px, calc(100vw - 48px));
}

.ys-nav-item:nth-last-child(-n+3) .ys-dropdown {
  right: 0;
  left: auto;
  transform: translateY(8px);
}

.ys-nav-item:nth-last-child(-n+3):hover .ys-dropdown,
.ys-nav-item:nth-last-child(-n+3):focus-within .ys-dropdown {
  transform: translateY(0);
}

.ys-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2px 4px 13px;
  border-bottom: 1px solid rgba(6, 43, 70, 0.08);
}

.ys-dropdown-head strong {
  color: var(--nav-accent);
  font-family: var(--ys-font-body);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.35px;
}

.ys-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding-top: 13px;
}

.ys-nav-item[data-nav-theme="community"] .ys-dropdown-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ys-dropdown--single .ys-dropdown-grid {
  grid-template-columns: 1fr;
}

.ys-dropdown-group {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 14px;
  background: #f7f9fc;
  border-left: 3px solid var(--nav-accent);
}

.ys-dropdown-group p {
  margin: 0 0 9px;
  color: var(--ys-navy, #031b2d);
  font-family: var(--ys-font-body);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.15px;
  text-transform: uppercase;
}

.ys-dropdown-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
  padding: 8px 10px;
  color: #203246;
  font-family: var(--ys-font-body);
  font-size: 14.5px;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ys-dropdown-group a::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0.42;
  transform: rotate(45deg);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ys-dropdown-group a:hover,
.ys-dropdown-group a:focus-visible {
  background: #ffffff;
  color: var(--nav-accent);
  transform: translateX(3px);
}

.ys-dropdown-group a:hover::after,
.ys-dropdown-group a:focus-visible::after {
  opacity: 1;
  transform: translateX(2px) rotate(45deg);
}

/* Mobile base */
.ys-menu-toggle,
.ys-mobile-overlay,
.ys-mobile-menu {
  display: none;
}

.ys-menu-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .ys-header .ys-container {
    width: min(1180px, calc(100% - 28px));
  }

  .ys-header-inner {
    min-height: 78px;
  }

  .ys-header.scrolled .ys-header-inner {
    min-height: 64px;
  }

  .ys-desktop-nav {
    display: none;
  }

  .ys-brand-crest {
    height: 44px;
  }

  .ys-header.scrolled .ys-brand-crest {
    height: 38px;
  }

  .ys-brand-text,
  .ys-mobile-brand span {
    font-size: 24px;
  }

  .ys-menu-toggle {
    position: relative;
    z-index: 10002;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: var(--ys-navy, #031b2d);
    box-shadow: 0 12px 26px rgba(3, 27, 45, 0.18);
    cursor: pointer;
  }

  .ys-menu-toggle span {
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .ys-menu-toggle span:nth-child(1) {
    transform: translateY(-7px);
  }

  .ys-menu-toggle span:nth-child(3) {
    transform: translateY(7px);
  }

  .ys-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
  }

  .ys-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .ys-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .ys-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: block;
    background: rgba(3, 27, 45, 0.56);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
  }

  .ys-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .ys-mobile-menu {
    --drawer-pad: 16px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    width: min(430px, 94vw);
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    background: #f4f7fb;
    box-shadow: -24px 0 70px rgba(3, 27, 45, 0.18);
    transform: translateX(105%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ys-mobile-menu.active {
    transform: translateX(0);
  }

  .ys-mobile-menu-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 78px;
    padding: 14px var(--drawer-pad);
    background: #ffffff;
    border-bottom: 1px solid rgba(6, 43, 70, 0.08);
  }

  .ys-mobile-brand {
    min-width: 0;
  }

  .ys-mobile-brand img {
    width: auto;
    height: 40px;
    flex: 0 0 auto;
  }

  .ys-mobile-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ys-mobile-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: rgba(3, 27, 45, 0.06);
    color: var(--ys-navy, #031b2d);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
  }

  .ys-mobile-close:hover,
  .ys-mobile-close:focus-visible {
    background: var(--ys-navy, #031b2d);
    color: #ffffff;
  }

  .ys-mobile-menu-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px var(--drawer-pad) calc(24px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at top right, rgba(14, 124, 110, 0.12), transparent 34%),
      linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(3, 27, 45, 0.22) transparent;
  }

  .ys-mobile-menu-kicker {
    margin: 0 0 12px;
    padding: 0 4px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .ys-mobile-home-link,
  .ys-mobile-nav-head {
    --nav-accent: var(--ys-red, #e53935);
    position: relative;
    display: grid;
    align-items: center;
    min-height: 58px;
    margin-bottom: 10px;
    border: 1px solid rgba(3, 27, 45, 0.07);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(3, 27, 45, 0.06);
  }

  .ys-mobile-home-link[data-nav-theme="home"] {
    --nav-accent: var(--ys-red, #e53935);
  }

  .ys-mobile-home-link[data-nav-theme="contact"] {
    --nav-accent: var(--ys-red, #e53935);
  }

  .ys-mobile-nav-group[data-nav-theme="years"] .ys-mobile-nav-head,
  .ys-mobile-nav-group[data-nav-theme="years"] .ys-mobile-subnav {
    --nav-accent: #0e7c6e;
  }

  .ys-mobile-nav-group[data-nav-theme="parents"] .ys-mobile-nav-head,
  .ys-mobile-nav-group[data-nav-theme="parents"] .ys-mobile-subnav {
    --nav-accent: #1d4ed8;
  }

  .ys-mobile-nav-group[data-nav-theme="wellbeing"] .ys-mobile-nav-head,
  .ys-mobile-nav-group[data-nav-theme="wellbeing"] .ys-mobile-subnav {
    --nav-accent: #c0392b;
  }

  .ys-mobile-nav-group[data-nav-theme="community"] .ys-mobile-nav-head,
  .ys-mobile-nav-group[data-nav-theme="community"] .ys-mobile-subnav {
    --nav-accent: #166534;
  }

  .ys-mobile-home-link {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
    color: var(--ys-navy, #031b2d);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
    overflow: hidden;
  }

  .ys-mobile-home-link::before,
  .ys-mobile-nav-head::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: var(--nav-accent);
  }

  .ys-mobile-home-link::after {
    content: "->";
    color: var(--nav-accent);
    font-size: 15px;
    font-weight: 900;
  }

  .ys-mobile-nav-group {
    margin: 0;
  }

  .ys-mobile-nav-head {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 12px;
    padding: 0 10px 0 18px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .ys-mobile-nav-head > a {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    color: var(--ys-navy, #031b2d);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.12;
    text-decoration: none;
  }

  .ys-mobile-nav-head small {
    color: #6b7280;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
  }

  .ys-mobile-dropdown-toggle {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: rgba(3, 27, 45, 0.06);
    color: var(--ys-navy, #031b2d);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .ys-mobile-dropdown-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -2px);
    transition: transform 0.2s ease;
  }

  .ys-mobile-nav-group.active .ys-mobile-nav-head {
    background: var(--ys-navy, #031b2d);
    border-color: var(--ys-navy, #031b2d);
    box-shadow: 0 14px 32px rgba(3, 27, 45, 0.13);
  }

  .ys-mobile-nav-group.active .ys-mobile-nav-head > a,
  .ys-mobile-nav-group.active .ys-mobile-nav-head small {
    color: #ffffff;
  }

  .ys-mobile-nav-group.active .ys-mobile-dropdown-toggle {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
  }

  .ys-mobile-nav-group.active .ys-mobile-dropdown-toggle::before {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  .ys-mobile-subnav {
    --nav-accent: var(--ys-red, #e53935);
    display: none;
    padding: 0 0 12px 14px;
  }

  .ys-mobile-nav-group.active .ys-mobile-subnav {
    display: block;
  }

  .ys-mobile-subnav-section {
    padding: 4px 0 8px;
  }

  .ys-mobile-subnav-section p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 6px;
    color: var(--nav-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .ys-mobile-subnav-section p::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
  }

  .ys-mobile-subnav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 0 0 6px;
    padding: 9px 12px 9px 16px;
    color: #203246;
    font-size: 14px;
    font-weight: 780;
    line-height: 1.22;
    text-decoration: none;
    border: 1px solid rgba(3, 27, 45, 0.05);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }

  .ys-mobile-subnav a::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--nav-accent);
  }

  .ys-mobile-subnav a:hover,
  .ys-mobile-subnav a:focus-visible,
  .ys-mobile-subnav a:active {
    background: #ffffff;
    color: var(--nav-accent);
    transform: translateX(3px);
  }
}

@media (max-width: 430px) {
  .ys-header .ys-container {
    width: calc(100% - 24px);
  }

  .ys-header-inner {
    min-height: 72px;
  }

  .ys-brand {
    gap: 9px;
  }

  .ys-brand-crest {
    height: 38px;
  }

  .ys-brand-text,
  .ys-mobile-brand span {
    font-size: 20px;
  }

  .ys-menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .ys-mobile-menu {
    --drawer-pad: 12px;
    width: 94vw;
  }

  .ys-mobile-menu-header {
    min-height: 72px;
  }

  .ys-mobile-brand img {
    height: 36px;
  }

  .ys-mobile-close {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .ys-mobile-menu-body {
    padding-top: 14px;
  }

  .ys-mobile-home-link,
  .ys-mobile-nav-head {
    min-height: 54px;
    margin-bottom: 8px;
    border-radius: 16px;
  }

  .ys-mobile-home-link,
  .ys-mobile-nav-head > a {
    font-size: 15.5px;
  }

  .ys-mobile-nav-head {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 8px;
    padding-left: 16px;
  }

  .ys-mobile-dropdown-toggle {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .ys-mobile-subnav {
    padding-left: 10px;
  }

  .ys-mobile-subnav a {
    min-height: 40px;
    padding: 8px 10px 8px 14px;
    font-size: 13.4px;
    border-radius: 13px;
  }
}
/* =========================================================
   1. HERO SECTION - PREMIUM IMAGE SLIDER REDESIGN
========================================================= */

/* =========================================================
   2. VALUES TABS & VALUE BOX
========================================================= */

.ys-value-box-badge,
.ys-value-box-content ul,
#ysValueBoxList {
  display: none !important;
}

.ys-hero-value-box {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  min-height: auto !important;
  padding: 26px !important;
  border-radius: 22px !important;
  color: #ffffff !important;
  background: rgba(6, 43, 70, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(12px) !important;
  overflow: hidden !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

.ys-hero-value-box::before {
  content: "" !important;
  position: absolute !important;
  right: -46px !important;
  top: -46px !important;
  width: 115px !important;
  height: 115px !important;
  border-radius: 50% !important;
  background: rgba(229, 57, 53, 0.32) !important;
  filter: blur(10px) !important;
  pointer-events: none !important;
}

.ys-hero-value-box::after {
  content: "" !important;
  position: absolute !important;
  left: 24px !important;
  right: 24px !important;
  bottom: 0 !important;
  height: 3px !important;
  border-radius: 99px 99px 0 0 !important;
  background: var(--ys-red) !important;
}

.ys-value-box-content {
  position: relative !important;
  z-index: 2 !important;
}

.ys-value-box-label {
  margin-bottom: 7px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 1.3px !important;
  text-transform: uppercase !important;
}

.ys-value-box-content h2 {
  max-width: 100% !important;
  margin-bottom: 10px !important;
  color: #ffffff !important;
  font-size: 25px !important;
  line-height: 1.1 !important;
  letter-spacing: -0.8px !important;
}

.ys-value-box-content p:not(.ys-value-box-label) {
  margin-bottom: 0 !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.ys-hero-value-box.is-changing,
.ys-hero-value-box.is-active {
  opacity: 1 !important;
  animation: none !important;
}

/* Values tabs */
.ys-values-tabs-section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 8 !important;
  margin-top: -64px !important;
  padding: 0 !important;
  background: transparent !important;
}

.ys-values-tabs-section .ys-container {
  width: min(1480px, calc(100% - 36px)) !important;
}

.ys-values-tab-card {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 10px !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(220, 228, 236, 0.9) !important;
  box-shadow: 0 20px 50px rgba(3, 27, 45, 0.14) !important;
  backdrop-filter: blur(14px) !important;
  overflow: hidden !important;
}

.ys-value-pill {
  position: relative !important;
  min-width: 0 !important;
  min-height: 56px !important;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border-radius: 17px !important;
  background: #ffffff !important;
  color: var(--ys-navy) !important;
  border: 1px solid rgba(6, 43, 70, 0.07) !important;
  box-shadow: 0 7px 16px rgba(3, 27, 45, 0.05) !important;
  overflow: hidden !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease !important;
}

.ys-value-pill:hover,
.ys-value-pill:focus-visible {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 24px rgba(3, 27, 45, 0.1) !important;
  outline: none !important;
}

.ys-value-pill strong {
  color: inherit !important;
  font-size: 21px !important;
  font-weight: 950 !important;
  letter-spacing: -1px !important;
  line-height: 1 !important;
}

.ys-value-pill span {
  color: inherit !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.ys-value-pill::after {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 7px !important;
  height: 3px !important;
  border-radius: 99px !important;
  background: var(--ys-red) !important;
  transform: scaleX(0) !important;
  transition: transform 0.22s ease !important;
}

.ys-value-pill.active {
  background: var(--ys-navy) !important;
  color: #ffffff !important;
  border-color: var(--ys-navy) !important;
}

.ys-value-pill.active::after {
  transform: scaleX(1) !important;
}

/* =========================================================
   3. HEADTEACHER WELCOME SECTION
========================================================= */

.ys-welcome-section {
  background:
    radial-gradient(circle at top left, rgba(229, 57, 53, 0.06), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%) !important;
}

.ys-welcome-modern-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: end;
  padding: 54px;
  border-radius: 34px;
  background: #ffffff;
  border: 1px solid rgba(220, 228, 236, 0.95);
  box-shadow: 0 28px 80px rgba(3, 27, 45, 0.1);
  overflow: hidden;
}

.ys-welcome-modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 100%;
  background: var(--ys-red);
}

.ys-welcome-modern-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(6, 43, 70, 0.06);
  pointer-events: none;
}

.ys-welcome-modern-content {
  position: relative;
  z-index: 2;
  max-width: 830px;
}

.ys-welcome-modern-content h2 {
  margin-bottom: 12px;
  color: var(--ys-navy);
  font-size: clamp(38px, 4.5vw, 66px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.ys-welcome-modern-content h3 {
  margin-bottom: 24px;
  color: var(--ys-text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
}

.ys-welcome-modern-content p {
  max-width: 780px;
  margin-bottom: 18px;
  color: var(--ys-muted);
  font-size: 17px;
  line-height: 1.75;
}

.ys-welcome-modern-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.ys-ofsted-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fdecec;
  color: #f44336;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.2px;
  text-decoration: none;
  border: 0;
  box-shadow: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ys-ofsted-badge:hover {
  background: #f44336;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(244, 67, 54, 0.22);
}

.ys-welcome-headteacher-card {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 14px;
  border-radius: 26px;
  background: var(--ys-light);
  border: 1px solid var(--ys-border);
  box-shadow: 0 18px 42px rgba(3, 27, 45, 0.1);
}

.ys-welcome-headteacher-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
}

.ys-welcome-headteacher-card div {
  padding: 16px 8px 6px;
  text-align: center;
}

.ys-welcome-headteacher-card strong {
  display: block;
  color: var(--ys-navy);
  font-size: 18px;
  font-weight: 950;
}

.ys-welcome-headteacher-card span {
  display: block;
  margin-top: 4px;
  color: var(--ys-muted);
  font-size: 14px;
  font-weight: 850;
}

/* =========================================================
   5. DASHBOARD: CALENDAR + RESULTS
========================================================= */

.ys-dashboard-section {
  background: linear-gradient(180deg, var(--ys-light), var(--ys-white));
}

.ys-dashboard-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
}

.ys-calendar-card,
.ys-results-card {
  padding: 34px;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-sm);
}

.ys-mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.ys-calendar-day {
  min-height: 116px;
  padding: 14px;
  border-radius: 18px;
  background: var(--ys-light);
  border: 1px solid transparent;
  transition: var(--ys-transition);
}

.ys-calendar-day:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 57, 53, 0.22);
  background: var(--ys-white);
  box-shadow: var(--ys-shadow-sm);
}

.ys-calendar-day strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ys-navy);
  font-size: 14px;
}

.ys-calendar-day span {
  display: inline-flex;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ys-white);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.ys-event-blue {
  background: var(--ys-navy-soft);
}

.ys-event-red {
  background: var(--ys-red);
}

.ys-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  color: var(--ys-muted);
  font-size: 14px;
  font-weight: 700;
}

.ys-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ys-results-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 24px;
}

.ys-results-stats div {
  min-height: 132px;
  padding: 20px;
  border-radius: 22px;
  background: var(--ys-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--ys-transition);
}

.ys-results-stats div:hover {
  background: var(--ys-navy);
  color: var(--ys-white);
  transform: translateY(-5px);
}

.ys-results-stats strong {
  display: block;
  color: var(--ys-red);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1px;
}

.ys-results-stats span {
  margin-top: 8px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.ys-results-card>p {
  color: var(--ys-muted);
  font-size: 16px;
}

/* =========================================================
   6. TESTIMONIALS
========================================================= */

.ys-testimonials-section {
  padding: 100px 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(229, 57, 53, 0.18), transparent 32%),
    var(--ys-navy-dark);
  color: var(--ys-white);
  overflow: hidden;
}

.ys-testimonial-wrapper {
  position: relative;
}

.ys-testimonial-wrapper::before {
  content: "Y";
  position: absolute;
  right: -30px;
  top: -90px;
  color: rgba(255, 255, 255, 0.035);
  font-size: 360px;
  font-weight: 900;
  line-height: 1;
}

.ys-testimonial-heading {
  position: relative;
  z-index: 2;
  margin-bottom: 36px;
}

.ys-testimonial-heading h2 {
  color: var(--ys-white);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.ys-testimonial-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ys-testimonial-card {
  padding: 30px;
  border-radius: var(--ys-radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
  transition: var(--ys-transition);
}

.ys-testimonial-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
}

.ys-testimonial-card p {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.75;
}

.ys-testimonial-card strong {
  display: block;
  color: var(--ys-white);
}

.ys-testimonial-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

/* =========================================================
   7. NEWS
========================================================= */

.ys-news-section {
  background: var(--ys-white);
}

.ys-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.ys-news-card {
  overflow: hidden;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-sm);
  transition: var(--ys-transition);
}

.ys-news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ys-shadow-md);
}

.ys-news-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.75s ease;
}

.ys-news-card:hover img {
  transform: scale(1.07);
}

.ys-news-body {
  padding: 24px;
}

.ys-news-body span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(229, 57, 53, 0.1);
  color: var(--ys-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ys-news-body h3 {
  margin-bottom: 10px;
  color: var(--ys-navy);
  font-size: 22px;
  line-height: 1.2;
}

.ys-news-body p {
  color: var(--ys-muted);
  font-size: 14px;
}

.ys-news-body a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--ys-red);
  font-weight: 900;
}

/* =========================================================
   8. AWARDS
========================================================= */

.ys-awards-section {
  padding: 58px 0;
  background: var(--ys-light);
  border-top: 1px solid var(--ys-border);
  border-bottom: 1px solid var(--ys-border);
  text-align: center;
}

.ys-awards-section p {
  margin-bottom: 22px;
  color: var(--ys-muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.ys-awards-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.ys-awards-row span {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ys-white);
  color: var(--ys-navy);
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--ys-shadow-sm);
  border: 1px solid var(--ys-border);
}

/* =========================================================
   9. FINAL CTA
========================================================= */

.ys-final-cta {
  padding: 72px 0;
  background: var(--ys-white);
}

.ys-final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px;
  border-radius: var(--ys-radius-lg);
  background:
    radial-gradient(circle at top right, rgba(229, 57, 53, 0.22), transparent 35%),
    var(--ys-navy);
  color: var(--ys-white);
  box-shadow: var(--ys-shadow-lg);
}

.ys-final-cta h2 {
  max-width: 680px;
  color: var(--ys-white);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -1.3px;
}

.ys-final-cta-inner>div:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   10. GLOBAL RESPONSIVE ADJUSTMENTS
========================================================= */

@media (max-width: 1180px) {

  .ys-dashboard-grid,
  .ys-testimonial-grid,
  .ys-news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .ys-welcome-modern-card {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .ys-welcome-headteacher-card {
    width: min(100%, 360px);
    justify-self: start;
  }

  .ys-welcome-headteacher-card img {
    height: 280px;
  }

  .ys-dashboard-grid,
  .ys-testimonial-grid,
  .ys-news-grid {
    grid-template-columns: 1fr;
  }

  .ys-mini-calendar {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
  }
}

@media (max-width: 680px) {

  /* Welcome */
  .ys-welcome-section {
    padding: 58px 0 !important;
  }

  .ys-welcome-modern-card {
    padding: 30px 22px 24px;
    border-radius: 26px;
  }

  .ys-welcome-modern-card::before {
    width: 5px;
  }

  .ys-welcome-modern-content h2 {
    font-size: 32px;
    line-height: 1.06;
    letter-spacing: -1px;
  }

  .ys-welcome-modern-content h3 {
    margin-bottom: 18px;
    font-size: 17px;
  }

  .ys-welcome-modern-content p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.65;
  }

  .ys-welcome-modern-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .ys-welcome-modern-actions .ys-btn,
  .ys-ofsted-badge {
    width: 100%;
  }

  .ys-ofsted-badge {
    min-height: 46px;
    padding: 0 18px;
    font-size: 14px;
  }

  .ys-welcome-headteacher-card {
    max-width: 260px !important;
    margin: 10px auto 0 !important;
    padding: 10px !important;
    border-radius: 20px !important;
  }

  .ys-welcome-headteacher-card img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #ffffff !important;
    border-radius: 16px !important;
  }

  .ys-welcome-headteacher-card div {
    padding: 10px 6px 4px !important;
  }

  .ys-welcome-headteacher-card strong {
    font-size: 15px !important;
  }

  .ys-welcome-headteacher-card span {
    font-size: 12px !important;
  }

  /* Other sections */
  .ys-calendar-card,
  .ys-results-card {
    padding: 24px;
    border-radius: 24px;
  }

  .ys-results-stats {
    grid-template-columns: 1fr;
  }

  .ys-testimonials-section {
    padding: 70px 0;
  }

  .ys-testimonial-card {
    padding: 24px;
  }

  .ys-news-card img {
    height: 210px;
  }

  .ys-awards-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ys-awards-row span {
    width: 100%;
  }

  .ys-final-cta {
    padding: 52px 0;
  }

  .ys-final-cta-inner {
    padding: 28px;
    border-radius: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .ys-final-cta h2 {
    font-size: 30px;
  }

  .ys-final-cta-inner>div:last-child {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .ys-final-cta-inner .ys-btn {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .ys-welcome-modern-card {
    padding: 26px 18px 20px;
  }

  .ys-welcome-modern-content h2 {
    font-size: 29px;
  }

  .ys-welcome-headteacher-card {
    max-width: 235px !important;
  }

  .ys-welcome-headteacher-card img {
    height: 200px !important;
  }
}

/* =========================================================
   11. JOIN US - INFINITE EVENT ROLLING SECTION
========================================================= */

.ys-join-events-section {
  padding: 88px 0 100px;
  background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
  overflow: hidden;
}

.ys-join-events-wrap {
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
}

.ys-join-events-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 34px;
}

.ys-join-events-header h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -2px;
  color: var(--ys-navy);
  margin-bottom: 12px;
}

.ys-join-events-header p:last-child {
  max-width: 700px;
  color: var(--ys-muted);
  font-size: 18px;
  line-height: 1.6;
}

.ys-join-events-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ys-join-event-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(6, 43, 70, 0.12);
  background: #ffffff;
  color: var(--ys-navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(6, 43, 70, 0.06);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ys-join-event-arrow:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--ys-red, #ef3f3a);
  border-color: var(--ys-red, #ef3f3a);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(239, 63, 58, 0.35);
}

.ys-join-events-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
}

.ys-join-events-track {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 22px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.ys-join-event-card {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(220, 228, 236, 0.95);
  box-shadow: 0 14px 36px rgba(3, 27, 45, 0.08);
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ys-join-event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(3, 27, 45, 0.16);
  border-color: rgba(229, 57, 53, 0.32);
}

.ys-join-event-image-shell {
  position: relative;
  padding: 16px 16px 0 !important;
}

.ys-join-event-image {
  width: 100% !important;
  height: 190px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #e9f0f5 !important;
}

.ys-join-event-image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 20px !important;
}

.ys-join-event-card:hover .ys-join-event-image img {
  transform: scale(1.08);
}

.ys-join-event-tag {
  display: none !important;
}

.ys-join-event-body {
  flex: 1;
  padding: 22px 24px 18px;
}

.ys-join-event-date {
  margin-bottom: 10px;
  color: var(--ys-red);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ys-join-event-body h3 {
  margin-bottom: 10px;
  color: var(--ys-navy);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.6px;
}

.ys-join-event-body p:last-child {
  color: var(--ys-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ys-join-event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--ys-border);
  color: var(--ys-navy);
  font-size: 13px;
  font-weight: 850;
}

.ys-join-event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Modal */
.ys-join-event-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ys-join-event-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ys-join-event-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 27, 45, 0.72);
  backdrop-filter: blur(9px);
}

.ys-join-event-modal-box {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  max-height: 90vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.3);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.ys-join-event-modal.active .ys-join-event-modal-box {
  transform: translateY(0) scale(1);
}

.ys-join-event-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ys-navy);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  transition: background 0.25s ease, transform 0.25s ease;
}

.ys-join-event-modal-close:hover {
  background: var(--ys-red);
  transform: rotate(90deg);
}

.ys-join-event-modal-image {
  min-height: 420px;
  background: #eef3f7;
}

.ys-join-event-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ys-join-event-modal-content {
  padding: 42px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 47, 79, 0.28) transparent;
}

.ys-join-event-modal-content::-webkit-scrollbar {
  width: 8px;
}

.ys-join-event-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.ys-join-event-modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 47, 79, 0.25);
  border-radius: 999px;
}

.ys-event-detail-content {
  max-width: 760px;
}

.ys-event-detail-content h4 {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ys-navy, #002f4f);
}

.ys-event-detail-content p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.8;
  color: #657789;
}

.ys-event-detail-content strong {
  color: #263746;
  font-weight: 850;
}

.ys-event-detail-content a {
  color: var(--ys-red, #f53b37);
  font-weight: 850;
  text-decoration: none;
}

.ys-event-detail-content a:hover {
  text-decoration: underline;
}

.ys-event-video-box {
  margin-top: 34px;
  width: 100%;
  max-width: 820px;
}

.ys-event-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #001f35;
  box-shadow: 0 26px 70px rgba(0, 47, 79, 0.22);
}

.ys-event-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ys-event-contact-list,
.ys-event-social-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: -4px 0 28px;
}

.ys-event-contact-list a,
.ys-event-social-list a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ys-red, #f53b37);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.25s ease, color 0.25s ease;
}

.ys-event-contact-list a:hover,
.ys-event-social-list a:hover {
  color: var(--ys-navy, #002f4f);
  transform: translateX(5px);
}

.ys-event-contact-list span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 59, 55, 0.1);
  font-size: 14px;
}

.ys-event-social-list a::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--ys-red, #f53b37);
  box-shadow: 0 0 0 6px rgba(245, 59, 55, 0.1);
}

@media (max-width: 900px) {
  .ys-join-events-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
  }

  .ys-join-events-header h2 {
    font-size: 42px;
  }

  .ys-join-event-modal-box {
    max-height: 92vh;
  }

  .ys-join-event-modal-content {
    max-height: 92vh;
  }

  .ys-event-detail-content {
    max-width: 100%;
  }

  .ys-event-detail-content h4 {
    font-size: 25px;
    margin-bottom: 15px;
  }

  .ys-event-detail-content p {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
  }

  .ys-event-video-box {
    margin-top: 24px;
  }

  .ys-event-video-frame {
    border-radius: 17px;
  }

  .ys-event-contact-list a,
  .ys-event-social-list a {
    font-size: 15px;
    word-break: break-word;
  }
}

@media (max-width: 680px) {
  .ys-join-events-section {
    padding: 50px 0 60px !important;
  }

  .ys-join-events-wrap {
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .ys-join-events-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
  }

  .ys-join-events-header h2 {
    font-size: 30px;
    line-height: 1.06;
    letter-spacing: -1px;
    margin-bottom: 6px;
  }

  .ys-join-events-header p:last-child {
    font-size: 14px;
    line-height: 1.55;
  }

  .ys-join-events-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    align-self: flex-start;
  }

  .ys-join-event-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .ys-join-event-arrow:hover,
  .ys-join-event-arrow:active {
    background: var(--ys-red, #ef3f3a) !important;
    border-color: var(--ys-red, #ef3f3a) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(239, 63, 58, 0.4);
  }

  .ys-join-events-slider {
    overflow: hidden !important;
    width: 100% !important;
  }

  .ys-join-events-track {
    gap: 16px !important;
  }

  .ys-join-event-card {
    flex: 0 0 285px !important;
    width: 285px !important;
    min-width: 285px !important;
    min-height: 345px;
    border-radius: 28px;
  }

  .ys-join-event-image-shell {
    padding: 14px 14px 0 !important;
  }

  .ys-join-event-image {
    height: 145px !important;
    border-radius: 18px !important;
  }

  .ys-join-event-image img {
    border-radius: 18px !important;
  }

  .ys-join-event-body {
    padding: 16px 16px 12px;
  }

  .ys-join-event-date {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .ys-join-event-body h3 {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .ys-join-event-body p:last-child {
    font-size: 13px;
    line-height: 1.5;
  }

  .ys-join-event-meta {
    padding: 12px 16px 16px;
    font-size: 11px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ys-join-event-modal {
    padding: 10px;
    align-items: end;
  }

  .ys-join-event-modal-box {
    grid-template-columns: 1fr;
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
    overflow-y: auto;
  }

  .ys-join-event-modal-image {
    min-height: 180px;
    max-height: 200px;
  }

  .ys-join-event-modal-content {
    padding: 22px 18px 20px;
  }
}

@media (max-width: 520px) {
  .ys-event-detail-content h4 {
    font-size: 22px;
  }

  .ys-event-detail-content p {
    font-size: 14.5px;
  }

  .ys-event-contact-list,
  .ys-event-social-list {
    gap: 9px;
    margin-bottom: 22px;
  }
}

/* =========================================================
   12. EXAM RESULTS SECTION + PDF POPUP
========================================================= */

.ys-results-release-section {
  padding: 80px 0 90px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
}

.ys-results-release-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.ys-results-release-header h2 {
  margin-bottom: 12px;
  color: var(--ys-navy);
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.04;
  letter-spacing: -1.8px;
}

.ys-results-release-header>p:last-child {
  color: var(--ys-muted);
  font-size: 16px;
  line-height: 1.6;
}

.ys-results-release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.ys-result-release-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  min-height: 330px;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(220, 228, 236, 0.95);
  box-shadow: 0 18px 48px rgba(3, 27, 45, 0.08);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ys-result-release-card:hover {
  transform: translateY(-7px);
  border-color: rgba(229, 57, 53, 0.28);
  box-shadow: 0 28px 70px rgba(3, 27, 45, 0.15);
}

.ys-result-release-image {
  height: 100%;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #edf3f7;
}

.ys-result-release-image img {
  width: 100%;
  max-width: 170px;
  height: 250px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(3, 27, 45, 0.12);
  transition: transform 0.45s ease;
}

.ys-result-release-card:hover .ys-result-release-image img {
  transform: scale(1.04);
}

.ys-result-release-content {
  padding: 34px 34px 34px 10px;
}

.ys-result-release-content span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(229, 57, 53, 0.09);
  color: var(--ys-red);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ys-result-release-content h3 {
  margin-bottom: 12px;
  color: var(--ys-navy);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -1px;
}

.ys-result-release-content p {
  margin-bottom: 22px;
  color: var(--ys-muted);
  font-size: 15px;
  line-height: 1.65;
}

.ys-result-release-btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ys-navy);
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(3, 27, 45, 0.18);
  transition: background 0.25s ease, transform 0.25s ease;
}

.ys-result-release-btn:hover {
  background: var(--ys-red);
  transform: translateY(-2px);
}

/* Modal */
.ys-result-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ys-result-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ys-result-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 27, 45, 0.78);
  backdrop-filter: blur(10px);
}

.ys-result-modal-box {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 420px;
  overflow: hidden;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.ys-result-modal.active .ys-result-modal-box {
  transform: translateY(0) scale(1);
}

.ys-result-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ys-navy);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.ys-result-modal-close:hover {
  background: var(--ys-red);
  transform: rotate(90deg);
}

.ys-result-modal-preview {
  min-height: 650px;
  max-height: 90vh;
  padding: 22px;
  background: #202124;
  overflow-y: auto;
}

.ys-result-modal-preview iframe {
  width: 100%;
  height: 650px;
  display: block;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
}

.ys-result-page-list {
  display: grid;
  gap: 26px;
}

.ys-result-page {
  width: min(720px, 100%);
  margin: 0 auto;
}

.ys-result-page-number {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  opacity: 0.75;
}

.ys-result-page img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.ys-result-modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 42px;
  background: #ffffff;
}

.ys-result-modal-content>p:first-child {
  margin-bottom: 12px;
  color: var(--ys-red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ys-result-modal-content h3 {
  margin-bottom: 16px;
  color: var(--ys-navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -1.2px;
}

.ys-result-modal-content h3+p {
  margin-bottom: 28px;
  color: var(--ys-muted);
  font-size: 16px;
  line-height: 1.7;
}

.ys-result-modal-content .ys-btn {
  width: fit-content;
}

@media (max-width: 1100px) {
  .ys-results-release-grid {
    grid-template-columns: 1fr;
  }

  .ys-result-release-card {
    grid-template-columns: 230px 1fr;
  }

  .ys-result-modal-box {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .ys-result-modal-preview {
    min-height: auto;
  }

  .ys-result-modal-preview iframe {
    height: 62vh;
  }

  .ys-result-modal-content {
    padding: 32px;
  }
}

@media (max-width: 760px) {
  .ys-results-release-section {
    padding: 56px 0 64px;
  }

  .ys-results-release-header {
    margin-bottom: 26px;
  }

  .ys-results-release-header h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .ys-results-release-header>p:last-child {
    font-size: 14px;
    line-height: 1.55;
  }

  .ys-results-release-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ys-result-release-card {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 24px;
  }

  .ys-result-release-image {
    min-height: auto;
    padding: 18px 18px 0;
    background: #ffffff;
  }

  .ys-result-release-image img {
    max-width: 180px;
    height: 230px;
  }

  .ys-result-release-content {
    padding: 22px 20px 24px;
  }

  .ys-result-release-content h3 {
    font-size: 25px;
  }

  .ys-result-release-content p {
    font-size: 14px;
    line-height: 1.6;
  }

  .ys-result-release-btn {
    width: 100%;
  }

  .ys-result-modal {
    padding: 10px;
    align-items: end;
  }

  .ys-result-modal-box {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
  }

  .ys-result-modal-preview {
    max-height: 56vh;
    min-height: auto;
    padding: 14px;
    background: #202124;
  }

  .ys-result-modal-preview iframe {
    height: 52vh;
    border-radius: 14px;
  }

  .ys-result-page-list {
    gap: 18px;
  }

  .ys-result-page-number {
    font-size: 12px;
  }

  .ys-result-page img {
    border-radius: 10px;
  }

  .ys-result-modal-content {
    padding: 22px 20px 24px;
  }

  .ys-result-modal-content h3 {
    font-size: 25px;
  }

  .ys-result-modal-content h3+p {
    font-size: 14px;
    line-height: 1.6;
  }

  .ys-result-modal-content .ys-btn {
    width: 100%;
  }

  .ys-result-modal-close {
    right: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    font-size: 25px;
  }
}

/* =========================================================
   13. TESTIMONIALS - PREMIUM SMOOTH BOARD
========================================================= */

.ys-testimonials-flip-section {
  padding: 90px 0;
  background:
    radial-gradient(circle at top right, rgba(229, 57, 53, 0.11), transparent 28%),
    linear-gradient(135deg, #031d33 0%, #08324f 48%, #074d67 100%);
  overflow: hidden;
}

.ys-testimonials-flip-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.ys-testimonials-copy {
  color: #ffffff;
  max-width: 470px;
}

.ys-testimonials-copy h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -1.6px;
}

.ys-testimonials-copy>p:last-of-type {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.72;
}

.ys-testimonials-board-wrap {
  position: relative;
}

.ys-testimonial-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ys-testimonial-counter {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 1.5px;
}

.ys-testimonial-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ys-testimonial-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ys-navy);
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.ys-testimonial-arrow:hover {
  transform: translateY(-2px);
  background: var(--ys-red);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(229, 57, 53, 0.22);
}

.ys-testimonial-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ys-testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.ys-testimonial-dot:hover {
  transform: scale(1.2);
}

.ys-testimonial-dot.active {
  width: 30px;
  background: var(--ys-red);
}

.ys-testimonial-stage {
  position: relative;
  overflow: visible;
}

.ys-testimonial-flip-card {
  position: relative;
  min-height: 465px;
  padding: 34px 34px 28px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(221, 229, 237, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.23), 0 10px 30px rgba(3, 27, 45, 0.08);
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  transform: translate3d(0, 0, 0) scale(1);
  backface-visibility: hidden;
}

.ys-testimonial-flip-card.is-flipping {
  animation: ysTestimonialFlipClean 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.ys-testimonial-flip-card.is-sliding-next {
  animation: ysTestimonialSlideNext 0.52s cubic-bezier(0.22, 0.75, 0.24, 1) both;
}

.ys-testimonial-flip-card.is-sliding-prev {
  animation: ysTestimonialSlidePrev 0.52s cubic-bezier(0.22, 0.75, 0.24, 1) both;
}

@keyframes ysTestimonialFlipClean {
  0% {
    transform: rotateY(0deg);
  }

  49% {
    transform: rotateY(90deg);
  }

  50% {
    transform: rotateY(-90deg);
  }

  100% {
    transform: rotateY(0deg);
  }
}

@keyframes ysTestimonialSlideNext {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }

  42% {
    opacity: 0;
    transform: translate3d(-34px, 8px, 0) scale(0.975);
    filter: blur(4px);
  }

  58% {
    opacity: 0;
    transform: translate3d(34px, 8px, 0) scale(0.975);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes ysTestimonialSlidePrev {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }

  42% {
    opacity: 0;
    transform: translate3d(34px, 8px, 0) scale(0.975);
    filter: blur(4px);
  }

  58% {
    opacity: 0;
    transform: translate3d(-34px, 8px, 0) scale(0.975);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

.ys-testimonial-card-glow {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 72, 60, 0.18), rgba(255, 72, 60, 0) 70%);
  pointer-events: none;
}

.ys-testimonial-card-head {
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
}

.ys-testimonial-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 72, 60, 0.1);
  color: var(--ys-red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.ys-testimonial-quote-mark {
  margin-bottom: 4px;
  color: rgba(4, 42, 70, 0.12);
  font-size: 68px;
  font-weight: 950;
  line-height: 1;
}

.ys-testimonial-quote {
  position: relative;
  z-index: 2;
  min-height: 205px;
  margin-bottom: 30px;
  color: #304659;
  font-size: 20px;
  line-height: 1.78;
  letter-spacing: -0.2px;
}

.ys-testimonial-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 223, 231, 0.88);
}

.ys-testimonial-avatar {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #eef3f7;
  border: 4px solid #ffffff;
  box-shadow: 0 14px 30px rgba(3, 27, 45, 0.18);
}

.ys-testimonial-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.ys-testimonial-meta h3 {
  margin-bottom: 4px;
  color: var(--ys-navy);
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -0.8px;
}

.ys-testimonial-meta p {
  color: #6d7f90;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .ys-testimonials-flip-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ys-testimonials-copy {
    max-width: 720px;
  }
}

@media (max-width: 768px) {

  .ys-testimonial-flip-card.is-sliding-next,
  .ys-testimonial-flip-card.is-sliding-prev {
    animation-duration: 0.45s;
  }

  @keyframes ysTestimonialSlideNext {
    0% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }

    42% {
      opacity: 0;
      transform: translate3d(-18px, 6px, 0) scale(0.98);
      filter: blur(3px);
    }

    58% {
      opacity: 0;
      transform: translate3d(18px, 6px, 0) scale(0.98);
      filter: blur(3px);
    }

    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes ysTestimonialSlidePrev {
    0% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }

    42% {
      opacity: 0;
      transform: translate3d(18px, 6px, 0) scale(0.98);
      filter: blur(3px);
    }

    58% {
      opacity: 0;
      transform: translate3d(-18px, 6px, 0) scale(0.98);
      filter: blur(3px);
    }

    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }
  }
}

@media (max-width: 760px) {
  .ys-testimonials-flip-section {
    padding: 52px 0 56px !important;
  }

  .ys-testimonials-copy h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .ys-testimonials-copy>p:last-of-type {
    font-size: 14px;
    line-height: 1.6;
  }

  .ys-testimonial-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ys-testimonial-counter {
    text-align: center;
    font-size: 12px;
  }

  .ys-testimonial-controls {
    justify-content: center;
    gap: 10px;
  }

  .ys-testimonial-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .ys-testimonial-dot {
    width: 9px;
    height: 9px;
  }

  .ys-testimonial-dot.active {
    width: 22px;
  }

  .ys-testimonial-flip-card {
    min-height: auto !important;
    padding: 22px 18px 18px !important;
    border-radius: 24px !important;
  }

  .ys-testimonial-chip {
    min-height: 32px;
    font-size: 10px;
    letter-spacing: 0.7px;
  }

  .ys-testimonial-quote-mark {
    margin-bottom: 0 !important;
    font-size: 44px !important;
    line-height: 0.8 !important;
  }

  .ys-testimonial-quote {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 22px !important;
    font-size: 15.5px !important;
    line-height: 1.65 !important;
  }

  .ys-testimonial-footer {
    margin-top: 0 !important;
    padding-top: 18px !important;
    gap: 12px;
  }

  .ys-testimonial-avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-width: 3px;
  }

  .ys-testimonial-meta h3 {
    font-size: 21px;
  }

  .ys-testimonial-meta p {
    font-size: 10px;
    letter-spacing: 1.8px;
  }
}

@media (max-width: 420px) {
  .ys-testimonial-flip-card {
    padding: 20px 16px 16px !important;
  }

  .ys-testimonial-quote {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
  }

  .ys-testimonial-meta h3 {
    font-size: 20px;
  }
}

/* =========================================================
   14. LIVE SCHOOL CALENDAR SECTION
========================================================= */

.ys-calendar-embed-section {
  padding: 96px 0;
  background:
    radial-gradient(circle at top left, rgba(229, 57, 53, 0.06), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
}

.ys-calendar-embed-card {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 34px;
  align-items: stretch;
  padding: 34px;
  border-radius: 34px;
  background: #ffffff;
  border: 1px solid rgba(220, 228, 236, 0.95);
  box-shadow: 0 26px 76px rgba(3, 27, 45, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ys-calendar-embed-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 57, 53, 0.22);
  box-shadow: 0 34px 90px rgba(3, 27, 45, 0.16);
}

.ys-calendar-embed-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 16px 26px 10px;
}

.ys-calendar-embed-content h2 {
  margin-bottom: 14px;
  color: var(--ys-navy);
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -1.8px;
}

.ys-calendar-embed-content>p:last-of-type {
  max-width: 460px;
  margin-bottom: 28px;
  color: var(--ys-muted);
  font-size: 17px;
  line-height: 1.7;
}

.ys-calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ys-calendar-frame-wrap {
  position: relative !important;
  min-height: 620px !important;
  background: #f4f7fb !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  border: 1px solid rgba(220, 228, 236, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.ys-calendar-frame-wrap::before {
  content: "Loading school calendar..." !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--ys-navy) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #f7fafc, #eef3f7) !important;
  z-index: 1 !important;
}

.ys-calendar-frame {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 640px;
  min-height: 620px !important;
  display: block;
  border: 0 !important;
  background: #ffffff !important;
}

.ys-calendar-embed-card:active {
  transform: scale(0.995);
}

@media (max-width: 980px) {
  .ys-calendar-embed-card {
    grid-template-columns: 1fr;
  }

  .ys-calendar-embed-content {
    padding: 10px 4px 0;
  }
}

@media (max-width: 680px) {
  .ys-calendar-embed-section {
    padding: 60px 0;
  }

  .ys-calendar-embed-card {
    padding: 18px;
    border-radius: 26px;
    gap: 22px;
  }

  .ys-calendar-embed-content h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .ys-calendar-embed-content>p:last-of-type {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
  }

  .ys-calendar-actions {
    flex-direction: column;
  }

  .ys-calendar-actions .ys-btn {
    width: 100%;
  }

  .ys-calendar-frame-wrap {
    min-height: 520px !important;
    border-radius: 22px !important;
  }

  .ys-calendar-frame {
    height: 520px;
    min-height: 520px !important;
  }
}

/* =========================================================
   15. AWARDS & ACCREDITATIONS - LOGO ONLY CLEAN STYLE
========================================================= */

.ys-awards-premium-section {
  padding: 84px 0;
  background:
    radial-gradient(circle at top left, rgba(229, 57, 53, 0.05), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  overflow: hidden;
}

.ys-awards-premium-header {
  max-width: 780px;
  margin-bottom: 38px;
}

.ys-awards-premium-header h2 {
  margin-bottom: 14px;
  color: var(--ys-navy);
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -1.5px;
}

.ys-awards-premium-header>p:last-child {
  max-width: 700px;
  color: var(--ys-muted);
  font-size: 16px;
  line-height: 1.65;
}

.ys-awards-premium-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ys-award-logo-card {
  position: relative;
  height: 170px;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(220, 228, 236, 0.95);
  box-shadow: 0 14px 34px rgba(3, 27, 45, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.ys-award-logo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(229, 57, 53, 0.11), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(244, 247, 251, 0.65));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.ys-award-logo-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(229, 57, 53, 0.28);
  box-shadow: 0 28px 64px rgba(3, 27, 45, 0.15);
}

.ys-award-logo-card:hover::before {
  opacity: 1;
}

.ys-award-logo-card:active {
  transform: scale(0.97);
}

.ys-award-logo-card img {
  position: relative;
  z-index: 2;
  max-width: 82%;
  max-height: 92px;
  display: block;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.ys-award-logo-card:hover img {
  transform: scale(1.08);
}

.ys-award-logo-card img[alt="Hampshire County Council"],
.ys-award-logo-card img[alt="Investors in People"] {
  max-width: 90%;
  max-height: 82px;
}

.ys-award-logo-card img[alt="Ofsted Good Provider"],
.ys-award-logo-card img[alt="Design Mark"],
.ys-award-logo-card img[alt="FFT Attendance Award"] {
  max-height: 110px;
}

@media (max-width: 980px) {
  .ys-awards-premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ys-award-logo-card {
    height: 160px;
  }
}

@media (max-width: 680px) {
  .ys-awards-premium-section {
    padding: 58px 0;
  }

  .ys-awards-premium-header {
    margin-bottom: 26px;
  }

  .ys-awards-premium-header h2 {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .ys-awards-premium-header>p:last-child {
    font-size: 14px;
    line-height: 1.6;
  }

  .ys-awards-premium-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 18px;
  }

  .ys-awards-premium-grid::-webkit-scrollbar {
    display: none;
  }

  .ys-award-logo-card {
    flex: 0 0 210px;
    height: 140px;
    padding: 22px;
    border-radius: 22px;
    scroll-snap-align: start;
  }

  .ys-award-logo-card img {
    max-width: 88%;
    max-height: 82px;
  }

  .ys-award-logo-card:active {
    transform: scale(0.96);
    box-shadow: 0 20px 46px rgba(3, 27, 45, 0.14);
  }
}

/* =========================================================
   16. COMPACT MODERN FOOTER
========================================================= */

.ys-footer {
  --footer-blue: #2335c2;
  --footer-red: #d2232a;
  padding: 54px 0 0;
  background: #2335c2;
  color: #ffffff;
  overflow: hidden;
}

.ys-footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 42px;
  padding-bottom: 38px;
}

.ys-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: #ffffff;
  text-decoration: none;
}

.ys-footer-logo:hover span {
  color: #ffffff;
}

.ys-footer-logo img {
  width: 62px;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
}

.ys-footer-logo span {
  color: #ffffff;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.8px;
}

.ys-footer-brand p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.7;
}

.ys-footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.ys-footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.ys-footer-social a:hover {
  background: #e53935;
  border-color: #e53935;
  color: #ffffff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 22px rgba(229, 57, 53, 0.45);
}

.ys-footer-social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  display: block;
}

.ys-footer h3 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
}

.ys-footer-link-grid {
  display: grid;
  gap: 10px;
}

.ys-footer-link-grid a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

.ys-footer-link-grid a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.ys-footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ys-footer-contact li {
  margin-bottom: 14px;
}

.ys-footer-contact strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.ys-footer-contact span,
.ys-footer-contact a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.22s ease;
}

.ys-footer-contact a:hover {
  color: #ffffff;
}

.ys-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.ys-footer-bottom p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.ys-footer-bottom div {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ys-footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.22s ease;
}

.ys-footer-bottom a:hover {
  color: #ffffff;
}

@media (max-width: 980px) {
  .ys-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .ys-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .ys-footer {
    padding-top: 42px;
  }

  .ys-footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 30px;
  }

  .ys-footer-logo img {
    width: 54px;
  }

  .ys-footer-logo span {
    font-size: 24px;
  }

  .ys-footer-brand p {
    font-size: 14px;
    line-height: 1.6;
  }

  .ys-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ys-footer-bottom div {
    gap: 12px;
  }
}

/* =========================================================
   17. VALUES ORBIT SECTION — LUXURY DEEP NAVY DARK WHEEL
========================================================= */

.ys-values-orbit-section {
  position: relative;
  padding: 110px 0 120px;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(6, 24, 38, 0.04), transparent 45%),
    radial-gradient(ellipse at 85% 75%, var(--active-soft, rgba(239, 63, 58, 0.05)), transparent 45%),
    linear-gradient(180deg, #f8fbfd 0%, #ffffff 50%, #f4f8fc 100%);
  overflow: hidden;
  transition: background 0.5s ease;
}

/* Background Watermark */
.ys-values-orbit-section::before {
  content: "VALUES";
  position: absolute;
  top: 15px;
  right: -20px;
  color: rgba(6, 43, 70, 0.025);
  font-size: clamp(90px, 14vw, 220px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -6px;
  pointer-events: none;
  user-select: none;
}

/* ——— Grid Layout ——— */

.ys-values-orbit-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.ys-values-orbit-wheel-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ——— The Dark Midnight Navy Wheel ——— */

.ys-values-orbit-wheel {
  --orbit-size: 570px;
  --orbit-radius: 185px;
  position: relative;
  width: var(--orbit-size);
  height: var(--orbit-size);
  border-radius: 50%;
  padding: 12px;
  background:
    radial-gradient(circle at center, var(--active-soft, rgba(239, 63, 58, 0.12)), transparent 55%),
    radial-gradient(circle at 35% 22%, #0f324d 0%, transparent 45%),
    radial-gradient(circle at 75% 78%, #092033 0%, transparent 50%),
    linear-gradient(145deg, #092033 0%, #061826 50%, #030d16 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 40px 100px rgba(6, 24, 38, 0.35),
    0 15px 35px rgba(3, 13, 22, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 80px rgba(0, 0, 0, 0.45);
  isolation: isolate;
  transition: background 0.5s ease;
}

/* Orbit track ring — glowing dashed track where pills travel */
.ys-values-orbit-wheel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--orbit-radius) * 2);
  height: calc(var(--orbit-radius) * 2);
  margin-left: calc(var(--orbit-radius) * -1);
  margin-top: calc(var(--orbit-radius) * -1);
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 25px rgba(255, 255, 255, 0.06),
    inset 0 0 25px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Inner decorative ring */
.ys-values-orbit-wheel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--orbit-radius) * 2 - 76px);
  height: calc(var(--orbit-radius) * 2 - 76px);
  margin-left: calc((var(--orbit-radius) * 2 - 76px) / -2);
  margin-top: calc((var(--orbit-radius) * 2 - 76px) / -2);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* ——— Value Pill Segments (Frosted Dark Glass Cards) ——— */

.ys-values-orbit-segment {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 148px;
  height: 52px;
  margin-left: -74px;
  margin-top: -26px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 60%),
    #0a2236;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--segment-color) 60%, rgba(255, 255, 255, 0.25));
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translate3d(var(--pos-x, 0px), var(--pos-y, 0px), 0);
  transform-origin: center center;
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  will-change: transform;
  backface-visibility: hidden;
  z-index: 3;
}

/* Pill text */
.ys-values-orbit-segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ys-values-orbit-segment:hover,
.ys-values-orbit-segment:focus-visible {
  border-color: var(--segment-color);
  box-shadow:
    0 14px 32px color-mix(in srgb, var(--segment-color) 40%, transparent),
    0 4px 10px rgba(0, 0, 0, 0.30);
  filter: brightness(1.15);
  outline: none;
}

/* ——— Active Pill (Vibrant Illuminated Fill) ——— */

.ys-values-orbit-segment.active {
  width: 168px;
  height: 60px;
  margin-left: -84px;
  margin-top: -30px;
  font-size: 17px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.30) 0%, transparent 60%),
    var(--segment-color);
  color: #ffffff;
  border-color: #ffffff;
  transform: translate3d(var(--pos-x, 0px), var(--pos-y, 0px), 0) scale(1.08);
  box-shadow:
    0 0 0 3px #ffffff,
    0 14px 40px color-mix(in srgb, var(--segment-color) 55%, transparent),
    0 4px 16px rgba(0, 0, 0, 0.35);
  z-index: 6;
}

.ys-values-orbit-segment.active span {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Active Ring Glow */
.ys-values-orbit-segment.active::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--segment-color) 50%, transparent);
  animation: ysValueRingPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ysValueRingPulse {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }

  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

/* ——— Center Crest Badge ——— */

.ys-values-orbit-center {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ys-values-orbit-center-inner {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(150deg, #0e2e47 0%, #061826 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 8px #061826,
    0 0 0 9px rgba(255, 255, 255, 0.10),
    0 18px 45px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
}

.ys-values-orbit-center-inner img {
  width: 88px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  margin: 0 !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.ys-values-orbit-center-inner strong {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ——— Content Column ——— */

.ys-values-orbit-content-col .ys-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.ys-values-orbit-content-col h2 {
  margin-bottom: 18px;
  color: var(--ys-navy);
  font-size: clamp(40px, 4.4vw, 66px);
  font-weight: 900;
  line-height: 1.01;
  letter-spacing: -2.2px;
}

.ys-values-orbit-intro {
  margin-bottom: 32px;
  color: #4a6378;
  font-size: 17.5px;
  line-height: 1.76;
}

/* ——— Panel Card (Clean Luxury Design) ——— */

.ys-values-orbit-panel {
  position: relative;
  min-height: 220px;
  padding: 38px 44px 36px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(6, 43, 70, 0.08);
  border-top: 3.5px solid var(--active-color, #ef3f3a);
  box-shadow:
    0 20px 50px rgba(6, 43, 70, 0.06),
    0 2px 8px rgba(6, 43, 70, 0.02);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.25s ease;
}

.ys-values-orbit-panel.is-changing {
  transform: translateY(2px);
  opacity: 0.80;
}

/* Watermark Number in Top Right */
.ys-values-panel-num {
  position: absolute;
  top: 14px;
  right: 28px;
  color: color-mix(in srgb, var(--active-color, #ef3f3a) 14%, transparent);
  font-size: 84px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -3px;
  pointer-events: none;
  user-select: none;
  transition: color 0.4s ease;
}

.ys-values-orbit-panel h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
  color: var(--active-color, #ef3f3a);
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.4px;
  transition: color 0.4s ease;
}

.ys-values-orbit-panel p {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 0;
  color: #4a6378;
  font-size: 17px;
  line-height: 1.76;
}

/* Hidden items */
.ys-values-orbit-panel-item[hidden] {
  display: none !important;
}

/* ——— Navigation Controls ——— */

.ys-values-orbit-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.ys-values-orbit-arrow {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(6, 43, 70, 0.10);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ys-navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(6, 43, 70, 0.05);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ys-values-orbit-arrow:hover {
  transform: translateY(-2px) scale(1.06);
  background: var(--active-color, var(--ys-red));
  border-color: var(--active-color, var(--ys-red));
  color: #ffffff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--active-color, var(--ys-red)) 35%, transparent);
}

.ys-values-orbit-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ys-values-orbit-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 43, 70, 0.14);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, width 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
}

.ys-values-orbit-dot.active {
  width: 32px;
  border-radius: 999px;
  background: var(--active-color, var(--ys-red));
  box-shadow: 0 3px 12px color-mix(in srgb, var(--active-color, var(--ys-red)) 40%, transparent);
}

/* ——— Responsive: Tablet ——— */

@media (max-width: 1180px) {
  .ys-values-orbit-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ys-values-orbit-content-col {
    max-width: 700px;
    margin: 0 auto;
  }

  .ys-values-orbit-wheel {
    --orbit-size: 500px;
    --orbit-radius: 155px;
  }

  .ys-values-orbit-segment {
    width: 136px;
    height: 48px;
    margin-left: -68px;
    margin-top: -24px;
    font-size: 14.5px;
  }

  .ys-values-orbit-segment.active {
    width: 154px;
    height: 54px;
    margin-left: -77px;
    margin-top: -27px;
    font-size: 16px;
  }

  .ys-values-orbit-center-inner {
    width: 155px;
    height: 155px;
  }

  .ys-values-orbit-center-inner img {
    width: 76px !important;
  }
}

/* ——— Responsive: Mobile (Android & iOS) ——— */

@media (max-width: 680px) {
  .ys-values-orbit-section {
    padding: 50px 0 58px;
  }

  .ys-values-orbit-section::before {
    top: 10px;
    right: -10px;
    font-size: 58px;
    letter-spacing: -2px;
  }

  .ys-values-orbit-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .ys-values-orbit-content-col {
    display: contents;
  }

  .ys-values-orbit-content-col .ys-section-label {
    order: 1;
    margin-bottom: 0;
  }

  .ys-values-orbit-content-col h2 {
    order: 2;
    margin-bottom: 4px;
    font-size: 28px;
    line-height: 1.06;
    letter-spacing: -1px;
  }

  .ys-values-orbit-intro {
    order: 3;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.58;
    color: #526b7e;
  }

  .ys-values-orbit-wheel-col {
    order: 4;
    width: 100%;
    margin: 6px 0 10px;
  }

  .ys-values-orbit-panel {
    order: 5;
  }

  .ys-values-orbit-controls {
    order: 6;
  }

  /* Wheel & Orbit Proportions — Open & Uncongested */
  .ys-values-orbit-wheel {
    --orbit-size: min(360px, calc(100vw - 24px));
    --orbit-radius: 118px;
    padding: 8px;
  }

  .ys-values-orbit-segment {
    width: 96px;
    height: 38px;
    margin-left: -48px;
    margin-top: -19px;
    font-size: 11.5px;
    font-weight: 800;
    border-width: 1px;
  }

  .ys-values-orbit-segment.active {
    width: 108px;
    height: 42px;
    margin-left: -54px;
    margin-top: -21px;
    font-size: 12px;
    box-shadow:
      0 0 0 2px #ffffff,
      0 8px 24px color-mix(in srgb, var(--segment-color) 45%, transparent);
  }

  /* Compact Center Badge to open up central orbit space */
  .ys-values-orbit-center-inner {
    width: 104px;
    height: 104px;
    padding: 8px;
    gap: 3px;
    border-width: 1.5px;
    box-shadow:
      0 0 0 6px #061826,
      0 0 0 7px rgba(255, 255, 255, 0.10),
      0 10px 25px rgba(0, 0, 0, 0.35);
  }

  .ys-values-orbit-center-inner img {
    width: 52px !important;
  }

  .ys-values-orbit-center-inner strong {
    font-size: 7.5px;
    letter-spacing: 0.8px;
  }

  /* Uncongested Description Panel Card — Fixed Height Steady Layout */
  .ys-values-orbit-panel {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px 22px 22px;
    border-radius: 20px;
    border-top-width: 3px;
    box-sizing: border-box;
  }

  .ys-values-orbit-panel-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .ys-values-panel-num {
    font-size: 52px;
    top: 8px;
    right: 16px;
    opacity: 0.65;
    letter-spacing: -2px;
  }

  .ys-values-orbit-panel h3 {
    font-size: clamp(26px, 6.5vw, 32px);
    margin-bottom: 8px;
    letter-spacing: -1px;
  }

  .ys-values-orbit-panel p {
    font-size: 14.5px;
    line-height: 1.62;
  }

  .ys-values-orbit-controls {
    justify-content: center;
    margin-top: 8px;
    gap: 12px;
  }

  .ys-values-orbit-arrow {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

/* ——— Responsive: Small Mobile (iPhone SE / Compact Android) ——— */

@media (max-width: 390px) {
  .ys-values-orbit-wheel {
    --orbit-size: min(320px, calc(100vw - 20px));
    --orbit-radius: 102px;
  }

  .ys-values-orbit-segment {
    width: 86px;
    height: 34px;
    margin-left: -43px;
    margin-top: -17px;
    font-size: 10px;
  }

  .ys-values-orbit-segment.active {
    width: 96px;
    height: 38px;
    margin-left: -48px;
    margin-top: -19px;
    font-size: 10.5px;
  }

  .ys-values-orbit-center-inner {
    width: 92px;
    height: 92px;
  }

  .ys-values-orbit-center-inner img {
    width: 46px !important;
  }

  .ys-values-orbit-center-inner strong {
    font-size: 6.5px;
  }

  .ys-values-orbit-panel {
    height: 185px !important;
    min-height: 185px !important;
    max-height: 185px !important;
    padding: 20px 18px 18px;
  }

  .ys-values-panel-num {
    font-size: 46px;
    top: 6px;
    right: 12px;
  }
}

@media (min-width: 1024px) {
  .ys-values-orbit-content-col h2 {
    max-width: none !important;
    width: 100%;
    font-size: clamp(44px, 3.8vw, 64px) !important;
    line-height: 1;
    letter-spacing: -2px;
  }
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .ys-values-orbit-segment {
    border-color: rgba(6, 43, 70, 0.15);
  }

  .ys-values-orbit-segment.active {
    box-shadow: 0 0 0 3px #ffffff, 0 12px 36px rgba(239, 63, 58, 0.35);
  }
}

@media (max-width: 760px) {
  .ys-hero-clean {
    padding-top: 110px !important;
  }

  .ys-hero-clean .ys-container {
    padding-top: 0 !important;
  }

  .ys-hero-clean .ys-badge {
    max-width: calc(100vw - 32px) !important;
    width: fit-content !important;
    margin: 0 auto 22px auto !important;
    padding: 10px 18px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.25 !important;
    font-size: 12px !important;
    letter-spacing: 1.4px !important;
  }
}

/* ─────────────────────────────────────────────
   1 ── HERO: Dark navy overlay on school image
   The single biggest change — turns the hero from
   generic white to a striking premium dark landing
───────────────────────────────────────────── */
.ys-hero-clean {
  background:
    linear-gradient(to right,
      rgba(9, 20, 38, 0.95) 0%,
      rgba(9, 20, 38, 0.88) 40%,
      rgba(9, 20, 38, 0.60) 66%,
      rgba(9, 20, 38, 0.22) 100%),
    url("/wp-content/themes/yateley-template/assets/images/yateleyschool.png") center / cover no-repeat !important;
}

/* ─────────────────────────────────────────────
   2 ── HERO: Badge — frosted glass on dark
───────────────────────────────────────────── */
.ys-hero-clean .ys-badge {
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.20) !important;
  border-radius: 999px !important;
}

/* ─────────────────────────────────────────────
   3 ── HERO: Title — white, serif authority
───────────────────────────────────────────── */
.ys-hero-clean .ys-title {
  color: #ffffff !important;
  font-family: var(--ys-font-body) !important;
  text-shadow: none !important;
}

/* Red highlight word stays vivid — works well on dark */
.ys-hero-clean .ys-highlight {
  color: #f05272 !important;
}

/* ─────────────────────────────────────────────
   4 ── HERO: Description — soft white
───────────────────────────────────────────── */
.ys-hero-clean .ys-desc {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

/* ─────────────────────────────────────────────
   5 ── HERO: Floating cards — keep white on dark
   White cards pop beautifully on the navy overlay
───────────────────────────────────────────── */
.ys-hero-clean .ys-floating-card,
.ys-hero-clean .ys-floating-stat {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28) !important;
}

.ys-hero-clean .ys-stat-num {
  color: #1e3a8a !important;
}

.ys-hero-clean .ys-stat-label,
.ys-hero-clean .ys-floating-card strong {
  color: #1e3a8a !important;
}

/* ─────────────────────────────────────────────
   6 ── VALUES TABS: Bridge between dark hero
   and the light values orbit section below
───────────────────────────────────────────── */
.ys-values-tabs-section {
  background: linear-gradient(180deg,
      #0b1a2e 0%,
      #0b1a2e 40%,
      transparent 100%) !important;
  padding-bottom: 40px !important;
}

/* Tab pills on dark background — keep white card style */
.ys-values-tab-card {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
}

/* ─────────────────────────────────────────────
   7 ── VALUES ORBIT: Refine the light section
   Slightly warmer grey so transition from dark
   hero doesn't feel cold/abrupt
───────────────────────────────────────────── */
.ys-values-orbit-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(225, 29, 72, 0.06), transparent 26%),
    radial-gradient(circle at 92% 86%, rgba(6, 43, 70, 0.08), transparent 30%),
    linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%) !important;
}

/* ─────────────────────────────────────────────
   8 ── RESPONSIVE: Tablet hero
───────────────────────────────────────────── */
@media (max-width: 992px) {
  .ys-hero-clean {
    background:
      linear-gradient(to bottom,
        rgba(9, 20, 38, 0.93) 0%,
        rgba(9, 20, 38, 0.86) 50%,
        rgba(9, 20, 38, 0.78) 100%),
      url("/wp-content/themes/yateley-template/assets/images/yateleyschool.png") center / cover no-repeat !important;
  }
}

/* ─────────────────────────────────────────────
   9 ── RESPONSIVE: Mobile hero
───────────────────────────────────────────── */
@media (max-width: 480px) {
  .ys-hero-clean {
    background:
      linear-gradient(180deg,
        rgba(9, 20, 38, 0.94) 0%,
        rgba(9, 20, 38, 0.88) 100%),
      url("/wp-content/themes/yateley-template/assets/images/yateleyschool.png") center / cover no-repeat !important;
  }

  .ys-hero-clean .ys-badge {
    background: rgba(255, 255, 255, 0.14) !important;
    font-size: 11px !important;
  }
}

/* =========================================================
   HEADTEACHER WELCOME — DARK NAVY (CLASSIC BOX LAYOUT)
========================================================= */

/* 1 ── Solid Dark Background & Top Overlap Fix */
.ys-welcome-section {
  position: relative !important;
  z-index: 20 !important;
  margin-top: -80px !important;
  /* Pulls up over the hero */
  padding: 100px 0 100px !important;
  background: #0b1a2e !important;
  /* Solid dark navy */
  border: none !important;
  overflow: visible !important;
}

/* Kill inherited artifacts */
.ys-welcome-section::before,
.ys-welcome-section::after {
  display: none !important;
}

/* 2 ── Main Card (Replicating the Left-Stripe Box Design) */
.ys-welcome-section .ys-welcome-modern-card {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: 1fr 280px !important;
  /* Perfect width for the photo card */
  gap: 50px !important;
  align-items: center !important;

  /* The Box Design */
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-left: 6px solid #d4a84b !important;
  /* The signature gold left stripe */
  border-radius: 24px !important;
  padding: 50px 60px !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2) !important;

  /* Entrance Animation */
  opacity: 0;
  transform: translateY(20px);
  animation: ysFadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.1s;
}

/* Subtle decorative circle inside the card */
.ys-welcome-section .ys-welcome-modern-card::after {
  content: "" !important;
  position: absolute !important;
  top: -50px !important;
  right: -50px !important;
  width: 200px !important;
  height: 200px !important;
  border-radius: 50% !important;
  background: rgba(212, 168, 75, 0.03) !important;
  pointer-events: none !important;
  display: block !important;
}

.ys-welcome-section .ys-welcome-modern-card::before {
  display: none !important;
  /* Hide old red line artifact */
}

/* 3 ── Typography */
.ys-welcome-section .ys-section-label {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #d4a84b !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
}

.ys-welcome-section .ys-section-label::before {
  content: "" !important;
  display: inline-block !important;
  width: 36px !important;
  height: 2px !important;
  background: #d4a84b !important;
}

.ys-welcome-section .ys-welcome-modern-content h2 {
  color: #ffffff !important;
  font-family: var(--ys-font-body) !important;
  font-size: clamp(34px, 4vw, 52px) !important;
  line-height: 1.1 !important;
  margin-bottom: 16px !important;
}

.ys-welcome-section .ys-welcome-modern-content h3 {
  color: #d4a84b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  margin-bottom: 24px !important;
}

.ys-welcome-section .ys-welcome-modern-content p {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin-bottom: 20px !important;
}

/* 4 ── Refined Buttons */
.ys-welcome-modern-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 32px !important;
}

.ys-welcome-section .ys-btn-dark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #d4a84b !important;
  color: #0b1a2e !important;
  font-weight: 800 !important;
  padding: 0 28px !important;
  min-height: 48px !important;
  border-radius: 999px !important;
  /* Pill shape */
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.ys-welcome-section .ys-btn-dark:hover {
  background: #e6bd63 !important;
  transform: translateY(-2px) !important;
}

.ys-welcome-section .ys-ofsted-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-weight: 700 !important;
  padding: 0 28px !important;
  min-height: 48px !important;
  border-radius: 999px !important;
  /* Pill shape */
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.ys-welcome-section .ys-ofsted-badge:hover {
  background: rgba(212, 168, 75, 0.15) !important;
  border-color: #d4a84b !important;
  color: #d4a84b !important;
}

/* 5 ── Headteacher Photo Layout (Replicating Image Structure) */
.ys-welcome-section .ys-welcome-headteacher-card {
  position: relative !important;
  display: block !important;
  background: rgba(255, 255, 255, 0.04) !important;
  /* Inner card background */
  border: 1px solid rgba(212, 168, 75, 0.2) !important;
  border-radius: 20px !important;
  padding: 16px !important;
  /* Even padding all around */
  margin: 0 !important;
  text-align: center !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2) !important;

  opacity: 0;
  transform: translateY(30px);
  animation: ysFadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.3s;
}

/* Photo Styling - Fits neatly inside the box */
.ys-welcome-section .ys-welcome-headteacher-card img {
  width: 100% !important;
  height: 280px !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 12px !important;
  /* Softer corners inside the card */
  margin-bottom: 16px !important;
  /* Space between photo and text */
  display: block !important;
  border: none !important;
  /* Removed thick border */
  box-shadow: none !important;
}

/* Text Container - Sitting natively below the image */
.ys-welcome-section .ys-welcome-headteacher-card div {
  position: static !important;
  transform: none !important;
  background: transparent !important;
  padding: 4px 0 8px 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.ys-welcome-section .ys-welcome-headteacher-card strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
}

.ys-welcome-section .ys-welcome-headteacher-card span {
  display: block !important;
  color: #d4a84b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* 6 ── Keyframe Animations */
@keyframes ysFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 7 ── Responsive Fixes for Tablet & Mobile */
@media (max-width: 980px) {
  .ys-welcome-section .ys-welcome-modern-card {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 40px !important;
  }

  .ys-welcome-section .ys-welcome-headteacher-card {
    width: 100% !important;
    max-width: 320px !important;
    /* Restricts width so it doesn't stretch */
    margin: 0 auto !important;
  }
}

@media (max-width: 680px) {
  .ys-welcome-section {
    margin-top: -60px !important;
    padding: 80px 0 !important;
  }

  .ys-welcome-section .ys-welcome-modern-card {
    padding: 30px 24px !important;
    border-left-width: 4px !important;
    /* Slightly thinner line on mobile */
  }

  .ys-welcome-section .ys-welcome-modern-content h2 {
    font-size: 30px !important;
  }

  /* Mobile Button Fixes */
  .ys-welcome-modern-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .ys-welcome-section .ys-btn-dark,
  .ys-welcome-section .ys-ofsted-badge {
    width: 100% !important;
  }

  /* Fixed Mobile Photo Size */
  .ys-welcome-section .ys-welcome-headteacher-card {
    max-width: 250px !important;
    /* Keeps the card perfectly sized */
    padding: 12px !important;
    margin-top: 20px !important;
  }

  .ys-welcome-section .ys-welcome-headteacher-card img {
    height: 240px !important;
    /* Slightly taller box */
    object-fit: contain !important;
    /* FORCES the entire image to show without zooming/cropping */
    background: #ffffff !important;
    /* Fills the background with white so there are no empty gaps */
    border-radius: 5px !important;
    margin-bottom: 8px !important;
  }

  .ys-welcome-section .ys-welcome-headteacher-card strong {
    font-size: 16px !important;
  }

  .ys-welcome-section .ys-welcome-headteacher-card span {
    font-size: 11px !important;
  }
}

/* =========================
   DESKTOP FULL-SCREEN FIX
========================= */
@media (min-width: 993px) {
  .ys-hero-clean {
    padding-bottom: 180px !important;
    /* Pushes the overlapping welcome section below the fold */
  }
}

:root {
  --ys-text-dark: #0f172a;
  --ys-brand-red: #e11d48;
  --ys-brand-red-hover: #be123c;
  --ys-brand-blue: #1e3a8a;
}

.ys-hero-clean {
  position: relative;
  background:
    linear-gradient(to right,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.90) 42%,
      rgba(255, 255, 255, 0.58) 68%,
      rgba(255, 255, 255, 0.38) 100%),
    url("/wp-content/themes/yateley-template/assets/images/yateleyschool.png") center / cover no-repeat !important;
  padding: 80px 0 115px;
  overflow: hidden;
  font-family: var(--ys-font-body);
}

.ys-hero-clean,
.ys-hero-clean * {
  box-sizing: border-box;
}

.ys-hero-clean .ys-container {
  width: min(90%, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 60px;
  min-height: 85vh;
}

/* =========================
   HERO CONTENT
========================= */

.ys-hero-clean .ys-badge {
  display: inline-block;
  background: rgba(30, 58, 138, 0.09) !important;
  color: var(--ys-brand-blue) !important;
  padding: 9px 19px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.08);
}

.ys-hero-clean .ys-title {
  font-family: var(--ys-font-body) !important;
  font-size: clamp(44px, 5vw, 68px) !important;
  color: var(--ys-text-dark) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: -1.4px;
  margin: 0 0 24px !important;
  text-shadow: none !important;
}

.ys-hero-clean .ys-highlight {
  color: var(--ys-brand-red) !important;
}

.ys-hero-clean .ys-desc {
  font-size: clamp(16px, 1.45vw, 18px) !important;
  line-height: 1.75 !important;
  color: #334155 !important;
  font-weight: 550 !important;
  max-width: 540px;
  margin: 0 0 36px !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.ys-hero-clean .ys-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ys-hero-clean .ys-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ys-hero-clean .ys-btn-primary {
  background: linear-gradient(135deg, var(--ys-brand-red), #f43f5e) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.24) !important;
}

.ys-hero-clean .ys-btn-primary:hover {
  background: linear-gradient(135deg, var(--ys-brand-red-hover), var(--ys-brand-red)) !important;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.32) !important;
}

.ys-hero-clean .ys-btn-staff {
  background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(30, 58, 138, 0.28) !important;
}

.ys-hero-clean .ys-btn-staff:hover {
  background: linear-gradient(135deg, #172554, #1e3a8a) !important;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(30, 58, 138, 0.38) !important;
}

/* =========================
   HERO VISUAL
========================= */

.ys-hero-clean .ys-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ys-hero-clean .ys-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ys-hero-clean .ys-blob-glow {
  position: absolute;
  inset: -8%;
  background: linear-gradient(135deg,
      rgba(225, 29, 72, 0.22) 0%,
      rgba(30, 58, 138, 0.24) 100%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  z-index: 1;
  filter: blur(26px);
  animation: ysMorph 10s ease-in-out infinite alternate-reverse;
}

.ys-hero-clean .ys-blob-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 42% 58% 64% 36% / 43% 45% 55% 57%;
  overflow: hidden;
  border: 9px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
  z-index: 2;
  animation: ysMorph 8s ease-in-out infinite alternate;
  background: #dbeafe;
}

.ys-hero-clean .ys-hero-image-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ys-hero-clean .ys-blob-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 950ms ease, transform 5200ms ease;
  will-change: opacity, transform;
}

.ys-hero-clean .ys-blob-img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.ys-hero-clean .ys-blob-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.12), rgba(225, 29, 72, 0.10));
  mix-blend-mode: multiply;
  z-index: 4;
  pointer-events: none;
}

/* =========================
   FLOATING CARDS
========================= */

.ys-hero-clean .ys-floating-card,
.ys-hero-clean .ys-floating-stat {
  position: absolute;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92) !important;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.ys-hero-clean .card-top-left {
  top: 5%;
  left: -12%;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: ysFloatSoft 5s ease-in-out infinite reverse;
}

.ys-hero-clean .card-bottom-right {
  bottom: 1%;
  right: -10%;
  padding: 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  animation: ysFloatSoft 4.5s ease-in-out infinite;
}

.ys-hero-clean .ys-stat-icon {
  font-size: 25px;
  background: rgba(30, 58, 138, 0.08);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.ys-hero-clean .ys-stat-info {
  display: flex;
  flex-direction: column;
}

.ys-hero-clean .ys-stat-num {
  font-weight: 900;
  color: var(--ys-brand-blue);
  font-size: 22px;
  line-height: 1.05;
}

.ys-hero-clean .ys-stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
}

.ys-hero-clean .ys-floating-card strong {
  color: var(--ys-brand-blue) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

.ys-hero-clean .ys-dots {
  display: flex;
  gap: 7px;
}

.ys-hero-clean .ys-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--ys-brand-red);
}

.ys-hero-clean .ys-dots span:nth-child(2) {
  background-color: var(--ys-brand-blue);
}

.ys-hero-clean .ys-dots span:nth-child(3) {
  background-color: #fbbf24;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes ysMorph {
  0% {
    border-radius: 42% 58% 64% 36% / 43% 45% 55% 57%;
  }

  50% {
    border-radius: 58% 42% 38% 62% / 54% 36% 64% 46%;
  }

  100% {
    border-radius: 48% 52% 58% 42% / 40% 56% 44% 60%;
  }
}

@keyframes ysFloatSoft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* =========================
   TABLET
========================= */

@media (max-width: 992px) {
  .ys-hero-clean {
    padding: 72px 0 86px;
    background:
      linear-gradient(to bottom,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.91) 48%,
        rgba(255, 255, 255, 0.72) 100%),
      url("/wp-content/themes/yateley-template/assets/images/yateleyschool.png") center / cover no-repeat !important;
  }

  .ys-hero-clean .ys-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 44px;
    min-height: auto;
  }

  .ys-hero-clean .ys-actions {
    justify-content: center;
  }

  .ys-hero-clean .ys-desc {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ys-hero-clean .ys-hero-content {
    order: 1;
  }

  .ys-hero-clean .ys-hero-visual {
    order: 2;
    margin-top: 4px;
  }

  .ys-hero-clean .ys-image-wrapper {
    max-width: 390px;
  }

  .ys-hero-clean .card-top-left {
    left: 0;
    top: -2%;
  }

  .ys-hero-clean .card-bottom-right {
    right: 0;
    bottom: -2%;
  }
}


@media (prefers-reduced-motion: reduce) {

  .ys-hero-clean .ys-blob-shape,
  .ys-hero-clean .ys-blob-glow,
  .ys-hero-clean .ys-floating-card,
  .ys-hero-clean .ys-floating-stat,
  .ys-hero-clean .ys-blob-img {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   JOIN US EVENTS - DARK PREMIUM OVERRIDE
   Targets the actual PHP classes:
   .ys-join-events-section / .ys-join-event-card
========================================================= */

.ys-join-events-section {
  position: relative !important;
  padding: 104px 0 112px !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(242, 185, 75, 0.13), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(229, 57, 53, 0.16), transparent 32%),
    linear-gradient(135deg, #061826 0%, #082033 44%, #04111d 100%) !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

.ys-join-events-section::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
  opacity: 0.32 !important;
  mask-image: linear-gradient(to bottom, black, transparent 88%) !important;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%) !important;
  z-index: -2 !important;
}

.ys-join-events-section::after {
  content: "" !important;
  position: absolute !important;
  right: -180px !important;
  bottom: -210px !important;
  width: 520px !important;
  height: 520px !important;
  border-radius: 50% !important;
  background: rgba(242, 185, 75, 0.12) !important;
  filter: blur(24px) !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

.ys-join-events-wrap {
  position: relative !important;
  z-index: 2 !important;
  width: min(1560px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
}

.ys-join-events-header {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 32px !important;
  margin-bottom: 42px !important;
}

.ys-join-events-header>div {
  max-width: 820px !important;
}

.ys-join-events-header .ys-section-label,
.ys-join-events-header p:first-child {
  display: inline-flex !important;
  align-items: center !important;
  gap: 13px !important;
  margin: 0 0 16px !important;
  color: #f2b94b !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
}

.ys-join-events-header .ys-section-label::before,
.ys-join-events-header p:first-child::before {
  content: "" !important;
  width: 38px !important;
  height: 2px !important;
  border-radius: 99px !important;
  background: linear-gradient(90deg, #f2b94b, #ef4444) !important;
}

.ys-join-events-header h2 {
  max-width: 820px !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(44px, 5vw, 78px) !important;
  line-height: 0.96 !important;
  letter-spacing: -3.4px !important;
  text-wrap: balance !important;
}

.ys-join-events-header p:last-child {
  max-width: 720px !important;
  margin: 18px 0 0 !important;
  color: rgba(226, 237, 247, 0.76) !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
}

/* Slider */
.ys-join-events-slider {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  padding: 6px 0 14px !important;
  mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%) !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%) !important;
}

.ys-join-events-track {
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  width: max-content !important;
  will-change: transform !important;
  animation: ysJoinInfiniteScroll var(--ys-join-scroll-duration, 48s) linear infinite !important;
}



/* Card */
.ys-join-event-card {
  position: relative !important;
  flex: 0 0 372px !important;
  width: 372px !important;
  min-width: 372px !important;
  min-height: 505px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
  border-radius: 34px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.055)) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  transform: translateZ(0) !important;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.34s ease,
    border-color 0.34s ease,
    background 0.34s ease !important;
}

.ys-join-event-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 26% 0%, rgba(242, 185, 75, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(229, 57, 53, 0.15), transparent 46%) !important;
  opacity: 0 !important;
  transition: opacity 0.34s ease !important;
}

.ys-join-event-card:hover,
.ys-join-event-card:focus-visible {
  transform: translateY(-12px) scale(1.018) !important;
  border-color: rgba(242, 185, 75, 0.44) !important;
  box-shadow:
    0 36px 96px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(242, 185, 75, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
  outline: none !important;
}

.ys-join-event-card:hover::before,
.ys-join-event-card:focus-visible::before {
  opacity: 1 !important;
}

/* Image */
.ys-join-event-image-shell {
  position: relative !important;
  z-index: 3 !important;
  padding: 16px 16px 0 !important;
}

.ys-join-event-image {
  position: relative !important;
  width: 100% !important;
  height: 218px !important;
  overflow: hidden !important;
  border-radius: 26px !important;
  background: #10283b !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28) !important;
}

.ys-join-event-image::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background:
    linear-gradient(to bottom, rgba(4, 17, 29, 0.02) 0%, rgba(4, 17, 29, 0.16) 48%, rgba(4, 17, 29, 0.78) 100%) !important;
  pointer-events: none !important;
}

.ys-join-event-image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 26px !important;
  transform: scale(1.01) !important;
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease !important;
  will-change: transform !important;
}

.ys-join-event-card:hover .ys-join-event-image img,
.ys-join-event-card:focus-visible .ys-join-event-image img {
  transform: scale(1.1) !important;
  filter: saturate(1.14) contrast(1.04) !important;
}

/* Body */
.ys-join-event-body {
  position: relative !important;
  z-index: 4 !important;
  flex: 1 !important;
  padding: 24px 25px 18px !important;
}

.ys-join-event-date {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  margin: 0 0 14px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: rgba(242, 185, 75, 0.12) !important;
  border: 1px solid rgba(242, 185, 75, 0.22) !important;
  color: #f2b94b !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
}

.ys-join-event-body h3 {
  margin: 0 0 13px !important;
  color: #ffffff !important;
  font-size: 26px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.9px !important;
  text-wrap: balance !important;
}

.ys-join-event-body p:last-child {
  margin: 0 !important;
  color: rgba(226, 237, 247, 0.74) !important;
  font-size: 14.5px !important;
  line-height: 1.68 !important;
}

/* Meta */
.ys-join-event-meta {
  position: relative !important;
  z-index: 4 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 18px 25px 25px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.105) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.ys-join-event-meta span {
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.105) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

.ys-join-event-meta span:first-child {
  color: #f8d48a !important;
}

.ys-join-event-meta a.ys-register-btn {
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--ys-red) 0%, var(--ys-red-dark) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2) !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.ys-join-event-meta a.ys-register-btn:hover {
  background: linear-gradient(135deg, #ff4d49 0%, var(--ys-red) 100%) !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 6px 16px rgba(229, 57, 53, 0.4) !important;
  color: #ffffff !important;
}

.ys-join-event-meta a.ys-register-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

/* =========================================================
   DARK MODAL OVERRIDE
========================================================= */

.ys-join-event-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.ys-join-event-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.ys-join-event-modal-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(2, 10, 18, 0.84) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.ys-join-event-modal-box {
  position: relative !important;
  z-index: 2 !important;
  width: min(1040px, 100%) !important;
  max-height: 90vh !important;
  display: grid !important;
  grid-template-columns: 0.95fr 1.05fr !important;
  overflow: hidden !important;
  border-radius: 36px !important;
  background:
    linear-gradient(145deg, rgba(11, 34, 52, 0.98), rgba(5, 18, 30, 0.98)) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow:
    0 44px 120px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transform: translateY(22px) scale(0.96) !important;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.ys-join-event-modal.active .ys-join-event-modal-box {
  transform: translateY(0) scale(1) !important;
}

.ys-join-event-modal-close {
  position: absolute !important;
  right: 18px !important;
  top: 18px !important;
  z-index: 6 !important;
  width: 44px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.13) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  font-size: 28px !important;
  line-height: 1 !important;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease !important;
}

.ys-join-event-modal-close:hover,
.ys-join-event-modal-close:focus-visible {
  background: #f2b94b !important;
  color: #061826 !important;
  transform: rotate(90deg) scale(1.05) !important;
  outline: none !important;
}

.ys-join-event-modal-image {
  position: relative !important;
  min-height: 470px !important;
  background: #10283b !important;
}

.ys-join-event-modal-image::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(5, 18, 30, 0.86), rgba(5, 18, 30, 0.05)) !important;
  pointer-events: none !important;
}

.ys-join-event-modal-image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
}

.ys-join-event-modal-content {
  padding: 52px 50px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(242, 185, 75, 0.55) transparent !important;
}

.ys-join-event-modal-content::-webkit-scrollbar {
  width: 8px !important;
}

.ys-join-event-modal-content::-webkit-scrollbar-track {
  background: transparent !important;
}

.ys-join-event-modal-content::-webkit-scrollbar-thumb {
  background: rgba(242, 185, 75, 0.45) !important;
  border-radius: 999px !important;
}

.ys-event-detail-content {
  max-width: 760px !important;
}

.ys-event-detail-content h4 {
  margin: 0 0 18px !important;
  color: #ffffff !important;
  font-size: clamp(28px, 3vw, 44px) !important;
  line-height: 1.08 !important;
  letter-spacing: -1.4px !important;
}

.ys-event-detail-content p {
  margin: 0 0 22px !important;
  color: rgba(226, 237, 247, 0.78) !important;
  font-size: 16.5px !important;
  line-height: 1.82 !important;
}

.ys-event-detail-content strong {
  color: #ffffff !important;
  font-weight: 900 !important;
}

.ys-event-detail-content a {
  color: #f2b94b !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.ys-event-detail-content a:hover {
  text-decoration: underline !important;
}

.ys-event-video-frame {
  border-radius: 24px !important;
  background: #001f35 !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32) !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {
  .ys-join-events-section {
    padding: 86px 0 92px !important;
  }

  .ys-join-events-header {
    display: block !important;
    margin-bottom: 30px !important;
  }

  .ys-join-events-header h2 {
    font-size: clamp(40px, 8vw, 64px) !important;
    letter-spacing: -2.3px !important;
  }

  .ys-join-event-card {
    flex-basis: 340px !important;
    width: 340px !important;
    min-width: 340px !important;
    min-height: 480px !important;
  }

  .ys-join-event-image {
    height: 200px !important;
  }

  .ys-join-event-modal-box {
    grid-template-columns: 1fr !important;
    width: min(720px, 100%) !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
  }

  .ys-join-event-modal-image {
    min-height: 280px !important;
    max-height: 300px !important;
  }

  .ys-join-event-modal-content {
    max-height: none !important;
  }
}

/* =========================================================
   MOBILE - TOUCH FRIENDLY
========================================================= */

@media (max-width: 680px) {
  .ys-join-events-section {
    padding: 72px 0 82px !important;
  }

  .ys-join-events-wrap {
    width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .ys-join-events-header {
    margin-bottom: 24px !important;
  }

  .ys-join-events-header .ys-section-label,
  .ys-join-events-header p:first-child {
    margin-bottom: 12px !important;
    font-size: 10.5px !important;
    letter-spacing: 2px !important;
  }

  .ys-join-events-header .ys-section-label::before,
  .ys-join-events-header p:first-child::before {
    width: 28px !important;
  }

  .ys-join-events-header h2 {
    max-width: 350px !important;
    font-size: clamp(36px, 11vw, 48px) !important;
    line-height: 0.98 !important;
    letter-spacing: -2px !important;
  }

  .ys-join-events-header p:last-child {
    max-width: 350px !important;
    margin-top: 14px !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
  }

  .ys-join-events-slider {
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 8px 0 24px !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    touch-action: pan-x !important;
    scrollbar-width: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .ys-join-events-slider::-webkit-scrollbar {
    display: none !important;
  }

  .ys-join-events-track {
    gap: 16px !important;
    animation: none !important;
    transform: none !important;
    width: max-content !important;
  }

  .ys-join-event-card {
    flex: 0 0 calc(100vw - 42px) !important;
    width: calc(100vw - 42px) !important;
    min-width: calc(100vw - 42px) !important;
    min-height: 452px !important;
    border-radius: 30px !important;
    scroll-snap-align: center !important;
  }

  .ys-join-event-card:hover,
  .ys-join-event-card:focus-visible {
    transform: none !important;
  }

  .ys-join-event-card:active {
    transform: scale(0.985) !important;
    border-color: rgba(242, 185, 75, 0.38) !important;
  }

  .ys-join-event-image-shell {
    padding: 14px 14px 0 !important;
  }

  .ys-join-event-image {
    height: 190px !important;
    border-radius: 24px !important;
  }

  .ys-join-event-image img {
    border-radius: 24px !important;
  }

  .ys-join-event-body {
    padding: 20px 20px 14px !important;
  }

  .ys-join-event-date {
    min-height: 28px !important;
    margin-bottom: 12px !important;
    font-size: 10px !important;
  }

  .ys-join-event-body h3 {
    margin-bottom: 10px !important;
    font-size: 23px !important;
    line-height: 1.1 !important;
  }

  .ys-join-event-body p:last-child {
    font-size: 14px !important;
    line-height: 1.62 !important;
  }

  .ys-join-event-meta {
    grid-template-columns: 1fr !important;
    padding: 14px 20px 22px !important;
  }

  .ys-join-event-meta span {
    justify-content: flex-start !important;
    min-height: 38px !important;
    text-align: left !important;
  }

  .ys-join-event-meta a.ys-register-btn {
    min-height: 38px !important;
    font-size: 11px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .ys-join-event-modal {
    align-items: end !important;
    padding: 10px !important;
  }

  .ys-join-event-modal-box {
    width: 100% !important;
    max-height: 90dvh !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 28px 28px 0 0 !important;
    overflow-y: auto !important;
    transform: translateY(28px) scale(0.98) !important;
  }

  .ys-join-event-modal.active .ys-join-event-modal-box {
    transform: translateY(0) scale(1) !important;
  }

  .ys-join-event-modal-image {
    min-height: 210px !important;
    max-height: 220px !important;
  }

  .ys-join-event-modal-content {
    padding: 28px 22px 26px !important;
    max-height: none !important;
    overflow-y: visible !important;
  }

  .ys-event-detail-content h4 {
    font-size: clamp(25px, 8vw, 34px) !important;
    letter-spacing: -1px !important;
  }

  .ys-event-detail-content p {
    font-size: 14.5px !important;
    line-height: 1.72 !important;
  }

  .ys-join-event-modal-close {
    right: 14px !important;
    top: 14px !important;
    width: 42px !important;
    height: 42px !important;
  }
}

@media (max-width: 380px) {
  .ys-join-event-card {
    flex-basis: calc(100vw - 30px) !important;
    width: calc(100vw - 30px) !important;
    min-width: calc(100vw - 30px) !important;
  }

  .ys-join-event-image {
    height: 176px !important;
  }

  .ys-join-event-body h3 {
    font-size: 21px !important;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

  .ys-join-events-track,
  .ys-join-event-card,
  .ys-join-event-image img,
  .ys-join-event-modal,
  .ys-join-event-modal-box,
  .ys-join-event-modal-close {
    animation: none !important;
    transition: none !important;
  }

  .ys-join-events-slider {
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   JOIN EVENTS - MOBILE SIZE + POPUP FIX OVERRIDE
   Paste BELOW the dark event override
========================================================= */

@media (max-width: 680px) {
  .ys-join-events-section {
    padding: 64px 0 72px !important;
  }

  .ys-join-events-wrap {
    width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .ys-join-events-header {
    margin-bottom: 22px !important;
  }

  .ys-join-events-header h2 {
    max-width: 320px !important;
    font-size: 36px !important;
    line-height: 1.02 !important;
    letter-spacing: -1.4px !important;
  }

  .ys-join-events-header p:last-child {
    max-width: 330px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .ys-join-events-slider {
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 8px 0 26px !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 18px !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    scrollbar-width: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .ys-join-events-slider::-webkit-scrollbar {
    display: none !important;
  }

  .ys-join-events-track {
    gap: 16px !important;
    animation: none !important;
    transform: none !important;
    width: max-content !important;
    padding-right: 18px !important;
  }

  .ys-join-event-card {
    flex: 0 0 305px !important;
    width: 305px !important;
    min-width: 305px !important;
    min-height: 415px !important;
    border-radius: 28px !important;
    scroll-snap-align: start !important;
  }

  .ys-join-event-card:hover,
  .ys-join-event-card:focus-visible {
    transform: none !important;
  }

  .ys-join-event-card:active {
    transform: scale(0.985) !important;
    border-color: rgba(242, 185, 75, 0.38) !important;
  }

  .ys-join-event-image-shell {
    padding: 12px 12px 0 !important;
  }

  .ys-join-event-image {
    height: 150px !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24) !important;
  }

  .ys-join-event-image img {
    border-radius: 22px !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .ys-join-event-body {
    padding: 18px 18px 12px !important;
  }

  .ys-join-event-date {
    min-height: 27px !important;
    margin-bottom: 11px !important;
    padding: 0 11px !important;
    font-size: 10px !important;
    letter-spacing: 1px !important;
  }

  .ys-join-event-body h3 {
    margin-bottom: 9px !important;
    font-size: 21px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.6px !important;
  }

  .ys-join-event-body p:last-child {
    font-size: 13.5px !important;
    line-height: 1.58 !important;
  }

  .ys-join-event-meta {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px 18px 18px !important;
  }

  .ys-join-event-meta span {
    min-height: 36px !important;
    justify-content: flex-start !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    text-align: left !important;
  }

  .ys-join-event-meta a.ys-register-btn {
    min-height: 36px !important;
    font-size: 12px !important;
    padding: 7px 12px !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Smaller phones */
@media (max-width: 380px) {
  .ys-join-events-wrap {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .ys-join-event-card {
    flex-basis: 285px !important;
    width: 285px !important;
    min-width: 285px !important;
    min-height: 395px !important;
  }

  .ys-join-event-image {
    height: 140px !important;
  }

  .ys-join-event-body h3 {
    font-size: 19px !important;
  }

  .ys-join-event-body p:last-child {
    font-size: 13px !important;
  }
}

/* =========================================================
   MOBILE POPUP FIX
========================================================= */

@media (max-width: 680px) {
  .ys-join-event-modal {
    align-items: center !important;
    padding: 14px !important;
  }

  .ys-join-event-modal-box {
    width: min(100%, 390px) !important;
    max-height: 88dvh !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    background: #061826 !important;
  }

  .ys-join-event-modal-image {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 185px !important;
    max-height: 185px !important;
    overflow: hidden !important;
    background: #10283b !important;
  }

  .ys-join-event-modal-image img {
    width: 100% !important;
    height: 185px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  .ys-join-event-modal-content {
    flex: 1 1 auto !important;
    padding: 24px 22px 26px !important;
    max-height: calc(88dvh - 185px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ys-event-detail-content {
    max-width: 100% !important;
  }

  .ys-event-detail-content h4 {
    margin-bottom: 13px !important;
    font-size: 26px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.8px !important;
  }

  .ys-event-detail-content p {
    margin-bottom: 17px !important;
    font-size: 14.2px !important;
    line-height: 1.68 !important;
  }

  .ys-event-detail-content h4:not(:first-child) {
    margin-top: 22px !important;
  }

  .ys-join-event-modal-close {
    right: 12px !important;
    top: 12px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(6, 24, 38, 0.72) !important;
    color: #ffffff !important;
    z-index: 20 !important;
  }
}

@media (max-width: 380px) {
  .ys-join-event-modal {
    padding: 10px !important;
  }

  .ys-join-event-modal-box {
    width: min(100%, 360px) !important;
    max-height: 88dvh !important;
  }

  .ys-join-event-modal-image,
  .ys-join-event-modal-image img {
    height: 165px !important;
    min-height: 165px !important;
    max-height: 165px !important;
  }

  .ys-join-event-modal-content {
    max-height: calc(88dvh - 165px) !important;
    padding: 22px 19px 24px !important;
  }

  .ys-event-detail-content h4 {
    font-size: 23px !important;
  }

  .ys-event-detail-content p {
    font-size: 13.8px !important;
  }
}

/* =========================================================
   JOIN EVENTS - MOBILE CARD META + MODAL HEADER VISIBILITY FIX
   Paste at very bottom of home.css
========================================================= */

/* Fix card meta visibility and stop bottom overlap */
@media (max-width: 680px) {
  .ys-join-event-card {
    min-height: 440px !important;
    padding-bottom: 0 !important;
  }

  .ys-join-event-body {
    padding-bottom: 16px !important;
  }

  .ys-join-event-meta {
    position: relative !important;
    z-index: 8 !important;
    margin-top: auto !important;
    background: rgba(255, 255, 255, 0.035) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .ys-join-event-meta span {
    color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
  }

  .ys-join-event-meta span:first-child {
    color: #f8d48a !important;
  }
}

/* Fix popup top title/date/tag colors */
.ys-join-event-modal-content>p,
.ys-join-event-modal-content>.ys-join-event-date,
.ys-join-event-modal-content>span,
.ys-join-event-modal-content .ys-join-event-date {
  color: #f2b94b !important;
  opacity: 1 !important;
}

.ys-join-event-modal-content>h3,
.ys-join-event-modal-content>h2,
.ys-join-event-modal-content .ys-join-event-title {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* If JS injects modal title/date directly */
.ys-join-event-modal-content>p:first-child {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  min-height: 28px !important;
  margin: 0 0 10px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: rgba(242, 185, 75, 0.12) !important;
  border: 1px solid rgba(242, 185, 75, 0.22) !important;
  color: #f2b94b !important;
  font-size: 10.5px !important;
  font-weight: 950 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.ys-join-event-modal-content>h3 {
  margin: 0 0 8px !important;
  color: #ffffff !important;
  font-size: clamp(28px, 4vw, 46px) !important;
  line-height: 1.05 !important;
  letter-spacing: -1.2px !important;
}

.ys-join-event-modal-content>h3+p {
  margin: 0 0 22px !important;
  color: rgba(226, 237, 247, 0.76) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

/* Modal actual detail content */
.ys-event-detail-content h4 {
  color: #ffffff !important;
  opacity: 1 !important;
}

.ys-event-detail-content p {
  color: rgba(226, 237, 247, 0.82) !important;
  opacity: 1 !important;
}

.ys-event-detail-content strong {
  color: #ffffff !important;
}

/* Mobile popup arrangement */
@media (max-width: 680px) {
  .ys-join-event-modal {
    align-items: center !important;
    padding: 14px !important;
  }

  .ys-join-event-modal-box {
    width: min(100%, 390px) !important;
    max-height: 88dvh !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    background: #061826 !important;
  }

  .ys-join-event-modal-image {
    min-height: 175px !important;
    max-height: 175px !important;
    height: 175px !important;
  }

  .ys-join-event-modal-image img {
    height: 175px !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .ys-join-event-modal-content {
    max-height: calc(88dvh - 175px) !important;
    padding: 22px 22px 28px !important;
    overflow-y: auto !important;
    background: #061826 !important;
  }

  .ys-join-event-modal-content>p:first-child {
    margin-bottom: 10px !important;
    font-size: 10px !important;
  }

  .ys-join-event-modal-content>h3 {
    display: block !important;
    margin-bottom: 8px !important;
    color: #ffffff !important;
    font-size: 25px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.8px !important;
  }

  .ys-join-event-modal-content>h3+p {
    margin-bottom: 20px !important;
    color: rgba(226, 237, 247, 0.78) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .ys-event-detail-content h4 {
    margin: 22px 0 12px !important;
    color: #ffffff !important;
    font-size: 25px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.8px !important;
  }

  .ys-event-detail-content h4:first-child {
    margin-top: 0 !important;
  }

  .ys-event-detail-content p {
    margin-bottom: 16px !important;
    color: rgba(226, 237, 247, 0.82) !important;
    font-size: 14.2px !important;
    line-height: 1.68 !important;
  }

  .ys-join-event-modal-close {
    background: rgba(6, 24, 38, 0.82) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
  }
}

/* =========================================================
   JOIN EVENTS - REMOVE TIME/AUDIENCE META INSIDE POPUP ONLY
   Keeps the card meta visible, removes duplicate popup meta
========================================================= */

.ys-join-event-modal .ys-join-event-meta,
.ys-join-event-modal .ys-event-modal-meta,
.ys-join-event-modal .ys-join-event-modal-meta,
.ys-join-event-modal-content .ys-join-event-meta,
.ys-join-event-modal-content .ys-event-modal-meta,
.ys-join-event-modal-content .ys-join-event-modal-meta {
  display: none !important;
}

@media (max-width: 680px) {
  .ys-join-events-slider {
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    scrollbar-width: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .ys-join-events-slider::-webkit-scrollbar {
    display: none !important;
  }

  .ys-join-events-track {
    animation: none !important;
    transform: none !important;
    width: max-content !important;
  }

  .ys-join-event-card {
    scroll-snap-align: start !important;
  }
}

/* =========================================================
   JOIN EVENTS - MOBILE SMOOTH CONTINUOUS ANIMATION
   Add at the very bottom of home.css
========================================================= */

@media (max-width: 680px) {
  .ys-join-events-slider {
    overflow: hidden !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: auto !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    scrollbar-width: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .ys-join-events-slider::-webkit-scrollbar {
    display: none !important;
  }

  .ys-join-events-track {
    animation: none !important;
    transform: translate3d(0, 0, 0);
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }

  .ys-join-event-card {
    flex-shrink: 0 !important;
    scroll-snap-align: none !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }

  .ys-join-event-card:hover,
  .ys-join-event-card:focus-visible {
    transform: translateZ(0) !important;
  }

  .ys-join-event-card:active {
    transform: scale(0.985) translateZ(0) !important;
  }
}

/* =========================================================
   JOIN EVENTS - FINAL MOBILE ANIMATION FIX
========================================================= */

@media (max-width: 680px) {
  .ys-join-events-slider {
    overflow: hidden !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: auto !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    scrollbar-width: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .ys-join-events-slider::-webkit-scrollbar {
    display: none !important;
  }

  .ys-join-events-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    animation: none !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }

  .ys-join-event-card {
    flex-shrink: 0 !important;
    scroll-snap-align: none !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }
}

@media (max-width: 680px) {
  .ys-join-events-slider {
    overflow: hidden !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: auto !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    scrollbar-width: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    cursor: grab !important;
  }

  .ys-join-events-slider.is-dragging {
    cursor: grabbing !important;
  }

  .ys-join-events-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    animation: none !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }

  .ys-join-event-card {
    flex-shrink: 0 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: pan-y !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }

  .ys-join-event-card img,
  .ys-join-event-image,
  .ys-join-event-image-shell {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
  }
}

/* =========================================================
   TESTIMONIALS - PREMIUM COMMUNITY SPOTLIGHT REDESIGN
   Paste at bottom of home.css
========================================================= */

.ys-testimonials-flip-section {
  position: relative !important;
  padding: 118px 0 128px !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(242, 185, 75, 0.13), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(239, 68, 68, 0.16), transparent 32%),
    linear-gradient(135deg, #061826 0%, #082033 48%, #04111d 100%) !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

.ys-testimonials-flip-section::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) !important;
  background-size: 52px 52px !important;
  opacity: 0.28 !important;
  mask-image: linear-gradient(to bottom, black, transparent 88%) !important;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%) !important;
  z-index: -2 !important;
}

.ys-testimonials-flip-section::after {
  content: "Y" !important;
  position: absolute !important;
  right: -44px !important;
  top: 20px !important;
  color: rgba(255, 255, 255, 0.035) !important;
  font-size: clamp(220px, 28vw, 470px) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

.ys-testimonials-flip-section .ys-container {
  width: min(1420px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
}

.ys-testimonials-flip-layout {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(320px, 0.85fr) minmax(520px, 1.25fr) !important;
  align-items: center !important;
  gap: clamp(48px, 6vw, 98px) !important;
}

.ys-testimonials-copy {
  position: relative !important;
  z-index: 3 !important;
  max-width: 520px !important;
}

.ys-testimonials-copy .ys-section-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 13px !important;
  margin: 0 0 18px !important;
  color: #f2b94b !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
}

.ys-testimonials-copy .ys-section-label::before {
  content: "" !important;
  width: 38px !important;
  height: 2px !important;
  border-radius: 99px !important;
  background: linear-gradient(90deg, #f2b94b, #ef4444) !important;
}

.ys-testimonials-copy h2 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(48px, 5.6vw, 82px) !important;
  line-height: 0.96 !important;
  letter-spacing: -3.4px !important;
  text-wrap: balance !important;
}

.ys-testimonials-copy>p:last-child {
  max-width: 470px !important;
  margin: 24px 0 0 !important;
  color: rgba(226, 237, 247, 0.76) !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
}

/* Right board */
.ys-testimonials-board-wrap {
  position: relative !important;
  z-index: 3 !important;
  min-width: 0 !important;
}

.ys-testimonials-board-wrap::before {
  content: "" !important;
  position: absolute !important;
  left: -38px !important;
  right: 44px !important;
  top: 92px !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(242, 185, 75, 0.34), transparent) !important;
  opacity: 0.85 !important;
  pointer-events: none !important;
}

.ys-testimonials-board-wrap::after {
  content: "" !important;
  position: absolute !important;
  right: -60px !important;
  bottom: -70px !important;
  width: 280px !important;
  height: 280px !important;
  border-radius: 50% !important;
  background: rgba(242, 185, 75, 0.11) !important;
  filter: blur(18px) !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.ys-testimonial-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  margin-bottom: 24px !important;
}

.ys-testimonial-counter {
  min-width: 86px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: 3px !important;
}

.ys-testimonial-controls {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.ys-testimonial-arrow {
  width: 52px !important;
  height: 52px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  cursor: pointer !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease !important;
}

.ys-testimonial-arrow:hover,
.ys-testimonial-arrow:focus-visible {
  background: #f2b94b !important;
  color: #061826 !important;
  border-color: rgba(242, 185, 75, 0.8) !important;
  transform: translateY(-2px) scale(1.04) !important;
  outline: none !important;
}

.ys-testimonial-dots {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}

.ys-testimonial-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.24) !important;
  border: 0 !important;
  cursor: pointer !important;
  transition:
    width 0.24s ease,
    background 0.24s ease,
    transform 0.24s ease !important;
}

.ys-testimonial-dot.active {
  width: 32px !important;
  background: #ef4444 !important;
}

.ys-testimonial-dot:hover {
  transform: scale(1.2) !important;
}

/* Stage */
.ys-testimonial-stage {
  position: relative !important;
  min-height: 510px !important;
  display: flex !important;
  align-items: center !important;
}

.ys-testimonial-stage::before {
  content: "" !important;
  position: absolute !important;
  left: -54px !important;
  top: 28px !important;
  width: 260px !important;
  height: 260px !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 52%, transparent 53%),
    linear-gradient(135deg, rgba(242, 185, 75, 0.36), rgba(239, 68, 68, 0.24)) !important;
  opacity: 0.14 !important;
  pointer-events: none !important;
}

.ys-testimonial-stage::after {
  content: "" !important;
  position: absolute !important;
  right: 42px !important;
  bottom: -24px !important;
  width: 160px !important;
  height: 160px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  pointer-events: none !important;
}

/* Card */
.ys-testimonial-flip-card {
  position: relative !important;
  width: min(720px, 100%) !important;
  min-height: 450px !important;
  padding: 48px 50px 42px !important;
  border-radius: 42px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 92% 10%, rgba(239, 68, 68, 0.15), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.96)) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  color: #062b46 !important;
  transform: translateZ(0) !important;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s ease !important;
}

.ys-testimonial-flip-card:hover {
  transform: translateY(-8px) translateZ(0) !important;
  box-shadow:
    0 48px 120px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.ys-testimonial-card-glow {
  position: absolute !important;
  right: -90px !important;
  top: -100px !important;
  width: 260px !important;
  height: 260px !important;
  border-radius: 50% !important;
  background: rgba(239, 68, 68, 0.16) !important;
  filter: blur(12px) !important;
  pointer-events: none !important;
}

.ys-testimonial-card-head {
  position: relative !important;
  z-index: 2 !important;
  margin-bottom: 34px !important;
}

.ys-testimonial-chip {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: rgba(239, 68, 68, 0.11) !important;
  color: #ef4444 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
}

.ys-testimonial-quote-mark {
  position: relative !important;
  z-index: 2 !important;
  height: 48px !important;
  margin-bottom: 16px !important;
  color: rgba(6, 43, 70, 0.09) !important;
  font-size: 118px !important;
  font-weight: 950 !important;
  line-height: 0.7 !important;
  font-family: var(--ys-font-body) !important;
}

.ys-testimonial-quote {
  position: relative !important;
  z-index: 2 !important;
  min-height: 148px !important;
  margin: 0 !important;
  color: #17364b !important;
  font-size: clamp(20px, 1.55vw, 25px) !important;
  line-height: 1.62 !important;
  font-weight: 650 !important;
  letter-spacing: -0.35px !important;
}

.ys-testimonial-footer {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  margin-top: 42px !important;
  padding-top: 28px !important;
  border-top: 1px solid rgba(6, 43, 70, 0.1) !important;
}

.ys-testimonial-avatar {
  width: 76px !important;
  height: 76px !important;
  flex: 0 0 76px !important;
  border-radius: 50% !important;
  padding: 5px !important;
  background: linear-gradient(135deg, #f2b94b, #ef4444) !important;
  box-shadow: 0 18px 34px rgba(6, 43, 70, 0.18) !important;
}

.ys-testimonial-avatar img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  filter: grayscale(1) contrast(1.08) !important;
  background: #ffffff !important;
}

.ys-testimonial-meta h3 {
  margin: 0 !important;
  color: #061826 !important;
  font-size: 24px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  letter-spacing: -0.7px !important;
}

.ys-testimonial-meta p {
  margin: 7px 0 0 !important;
  color: rgba(6, 43, 70, 0.62) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
}

/* JS animation classes from your existing script */
.ys-testimonial-flip-card.is-sliding-next {
  animation: ysTestimonialNext 0.52s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.ys-testimonial-flip-card.is-sliding-prev {
  animation: ysTestimonialPrev 0.52s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

@keyframes ysTestimonialNext {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  42% {
    opacity: 0;
    transform: translateX(-34px) scale(0.98);
  }

  43% {
    opacity: 0;
    transform: translateX(34px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes ysTestimonialPrev {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  42% {
    opacity: 0;
    transform: translateX(34px) scale(0.98);
  }

  43% {
    opacity: 0;
    transform: translateX(-34px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
  .ys-testimonials-flip-layout {
    grid-template-columns: 1fr !important;
    gap: 42px !important;
  }

  .ys-testimonials-copy {
    max-width: 760px !important;
  }

  .ys-testimonial-stage {
    min-height: auto !important;
  }

  .ys-testimonial-flip-card {
    width: 100% !important;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {
  .ys-testimonials-flip-section {
    padding: 76px 0 86px !important;
  }

  .ys-testimonials-flip-section .ys-container {
    width: min(100% - 28px, 520px) !important;
  }

  .ys-testimonials-flip-layout {
    gap: 30px !important;
  }

  .ys-testimonials-copy h2 {
    max-width: 340px !important;
    font-size: 39px !important;
    line-height: 1.02 !important;
    letter-spacing: -1.6px !important;
  }

  .ys-testimonials-copy>p:last-child {
    max-width: 340px !important;
    margin-top: 16px !important;
    font-size: 14.5px !important;
    line-height: 1.62 !important;
  }

  .ys-testimonial-topbar {
    align-items: center !important;
    margin-bottom: 16px !important;
  }

  .ys-testimonial-counter {
    font-size: 11px !important;
    letter-spacing: 2px !important;
  }

  .ys-testimonial-controls {
    gap: 8px !important;
  }

  .ys-testimonial-arrow {
    width: 42px !important;
    height: 42px !important;
    font-size: 17px !important;
  }

  .ys-testimonial-dots {
    gap: 6px !important;
  }

  .ys-testimonial-dot {
    width: 7px !important;
    height: 7px !important;
  }

  .ys-testimonial-dot.active {
    width: 22px !important;
  }

  .ys-testimonial-stage::before,
  .ys-testimonial-stage::after,
  .ys-testimonials-board-wrap::before {
    display: none !important;
  }

  .ys-testimonial-flip-card {
    min-height: auto !important;
    padding: 28px 22px 24px !important;
    border-radius: 30px !important;
  }

  .ys-testimonial-card-head {
    margin-bottom: 24px !important;
  }

  .ys-testimonial-chip {
    min-height: 32px !important;
    padding: 0 13px !important;
    font-size: 10.5px !important;
  }

  .ys-testimonial-quote-mark {
    height: 34px !important;
    margin-bottom: 12px !important;
    font-size: 78px !important;
  }

  .ys-testimonial-quote {
    min-height: 124px !important;
    font-size: 16.5px !important;
    line-height: 1.62 !important;
    font-weight: 650 !important;
  }

  .ys-testimonial-footer {
    margin-top: 28px !important;
    padding-top: 20px !important;
    gap: 14px !important;
  }

  .ys-testimonial-avatar {
    width: 62px !important;
    height: 62px !important;
    flex-basis: 62px !important;
  }

  .ys-testimonial-meta h3 {
    font-size: 20px !important;
  }

  .ys-testimonial-meta p {
    font-size: 10px !important;
    letter-spacing: 2.2px !important;
  }
}

@media (max-width: 380px) {
  .ys-testimonials-flip-section .ys-container {
    width: calc(100% - 22px) !important;
  }

  .ys-testimonials-copy h2 {
    font-size: 35px !important;
  }

  .ys-testimonial-flip-card {
    padding: 25px 19px 22px !important;
  }

  .ys-testimonial-quote {
    font-size: 15.5px !important;
  }
}

/* =========================================================
   TESTIMONIALS - DARK THEME CLEAN SINGLE CARD
   Paste at very bottom of home.css
========================================================= */

.ys-testimonials-story-section {
  position: relative !important;
  padding: 100px 0 112px !important;
  background:
    radial-gradient(circle at 10% 18%, rgba(242, 185, 75, 0.13), transparent 34%),
    radial-gradient(circle at 90% 16%, rgba(239, 68, 68, 0.15), transparent 32%),
    linear-gradient(135deg, #061826 0%, #082033 46%, #04111d 100%) !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

.ys-testimonials-story-section::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) !important;
  background-size: 52px 52px !important;
  opacity: 0.28 !important;
  mask-image: linear-gradient(to bottom, black, transparent 88%) !important;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%) !important;
  z-index: -2 !important;
}

.ys-testimonials-story-section::after {
  content: "TESTIMONIALS" !important;
  position: absolute !important;
  left: 50% !important;
  top: 42px !important;
  transform: translateX(-50%) !important;
  color: rgba(255, 255, 255, 0.035) !important;
  font-size: clamp(80px, 10vw, 170px) !important;
  font-weight: 950 !important;
  letter-spacing: -6px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.ys-testimonials-story-shell {
  width: min(1220px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
}

/* Heading */
.ys-testimonials-story-heading {
  max-width: 780px !important;
  margin: 0 auto 34px !important;
  text-align: center !important;
}

.ys-testimonials-story-heading .ys-section-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
  color: #f2b94b !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 2.2px !important;
  text-transform: uppercase !important;
}

.ys-testimonials-story-heading .ys-section-label::before,
.ys-testimonials-story-heading .ys-section-label::after {
  content: "" !important;
  width: 30px !important;
  height: 2px !important;
  border-radius: 99px !important;
  background: linear-gradient(90deg, #f2b94b, #ef4444) !important;
}

.ys-testimonials-story-heading h2 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(48px, 5.5vw, 82px) !important;
  line-height: 0.95 !important;
  letter-spacing: -3px !important;
  text-transform: uppercase !important;
}

.ys-testimonials-story-heading>p:last-child {
  max-width: 560px !important;
  margin: 18px auto 0 !important;
  color: rgba(226, 237, 247, 0.74) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

/* Remove portrait rail */
.ys-story-line,
.ys-story-portraits {
  display: none !important;
}

/* Controls */
.ys-testimonials-story-controls {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  margin: 0 0 32px !important;
}

.ys-story-arrow {
  width: 48px !important;
  height: 48px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.11) !important;
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24) !important;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}

.ys-story-arrow:hover,
.ys-story-arrow:focus-visible {
  background: #f2b94b !important;
  color: #061826 !important;
  border-color: rgba(242, 185, 75, 0.85) !important;
  transform: translateY(-2px) scale(1.04) !important;
  outline: none !important;
}

.ys-story-dots {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ys-story-dot {
  width: 10px !important;
  height: 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.24) !important;
  cursor: pointer !important;
  transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease !important;
}

.ys-story-dot.active {
  width: 32px !important;
  background: #ef4444 !important;
}

.ys-story-dot:hover {
  transform: scale(1.15) !important;
}

/* Stage */
.ys-testimonials-story-stage {
  position: relative !important;
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Main testimonial card */
.ys-story-active-card {
  position: relative !important;
  z-index: 2 !important;
  width: min(980px, 100%) !important;
  min-height: 360px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 48px !important;
  padding: 48px 58px !important;
  border-radius: 42px !important;
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.052)) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  overflow: hidden !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  transition: transform 0.35s ease, opacity 0.35s ease !important;
  will-change: transform, opacity !important;
}

.ys-story-active-card::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 46px !important;
  bottom: 46px !important;
  width: 6px !important;
  border-radius: 0 99px 99px 0 !important;
  background: linear-gradient(180deg, #f2b94b, #ef4444) !important;
}

.ys-story-active-card::after {
  content: "“" !important;
  position: absolute !important;
  right: 46px !important;
  top: 18px !important;
  color: rgba(255, 255, 255, 0.055) !important;
  font-size: 170px !important;
  font-family: var(--ys-font-body) !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

/* Image */
.ys-story-active-image {
  width: 230px !important;
  height: 230px !important;
  border-radius: 50% !important;
  padding: 14px !important;
  background: linear-gradient(135deg, #f2b94b, #ef4444) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 0 0 12px rgba(255, 255, 255, 0.045) !important;
}

.ys-story-active-image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  filter: none !important;
  background: #ffffff !important;
}

/* Content */
.ys-story-active-content {
  position: relative !important;
  z-index: 2 !important;
  min-width: 0 !important;
}

.ys-story-chip {
  display: inline-flex !important;
  align-items: center !important;
  margin-bottom: 16px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: rgba(242, 185, 75, 0.12) !important;
  border: 1px solid rgba(242, 185, 75, 0.22) !important;
  color: #f2b94b !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
}

.ys-story-active-content h3 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(30px, 3vw, 46px) !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -1.2px !important;
  text-transform: uppercase !important;
}

.ys-story-role {
  margin: 8px 0 22px !important;
  color: rgba(226, 237, 247, 0.72) !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
}

.ys-story-quote {
  max-width: 650px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(20px, 1.8vw, 26px) !important;
  line-height: 1.48 !important;
  font-style: italic !important;
  letter-spacing: -0.35px !important;
}

.ys-story-link {
  margin-top: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #f2b94b !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

.ys-story-link:hover {
  color: #ffffff !important;
}

/* Card change animation */
.ys-story-active-card.is-next {
  animation: ysStoryDarkNext 0.52s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.ys-story-active-card.is-prev {
  animation: ysStoryDarkPrev 0.52s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

@keyframes ysStoryDarkNext {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }

  42% {
    opacity: 0;
    transform: translate3d(-28px, 0, 0) scale3d(0.985, 0.985, 1);
  }

  43% {
    opacity: 0;
    transform: translate3d(28px, 0, 0) scale3d(0.985, 0.985, 1);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}

@keyframes ysStoryDarkPrev {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }

  42% {
    opacity: 0;
    transform: translate3d(28px, 0, 0) scale3d(0.985, 0.985, 1);
  }

  43% {
    opacity: 0;
    transform: translate3d(-28px, 0, 0) scale3d(0.985, 0.985, 1);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .ys-story-active-card {
    grid-template-columns: 190px minmax(0, 1fr) !important;
    gap: 30px !important;
    padding: 42px 38px !important;
  }

  .ys-story-active-image {
    width: 180px !important;
    height: 180px !important;
  }

  .ys-story-quote {
    font-size: 20px !important;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .ys-testimonials-story-section {
    padding: 70px 0 82px !important;
  }

  .ys-testimonials-story-section::after {
    top: 38px !important;
    font-size: 62px !important;
    letter-spacing: -2px !important;
  }

  .ys-testimonials-story-shell {
    width: min(100% - 26px, 520px) !important;
  }

  .ys-testimonials-story-heading {
    margin-bottom: 24px !important;
  }

  .ys-testimonials-story-heading .ys-section-label {
    font-size: 10.5px !important;
    letter-spacing: 1.8px !important;
  }

  .ys-testimonials-story-heading .ys-section-label::before,
  .ys-testimonials-story-heading .ys-section-label::after {
    width: 24px !important;
  }

  .ys-testimonials-story-heading h2 {
    font-size: 39px !important;
    line-height: 0.98 !important;
    letter-spacing: -1.5px !important;
  }

  .ys-testimonials-story-heading>p:last-child {
    margin-top: 14px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .ys-testimonials-story-controls {
    gap: 12px !important;
    margin-bottom: 22px !important;
  }

  .ys-story-arrow {
    width: 42px !important;
    height: 42px !important;
    font-size: 24px !important;
  }

  .ys-story-dot {
    width: 8px !important;
    height: 8px !important;
  }

  .ys-story-dot.active {
    width: 24px !important;
  }

  .ys-story-active-card {
    width: 100% !important;
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    padding: 30px 24px 28px !important;
    border-radius: 34px !important;
    text-align: left !important;
  }

  .ys-story-active-card::before {
    top: 28px !important;
    bottom: 28px !important;
    width: 5px !important;
  }

  .ys-story-active-card::after {
    right: 24px !important;
    top: 14px !important;
    font-size: 90px !important;
  }

  .ys-story-active-image {
    width: 145px !important;
    height: 145px !important;
    margin: 0 auto !important;
    padding: 10px !important;
  }

  .ys-story-chip {
    margin-bottom: 13px !important;
    font-size: 10px !important;
  }

  .ys-story-active-content h3 {
    font-size: 25px !important;
  }

  .ys-story-role {
    margin-bottom: 17px !important;
    font-size: 13px !important;
  }

  .ys-story-quote {
    font-size: 16.5px !important;
    line-height: 1.55 !important;
  }

  .ys-story-link {
    margin-top: 22px !important;
    font-size: 13px !important;
  }
}

/* =========================================================
   1. UNIVERSAL BLOB CROP FIX (iOS Safari, iOS Chrome, Android)
========================================================= */
.ys-hero-clean .ys-blob-shape {
  overflow: hidden !important;
  /* Forces Apple browsers to clip the image to the blob shape */
  -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
  mask-image: radial-gradient(white, black) !important;

  /* Forces hardware acceleration to stop glitching during animations */
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  transform: translate3d(0, 0, 0) !important;

  /* Forces Chrome to respect the parent boundaries */
  isolation: isolate !important;
  z-index: 1 !important;
}

.ys-hero-clean .ys-hero-image-slider {
  border-radius: inherit !important;
  overflow: hidden !important;
  /* Removed transforms here to prevent iOS Chrome from breaking the mask */
}


/* =========================================================
   2. BULLETPROOF MOBILE HERO (Catches ALL phones up to 767px)
========================================================= */
@media (max-width: 767px) {
  .ys-hero-clean {
    padding-top: 110px !important;
  }

  /* GRID layout completely stops the Android right-shift bug */
  .ys-hero-clean .ys-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
  }

  .ys-hero-clean .ys-hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Center text perfectly */
  .ys-hero-clean .ys-badge {
    margin: 0 auto 16px auto !important;
  }

  .ys-hero-clean .ys-title {
    font-size: clamp(30px, 9vw, 38px) !important;
    margin-bottom: 12px !important;
  }

  .ys-hero-clean .ys-desc {
    margin: 0 auto 20px auto !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }

  /* Sleek, compact side-by-side Intranet buttons on mobile */
  .ys-hero-clean .ys-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 310px !important;
    margin: 0 auto 16px !important;
  }

  .ys-hero-clean .ys-btn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 8px !important;
    min-height: 40px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }

  /* Blob Size and Centering */
  .ys-hero-clean .ys-image-wrapper {
    max-width: 360px !important;
    width: 95% !important;
    margin: 0 auto !important;
  }

  .ys-hero-clean .card-bottom-right {
    /* 1. Goal: Narrower and Slimmer (less 'fat') */
    width: max-content !important;
    padding: 6px 14px !important;
    /* REDUCED vertical/horizontal padding for a slim look */
    border-radius: 10px !important;
    /* Slightly tighter corner radius fits the slimmer look */

    /* Child element text needs to be smaller to make the box truly narrow */
    font-size: 11px !important;

    /* 2. Goal: Further Right and Further Down */
    right: 0px !important;
    /* Pushed to the absolute edge of the image wrapper */
    left: auto !important;
    bottom: 10px !important;
    /* Pushed FURTHER DOWN closer to the bottom edge of the blob */

    /* 3. Goal: Maintain working features (do not touch) */
    transform: none !important;
    animation: ysFloatSoft 4.5s ease-in-out infinite !important;
    z-index: 10 !important;
  }

  .ys-hero-clean .card-bottom-right strong {
    font-size: 11px !important;
    margin: 0 !important;
  }
}

/* =========================================================
   EDITABLE TESTIMONIAL FIX - KEEP ORIGINAL OLD SIZING
   Works with .ys-testimonial-slide wrapper
========================================================= */

/* Keep original card size/design from old CSS */
/* Keep original card size/design from old CSS */
.ys-testimonials-story-section .ys-story-active-card {
  width: min(980px, 100%) !important;
  height: 400px !important;
  min-height: 400px !important;
  padding: 0 !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Hide all slides by default */
.ys-testimonials-story-section .ys-testimonial-slide {
  display: none !important;
}

/* Active slide becomes the original card internal grid */
.ys-testimonials-story-section .ys-testimonial-slide.active {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  padding: 44px 58px !important;
  box-sizing: border-box !important;

  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  align-items: center !important;
  align-content: center !important;
  gap: 48px !important;

  position: relative !important;
  z-index: 2 !important;
}

/* Keep original image sizing */
.ys-testimonials-story-section .ys-testimonial-slide .ys-story-active-image {
  width: 230px !important;
  height: 230px !important;
  border-radius: 50% !important;
  padding: 14px !important;
  margin: 0 !important;
  background: linear-gradient(135deg, #f2b94b, #ef4444) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 0 0 12px rgba(255, 255, 255, 0.045) !important;
}

.ys-testimonials-story-section .ys-testimonial-slide .ys-story-active-image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  filter: none !important;
  background: #ffffff !important;
}

/* Keep original content sizing */
.ys-testimonials-story-section .ys-testimonial-slide .ys-story-active-content {
  position: relative !important;
  z-index: 2 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  text-align: left !important;
}

.ys-testimonials-story-section .ys-testimonial-slide .ys-story-chip {
  display: inline-flex !important;
  align-items: center !important;
  margin-bottom: 14px !important;
  padding: 7px 13px !important;
  border-radius: 999px !important;
  background: rgba(242, 185, 75, 0.12) !important;
  border: 1px solid rgba(242, 185, 75, 0.22) !important;
  color: #f2b94b !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
  width: fit-content !important;
  white-space: nowrap !important;
}

.ys-testimonials-story-section .ys-testimonial-slide .ys-story-active-content h3 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(28px, 2.8vw, 42px) !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  letter-spacing: -1.2px !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.ys-testimonials-story-section .ys-testimonial-slide .ys-story-role {
  margin: 6px 0 18px !important;
  color: rgba(226, 237, 247, 0.72) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  white-space: normal !important;
}

.ys-testimonials-story-section .ys-testimonial-slide .ys-story-quote {
  max-width: 650px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(19px, 1.6vw, 24px) !important;
  line-height: 1.45 !important;
  font-style: italic !important;
  letter-spacing: -0.35px !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Theme Content Editor wrappers should not break layout */
.ys-testimonials-story-section .ys-testimonial-slide .tce-editable,
.ys-testimonials-story-section .ys-testimonial-slide [data-editable] {
  display: inline !important;
  max-width: 100% !important;
  white-space: inherit !important;
  word-break: inherit !important;
  overflow-wrap: inherit !important;
}

.ys-testimonials-story-section .ys-testimonial-slide .ys-story-active-image .tce-editable,
.ys-testimonials-story-section .ys-testimonial-slide .ys-story-active-image [data-editable] {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

/* Tablet: match old CSS with fixed height */
@media (max-width: 900px) {
  .ys-testimonials-story-section .ys-story-active-card {
    height: 410px !important;
    min-height: 410px !important;
  }

  .ys-testimonials-story-section .ys-testimonial-slide.active {
    height: 100% !important;
    min-height: 100% !important;
    grid-template-columns: 180px minmax(0, 1fr) !important;
    gap: 28px !important;
    padding: 36px 32px !important;
    align-content: center !important;
  }

  .ys-testimonials-story-section .ys-testimonial-slide .ys-story-active-image {
    width: 170px !important;
    height: 170px !important;
  }

  .ys-testimonials-story-section .ys-testimonial-slide .ys-story-quote {
    font-size: 19px !important;
  }
}

/* Mobile: match old CSS with fixed height */
@media (max-width: 680px) {
  .ys-testimonials-story-section .ys-story-active-card {
    height: 480px !important;
    min-height: 480px !important;
  }

  .ys-testimonials-story-section .ys-testimonial-slide.active {
    height: 100% !important;
    min-height: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 28px 22px 24px !important;
    text-align: left !important;
    align-content: center !important;
  }

  .ys-testimonials-story-section .ys-testimonial-slide .ys-story-active-image {
    width: 135px !important;
    height: 135px !important;
    margin: 0 auto !important;
    padding: 8px !important;
  }

  .ys-testimonials-story-section .ys-testimonial-slide .ys-story-chip {
    margin-bottom: 10px !important;
    font-size: 10px !important;
  }

  .ys-testimonials-story-section .ys-testimonial-slide .ys-story-active-content h3 {
    font-size: 23px !important;
  }

  .ys-testimonials-story-section .ys-testimonial-slide .ys-story-role {
    margin-bottom: 12px !important;
    font-size: 13px !important;
  }

  .ys-testimonials-story-section .ys-testimonial-slide .ys-story-quote {
    font-size: 15.5px !important;
    line-height: 1.5 !important;
  }
}
/* =========================================================
   INNER PAGE SECTIONS
   About / Joining / Learning / News
========================================================= */

/* -------------------------
   Values
------------------------- */

.ys-values-section {
  background: var(--ys-light);
}

.ys-values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.ys-value-card {
  min-height: 260px;
  padding: 28px;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-sm);
  transition: var(--ys-transition);
}

.ys-value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ys-shadow-md);
  border-color: rgba(229, 57, 53, 0.28);
}

.ys-value-card span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.1);
  font-size: 24px;
}

.ys-value-card h3 {
  margin-bottom: 10px;
  color: var(--ys-navy);
  font-size: 21px;
  line-height: 1.2;
}

.ys-value-card p {
  color: var(--ys-muted);
  font-size: 15px;
}

/* -------------------------
   Timeline
------------------------- */

.ys-timeline-section {
  background: var(--ys-white);
}

.ys-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.ys-timeline::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 31px;
  height: 2px;
  background: linear-gradient(90deg, var(--ys-red), var(--ys-navy-soft));
}

.ys-timeline-item {
  position: relative;
  padding: 72px 22px 24px;
  border-radius: var(--ys-radius-md);
  background: var(--ys-light);
  border: 1px solid var(--ys-border);
  transition: var(--ys-transition);
}

.ys-timeline-item::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ys-red);
  border: 5px solid var(--ys-white);
  box-shadow: 0 0 0 5px rgba(229, 57, 53, 0.12);
  z-index: 2;
}

.ys-timeline-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--ys-shadow-md);
  background: var(--ys-white);
}

.ys-timeline-item span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--ys-red);
  font-weight: 950;
  font-size: 18px;
}

.ys-timeline-item h3 {
  margin-bottom: 8px;
  color: var(--ys-navy);
  font-size: 21px;
}

.ys-timeline-item p {
  color: var(--ys-muted);
  font-size: 14px;
}

/* -------------------------
   Numbers
------------------------- */

.ys-numbers-section {
  background:
    radial-gradient(circle at 14% 20%, rgba(229, 57, 53, 0.08), transparent 35%),
    var(--ys-light);
}

.ys-numbers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.ys-number-card {
  min-height: 170px;
  padding: 24px;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-sm);
  text-align: center;
  transition: var(--ys-transition);
}

.ys-number-card:hover {
  transform: translateY(-8px);
  background: var(--ys-navy);
  color: var(--ys-white);
}

.ys-number-card strong,
.ys-number-card span {
  color: var(--ys-red);
  font-size: 38px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -1.2px;
}

.ys-number-card p {
  margin-top: 12px;
  color: inherit;
  font-size: 14px;
  font-weight: 850;
}

/* -------------------------
   Facilities
------------------------- */

.ys-facilities-section {
  background: var(--ys-white);
}

.ys-facilities-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-auto-rows: 260px;
  gap: 20px;
}

.ys-facility-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ys-radius-lg);
  box-shadow: var(--ys-shadow-sm);
}

.ys-facility-card.large {
  grid-row: span 2;
}

.ys-facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}

.ys-facility-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 27, 45, 0.88), rgba(3, 27, 45, 0.05));
}

.ys-facility-card:hover img {
  transform: scale(1.08);
}

.ys-facility-card div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: var(--ys-white);
}

.ys-facility-card h3 {
  margin-bottom: 6px;
  font-size: 24px;
}

.ys-facility-card p {
  color: rgba(255, 255, 255, 0.8);
}

/* -------------------------
   Student Life
------------------------- */

.ys-life-section {
  background: var(--ys-light);
}

.ys-life-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
}

.ys-life-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-sm);
}

.ys-life-image {
  min-height: 520px;
  overflow: hidden;
}

.ys-life-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ys-life-content {
  padding: 42px;
}

.ys-life-content h2,
.ys-safeguarding-card h2 {
  margin-bottom: 18px;
  color: var(--ys-navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -1.4px;
}

.ys-life-content p:not(.ys-section-label),
.ys-safeguarding-card p:not(.ys-section-label) {
  color: var(--ys-muted);
  font-size: 16px;
}

.ys-life-features {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}

.ys-life-features div {
  padding: 16px;
  border-radius: 18px;
  background: var(--ys-light);
}

.ys-life-features strong {
  display: block;
  color: var(--ys-navy);
}

.ys-life-features span {
  color: var(--ys-muted);
  font-size: 14px;
}

.ys-safeguarding-card {
  padding: 36px;
  border-radius: var(--ys-radius-lg);
  background:
    radial-gradient(circle at top right, rgba(229, 57, 53, 0.12), transparent 34%),
    var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-sm);
}

.ys-safeguarding-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.ys-safeguarding-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--ys-light);
  color: var(--ys-navy);
  font-weight: 850;
  transition: var(--ys-transition);
}

.ys-safeguarding-list a:hover {
  background: var(--ys-navy);
  color: var(--ys-white);
  transform: translateX(5px);
}

/* =========================================================
   JOINING PAGE
========================================================= */

.ys-admission-journey-section {
  background: var(--ys-light);
}

.ys-journey-card {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 30px;
  padding: 36px;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-md);
}

.ys-journey-intro h2 {
  margin-bottom: 14px;
  color: var(--ys-navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -1.3px;
}

.ys-journey-intro p:not(.ys-section-label) {
  color: var(--ys-muted);
}

.ys-journey-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.ys-journey-steps article {
  position: relative;
  padding: 24px 18px;
  border-radius: 22px;
  background: var(--ys-light);
  transition: var(--ys-transition);
}

.ys-journey-steps article:hover {
  transform: translateY(-7px);
  background: var(--ys-navy);
  color: var(--ys-white);
}

.ys-journey-steps span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--ys-red);
  font-size: 14px;
  font-weight: 950;
}

.ys-journey-steps h3 {
  margin-bottom: 8px;
  color: inherit;
  font-size: 20px;
}

.ys-journey-steps p {
  color: inherit;
  font-size: 14px;
}

/* -------------------------
   Open Events
------------------------- */

.ys-open-events-section {
  background: var(--ys-white);
}

.ys-open-events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ys-open-event-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-sm);
  transition: var(--ys-transition);
}

.ys-open-event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ys-shadow-md);
  border-color: rgba(229, 57, 53, 0.25);
}

.ys-open-date {
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--ys-navy);
  color: var(--ys-white);
  text-align: center;
}

.ys-open-date span,
.ys-open-date small {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

.ys-open-date strong {
  color: var(--ys-red);
  font-size: 30px;
  line-height: 1;
}

.ys-open-event-card h3 {
  margin-bottom: 4px;
  color: var(--ys-navy);
  font-size: 22px;
  line-height: 1.2;
}

.ys-open-time {
  color: var(--ys-red);
  font-weight: 850;
}

.ys-open-event-card p {
  margin: 8px 0 12px;
  color: var(--ys-muted);
  font-size: 14px;
}

/* -------------------------
   Entry Cards
------------------------- */

.ys-entry-section {
  background: var(--ys-light);
}

.ys-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ys-entry-card {
  overflow: hidden;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-sm);
}

.ys-entry-image {
  height: 300px;
  overflow: hidden;
}

.ys-entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}

.ys-entry-card:hover .ys-entry-image img {
  transform: scale(1.07);
}

.ys-entry-content {
  padding: 34px;
}

.ys-entry-content h2,
.ys-apply-card h2,
.ys-download-card h2,
.ys-faq-card h2 {
  margin-bottom: 16px;
  color: var(--ys-navy);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.ys-entry-content p:not(.ys-section-label),
.ys-apply-card p:not(.ys-section-label) {
  color: var(--ys-muted);
}

.ys-check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
  list-style: none;
}

.ys-check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ys-navy);
  font-weight: 800;
}

.ys-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ys-red);
  font-weight: 950;
}

/* -------------------------
   Apply / Downloads / FAQ
------------------------- */

.ys-apply-section {
  background: var(--ys-white);
}

.ys-apply-grid,
.ys-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.ys-apply-card,
.ys-download-card,
.ys-faq-card,
.ys-parent-quote {
  padding: 36px;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-sm);
}

.ys-apply-options,
.ys-download-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.ys-apply-options a,
.ys-download-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: var(--ys-light);
  transition: var(--ys-transition);
}

.ys-apply-options a:hover,
.ys-download-list a:hover {
  background: var(--ys-navy);
  color: var(--ys-white);
  transform: translateX(5px);
}

.ys-apply-options span,
.ys-download-list strong {
  color: inherit;
  font-weight: 900;
}

.ys-apply-options strong,
.ys-download-list em {
  color: var(--ys-red);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.ys-download-list span {
  display: block;
  color: var(--ys-muted);
  font-size: 13px;
}

.ys-download-list a:hover span {
  color: rgba(255, 255, 255, 0.72);
}

/* FAQ */

.ys-faq-section {
  background: var(--ys-light);
}

.ys-accordion {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.ys-accordion-item {
  overflow: hidden;
  border-radius: 18px;
  background: var(--ys-light);
  border: 1px solid var(--ys-border);
}

.ys-accordion-btn {
  width: 100%;
  min-height: 62px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ys-navy);
  font-size: 16px;
  font-weight: 900;
  text-align: left;
}

.ys-accordion-btn span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ys-white);
  color: var(--ys-red);
  flex: 0 0 auto;
  transition: var(--ys-transition);
}

.ys-accordion-item.active .ys-accordion-btn span {
  transform: rotate(45deg);
  background: var(--ys-red);
  color: var(--ys-white);
}

.ys-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.ys-accordion-content p {
  padding: 0 20px 20px;
  color: var(--ys-muted);
}

.ys-parent-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(229, 57, 53, 0.1), transparent 35%),
    var(--ys-white);
}

.ys-parent-quote p {
  margin-bottom: 24px;
  color: var(--ys-navy);
  font-size: 24px;
  line-height: 1.45;
  font-weight: 800;
}

.ys-parent-quote strong {
  display: block;
  color: var(--ys-navy);
}

.ys-parent-quote span {
  color: var(--ys-muted);
}

/* =========================================================
   LEARNING PAGE
========================================================= */

.ys-learning-links-section {
  position: relative;
  z-index: 5;
  margin-top: -42px;
  padding: 0 0 70px;
}

.ys-learning-links-card {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-lg);
}

.ys-learning-links-card a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 24px;
  border-right: 1px solid var(--ys-border);
  transition: var(--ys-transition);
}

.ys-learning-links-card a:last-child {
  border-right: 0;
}

.ys-learning-links-card a:hover {
  background: var(--ys-navy);
  color: var(--ys-white);
}

.ys-learning-links-card span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.1);
  flex: 0 0 auto;
}

.ys-learning-links-card strong {
  display: block;
  color: inherit;
  font-size: 16px;
}

.ys-learning-links-card small {
  color: var(--ys-muted);
  font-weight: 800;
}

.ys-learning-links-card a:hover small {
  color: rgba(255, 255, 255, 0.72);
}

/* Calendar dashboard */

.ys-learning-dashboard-section {
  background: var(--ys-light);
  padding-top: 30px;
}

.ys-learning-dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
}

.ys-full-calendar-card,
.ys-upcoming-events-card,
.ys-info-card,
.ys-resource-card {
  padding: 32px;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-sm);
}

.ys-calendar-controls {
  display: flex;
  gap: 8px;
}

.ys-calendar-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ys-light);
  color: var(--ys-navy);
  font-weight: 900;
  transition: var(--ys-transition);
}

.ys-calendar-controls button:hover {
  background: var(--ys-red);
  color: var(--ys-white);
}

.ys-calendar-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--ys-light);
}

.ys-calendar-tabs button {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--ys-muted);
  font-weight: 900;
}

.ys-calendar-tabs button.active {
  background: var(--ys-navy);
  color: var(--ys-white);
}

.ys-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
}

.ys-calendar-grid > strong {
  color: var(--ys-muted);
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
}

.ys-calendar-grid > div {
  min-height: 92px;
  padding: 10px;
  border-radius: 14px;
  background: var(--ys-light);
  border: 1px solid transparent;
  transition: var(--ys-transition);
}

.ys-calendar-grid > div:hover {
  background: var(--ys-white);
  border-color: rgba(229, 57, 53, 0.25);
  box-shadow: var(--ys-shadow-sm);
}

.ys-calendar-grid > div.muted {
  color: #a8b3bf;
}

.ys-calendar-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--ys-navy);
  font-weight: 950;
}

.ys-calendar-grid em {
  display: inline-flex;
  padding: 5px 7px;
  border-radius: 8px;
  background: var(--ys-navy-soft);
  color: var(--ys-white);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
}

.ys-calendar-grid em.red {
  background: var(--ys-red);
}

.ys-calendar-grid .active-day {
  background: var(--ys-navy);
}

.ys-calendar-grid .active-day span {
  color: var(--ys-white);
}

/* Upcoming list */

.ys-upcoming-list {
  display: grid;
  gap: 14px;
}

.ys-upcoming-list article {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--ys-light);
  transition: var(--ys-transition);
}

.ys-upcoming-list article:hover {
  transform: translateX(5px);
  background: var(--ys-navy);
  color: var(--ys-white);
}

.ys-event-date-box {
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--ys-navy);
  color: var(--ys-white);
}

.ys-event-date-box.red {
  background: var(--ys-red);
}

.ys-event-date-box span {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1px;
}

.ys-event-date-box strong {
  margin-top: -12px;
  font-size: 26px;
  line-height: 1;
}

.ys-upcoming-list h3 {
  color: inherit;
  font-size: 18px;
}

.ys-upcoming-list p {
  color: inherit;
  font-size: 13px;
  opacity: 0.78;
}

.ys-upcoming-list small {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(229, 57, 53, 0.12);
  color: var(--ys-red);
  font-weight: 900;
}

.ys-upcoming-list article:hover small {
  background: rgba(255, 255, 255, 0.15);
  color: var(--ys-white);
}

/* Info cards */

.ys-info-section {
  background: var(--ys-white);
}

.ys-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ys-info-card h2 {
  margin-bottom: 22px;
  color: var(--ys-navy);
  font-size: 32px;
  line-height: 1.1;
}

.ys-term-list,
.ys-school-day-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.ys-term-list div,
.ys-school-day-list div {
  padding: 16px;
  border-radius: 16px;
  background: var(--ys-light);
}

.ys-term-list strong,
.ys-school-day-list strong {
  display: block;
  color: var(--ys-navy);
}

.ys-term-list span,
.ys-school-day-list span {
  display: block;
  color: var(--ys-muted);
}

.ys-term-list small {
  display: block;
  color: var(--ys-red);
  font-weight: 850;
}

.ys-parent-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0 24px;
}

.ys-parent-links-grid a {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--ys-light);
  color: var(--ys-navy);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  transition: var(--ys-transition);
}

.ys-parent-links-grid a:hover {
  background: var(--ys-red);
  color: var(--ys-white);
  transform: translateY(-4px);
}

/* Resources */

.ys-resources-section {
  background: var(--ys-light);
}

.ys-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ys-resource-card {
  transition: var(--ys-transition);
}

.ys-resource-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ys-shadow-md);
}

.ys-resource-card span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.1);
  font-size: 24px;
}

.ys-resource-card h3 {
  margin-bottom: 10px;
  color: var(--ys-navy);
  font-size: 22px;
}

.ys-resource-card p {
  color: var(--ys-muted);
}

.ys-resource-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--ys-red);
  font-weight: 900;
}

/* Enrichment */

.ys-enrichment-section {
  background: var(--ys-white);
}

.ys-enrichment-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 270px;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 20px;
  scrollbar-width: none;
}

.ys-enrichment-row::-webkit-scrollbar {
  display: none;
}

.ys-enrichment-card {
  position: relative;
  overflow: hidden;
  height: 300px;
  border-radius: var(--ys-radius-lg);
  scroll-snap-align: start;
  box-shadow: var(--ys-shadow-sm);
}

.ys-enrichment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}

.ys-enrichment-card:hover img {
  transform: scale(1.08);
}

.ys-enrichment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 27, 45, 0.88), transparent 65%);
}

.ys-enrichment-card div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: var(--ys-white);
}

.ys-enrichment-card h3 {
  font-size: 22px;
  line-height: 1.15;
}

.ys-enrichment-card p {
  color: rgba(255, 255, 255, 0.78);
}

/* =========================================================
   NEWS PAGE
========================================================= */

.ys-results-summary-section {
  position: relative;
  z-index: 5;
  margin-top: -45px;
  padding: 0 0 80px;
}

.ys-results-summary-card {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 30px;
  padding: 34px;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-lg);
}

.ys-results-summary-intro h2 {
  margin-bottom: 14px;
  color: var(--ys-navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -1.3px;
}

.ys-results-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.ys-results-summary-grid div {
  min-height: 150px;
  padding: 18px;
  border-radius: 20px;
  background: var(--ys-light);
  text-align: center;
  transition: var(--ys-transition);
}

.ys-results-summary-grid div:hover {
  transform: translateY(-6px);
  background: var(--ys-navy);
  color: var(--ys-white);
}

.ys-results-summary-grid span {
  display: block;
  margin-bottom: 10px;
  font-size: 25px;
}

.ys-results-summary-grid strong {
  display: block;
  color: var(--ys-red);
  font-size: 28px;
  line-height: 1;
}

.ys-results-summary-grid p {
  margin-top: 8px;
  color: inherit;
  font-size: 13px;
  font-weight: 850;
}

/* Featured news */

.ys-featured-news-section {
  background: var(--ys-white);
}

.ys-featured-news-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 28px;
}

.ys-featured-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  box-shadow: var(--ys-shadow-sm);
}

.ys-featured-story-image {
  min-height: 430px;
  overflow: hidden;
}

.ys-featured-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ys-featured-story-content {
  padding: 38px;
}

.ys-news-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(229, 57, 53, 0.1);
  color: var(--ys-red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ys-featured-story-content small {
  display: block;
  margin-bottom: 14px;
  color: var(--ys-muted);
  font-weight: 800;
}

.ys-featured-story-content h2 {
  margin-bottom: 16px;
  color: var(--ys-navy);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -1.4px;
}

.ys-featured-story-content p {
  margin-bottom: 24px;
  color: var(--ys-muted);
}

.ys-latest-list {
  padding: 30px;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-light);
  border: 1px solid var(--ys-border);
}

.ys-news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.ys-news-tabs button,
.ys-filter-chips button {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ys-white);
  color: var(--ys-muted);
  font-size: 13px;
  font-weight: 900;
  transition: var(--ys-transition);
}

.ys-news-tabs button.active,
.ys-news-tabs button:hover,
.ys-filter-chips button.active,
.ys-filter-chips button:hover {
  background: var(--ys-navy);
  color: var(--ys-white);
}

.ys-latest-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ys-border);
}

.ys-latest-item img {
  width: 82px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
}

.ys-latest-item span {
  color: var(--ys-red);
  font-size: 12px;
  font-weight: 950;
}

.ys-latest-item h3 {
  color: var(--ys-navy);
  font-size: 16px;
  line-height: 1.25;
}

/* Filter */

.ys-news-filter-section {
  background: var(--ys-white);
  padding: 10px 0 20px;
}

.ys-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* News page grid */

.ys-news-page-grid-section {
  background: var(--ys-white);
  padding-top: 40px;
}

.ys-news-page-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ys-news-card.hidden {
  display: none;
}

/* Achievements */

.ys-achievements-section {
  background: var(--ys-light);
}

.ys-achievements-intro {
  max-width: 680px;
  margin-bottom: 34px;
}

.ys-achievements-intro h2 {
  margin-bottom: 16px;
  color: var(--ys-navy);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -1.6px;
}

.ys-achievements-intro h2 span {
  color: var(--ys-red);
}

.ys-achievements-intro p:not(.ys-section-label) {
  margin-bottom: 24px;
  color: var(--ys-muted);
  font-size: 17px;
}

.ys-achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ys-achievement-card {
  position: relative;
  overflow: hidden;
  height: 330px;
  border-radius: var(--ys-radius-lg);
  box-shadow: var(--ys-shadow-sm);
}

.ys-achievement-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}

.ys-achievement-card:hover img {
  transform: scale(1.08);
}

.ys-achievement-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 27, 45, 0.9), transparent 62%);
}

.ys-achievement-card div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: var(--ys-white);
}

.ys-achievement-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--ys-red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ys-achievement-card h3 {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.15;
}

.ys-achievement-card a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
}

/* Reports */

.ys-reports-section {
  background: var(--ys-white);
}

.ys-reports-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 28px;
}

.ys-reports-intro {
  padding: 34px;
  border-radius: var(--ys-radius-lg);
  background: var(--ys-light);
}

.ys-reports-intro h2 {
  margin-bottom: 16px;
  color: var(--ys-navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.ys-reports-intro p:not(.ys-section-label) {
  margin-bottom: 20px;
  color: var(--ys-muted);
}

.ys-report-list {
  display: grid;
  gap: 12px;
}

.ys-report-list a {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: var(--ys-light);
  border: 1px solid var(--ys-border);
  transition: var(--ys-transition);
}

.ys-report-list a:hover {
  transform: translateX(6px);
  background: var(--ys-navy);
  color: var(--ys-white);
}

.ys-report-list a > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--ys-red);
  color: var(--ys-white);
  font-size: 12px;
  font-weight: 950;
}

.ys-report-list strong {
  display: block;
  color: inherit;
}

.ys-report-list small {
  color: var(--ys-muted);
}

.ys-report-list a:hover small {
  color: rgba(255, 255, 255, 0.7);
}

.ys-report-list em {
  color: var(--ys-red);
  font-style: normal;
  font-weight: 950;
}

/* News quote */

.ys-news-quote-section {
  padding: 100px 0;
  background:
    radial-gradient(circle at top left, rgba(229, 57, 53, 0.16), transparent 32%),
    var(--ys-navy-dark);
}

.ys-news-quote-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 50px;
  border-radius: var(--ys-radius-lg);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ys-white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  backdrop-filter: blur(14px);
}

.ys-news-quote-card p {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.35;
  font-weight: 800;
}

.ys-news-quote-card strong {
  display: block;
  color: var(--ys-white);
}

.ys-news-quote-card span:not(.ys-big-quote) {
  color: rgba(255, 255, 255, 0.62);
}

/* =========================================================
   REUSABLE INNER PAGE TEMPLATE SYSTEM
========================================================= */

.ys-inner-main {
  min-height: 60vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(229, 57, 53, 0.055), transparent 30%),
    linear-gradient(180deg, #f7fafc 0%, #ffffff 48%, #f4f7fb 100%);
}

.ys-inner-hero {
  position: relative;
  padding: 148px 0 76px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 18%, rgba(215, 168, 79, 0.24), transparent 28%),
    radial-gradient(circle at 14% 24%, rgba(229, 57, 53, 0.16), transparent 30%),
    linear-gradient(135deg, #061826 0%, #082033 46%, #04111d 100%);
  color: #ffffff;
}

.ys-inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.26;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.ys-inner-hero .ys-container {
  position: relative;
  z-index: 2;
}

.ys-inner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--ys-gold, #d7a84f);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.ys-inner-eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ys-gold, #d7a84f), var(--ys-red, #e53935));
}

.ys-inner-hero h1 {
  max-width: 980px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(46px, 7vw, 94px);
  line-height: 0.95;
  letter-spacing: -3.5px;
}

.ys-inner-hero p:not(.ys-inner-eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(226, 237, 247, 0.82);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.7;
  font-weight: 600;
}

.ys-headteacher-hero-actions .ys-btn-red,
.ys-vv-hero-actions .ys-btn-red,
.ys-governors-hero-actions .ys-btn-red,
.ys-staff-hero-actions .ys-btn-red,
.ys-policies-hero-actions .ys-btn-primary,
.ys-compliance-hero-actions .ys-btn-primary,
.ys-info-hero-actions .ys-info-primary-link {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #f43f3b;
  color: #ffffff;
  border: 1px solid #f43f3b;
  box-shadow: 0 14px 30px rgba(244, 63, 59, 0.28);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ys-headteacher-hero-actions .ys-btn-red:hover,
.ys-vv-hero-actions .ys-btn-red:hover,
.ys-governors-hero-actions .ys-btn-red:hover,
.ys-staff-hero-actions .ys-btn-red:hover,
.ys-policies-hero-actions .ys-btn-primary:hover,
.ys-compliance-hero-actions .ys-btn-primary:hover,
.ys-info-hero-actions .ys-info-primary-link:hover {
  background: #d63532;
  border-color: #d63532;
  box-shadow: 0 18px 38px rgba(244, 63, 59, 0.36);
}

.ys-inner-content-section,
.ys-section-card-grid-section {
  padding: 72px 0 96px;
}

.ys-inner-content-card {
  width: 100%;
  padding: clamp(26px, 4vw, 52px);
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid rgba(220, 228, 236, 0.96);
  box-shadow: 0 26px 76px rgba(3, 27, 45, 0.09);
}

.ys-inner-content {
  max-width: 890px;
  color: #24384a;
  font-size: 17px;
  line-height: 1.78;
}

.ys-inner-content > *:first-child {
  margin-top: 0;
}

.ys-inner-content > *:last-child {
  margin-bottom: 0;
}

.ys-inner-content h2,
.ys-inner-content h3,
.ys-inner-content h4 {
  margin: 1.45em 0 0.55em;
  color: var(--ys-navy, #062b46);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.ys-inner-content h2 {
  font-size: clamp(30px, 3.6vw, 48px);
}

.ys-inner-content h3 {
  font-size: clamp(24px, 2.8vw, 34px);
}

.ys-inner-content p,
.ys-inner-content ul,
.ys-inner-content ol {
  margin-bottom: 1.1em;
}

.ys-inner-content ul,
.ys-inner-content ol {
  padding-left: 1.2em;
}

.ys-inner-content a {
  color: var(--ys-red, #e53935);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ys-inner-content img,
.ys-inner-content iframe,
.ys-inner-content embed,
.ys-inner-content object {
  max-width: 100%;
}

.ys-inner-content iframe,
.ys-inner-content embed,
.ys-inner-content object {
  border: 0;
}

.ys-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.ys-page-links a,
.ys-page-links span {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ys-light, #f4f7fb);
  color: var(--ys-navy, #062b46);
  font-weight: 900;
}

.ys-page-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.ys-section-directory-shell {
  margin-bottom: 34px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(220, 228, 236, 0.96);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 26px 76px rgba(3, 27, 45, 0.08);
}

.ys-section-directory-head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(220, 228, 236, 0.96);
}

.ys-section-directory-head h2 {
  margin: 0;
  color: var(--ys-green, #006b3f);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ys-section-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ys-section-directory-card {
  position: relative;
  min-height: 100%;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(220, 228, 236, 0.72);
  background:
    radial-gradient(circle at 100% 0%, rgba(229, 57, 53, 0.07), transparent 24%),
    #f5f8fb;
  overflow: hidden;
}

.ys-section-directory-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ys-green, #006b3f), var(--ys-gold, #d7a84f));
}

.ys-section-directory-card h3 {
  margin: 0 0 20px;
  color: var(--ys-navy, #062b46);
  font-size: clamp(21px, 1.6vw, 28px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.ys-section-directory-card nav {
  display: grid;
  gap: 12px;
}

.ys-section-directory-card a {
  display: block;
  padding: 4px 0 4px 14px;
  color: #1d3245;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.22;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ys-section-directory-card a:hover,
.ys-section-directory-card a:focus-visible {
  color: var(--ys-red, #e53935);
  outline: none;
  transform: translateX(3px);
}

.ys-page-card {
  position: relative;
  min-height: 210px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(229, 57, 53, 0.08), transparent 34%),
    #ffffff;
  border: 1px solid rgba(220, 228, 236, 0.96);
  box-shadow: 0 14px 34px rgba(3, 27, 45, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ys-page-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 5px;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(180deg, var(--ys-gold, #d7a84f), var(--ys-red, #e53935));
}

.ys-page-card span {
  position: relative;
  z-index: 2;
  color: var(--ys-navy, #062b46);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.7px;
}

.ys-page-card p {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  color: var(--ys-muted, #657384);
  font-size: 15px;
  line-height: 1.55;
}

.ys-page-card::after {
  content: ">";
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin-top: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ys-navy, #062b46);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  transition: background 0.28s ease, transform 0.28s ease;
}

.ys-page-card:hover,
.ys-page-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(229, 57, 53, 0.28);
  box-shadow: 0 28px 70px rgba(3, 27, 45, 0.14);
  outline: none;
}

.ys-page-card:hover::after,
.ys-page-card:focus-visible::after {
  background: var(--ys-red, #e53935);
  transform: translateX(4px);
}



.ys-section-landing-content {
  margin-top: 8px;
}

.ys-standard-layout,
.ys-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.ys-standard-feature-image {
  margin: calc(clamp(26px, 4vw, 52px) * -1) calc(clamp(26px, 4vw, 52px) * -1) 34px;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  background: #e9eff5;
}

.ys-standard-feature-image img {
  width: 100%;
  height: min(420px, 46vw);
  min-height: 260px;
  object-fit: cover;
}

.ys-related-links,
.ys-contact-details {
  position: sticky;
  top: 112px;
  padding: 24px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(220, 228, 236, 0.96);
  box-shadow: 0 18px 45px rgba(3, 27, 45, 0.08);
}

.ys-related-links h2 {
  margin: 0 0 16px;
  color: var(--ys-navy, #062b46);
  font-size: 24px;
  line-height: 1.12;
}

.ys-related-links a,
.ys-contact-details div {
  display: block;
  padding: 16px;
  border-radius: 18px;
  background: var(--ys-light, #f4f7fb);
}

.ys-related-links a + a,
.ys-contact-details div + div {
  margin-top: 12px;
}

.ys-related-links span,
.ys-contact-details span {
  display: block;
  color: var(--ys-navy, #062b46);
  font-weight: 950;
  line-height: 1.2;
}

.ys-related-links p,
.ys-contact-details p,
.ys-contact-details a {
  display: block;
  margin: 8px 0 0;
  color: var(--ys-muted, #657384);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 750;
}

.ys-related-links a {
  transition: background 0.24s ease, transform 0.24s ease, color 0.24s ease;
}

.ys-related-links a:hover,
.ys-related-links a:focus-visible {
  background: var(--ys-navy, #062b46);
  transform: translateX(4px);
  outline: none;
}

.ys-related-links a:hover span,
.ys-related-links a:focus-visible span,
.ys-related-links a:hover p,
.ys-related-links a:focus-visible p {
  color: #ffffff;
}

.ys-documents-note {
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(215, 168, 79, 0.18), transparent 32%),
    var(--ys-light, #f4f7fb);
  border-left: 5px solid var(--ys-gold, #d7a84f);
}

.ys-documents-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ys-navy, #062b46);
  font-size: 20px;
  font-weight: 950;
}

.ys-documents-note p {
  margin: 0;
  color: var(--ys-muted, #657384);
}

.ys-contact-layout {
  grid-template-columns: 340px minmax(0, 1fr);
}

.ys-contact-details {
  order: 0;
}

.ys-contact-details a {
  color: var(--ys-red, #e53935);
}

@media (max-width: 1024px) {
  .ys-section-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ys-page-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ys-standard-layout,
  .ys-contact-layout {
    grid-template-columns: 1fr;
  }

  .ys-related-links,
  .ys-contact-details {
    position: static;
  }

  .ys-contact-details {
    order: -1;
  }
}

@media (max-width: 680px) {
  .ys-inner-hero {
    padding: 116px 0 48px;
  }

  .ys-inner-eyebrow {
    margin-bottom: 14px;
    font-size: 10.5px;
    letter-spacing: 1.7px;
  }

  .ys-inner-eyebrow::before {
    width: 28px;
  }

  .ys-inner-hero h1 {
    font-size: clamp(36px, 11vw, 52px);
    line-height: 1;
    letter-spacing: -1.7px;
  }

  .ys-inner-hero p:not(.ys-inner-eyebrow) {
    margin-top: 16px;
    font-size: 14.5px;
    line-height: 1.62;
  }

  .ys-inner-content-section,
  .ys-section-card-grid-section {
    padding: 42px 0 64px;
  }

  .ys-inner-content-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .ys-inner-content {
    font-size: 15px;
    line-height: 1.68;
  }

  .ys-page-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }

  .ys-section-directory-shell {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 24px;
  }

  .ys-section-directory-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .ys-section-directory-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ys-section-directory-card {
    padding: 22px;
    border-radius: 20px;
  }

  .ys-section-directory-card h3 {
    margin-bottom: 16px;
    font-size: 21px;
  }

  .ys-section-directory-card a {
    font-size: 17px;
  }

  .ys-page-card {
    min-height: 170px;
    padding: 23px 22px;
    border-radius: 22px;
  }

  .ys-page-card span {
    font-size: 21px;
  }

  .ys-standard-feature-image {
    margin: -24px -20px 24px;
    border-radius: 24px 24px 0 0;
  }

  .ys-standard-feature-image img {
    height: 240px;
    min-height: 220px;
  }

  .ys-related-links,
  .ys-contact-details {
    padding: 18px;
    border-radius: 22px;
  }
}
