/**
 * Template E (Fitness) — CMS palette bridge (Template G pattern)
 * Panel sets :root --primary, --secondary, --dark, --light, --text in app.blade.php.
 */

body.cms-active-template-templateE {
  --accent-color: var(--primary);
  --background-color: var(--light);
  --default-color: var(--text);
  --heading-color: var(--dark);
  --surface-color: color-mix(in srgb, var(--light), var(--dark) 14%);
  --contrast-color: var(--secondary);

  --nav-color: color-mix(in srgb, var(--text), var(--dark) 20%);
  --nav-hover-color: var(--primary);
  --nav-mobile-background-color: var(--dark);
  --nav-dropdown-background-color: color-mix(in srgb, var(--dark), var(--primary) 18%);
  --nav-dropdown-color: color-mix(in srgb, var(--secondary), var(--text) 35%);
  --nav-dropdown-hover-color: var(--primary);
}

body.cms-active-template-templateE .light-background {
  --background-color: color-mix(in srgb, var(--light), var(--dark) 6%);
  --default-color: var(--text);
  --heading-color: var(--dark);
  --surface-color: color-mix(in srgb, var(--light), var(--dark) 12%);
  --contrast-color: var(--secondary);
}

body.cms-active-template-templateE .dark-background {
  --background-color: var(--dark);
  --default-color: color-mix(in srgb, var(--secondary) 75%, var(--text));
  --heading-color: var(--secondary);
  --surface-color: color-mix(in srgb, var(--dark), var(--primary) 16%);
  --contrast-color: var(--secondary);
}

body.cms-active-template-templateE .text-primary { color: var(--primary) !important; }
body.cms-active-template-templateE .text-secondary { color: var(--text) !important; }

/* Small / supporting copy — always CMS text color */
body.cms-active-template-templateE .ve-te-small-text,
body.cms-active-template-templateE .ve-section-copy,
body.cms-active-template-templateE .ve-goal-item p,
body.cms-active-template-templateE .ve-about-feature-text p,
body.cms-active-template-templateE .ve-goal-list > .ve-goal-item > p,
body.cms-active-template-templateE .courses-date,
body.cms-active-template-templateE .courses-trainer span,
body.cms-active-template-templateE .data-info,
body.cms-active-template-templateE .blog-comment .small,
body.cms-active-template-templateE .ve-footer-bottom .ve-copyright,
body.cms-active-template-templateE .ve-fact-item p,
body.cms-active-template-templateE .ve-nl-left p,
body.cms-active-template-templateE p.text-white-50,
body.cms-active-template-templateE .feature .text-center > p.mb-0,
body.cms-active-template-templateE .team .text-center > p.mb-0 {
  color: var(--ve-ink-on-light) !important;
}

body.cms-active-template-templateE .blog .text-center > p.mb-0,
body.cms-active-template-templateE .courses .text-center > p.mb-0 {
  color: var(--ve-ink-on-secondary) !important;
}

/* Menu/blog cards: palette-aware ink (computed in app.blade.php) */
body.cms-active-template-templateE .courses .ve-te-card-desc {
  color: var(--ve-ink-on-card) !important;
}

body.cms-active-template-templateE .blog .ve-te-card-desc.ve-te-card-desc {
  color: var(--ve-ink-on-light) !important;
}
body.cms-active-template-templateE .text-dark { color: var(--dark) !important; }
body.cms-active-template-templateE .text-white { color: var(--secondary) !important; }
body.cms-active-template-templateE .text-white-50 {
  color: color-mix(in srgb, var(--secondary) 55%, transparent) !important;
}
body.cms-active-template-templateE .bg-primary { background-color: var(--primary) !important; }
body.cms-active-template-templateE .bg-dark { background-color: var(--dark) !important; }
body.cms-active-template-templateE .bg-light { background-color: var(--light) !important; }
body.cms-active-template-templateE .border-primary { border-color: var(--primary) !important; }

body.cms-active-template-templateE .btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--secondary) !important;
}
body.cms-active-template-templateE .btn-primary:hover,
body.cms-active-template-templateE .btn-primary:focus {
  background-color: color-mix(in srgb, var(--primary), var(--dark) 15%) !important;
  border-color: color-mix(in srgb, var(--primary), var(--dark) 15%) !important;
  color: var(--secondary) !important;
}
body.cms-active-template-templateE .btn-primary span,
body.cms-active-template-templateE .btn-primary i {
  color: inherit;
}

body.cms-active-template-templateE .btn-dark {
  background-color: var(--dark) !important;
  border-color: var(--dark) !important;
  color: var(--secondary) !important;
}
body.cms-active-template-templateE .btn-dark:hover,
body.cms-active-template-templateE .btn-dark:focus {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--secondary) !important;
}

body.cms-active-template-templateE .btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
body.cms-active-template-templateE .btn-outline-primary:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--secondary) !important;
}

