/*
  ECB brand overrides — loaded after theme style.css
  Colours / fonts only. Do not invent new layout systems here.
*/
:root {
  --theme-color: #5c15c0;
  --theme-color2: #ed71c1;
  --vs-secondary-color: #602a8a;
  --smoke-color: #e8f7f8;
  --title-font: "Raleway", sans-serif;
  --body-font: "Raleway", sans-serif;
}

/* Soft teal highlight for secondary accents */
.vs-btn.style2,
.vs-btn.style4 {
  --theme-color: #64bab6;
}

/* Theme style2 defaults to title-color (near-black) — unreadable on pink/purple fills */
.vs-btn.style2,
.vs-btn.style2:hover,
.vs-btn.style4,
.vs-btn.style4:hover,
.product-style1 .vs-btn,
.product-style1 .vs-btn:hover {
  color: #fff !important;
}

/*
  Page banners (breadcumb) — dark brand wash so titles/intros stay readable
  over busy CMS / stock photos (theme defaults were black/gray text).

  Theme default padding-top (175px) assumes an overlay/absolute header; our
  header is in normal flow, so use tight padding and put crumbs below the banner.
*/
.breadcumb-wrapper {
  position: relative;
  background-color: var(--vs-secondary-color);
  background-size: cover;
  background-position: center;
  isolation: isolate;
  padding-top: 3.5rem !important;
  padding-bottom: 3.25rem !important;
}
@media (max-width: 991px) {
  .breadcumb-wrapper {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}
.breadcumb-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(96, 42, 138, 0.92) 0%,
    rgba(92, 21, 192, 0.78) 42%,
    rgba(96, 42, 138, 0.55) 72%,
    rgba(100, 186, 182, 0.35) 100%
  );
}
.breadcumb-wrapper > .container,
.breadcumb-wrapper .breadcumb-content {
  position: relative;
  z-index: 1;
}
.breadcumb-wrapper .breadcumb-title {
  color: #fff !important;
  text-shadow: 2px 2px 0 rgba(237, 113, 193, 0.45);
  max-width: min(100%, 22rem);
  margin-bottom: 0.5rem !important;
}
.breadcumb-wrapper .breadcumb-text {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 3px rgba(42, 26, 58, 0.55);
  max-width: min(100%, 36rem);
  font-weight: 500;
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}
.breadcumb-wrapper p.breadcumb-text {
  text-shadow: 0 1px 3px rgba(42, 26, 58, 0.55);
}

/* Crumb trail sits under the photo banner, not inside it */
.breadcumb-menu-below {
  position: relative;
  z-index: 2;
  margin-top: -1.5rem;
  margin-bottom: 0.5rem;
}
.breadcumb-menu-below .breadcumb-menu-wrap {
  margin: 0 !important;
  min-height: 0 !important;
}
.breadcumb-menu-below .breadcumb-menu {
  display: inline-block;
  box-shadow: 0 8px 20px rgba(42, 26, 58, 0.18);
}
.breadcumb-menu-below .breadcumb-menu a:hover {
  color: #83dee4;
}

/* Theme CTA bands — white type, no teal drop-shadow glow */
.cta-box1 .sec-title,
.cta-box1 .sec-subtitle,
.cta-box1 h2,
.theme-cta-band .sec-title {
  color: #fff !important;
  text-shadow: 2px 2px 0 rgba(237, 113, 193, 0.35);
}
.accordion-style1 .accordion-body {
  color: #2a1a3a;
}
.accordion-style1 .accordion-body a {
  color: #5c15c0;
  text-decoration: underline;
}

/* Mobile sticky course buy bar */
.course-sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(96, 42, 138, 0.15);
  box-shadow: 0 -4px 24px rgba(42, 26, 58, 0.08);
}
@media (min-width: 576px) {
  .course-sticky-cta {
    display: none !important;
  }
}
button.vs-btn {
  border: 0;
  cursor: pointer;
}

h1,
.h1,
h2,
.h2,
.sec-title,
.blog-title,
.widget_title {
  text-shadow: 2px 2px 0 rgba(100, 186, 182, 0.35);
}

/* Keep body text readable — no angled shadow on paragraphs */
p,
.footer-text,
.blog-content,
.vs-blog p {
  text-shadow: none;
}