body.cms-active-template-templateE {
  --bs-primary: var(--primary);
  --bs-secondary: var(--secondary);
  --bs-dark: var(--dark);
  --bs-light: var(--light);
  --bs-white: var(--light);
  --bs-body-color: var(--text);
  /* Ink tokens: luminance-picked in app.blade.php (:root) from CMS palette */
  --ve-ink-muted-on-light: color-mix(in srgb, var(--ve-ink-on-light) 78%, transparent);
  --ve-ink-muted-on-dark: color-mix(in srgb, var(--ve-ink-on-dark) 72%, transparent);
  --ve-ink-muted-on-card: color-mix(in srgb, var(--ve-ink-on-card) 78%, transparent);
  --ve-border-on-dark: color-mix(in srgb, var(--light) 12%, transparent);
  --ve-overlay-dark: var(--cms-image-overlay);
  --ve-overlay-hero: transparent;
  --ve-surface-card: color-mix(in srgb, var(--light) 96%, transparent);
  background-color: var(--secondary);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

body.cms-active-template-templateE #app,
body.cms-active-template-templateE #app > div,
body.cms-active-template-templateE .ve-template-e-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Text selection: fixed colors (CMS vars can make highlight invisible) */
body.cms-active-template-templateE ::selection,
body.cms-active-template-templateE *::selection {
  background: var(--primary) !important;
  color: var(--secondary) !important;
}
body.cms-active-template-templateE ::-moz-selection,
body.cms-active-template-templateE *::-moz-selection {
  background: var(--primary) !important;
  color: var(--secondary) !important;
}

/* ── Page shell (Template G pattern) ── */
body.cms-active-template-templateE .ve-template-e-page {
  color: var(--default-color);
  background-color: var(--background-color);
}

body.cms-active-template-templateE .ve-template-e-page h1,
body.cms-active-template-templateE .ve-template-e-page h2,
body.cms-active-template-templateE .ve-template-e-page h3,
body.cms-active-template-templateE .ve-template-e-page h4,
body.cms-active-template-templateE .ve-template-e-page h5,
body.cms-active-template-templateE .ve-template-e-page h6 {
  color: var(--heading-color);
}

body.cms-active-template-templateE .ve-template-e-page p {
  color: var(--default-color);
}

body.cms-active-template-templateE .ve-section-kicker,
body.cms-active-template-templateE .section-badge {
  color: var(--primary) !important;
}

/* Images: avoid any accidental wash/blur effects */
body.cms-active-template-templateE img {
  opacity: 1;
  filter: none;
  -webkit-filter: none;
  transform: translateZ(0);
}

/* Card media: keep images crisp and centered */
body.cms-active-template-templateE .ve-te-card-img {
  object-position: center;
  background: var(--light);
}

body.cms-active-template-templateE .team .ve-te-team-card-img {
  background: transparent !important;
}

/* Light sections (feature/team): dark ink on pink/light CMS palettes */
body.cms-active-template-templateE .feature .ve-te-card-desc,
body.cms-active-template-templateE .team .ve-te-card-desc,
body.cms-active-template-templateE .feature .ve-te-small-text,
body.cms-active-template-templateE .team .ve-te-small-text,
body.cms-active-template-templateE .feature .ve-te-card-body p,
body.cms-active-template-templateE .team .ve-te-card-body p {
  color: var(--ve-ink-on-light) !important;
}

body.cms-active-template-templateE .feature .ve-te-card-title,
body.cms-active-template-templateE .team .ve-te-card-title {
  color: var(--primary) !important;
}

/* Card hover/focus: keep text readable (theme fills card with --bs-dark overlay) */
body.cms-active-template-templateE .feature .feature-item:hover .ve-te-card-desc,
body.cms-active-template-templateE .feature .feature-item:hover .ve-te-card-title,
body.cms-active-template-templateE .feature .feature-item:focus-within .ve-te-card-desc,
body.cms-active-template-templateE .feature .feature-item:focus-within .ve-te-card-title,
body.cms-active-template-templateE .team .team-item:hover .ve-te-card-desc,
body.cms-active-template-templateE .team .team-item:hover .ve-te-card-title {
  color: var(--ve-ink-on-light) !important;
  position: relative;
  z-index: 2;
}

body.cms-active-template-templateE .feature .feature-item:hover .feature-content::after,
body.cms-active-template-templateE .team .team-item:hover .team-content::after {
  background: color-mix(in srgb, var(--primary) 18%, var(--light)) !important;
  height: 100%;
}

body.cms-active-template-templateE .feature .feature-item:hover .feature-img img {
  transform: none !important;
}

body.cms-active-template-templateE .feature .feature-item:hover .feature-img::after {
  height: 0 !important;
}

/* Section copy on coloured backgrounds */
body.cms-active-template-templateE .courses .ve-te-small-text,
body.cms-active-template-templateE .ve-explore-section .ve-te-small-text {
  color: var(--ve-ink-on-secondary) !important;
}

body.cms-active-template-templateE .courses .display-5.text-white {
  color: var(--ve-ink-on-secondary) !important;
}

/* Back to top — App.vue uses <a class="back-to-top"> (not .back-to-top > a) */
body.cms-active-template-templateE .back-to-top.btn.btn-primary {
  position: fixed;
  right: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  left: auto;
  z-index: 9999;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 36px;
  padding: 0 !important;
  margin: 0;
  font-size: 1rem !important;
  line-height: 1;
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  background: var(--primary) !important;
  color: var(--light) !important;
}

/* border-inner from App.vue is for other templates — disable on back-to-top for E */
body.cms-active-template-templateE .back-to-top.border-inner::before {
  display: none;
}

body.cms-active-template-templateE .back-to-top.btn.btn-primary i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: skew(-18deg);
  line-height: 1;
  margin: 0;
  padding: 0;
}

body.cms-active-template-templateE .back-to-top.btn.btn-primary:hover,
body.cms-active-template-templateE .back-to-top.btn.btn-primary:focus {
  background: var(--dark) !important;
  color: var(--light) !important;
}

@media (max-width: 991.98px) {
  body.cms-active-template-templateE .back-to-top.btn.btn-primary {
    right: 16px;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 34px;
    font-size: 0.95rem !important;
  }
}

/* ── Hero: full-bleed background + visible skew nav arrows ── */
body.cms-active-template-templateE .ve-te-hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
}

body.cms-active-template-templateE .ve-te-hero-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.cms-active-template-templateE .ve-te-hero-track .ve-te-hero-item {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  background-color: var(--dark);
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}

body.cms-active-template-templateE .ve-te-hero-track .ve-te-hero-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Hero background — standard black scrim over the image */
body.cms-active-template-templateE .ve-te-hero-track .ve-te-hero-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cms-image-overlay);
  z-index: 1;
  pointer-events: none;
}

/* No right-side diagonal athlete panel */
body.cms-active-template-templateE .ve-te-hero-track .hero-bg-half-1,
body.cms-active-template-templateE .ve-te-hero-track .hero-bg-half-2 {
  display: none !important;
}

body.cms-active-template-templateE .ve-te-hero > .ve-te-hero-caption {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  background: var(--ve-overlay-hero);
  display: flex;
  align-items: center;
  z-index: 2;
}

body.cms-active-template-templateE .ve-te-hero-track .display-1,
body.cms-active-template-templateE .ve-te-hero-title {
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--light) !important;
  text-shadow: none;
}

body.cms-active-template-templateE .ve-te-hero-title *,
body.cms-active-template-templateE .ve-te-hero-caption h1 * {
  color: inherit !important;
}

body.cms-active-template-templateE .ve-te-hero-eyebrow {
  color: var(--light) !important;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-shadow: none;
}

body.cms-active-template-templateE .ve-te-hero-tagline {
  color: var(--light) !important;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.5;
  text-shadow: none;
}

body.cms-active-template-templateE .ve-te-hero-caption .ve-te-hero-title *,
body.cms-active-template-templateE .ve-te-hero-caption .ve-te-hero-eyebrow,
body.cms-active-template-templateE .ve-te-hero-caption .ve-te-hero-tagline {
  text-shadow: none !important;
}