/* Footer — readable white links on brand purple */
.footer-layout1 {
  --title-color: #ffffff;
  --body-color: #ffffff;
}
.footer-layout1 .footer-widget .footer-menu a,
.footer-layout1 .footer-widget.widget_nav_menu .footer-menu a {
  color: #ffffff !important;
  background: transparent !important;
}
.footer-layout1 .footer-widget .footer-menu a:hover,
.footer-layout1 .footer-widget.widget_nav_menu .footer-menu a:hover {
  color: #83dee4 !important;
}
.footer-layout1 .footer-widget.widget_nav_menu .footer-menu a:before {
  background-color: #ed71c1;
}
.footer-layout1 .footer-info a:before,
.footer-layout1 .footer-info a:after {
  display: none !important;
  content: none !important;
}
.footer-layout1 .footer-info {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: #ffffff;
}
.footer-layout1 .footer-info a {
  color: #83dee4;
  padding: 0 !important;
  margin: 0 !important;
}
.footer-layout1 .footer-info a:hover {
  color: #ed71c1;
}
.footer-layout1 .widget_title {
  color: #ffffff;
  text-shadow: 2px 2px 0 rgba(237, 113, 193, 0.35);
}
.footer-layout1 .vs-btn.style2 {
  --theme-color: #64bab6;
  color: #fff;
}
.footer-layout1 .copyright-text,
.footer-layout1 .copyright-text a {
  color: #ffffff;
}
.footer-layout1 .copyright-text a:hover {
  color: #83dee4;
}
.footer-top-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
@media (min-width: 992px) {
  .footer-top-title {
    justify-content: flex-start;
  }
}

/*
  Tailwind v4 ships `.collapse { visibility: collapse }` which breaks
  Bootstrap accordion panels (class name collision). Content flashes then
  goes blank while the open box still takes space.
*/
.accordion .collapse,
.accordion-collapse.collapse,
.accordion-collapse.collapsing {
  visibility: visible !important;
}
.accordion .collapse:not(.show) {
  display: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--theme-color);
  color: #fff;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Rich CMS HTML inside theme content areas */
.prose-article a,
.blog-content a {
  color: var(--theme-color);
  text-decoration: underline;
}
.prose-article img,
.blog-content img {
  max-width: 100%;
  height: auto;
}