body.cms-active-template-templateE .ve-te-hero-actions .ve-te-hero-btn {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

@media (min-width: 576px) {
  body.cms-active-template-templateE .ve-te-hero-actions .ve-te-hero-btn {
    width: auto;
    max-width: none;
  }
}

body.cms-active-template-templateE .ve-te-hero-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

body.cms-active-template-templateE .ve-te-hero-nav--inline {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  margin-top: 1.25rem;
  justify-content: center;
  pointer-events: auto;
  z-index: 3;
}

body.cms-active-template-templateE .ve-te-hero-nav-btn {
  position: relative;
  left: auto;
  right: auto;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  transform: skew(18deg);
  background: var(--light);
  color: var(--primary);
  border: none;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s, color 0.35s;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.cms-active-template-templateE .ve-te-hero-nav-btn i {
  transform: skew(-18deg);
  display: block;
  line-height: 1;
}

body.cms-active-template-templateE .ve-te-hero-nav-btn:hover {
  background: var(--primary);
  color: var(--light);
}

@media (max-width: 991px) {
  body.cms-active-template-templateE .ve-te-hero {
    min-height: 560px;
  }

  body.cms-active-template-templateE .ve-te-hero.ve-te-hero--cms-synced {
    min-height: 0;
  }

  body.cms-active-template-templateE .ve-te-hero.ve-te-hero--cms-synced:not(.ve-te-hero--mobile-content-synced) > .ve-te-hero-caption {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    background: var(--ve-overlay-hero);
  }

  body.cms-active-template-templateE .ve-te-hero:not(.ve-te-hero--cms-synced) > .ve-te-hero-caption {
    align-items: center;
    justify-content: center;
    padding-bottom: 1.75rem;
    background: transparent;
  }

  body.cms-active-template-templateE .ve-te-hero-nav-btn {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
}

/* SPA: WOW in main.js runs before Vue mounts — do not leave .wow hidden */
body.cms-active-template-templateE #app .wow {
  visibility: visible !important;
}

/* ── About: tabs + phone CTA on dark panel ── */
body.cms-active-template-templateE .about {
  background: var(--dark) !important;
  overflow: hidden;
  max-width: 100%;
}

/* Theme skew bands extend past viewport (right/left: -400px) — hide on CMS pages */
body.cms-active-template-templateE .about::before,
body.cms-active-template-templateE .about::after {
  display: none !important;
}

body.cms-active-template-templateE .about .about-content {
  position: relative;
  z-index: 9;
}

body.cms-active-template-templateE .about .about-img {
  position: relative;
  z-index: 10;
}

body.cms-active-template-templateE .about .about-content .display-5,
body.cms-active-template-templateE .about .about-content h1 {
  color: var(--light) !important;
}

body.cms-active-template-templateE .about .ve-about-description {
  color: color-mix(in srgb, var(--light) 95%, var(--secondary)) !important;
  white-space: pre-line;
  line-height: 1.65;
  max-height: none;
}

body.cms-active-template-templateE .about .about-content .ve-te-small-text,
body.cms-active-template-templateE .about .ve-about-feature-text p {
  color: color-mix(in srgb, var(--light) 90%, var(--secondary)) !important;
}

body.cms-active-template-templateE .about .ve-about-feature-text h5 {
  color: var(--light) !important;
}

body.cms-active-template-templateE .about .tab-class .tab-content .ve-about-tab-body {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  line-height: 1.65;
  color: color-mix(in srgb, var(--light) 90%, var(--secondary)) !important;
}

body.cms-active-template-templateE .about .tab-class .tab-content .d-flex.align-items-center {
  align-items: flex-start !important;
}

body.cms-active-template-templateE .about .about-content h4.text-primary {
  color: var(--secondary) !important;
}

body.cms-active-template-templateE .about .tab-class .nav .nav-item a {
  font-weight: 600;
  border: none;
}

body.cms-active-template-templateE .about .tab-class .nav .nav-item a:not(.active) {
  background: var(--light);
  color: var(--dark);
}

body.cms-active-template-templateE .about .tab-class .border-white {
  border-color: color-mix(in srgb, var(--light) 35%, transparent) !important;
}

body.cms-active-template-templateE .about .btn-lg-square i {
  transform: skew(-18deg);
}

body.cms-active-template-templateE .about .about-img img {
  position: relative;
  z-index: 10;
}

/* ── Services / Blog / Team: Vue carousels + skew nav (theme styles on .feature, .blog, .team) ── */
body.cms-active-template-templateE .feature,
body.cms-active-template-templateE .blog,
body.cms-active-template-templateE .team,
body.cms-active-template-templateE .courses,
body.cms-active-template-templateE .goal {
  overflow-x: hidden;
  max-width: 100%;
}

body.cms-active-template-templateE .goal::after {
  display: none !important;
}

body.cms-active-template-templateE .goal .goal-item {
  transform: none !important;
  margin-left: 0;
  margin-right: 0;
}

body.cms-active-template-templateE .feature {
  background: var(--light);
}

body.cms-active-template-templateE .feature .display-5 {
  color: var(--dark);
}

body.cms-active-template-templateE .ve-te-feature-carousel {
  position: relative;
  padding: 0 15px 0;
  z-index: 3;
}

/* Services header: skewed frame fits title block (not fixed 300px box) */
body.cms-active-template-templateE .ve-te-feature-header {
  position: relative;
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 0.35rem 0.5rem;
}

body.cms-active-template-templateE .ve-te-feature-header .ve-te-feature-shaps {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: skewX(-10deg);
  border: 2px solid var(--primary);
  z-index: 0;
  pointer-events: none;
}

body.cms-active-template-templateE .ve-te-feature-header-inner {
  position: relative;
  z-index: 1;
  padding: 1rem 1.25rem;
}

body.cms-active-template-templateE .ve-te-feature-header .display-5 {
  margin-bottom: 0.75rem !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--dark) !important;
}

body.cms-active-template-templateE .feature .ve-te-feature-header-inner h4.text-primary {
  color: var(--primary) !important;
  font-weight: 700;
}

body.cms-active-template-templateE .feature .ve-te-feature-header-inner .ve-te-small-text {
  color: color-mix(in srgb, var(--dark) 90%, var(--text)) !important;
  font-size: 1rem;
  line-height: 1.6;
}

/* Some theme blocks use `.feature .text-center > p.mb-0` (without `ve-te-small-text`).
   Force readable contrast on the light feature background. */
body.cms-active-template-templateE .feature .text-center > p.mb-0 {
  color: color-mix(in srgb, var(--dark) 92%, var(--text)) !important;
}

/* Services: full image visible (no theme cover / scaleX crop) */
body.cms-active-template-templateE .feature .feature-item .feature-img.ve-te-service-media,
body.cms-active-template-templateE .feature .feature-item .ve-te-service-media {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 260px !important;
  overflow: hidden;
  background: var(--light) !important;
}

body.cms-active-template-templateE .feature .feature-item .feature-img img,
body.cms-active-template-templateE .feature .feature-item .feature-img .ve-te-card-img,
body.cms-active-template-templateE .feature .feature-item .ve-te-service-img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

body.cms-active-template-templateE .feature .feature-item:hover .feature-img img,
body.cms-active-template-templateE .feature .feature-item:hover .feature-img .ve-te-service-img {
  transform: none !important;
}

body.cms-active-template-templateE .courses.ve-te-courses-section,
body.cms-active-template-templateE .ve-te-courses-section.courses {
  background: var(--secondary) !important;
  background-image: none !important;
}

body.cms-active-template-templateE .courses .courses-item-inner h4,
body.cms-active-template-templateE .courses .courses-item-inner .ve-te-card-title,
body.cms-active-template-templateE .courses .courses-item-inner:hover a,
body.cms-active-template-templateE .courses .courses-item-inner:hover .ve-te-card-title,
body.cms-active-template-templateE .courses .courses-item:hover p,
body.cms-active-template-templateE .courses .courses-item-inner:hover p {
  color: var(--ve-ink-on-card) !important;
  font-weight: 700;
}

body.cms-active-template-templateE .courses .courses-item-inner .data-info .courses-trainer,
body.cms-active-template-templateE .courses .courses-item-inner .data-info .courses-date,
body.cms-active-template-templateE .courses .courses-item:hover .courses-item-inner .data-info .courses-trainer {
  color: var(--ve-ink-on-card) !important;
}

/* Menu/Courses: 840 × 280 landscape thumb, fit without crop */
body.cms-active-template-templateE .courses .courses-item .courses-icon-img,
body.cms-active-template-templateE .courses .courses-item-inner .courses-icon-img {
  width: 168px !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 840 / 280;
  background: transparent !important;
  overflow: hidden;
  flex-shrink: 0;
}

body.cms-active-template-templateE .courses .courses-item .courses-icon-img img,
body.cms-active-template-templateE .courses .courses-item-inner .courses-icon-img img,
body.cms-active-template-templateE .courses .courses-item .courses-icon-img .ve-te-menu-item-img,
body.cms-active-template-templateE .courses .courses-item-inner .courses-icon-img .ve-te-menu-item-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: none !important;
  transform: none !important;
  background-color: transparent !important;
}

body.cms-active-template-templateE .courses .courses-item:hover .courses-item-inner .courses-icon-img img,
body.cms-active-template-templateE .courses .courses-item-inner:hover .courses-icon-img img,
body.cms-active-template-templateE .courses .courses-item-inner:hover .courses-icon-img .ve-te-menu-item-img {
  filter: none !important;
  transform: none !important;
}

body.cms-active-template-templateE .courses .tab-class .btn span {
  display: inline-block;
}

body.cms-active-template-templateE .blog .display-5 {
  color: var(--ve-ink-on-secondary) !important;
}

body.cms-active-template-templateE .blog .blog-img.ve-te-blog-card-media {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden;
  line-height: 0;
  background: transparent !important;
}

body.cms-active-template-templateE .blog .blog-img .ve-te-blog-card-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: unset !important;
  object-position: center center !important;
  background: transparent !important;
}

body.cms-active-template-templateE .team {
  background: var(--light) !important;
}

body.cms-active-template-templateE .team .display-5 {
  color: var(--ve-ink-on-light) !important;
}

/* Shared skew navigation (services, blog, team) */
body.cms-active-template-templateE .ve-te-skew-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

body.cms-active-template-templateE .ve-te-skew-nav--feature {
  justify-content: center;
  padding-left: 0;
  margin-top: 16px;
  position: relative;
  z-index: 5;
}

body.cms-active-template-templateE .ve-te-skew-nav-btn {
  width: 40px;
  height: 40px;
  transform: skew(18deg);
  background: var(--dark);
  color: var(--light);
  border: none;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.35s, color 0.35s;
}

body.cms-active-template-templateE .ve-te-skew-nav-btn i {
  transform: skew(-18deg);
}

body.cms-active-template-templateE .ve-te-skew-nav-btn:hover {
  background: var(--primary);
  color: var(--light);
}

/* Blog pagination diamonds */
body.cms-active-template-templateE .ve-te-skew-nav--blog {
  margin-top: 24px;
}

body.cms-active-template-templateE .ve-te-skew-nav-btn--outline {
  width: 30px;
  height: 30px;
  background: var(--dark);
  border: 2px solid var(--primary);
}

body.cms-active-template-templateE .ve-te-skew-nav-btn--solid {
  width: 30px;
  height: 50px;
  background: var(--primary);
  border: 2px solid var(--primary);
}

body.cms-active-template-templateE .ve-te-dot-indicator {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--primary);
  transform: skew(-18deg);
}

body.cms-active-template-templateE .ve-te-dot-indicator--active {
  background: var(--light);
}

body.cms-active-template-templateE .ve-te-skew-nav--team {
  margin-top: 20px;
}

body.cms-active-template-templateE .ve-te-skew-nav--menu {
  margin-top: 20px;
}

body.cms-active-template-templateE .ve-te-menu-carousel {
  position: relative;
  padding: 0 15px;
}

/* ── Uniform card heights: services, menu, blog, team ── */
body.cms-active-template-templateE .ve-te-card-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
}

body.cms-active-template-templateE .ve-te-card-media {
  flex-shrink: 0;
  overflow: hidden;
  height: 260px;
}

body.cms-active-template-templateE .ve-te-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Team: fill square photo frame (cover) */
body.cms-active-template-templateE .team .team-img .ve-te-team-card-img,
body.cms-active-template-templateE .team .team-img img.ve-te-team-card-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  background-color: transparent !important;
}

body.cms-active-template-templateE .ve-te-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.cms-active-template-templateE .ve-te-card-inner {
  min-height: 0;
}

body.cms-active-template-templateE .ve-te-card-title {
  line-height: 1.35;
}

body.cms-active-template-templateE .ve-te-card-desc {
  flex: 0 1 auto;
  line-height: 1.6;
  margin-bottom: 0;
}

body.cms-active-template-templateE .ve-te-clamp-2,
body.cms-active-template-templateE .ve-te-clamp-3,
body.cms-active-template-templateE .ve-te-clamp-4,
body.cms-active-template-templateE .ve-te-clamp-5 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.cms-active-template-templateE .ve-te-clamp-2 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

body.cms-active-template-templateE .ve-te-clamp-3 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

body.cms-active-template-templateE .ve-te-clamp-4 {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

body.cms-active-template-templateE .ve-te-clamp-5 {
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

body.cms-active-template-templateE .ve-te-read-more-btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  max-width: 100%;
  padding: 0.4rem 0.9rem !important;
  font-size: 0.875rem;
  line-height: 1.25;
  font-weight: 600;
}

body.cms-active-template-templateE .ve-te-read-more-btn span,
body.cms-active-template-templateE .ve-te-read-more-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: skew(-18deg);
}

body.cms-active-template-templateE .ve-te-read-more-btn--center {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}

/* Video / explore CTA — skewed like Read More */
body.cms-active-template-templateE .ve-te-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem !important;
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 600;
  border: none;
}

body.cms-active-template-templateE .ve-te-video-btn span {
  display: inline-flex;
  align-items: center;
  transform: skew(-18deg);
}

body.cms-active-template-templateE .courses .ve-te-card-shell {
  min-height: 380px;
}

body.cms-active-template-templateE .courses .courses-item-inner.ve-te-card-body {
  background: var(--ve-surface-card);
}

body.cms-active-template-templateE .blog .ve-te-card-shell {
  min-height: 460px;
}

body.cms-active-template-templateE .blog .ve-te-card-media.ve-te-blog-card-media {
  height: auto !important;
  min-height: 0 !important;
}

body.cms-active-template-templateE .team .ve-te-card-shell {
  min-height: 400px;
}