/* Static home hero (no LayerSlider) */
.ecb-hero-static {
  position: relative;
}
.ecb-hero-slide {
  min-height: clamp(420px, 70vh, 640px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  position: relative;
}
.ecb-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(96, 42, 138, 0.82) 0%,
    rgba(92, 21, 192, 0.55) 55%,
    rgba(100, 186, 182, 0.35) 100%
  );
}
.ecb-hero-panel {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem;
}
.ecb-hero-panel .banner-title {
  font-family: var(--title-font);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.ecb-hero-panel .banner-text {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Single-image about/welcome box */
.img-box1 .img-1 {
  position: relative;
  z-index: 1;
}
.img-box1 .img-1 img {
  border-radius: 30px;
  width: 100%;
  height: auto;
}

/*
  img-box1 is a 2-up collage grid. With only .img-1 the photo sat in the
  left half (looked “squished”) and the pink vs-circle filled the empty column.
  Prefer .img-box1--single in markup; :has() covers accidental singles.
*/
.img-box1.img-box1--single,
.img-box1:not(:has(.img-2)) {
  display: block;
  position: relative;
  max-width: 520px;
  margin-inline: auto;
}
.img-box1.img-box1--single .img-1,
.img-box1:not(:has(.img-2)) .img-1 {
  display: block;
  width: 100%;
}
.img-box1.img-box1--single .img-1 img,
.img-box1:not(:has(.img-2)) .img-1 img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.img-box1.img-box1--single .vs-circle,
.img-box1:not(:has(.img-2)) .vs-circle {
  --circle-size: min(88%, 360px);
  --circle-border-size: 48px;
  z-index: 0;
  pointer-events: none;
}

/* Welcome pillars — media-style1 is for giant stat numbers, not word labels */
.welcome-pillars .welcome-pillar-label {
  font-family: var(--title-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--theme-color);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.welcome-pillars .welcome-pillar-hint {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.3;
}
.welcome-pillars a:hover .welcome-pillar-label {
  color: var(--vs-secondary-color, #64bab6);
}

/* Soften utility-heavy CMS shells inside theme chrome */
.space-top {
  padding-top: 5rem;
}
.space-extra-bottom {
  padding-bottom: 5rem;
}
.text-theme {
  color: var(--theme-color);
}
.text-title {
  color: var(--vs-secondary-color);
}

/* —— Local-dev image drop targets (body[data-dev-image-drop]) —— */
body[data-dev-image-drop] .dev-img-drop-target {
  position: relative;
  outline: 2px dashed transparent;
  outline-offset: 2px;
  transition: outline-color 0.15s ease;
  cursor: copy;
}
body[data-dev-image-drop] .dev-img-drop-target:hover,
body[data-dev-image-drop] .dev-img-drop-target.is-drop-hover {
  outline-color: #ed71c1;
}
body[data-dev-image-drop] .dev-img-drop-target.has-dev-override {
  outline-color: #64bab6;
  outline-style: solid;
}
body[data-dev-image-drop] .dev-img-drop-target::after {
  content: "Drop image";
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 5;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(92, 21, 192, 0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
body[data-dev-image-drop] .dev-img-drop-target:hover::after,
body[data-dev-image-drop] .dev-img-drop-target.is-drop-hover::after {
  opacity: 1;
}
body[data-dev-image-drop] .dev-img-drop-target.has-dev-override::after {
  content: "Custom · dbl-click reset";
  background: rgba(100, 186, 182, 0.95);
  opacity: 1;
}
.dev-img-drop-toolbar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100000;
  display: none;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: #602a8a;
  color: #fff;
  font: 600 0.75rem/1.3 Raleway, sans-serif;
  box-shadow: 0 8px 24px rgba(42, 26, 58, 0.35);
}
body[data-dev-image-drop] .dev-img-drop-toolbar {
  display: flex;
}
.dev-img-drop-toolbar .hint {
  flex: 1 1 100%;
  opacity: 0.85;
  font-weight: 500;
}
.dev-img-drop-toolbar button {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: #ed71c1;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.dev-img-drop-toolbar button:hover {
  filter: brightness(1.05);
}

/*
  Home blog cards — equal height, fixed image ratio.
  Scope to card columns only (col-md-* / col-xl-*), never archive
  col-lg-8 + col-lg-4 (that flex row smashed Search | posts | Load more).
  Blog thumbs vary (landscape, portrait, circular PNGs); force cover crop.
*/
.vs-blog-wrapper .row > [class*="col-md-"],
.vs-blog-wrapper .row > [class*="col-xl-"] {
  display: flex;
}
.vs-blog.blog-style1.blog-card-equal {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.vs-blog.blog-style1.blog-card-equal .blog-img {
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  height: auto;
  margin: -3px -3px 0;
  border-radius: 30px 30px 0 0;
}
.vs-blog.blog-style1.blog-card-equal .blog-img a {
  display: block;
  width: 100%;
  height: 100%;
}
.vs-blog.blog-style1.blog-card-equal .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.vs-blog.blog-style1.blog-card-equal .blog-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.5rem;
}
.vs-blog.blog-style1.blog-card-equal .blog-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.vs-blog.blog-style1.blog-card-equal .blog-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
  margin-bottom: 0.75rem;
}
.vs-blog.blog-style1.blog-card-equal .link-btn {
  margin-top: auto;
  align-self: flex-start;
}

/*
  service-style1 was leftover Kiddino lime/cyan/orange.
  Remap to ECB brand, and fix collapse when no .service-img (home stages).
*/
.service-style1 {
  --theme-color: #5c15c0; /* Violet */
}
.service-style1:nth-child(2n + 2) {
  --theme-color: #64bab6; /* Teal */
}
.service-style1:nth-child(3n + 3) {
  --theme-color: #602a8a; /* Deep Purple */
}
.service-style1:nth-child(4n + 4) {
  --theme-color: #ed71c1; /* Pink */
}

/* Text-only service cards (no service-img): don't use absolute stack */
.service-style1:not(:has(.service-img)) .service-body {
  padding-bottom: 0;
}
.service-style1:not(:has(.service-img)) .service-content {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 0;
  padding: 1.75rem 1.25rem 1.5rem;
  min-height: 100%;
}
.service-style1:not(:has(.service-img)) .service-icon {
  --icon-size: 3.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--theme-color);
  border-radius: 12px;
}
.service-style1:not(:has(.service-img)) .service-text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Equal-height stage columns on home */
.ecb-stages-row > [class*="col-"] {
  display: flex;
}
.ecb-stages-row .service-style1 {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
}

/*
  Shop product cards — equal image crop + equal height so books,
  merch, and partner app tiles match.
*/
.product-style1 {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  margin-bottom: 0;
}
.product-style1 .product-img {
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: none;
  overflow: hidden;
  border-radius: 27px 27px 0 0;
}
.product-style1 .product-img a {
  display: block;
  width: 100%;
  height: 100%;
}
.product-style1 .product-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover !important;
  object-position: top center;
  display: block;
}
.product-style1 .product-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-style1 .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.product-style1 .product-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
  margin-bottom: 1rem;
}
.product-style1 .vs-btn,
.product-style1 .product-content > .vs-btn {
  margin-top: auto;
  color: #fff !important;
}
/* Equal-height columns for shop/feature grids using this gutter combo */
.row.gx-20.gy-30 > [class*="col-"] {
  display: flex;
}
.row.gx-20.gy-30 > [class*="col-"] > .product-style1,
.row.gx-20.gy-30 > [class*="col-"] > .feature-style1,
.row.gx-20.gy-30 > [class*="col-"] > .service-style1,
.row.gx-20.gy-30 > [class*="col-"] > .theme-cta-band,
.row.gx-20.gy-30 > [class*="col-"] > .testi-style1 {
  width: 100%;
}

/*
  Course “What’s included” — 5 equal cards on xl+; shared thumb crop so
  portrait stills don’t blow out card height (was 3+2 with giant bottom row).
*/
.course-videos-row > [class*="col-"] {
  display: flex;
}
.course-videos-row .feature-style1 {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.course-videos-row .course-video-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--smoke-color, #e8f7f8);
  flex: 0 0 auto;
}
.course-videos-row .course-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.course-videos-row .feature-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.course-videos-row .feature-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
  font-size: 1rem;
  line-height: 1.25;
}
.course-videos-row .feature-text {
  margin-top: auto;
  font-size: 0.875rem;
}
@media (max-width: 1199.98px) {
  .course-videos-row .feature-title {
    min-height: 0;
    -webkit-line-clamp: 4;
  }
}