body.cms-active-template-templateE .team .ve-te-card-media.ve-te-team-photo,
body.cms-active-template-templateE .team .team-img.ve-te-team-photo {
  height: auto !important;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: transparent !important;
}

body.cms-active-template-templateE .team .ve-te-card-media {
  height: auto;
}

body.cms-active-template-templateE .team .ve-te-card-media:not(.ve-te-team-photo) {
  height: 280px;
}

body.cms-active-template-templateE .team .ve-te-team-content {
  padding: 1rem 0.5rem;
  text-align: center;
  align-items: center;
}

/* Team social icons — overlay on photo, visible on image hover */
body.cms-active-template-templateE .team .team-img {
  position: relative;
}

body.cms-active-template-templateE .team .team-img .ve-te-team-socials {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.cms-active-template-templateE .team .team-item:hover .team-img .ve-te-team-socials,
body.cms-active-template-templateE .team .team-img:focus-within .ve-te-team-socials {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.cms-active-template-templateE .team .team-item:hover .team-img .ve-te-team-socials .ve-te-team-social-btn {
  margin: 0 4px;
}

@media (hover: none) and (pointer: coarse) {
  body.cms-active-template-templateE .team .team-img .ve-te-team-socials {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

body.cms-active-template-templateE .team .ve-te-team-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 !important;
  background: var(--primary) !important;
  color: var(--light) !important;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--dark) 28%, transparent);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.cms-active-template-templateE .team .ve-te-team-social-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

body.cms-active-template-templateE .team .ve-te-team-social-btn i {
  color: var(--light) !important;
  font-size: 1rem;
  line-height: 1;
}

body.cms-active-template-templateE .team .ve-te-team-social-btn:hover,
body.cms-active-template-templateE .team .ve-te-team-social-btn:focus-visible {
  background: var(--dark) !important;
  color: var(--light) !important;
  transform: translateY(-2px);
}

body.cms-active-template-templateE .team .team-item:hover .ve-te-team-social-btn {
  background: var(--primary) !important;
  color: var(--light) !important;
}

body.cms-active-template-templateE .team .team-item:hover .ve-te-team-social-btn i {
  color: var(--light) !important;
}

body.cms-active-template-templateE .team .ve-te-team-content .ve-te-card-title,
body.cms-active-template-templateE .team .team-item:hover .ve-te-team-content .ve-te-card-title {
  color: var(--primary) !important;
}

body.cms-active-template-templateE .team .ve-te-team-content .ve-te-card-desc,
body.cms-active-template-templateE .team .team-item:hover .ve-te-team-content .ve-te-card-desc {
  color: var(--ve-ink-on-light) !important;
}

body.cms-active-template-templateE .team .team-item:hover .team-content::after {
  background: var(--light) !important;
}

body.cms-active-template-templateE .feature .feature-content.ve-te-card-body {
  background: var(--light);
}

/* ── CMS-only sections (scoped Vue classes) ── */
body.cms-active-template-templateE .ve-goal-section {
  background: var(--dark) !important;
}
body.cms-active-template-templateE .ve-goal-section .ve-section-title {
  color: var(--dark) !important;
}

/* Offer/Fitness Goal list readability on light "dark" themes (ex: pink) */
body.cms-active-template-templateE .ve-goal-section .ve-section-tag,
body.cms-active-template-templateE .ve-goal-section .ve-section-title,
body.cms-active-template-templateE .ve-goal-section .ve-goal-item h4,
body.cms-active-template-templateE .ve-goal-section .ve-goal-item p,
body.cms-active-template-templateE .ve-goal-section .ve-te-small-text {
  color: color-mix(in srgb, #000 82%, var(--text)) !important;
}
body.cms-active-template-templateE .ve-explore-section {
  background-color: var(--dark) !important;
}
body.cms-active-template-templateE .ve-explore-overlay {
  background: var(--ve-overlay-dark) !important;
}
body.cms-active-template-templateE .ve-testi-section {
  background: var(--dark) !important;
}
body.cms-active-template-templateE .ve-facts-section {
  background: var(--primary) !important;
}
body.cms-active-template-templateE .ve-newsletter-section {
  background: var(--dark) !important;
}
body.cms-active-template-templateE .ve-contact-section {
  background: var(--light) !important;
}
body.cms-active-template-templateE .ve-contact-section .ve-section-title {
  color: var(--dark) !important;
}
body.cms-active-template-templateE .ve-footer,
body.cms-active-template-templateE .ve-header-top {
  background: var(--dark) !important;
}
body.cms-active-template-templateE .ve-topbar {
  background: var(--light) !important;
}
body.cms-active-template-templateE .ve-footer-bottom {
  background: var(--light) !important;
}

/* Nav dropdown — centered labels, consistent branch item styling */
body.cms-active-template-templateE #app .ve-dropdown .ve-dropdown-item,
body.cms-active-template-templateE #app .ve-dropdown li > a.ve-dropdown-item,
body.cms-active-template-templateE #app .ve-dropdown li > a,
body.cms-active-template-templateE #app a.ve-dropdown-item {
  text-align: center !important;
  color: var(--text) !important;
  font-size: 0.86rem !important;
  font-weight: 400 !important;
}

body.cms-active-template-templateE #app .ve-dropdown li.has-drop > a.ve-dropdown-item:hover,
body.cms-active-template-templateE #app .ve-dropdown .ve-dropdown-item:hover {
  color: var(--primary) !important;
}

body.cms-active-template-templateE #app .ve-dropdown .cms-nav-ve-nested {
  top: 0;
}

body.cms-active-template-templateE .ve-testi-message-wrap {
  max-width: 720px;
  min-height: 120px;
}

body.cms-active-template-templateE .ve-testi-item {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 991px) {
  body.cms-active-template-templateE .ve-te-feature-header {
    max-width: 92%;
  }

  body.cms-active-template-templateE .ve-te-skew-nav--feature {
    justify-content: center;
    margin-top: 16px;
  }

  body.cms-active-template-templateE .ve-te-card-shell,
  body.cms-active-template-templateE .courses .ve-te-card-shell,
  body.cms-active-template-templateE .blog .ve-te-card-shell,
  body.cms-active-template-templateE .team .ve-te-card-shell {
    min-height: 0;
  }

  body.cms-active-template-templateE .ve-goal-section,
  body.cms-active-template-templateE .ve-testi-section,
  body.cms-active-template-templateE .ve-contact-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  body.cms-active-template-templateE .ve-goal-img {
    min-height: 280px;
  }

  body.cms-active-template-templateE .ve-explore-section {
    padding: 64px 0;
  }

  body.cms-active-template-templateE .ve-newsletter-wrap {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  body.cms-active-template-templateE .ve-nl-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.cms-active-template-templateE .ve-nl-right {
    width: 100%;
  }

  body.cms-active-template-templateE .ve-nl-inline {
    flex-direction: column;
    width: 100%;
  }

  body.cms-active-template-templateE .ve-nl-inline input {
    min-width: 0;
    width: 100%;
  }

  body.cms-active-template-templateE .ve-nl-inline button {
    width: 100%;
  }

  body.cms-active-template-templateE .about .tab-class .nav {
    flex-direction: column;
    align-items: stretch;
  }

  body.cms-active-template-templateE .about .tab-class .nav .nav-item {
    width: 100%;
  }

  body.cms-active-template-templateE .about .tab-class .nav .nav-item a {
    text-align: center;
  }

  body.cms-active-template-templateE .courses .tab-class.d-flex {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.cms-active-template-templateE .courses .tab-class .btn {
    width: 100%;
    margin-bottom: 0.35rem;
  }

  body.cms-active-template-templateE .ve-testi-item {
    min-height: 0;
    padding: 12px;
  }

  body.cms-active-template-templateE .ve-testi-message-wrap {
    min-height: 0;
  }

  body.cms-active-template-templateE .ve-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767.98px) {
  body.cms-active-template-templateE .ve-te-hero:not(.ve-te-hero--mobile-content-synced) {
    min-height: 520px;
  }

  body.cms-active-template-templateE .ve-te-hero.ve-te-hero--cms-synced,
  body.cms-active-template-templateE .ve-te-hero.ve-te-hero--mobile-content-synced {
    min-height: 0;
  }

  body.cms-active-template-templateE .ve-te-hero-track .display-1,
  body.cms-active-template-templateE .ve-te-hero-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
  }

  body.cms-active-template-templateE .ve-te-hero-eyebrow {
    font-size: 0.7rem;
    margin-bottom: 0.65rem !important;
  }

  body.cms-active-template-templateE .ve-te-hero-tagline {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
  }

  body.cms-active-template-templateE .ve-te-hero-caption .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.cms-active-template-templateE .feature .ve-te-feature-header-inner .ve-te-small-text {
    font-size: 0.95rem;
  }

  body.cms-active-template-templateE .ve-te-feature-carousel {
    padding-left: 8px;
    padding-right: 8px;
  }

  body.cms-active-template-templateE .feature .feature-item .ve-te-service-media {
    height: 220px !important;
  }

  body.cms-active-template-templateE .blog .ve-te-card-media,
  body.cms-active-template-templateE .team .ve-te-card-media:not(.ve-te-team-photo) {
    height: 220px;
  }

  body.cms-active-template-templateE .team .ve-te-team-photo.ve-te-card-media,
  body.cms-active-template-templateE .team .team-img.ve-te-team-photo {
    height: auto !important;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 575.98px) {
  body.cms-active-template-templateE .ve-te-hero:not(.ve-te-hero--mobile-content-synced) {
    min-height: 500px;
  }

  body.cms-active-template-templateE .ve-te-hero.ve-te-hero--cms-synced,
  body.cms-active-template-templateE .ve-te-hero.ve-te-hero--mobile-content-synced {
    min-height: 0;
  }

  body.cms-active-template-templateE .ve-te-hero-nav--inline {
    margin-top: 1rem;
  }

  body.cms-active-template-templateE .ve-te-hero-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  body.cms-active-template-templateE .feature .ve-te-feature-header-inner {
    padding: 0.75rem 1rem;
  }

  body.cms-active-template-templateE .ve-facts-grid {
    grid-template-columns: 1fr;
  }

  body.cms-active-template-templateE .ve-fact-count {
    font-size: 2rem;
  }

  body.cms-active-template-templateE .ve-goal-icon {
    width: 64px;
    height: 64px;
  }

  body.cms-active-template-templateE .ve-goal-item {
    flex-direction: column;
    align-items: flex-start;
  }

  body.cms-active-template-templateE .ve-footer-main {
    padding-top: 40px;
    padding-bottom: 28px;
  }

  body.cms-active-template-templateE .ve-footer-top {
    padding: 20px 0;
  }
}

/* Theme skew carousels (unused by Vue CMS) — prevent horizontal spill */
body.cms-active-template-templateE .feature .feature-shaps:not(.ve-te-feature-shaps) {
  display: none !important;
}

body.cms-active-template-templateE .feature-carousel.owl-carousel,
body.cms-active-template-templateE .blog-carousel.owl-carousel,
body.cms-active-template-templateE .team-carousel.owl-carousel {
  transform: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.cms-active-template-templateE .blog .blog-comment,
body.cms-active-template-templateE .blog .blog-comment div.small,
body.cms-active-template-templateE .blog .blog-comment span {
  transform: none !important;
}

body.cms-active-template-templateE .team .team-item .team-img,
body.cms-active-template-templateE .team .team-item:hover .team-img img {
  transform: none !important;
}

/* ── Mobile: extra containment + layout tweaks ── */
@media (max-width: 991.98px) {
  body.cms-active-template-templateE .ve-te-feature-header .ve-te-feature-shaps {
    transform: none;
  }

  body.cms-active-template-templateE .about .tab-class .nav .nav-item a,
  body.cms-active-template-templateE .about .tab-class .nav .nav-item a span,
  body.cms-active-template-templateE .about .btn-lg-square i {
    transform: none !important;
  }

  body.cms-active-template-templateE .ve-contact-section iframe,
  body.cms-active-template-templateE .ve-contact-section embed,
  body.cms-active-template-templateE .ve-contact-section object,
  body.cms-active-template-templateE .ve-contact-section .mt-4 iframe {
    display: block;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.cms-active-template-templateE .ve-contact-section .container,
  body.cms-active-template-templateE .ve-footer .container,
  body.cms-active-template-templateE .ve-footer-bottom .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  body.cms-active-template-templateE .ve-footer,
  body.cms-active-template-templateE .ve-footer-bottom {
    width: 100%;
    max-width: 100%;
  }
}

/* ── CMS section images (gap-free frames) ── */
body.cms-active-template-templateE #app .main .ve-te-cms-media {
  position: relative;
  overflow: hidden;
  background-color: transparent;
}

body.cms-active-template-templateE #app .main .ve-te-cms-media img[data-cms-field]:not([data-cms-field="menu.tabs.items.image"]) {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background-color: transparent;
}

body.cms-active-template-templateE #app .main .about .ve-te-about-main-media.ve-te-cms-media[data-cms-aspect="about.image"] {
  aspect-ratio: 800 / 400;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: transparent;
}

body.cms-active-template-templateE #app .main .about .ve-te-about-main-media .ve-te-about-main-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: none;
  box-shadow: none;
}