/*
  Testimonials (layout2) — theme defaults are huge petal cards + 24px body.
  Shrink for readable grids; keep all copy white (headlines were title-color black).
*/
.testi-style1.layout2 {
  padding: 1.75rem 1.5rem 2rem !important;
  border-radius: 28px 72px 72px 72px !important;
  margin-bottom: 0;
}
.testi-style1.layout2 .testi-icon {
  width: 52px !important;
  height: 52px !important;
  line-height: 52px !important;
  font-size: 1.1rem !important;
  margin-bottom: 0.85rem !important;
}
.testi-style1.layout2 .testi-text {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.45;
  margin-bottom: 0.85rem !important;
}
.testi-style1.layout2 .testi-name {
  font-size: 1.05rem !important;
  font-weight: 700;
  margin-bottom: 0;
}
.testi-style1,
.testi-style1.layout2,
.testi-style1 .testi-text,
.testi-style1 .testi-name,
.testi-style1 .testi-name span,
.testi-style1 h3,
.testi-style1 .h5,
.testi-style1 .h4,
.testi-style1 p {
  color: #fff !important;
}

/* Paired CTAs (about shop + how-to-start) — equal height, button pinned bottom */
.theme-cta-band--stack {
  display: flex;
  width: 100%;
  height: 100%;
}
.theme-cta-band--stack .cta-box1 {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
}
.theme-cta-stack {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
}
.theme-cta-stack__body {
  flex: 1 1 auto;
}
.theme-cta-stack__body .sec-title {
  min-height: 3.4em;
  line-height: 1.15;
}
.theme-cta-stack__desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
}
.theme-cta-stack__action {
  margin-top: auto;
  padding-top: 1.25rem;
}