body.cms-active-template-templateE #app .main .about .ve-about-feature-icon-wrap.ve-te-cms-media[data-cms-aspect="about.features.icon_image"] {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.cms-active-template-templateE #app .main .about .ve-about-feature-icon-wrap img[data-cms-field] {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

body.cms-active-template-templateE #app .main .ve-goal-section .ve-te-offer-media.ve-te-cms-media[data-cms-aspect="offer.background"] {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  min-height: 0;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

body.cms-active-template-templateE #app .main .feature .ve-te-service-media.ve-te-cms-media[data-cms-aspect="services.items.icon_image"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 260px;
  background: var(--light);
}

body.cms-active-template-templateE #app .main .courses .courses-icon-img.ve-te-cms-media[data-cms-aspect="menu.tabs.items.image"] {
  width: 168px !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 840 / 280 !important;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  line-height: 0;
  background: transparent !important;
}

body.cms-active-template-templateE #app .main .courses .courses-icon-img .ve-te-menu-item-img[data-cms-field="menu.tabs.items.image"] {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: none !important;
  transform: none !important;
  background-color: transparent !important;
}

body.cms-active-template-templateE #app .main .blog .ve-te-blog-card-media {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: unset !important;
  overflow: hidden;
  background: transparent !important;
}

body.cms-active-template-templateE #app .main .blog .ve-te-blog-card-image {
  display: block;
  width: 100%;
  height: auto !important;
  max-width: 100%;
  max-height: none !important;
  object-fit: unset !important;
  object-position: center center !important;
  background: transparent !important;
}

body.cms-active-template-templateE #app .main .ve-te-video-media.ve-te-cms-media[data-cms-aspect="video.thumbnail"],
body.cms-active-template-templateE #app .main .ve-te-video-media.ve-te-video-media--hero-size {
  width: 100%;
  aspect-ratio: 840 / 420;
  height: auto;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.cms-active-template-templateE #app .main .team .ve-te-team-photo.ve-te-cms-media[data-cms-aspect="team.items.image"] {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  background: transparent !important;
  position: relative;
}

body.cms-active-template-templateE #app .main .team .ve-te-team-photo .ve-te-team-card-img[data-cms-field="team.items.image"] {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  background-color: transparent !important;
}

body.cms-active-template-templateE #app .main .ve-te-testi-media.ve-te-cms-media[data-cms-aspect="testimonials.items.image"] {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

body.cms-active-template-templateE #app .main .ve-fact-icon-img[data-cms-field] {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center center;
  margin-left: auto;
  margin-right: auto;
}

body.cms-active-template-templateE #app .main .feature .feature-item:hover .ve-te-service-media img,
body.cms-active-template-templateE #app .main .team .team-item:hover .ve-te-team-photo img,
body.cms-active-template-templateE #app .main .blog .blog-item:hover .ve-te-blog-card-image {
  transform: none !important;
}

/* Detail page (/detail/...) — body copy uses CMS light color */
body.cms-active-template-templateE .ve-te-detail-desc,
body.cms-active-template-templateE .cms-detail-template-e .ve-te-detail-desc {
  color: var(--light) !important;
}

/* Rocket preloader */
body.cms-active-template-templateE .preloader {
  background: linear-gradient(165deg, #fff8f5 0%, #f5f0ff 45%, #e8f7ff 100%) !important;
}
