/* =====================================================================
   The Next Level Academy — Universal Stylesheet
   Change the brand anywhere by editing the tokens in :root only.
   No external libraries. No gradients. Mobile breakpoint: <=767px.
   ===================================================================== */

:root {
  /* ---- Brand palette (single source of truth) ---- */
  --color-primary:        #a53692;
  --color-primary-hover:  #faa831;
  --color-text:           #5b5b5b;
  --color-text-light:     #c1c1c1;
  --color-heading:        #543874;
  --color-link:           #543874;
  --color-link-hover:     #a53692;

  --color-menu:           #5b5b5b;
  --color-menu-active:    #a53692;

  --color-white:          #ffffff;
  --color-header-bg:      #ffffff;
  --color-footer-bg:      #231f40;
  --color-footer-text:    #ffffff;
  --color-footer-muted:   #b9b3c9;

  
  --color-tag-bg:  #faa831;
  --color-tag-text:  #FFF;

  --color-offer-bg:   #e4322b;
  --color-offer-text: #ffffff;

  --color-cta-bg:         #543874;

  --color-surface:        #ffffff;
  --color-surface-alt:    #f7f7f7;
  --color-surface-alt-color:    #efe0ff;
  --color-border:         #eaeaea;

  /* ---- Buttons ---- */
  --btn1-bg:      var(--color-primary);
  --btn1-border:  var(--color-primary);
  --btn1-text:    #ffffff;
  --btn1-bg-h:    var(--color-primary-hover);
  --btn1-border-h:var(--color-primary-hover);
  --btn1-text-h:  #ffffff;

  --btn2-bg:      #ffffff;
  --btn2-border:  var(--color-primary);
  --btn2-text:    var(--color-primary);
  --btn2-bg-h:    var(--color-primary-hover);
  --btn2-border-h:var(--color-primary-hover);
  --btn2-text-h:  #ffffff;
  
  --btn3-bg:      var(--color-primary-hover);
  --btn3-border:  var(--color-primary-hover);
  --btn3-text:    #ffffff;
  --btn3-bg-h:    var(--color-primary);
  --btn3-border-h:var(--color-primary);
  --btn3-text-h:  #ffffff;

  /* ---- Layout & rhythm ---- */
  --container:    1170px;
  --gutter:       20px;
  --radius:       3px;
  --radius-sm:    3px;
  --shadow:       0 6px 24px rgba(45, 38, 64, .08);
  --shadow-hover: 0 14px 34px rgba(45, 38, 64, .14);
  --header-h:     74px;
  --ease:         cubic-bezier(.4, 0, .2, 1);
  --t-fast:       .18s var(--ease);
  --t:            .28s var(--ease);

  --font:      "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "DM Sans", "Roboto", system-ui, -apple-system, Arial, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-heading);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.00rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1rem;font-weight: 400;    line-height: 1.5; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

a { color: var(--color-link); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--color-link-hover); }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }

/* ---- Container & section rhythm (kept tight) ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding:30px 0; }
.section.padding-top-none{padding-top:0px;}
.section.padding-bottom-none{padding-bottom:0px;}
.section--alt { background: var(--color-surface-alt); }

.section-head { text-align: center; max-width: 100%; margin: 0 auto 26px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.section-head p { margin-top: 10px; }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t),
              color var(--t), transform var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(0); }
.btn:active { transform: translateY(0); }

.btn--1 {
  background: var(--btn1-bg);
  border-color: var(--btn1-border);
  color: var(--btn1-text);
}
.btn--1:hover {
  background: var(--btn1-bg-h);
  border-color: var(--btn1-border-h);
  color: var(--btn1-text-h);
}

.btn--2 {
  background: var(--btn2-bg);
  border-color: var(--btn2-border);
  color: var(--btn2-text);
}
.btn--2:hover {
  background: var(--btn2-bg-h);
  border-color: var(--btn2-border-h);
  color: var(--btn2-text-h);
}

.btn--3 {
  background: var(--btn3-bg);
  border-color: var(--btn3-border);
  color: var(--btn3-text);
}
.btn--3:hover {
  background: var(--btn3-bg-h);
  border-color: var(--btn3-border-h);
  color: var(--btn3-text-h);
}

.btn--block { width: 100%; }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--t);
}
.site-header.is-stuck { box-shadow: 0 4px 18px rgba(45, 38, 64, .09); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo (image based) */
.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: 55px;
  width: auto;
  display: block;
}

/* Primary nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  position: relative;
  color: var(--color-menu);
  font-weight: 500;
  text-transform: uppercase;
  font-size: .86rem;
  padding: 6px 2px;
  transition: color var(--t-fast);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-menu-active);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t);
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--color-menu-active); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { margin-left: 8px; }

/* Burger (mobile only) */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-menu);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast), background var(--t-fast);
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -7px; }
.burger span::after  { position: absolute; top: 7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.burger.is-open span::after  { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { background: var(--color-surface-alt); overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
  font-size: .8rem;
  padding: 7px 14px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 16px; }
.hero h1 span { color: var(--color-primary); }
.hero p { font-size: 1.05rem; max-width: 520px; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero__stats b { display: block; font-size: 1.5rem; color: var(--color-heading); }
.hero__stats span { font-size: .85rem; }

.hero__art {
  position: relative;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  padding: 26px;
}
.hero__art img { border-radius: 12px; }
.hero__chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-heading);
}
.hero__chip i {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--color-surface-alt);
  color: var(--color-primary);
}
.hero__chip--a { left: -22px; bottom: 40px; animation: float 4s var(--ease) infinite; }
.hero__chip--b { right: -18px; top: 36px; animation: float 4s var(--ease) infinite .8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ---- Video-background hero (index) — follows 5.png ---- */
.hero--video {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding: 70px 0;
  background: var(--color-heading);
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero__overlay {                       /* solid colour-over-video (no gradient) */
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(26, 18, 43, .80);
}
.hero--video .container {
  position: relative;
  z-index: 2;
  display: block;                      /* override base 2-col hero grid */
  width: 100%;
  max-width: var(--container);
  padding-top: 0;
  padding-bottom: 0;
}
.hero__wrap { display: flex; flex-direction: column; gap: 40px; }
.hero__main {
  display: flex;
  justify-content: center;
}

/* ---- Centered content ---- */
.hero__content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-white);
}
.hero__content h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 16px;
}
.hero__content h1 span { color: var(--color-primary-hover); }
.hero__subtitle {
  margin: 0 auto 24px;
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}
/* Full-width 3-col feature bar at the bottom of the hero */
.hero__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 0;
  background: rgba(0, 0, 0, .30);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
      
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  overflow: hidden;
}
.hero__features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.hero__features li:first-child { border-left: 0; }
.hero__features .ico {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: var(--color-primary-hover);
}
.hero__features span:not(.ico) {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--color-white);
}
@media (max-width: 767px) {
  .hero__features { grid-template-columns: 1fr; }
  .hero__features li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .hero__features li:first-child { border-top: 0; }
}
.hero--video .hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; }
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: var(--color-white);
}
.btn--ghost:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-heading);
}

@media (max-width: 767px) {
  .hero--video { min-height: 0; padding: 54px 0; }
  .hero__content h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}

/* =====================================================================
   Featured cards (index — "pays itself off")
   ===================================================================== */
.featured-section .section-head h2 { max-width: 820px; margin: 0 auto; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.fcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.fcard__ico {
  width: 78px;
  height: 78px;
  flex: none;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface-alt-color);
  color: var(--color-primary);
}
.fcard__title { margin: 0 0 10px; font-size: 1.14rem; }
.fcard__desc {
  margin: 0;
  color: var(--color-text);
  font-size: .95rem;
  line-height: 1.6;
}
@media (max-width: 991px) { .featured-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .featured-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Highlighted CTA band (index) — user-approved gradient (see design-system)
   ===================================================================== */
.highlight {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 48px 30px;
  border-radius: var(--radius);
  color: var(--color-white);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='rgba(255,255,255,0.10)'/%3E%3C/svg%3E") right center,
    linear-gradient(115deg, var(--color-heading) 0%, var(--color-primary) 60%, #c62a86 100%);
}
.highlight__title {
  color: var(--color-white);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 8px;
}
.highlight__sub {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .9);
}
.highlight__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
@media (max-width: 767px) {
  .highlight { padding: 36px 20px; }
  .highlight__actions .btn { width: 100%; max-width: 320px; }
}

/* =====================================================================
   Feature strip (compact)
   ===================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.feature i {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--color-surface-alt);
  color: var(--color-primary);
  margin-bottom: 14px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: .9rem; margin: 0; }

/* =====================================================================
   Course cards
   ===================================================================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.course-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.course-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t);
}
.course-card:hover .course-card__media img { transform: scale(1.06); }
.course-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  background:var(--color-tag-bg);
  color: var(--color-tag-text);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
}
.course-card__body { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.course-card h3 a { color: var(--color-heading); }
.course-card h3 a:hover { color: var(--color-primary); }
.course-card__desc {
  margin: 0 0 10px;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.course-card__info-item { display: flex; flex-direction: column; gap: 0px; }
.course-card__info-item .k {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-text);
}
.course-card__info-item .v {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--color-heading);
}
.course-card__pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.course-card__price { display: flex; align-items: baseline; gap: 8px; }
.course-card__price s { color: var(--color-text-light); font-weight: 500; font-size: 1rem; }
.course-card__price strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--color-heading);
}
.course-card__off {
  flex: none;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .8rem;
  padding: 7px 11px;
  border-radius: 6px;
  white-space: nowrap;
}
.course-card .btn--block { margin-top: auto; }

/* =====================================================================
   CTA band (compact, flat)
   ===================================================================== */
.cta-band { background: var(--color-cta-bg); color: #fff; }
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 44px;
  padding-bottom: 44px;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p  { color: var(--color-footer-muted); margin: 0; }

/* =====================================================================
   Breadcrumb + page header (course-detail)
   ===================================================================== */
.page-hero { background: var(--color-surface-alt); padding: 30px 0 30px; }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas:
    "text  image"
    "facts price";
  align-items: start;
  gap: 10px 30px;
}
.page-hero__content { grid-area: text; min-width: 0; }
.page-hero__media   { grid-area: image; }
.facts-block        { grid-area: facts; }
.price-card         { grid-area: price; }
.page-hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .75rem;
  margin-bottom: 16px;
  color: var(--color-text);
}
.breadcrumb a { color: var(--color-text); font-weight: 400; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { color: var(--color-primary); font-weight: 400; }
.page-hero__tag {
  display: inline-block;
  background: var(--color-tag-bg);
  border: 1px solid var(--color-tag-bg);
  color: var(--color-tag-text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: var(--radius);
  margin-bottom: 0px;
  margin-top: 0px;
  line-height: 1.2;
}
.page-hero h1 { max-width: 820px; margin-bottom: 5px; }

/* Course description + inline show more / less */
.course-desc { position: relative; max-width: 860px; margin-bottom: 10px; }
.course-desc p { margin: 0; }
.course-desc.is-clamped p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.desc-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color var(--t-fast);
}
.desc-toggle:hover { color: var(--color-primary-hover); }
.desc-toggle[hidden] { display: none; }

/* Collapsed: pinned to the end of the 3rd (last visible) line */
.course-desc.is-clamped .desc-toggle:not([hidden]) {
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 1.8em;
  background: var(--color-surface-alt);
}
.course-desc.is-clamped .desc-toggle::before {
  content: "\2026  ";
  color: var(--color-text);
  text-decoration: none;
}
/* Expanded: flows inline right after the full text */
.course-desc:not(.is-clamped) .desc-toggle:not([hidden]) {
  display: inline;
  margin-left: 0;
  white-space: nowrap;
}

/* Course facts (table-style list) */
.facts-block { grid-area: facts; }
/* 3-column card grid — icon left, label over value on the right */
.course-facts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.course-facts li {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0px;
  align-items: center;
  padding: 5px 5px;
  background: transparent; border: 0;
  border-radius: var(--radius);
      align-content: center;
}
.course-facts svg {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  padding: 9px;
  flex: none;
  color: var(--color-primary);
  background: transparent;
  border-radius: 0;
  padding-left: 0px;
}
.course-facts .k {
  grid-column: 2;
  grid-row: 1;
  color: var(--color-text);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.course-facts .v {
  grid-column: 2;
  grid-row: 2;
  margin-top: 2px;
  color: var(--color-heading);
  font-weight: 700;
  font-size: .75rem;
}
@media (max-width: 767px) { .course-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .course-facts { grid-template-columns: 1fr; } }

/* Action buttons under the facts list */
.facts-actions {
  display: block;
  gap: 12px;
  margin-top: 30px;
}
.facts-actions .btn { flex: 1; }
.facts-actions .btn{margin-right: 5px;}
@media (max-width: 480px) {
  .facts-actions { flex-direction: column; }
}

/* Pricing card (page-hero, right of facts) */
.price-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
  border-radius: var(--radius);
}
/* ---------- Deal card (matches 2.png, gradient — approved exception) ---------- */
/* Top: white info row — Delivery Location | Start Date */
.pc-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 18px;
}
.pc-info { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pc-info + .pc-info { border-left: 1px solid var(--color-border); padding-left: 16px; }
.pc-info__ico {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(84, 56, 116, .08);
  color: var(--color-primary);
}
.pc-info__txt { display: flex; flex-direction: column; min-width: 0; }
.pc-info__k { font-size: .68rem; color: var(--color-text); text-transform: uppercase; font-weight: 700; }
.pc-info__v {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--color-heading);
  font-size: .75rem;
}

/* Bottom: gradient deal panel */
.pc-deal {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 22px;
  padding: 22px 20px 18px;
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='rgba(255,255,255,0.14)'/%3E%3C/svg%3E") right center,
    linear-gradient(115deg, var(--color-heading) 0%, var(--color-primary) 60%, #c62a86 100%);
}
.pc-deal__old {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-right: 22px;
  border-right: 1px solid rgba(255, 255, 255, .28);
}
.pc-deal__oldlabel {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}
.pc-deal__oldprice {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .65);
  text-decoration: line-through;
}
.pc-deal__now { text-align: center; }
.pc-deal__nowlabel {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 4px;
}
.pc-deal__priceline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pc-deal__price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
}
.pc-deal__off {
  position: relative;
  padding: 7px 11px;
  border-radius: 7px;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .82rem;
  line-height: 1;
  white-space: nowrap;
}
.pc-deal__off::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 16px;
  height: 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 2v5M12 17v5M2 12h5M17 12h5M5 5l3 3M16 16l3 3M19 5l-3 3M8 16l-3 3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pc-deal__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top:8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-weight: 600;
  font-size: .95rem;
}

@media (max-width: 1080px) and (min-width: 768px) {
.pc-deal {
  gap: 3px 6px;
  padding: 12px 10px 12px;
}
}
@media (max-width: 950px) and (min-width: 768px) {
.pc-deal__priceline{display: block;}
}
@media (max-width: 480px) {
  .pc-top { grid-template-columns: 1fr; gap: 12px; }
  .pc-info + .pc-info { border-left: 0; padding-left: 0; }
  .pc-deal { grid-template-columns: 1fr; text-align: center; }
  .pc-deal__old {
    align-items: center;
    padding-right: 0;
    border-right: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
  }
}

/* =====================================================================
   SEO / SEM tabs section (course-detail).
   Header centered + full width. Desktop/tablet: compact tabs that wrap
   (no scroll). Mobile only: tab strip scrolls horizontally.
   ===================================================================== */
.seo-section h2 { text-align: center; }
.seo-section__lead {
  width: 100%;
  margin: 12px 0 0;
  text-align: center;
  font-size: 1.02rem;
}

/* Bordered widget so the section reads as a distinct block */
/* Tabs — light, icon + 2-line label, caret to panel (3.png look) */
.tabs { margin-top: 28px; }
.tabs__nav {
  display: flex;
  margin-bottom: 18px;
}
.tabs__tab {
  flex: 1 1 170px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  background: none;
  border: 0;
  border-right: 1px solid var(--color-border);
  padding: 6px 16px;
  font-family: var(--font-head);
  cursor: pointer;
}
.tabs__tab:last-child { border-right: 0; }
.tabs__ico {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  transition: background var(--t-fast), color var(--t-fast);
}
.tabs__lbl { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tabs__lbl strong {
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-heading);
  transition: color var(--t-fast);
}
.tabs__lbl span { font-size: .8rem; font-weight: 500; color: var(--color-text); }
.tabs__tab:hover .tabs__lbl strong { color: var(--color-primary); }
.tabs__tab.is-active .tabs__ico { background: var(--color-primary); color: var(--color-white); }
.tabs__tab.is-active .tabs__lbl strong { color: var(--color-primary); }
/* caret under the active tab pointing into the panel */
.tabs__tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -17px;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--color-primary-hover);
}

/* All panels stacked in one grid cell → container = tallest panel,
   so the box height is even no matter which tab is active. */
.tabs__panels {
  position: relative;
  display: grid;
  padding: 28px 30px 28px 42px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 7px;
  box-shadow: var(--shadow);
}
/* short rounded accent marker near the top-left (4.jpg) */
.tabs__panels::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 28px;
  width: 4px;
  height: 46px;
  border-radius: 4px;
  background: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(165, 54, 146, .08);
}
.tabs__panel {
  grid-area: 1 / 1;
  color: var(--color-text);
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s var(--ease);
}
.tabs__panel[hidden] { display: block; }   /* keep in layout for equal height */
.tabs__panel.is-active { opacity: 1; visibility: visible; }
.tabs__panel p { width: 100%; margin: 0; }
.tabs__list { margin: 12px 0 0; width: 100%; }
.tabs__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 9px;
}
.tabs__list li:last-child { margin-bottom: 0; }
.tabs__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-surface-alt-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23a53692' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
@keyframes tab-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.tabs__tab.is-active{border-bottom: 2px solid var(--color-primary-hover);}
@media (max-width: 800px) {
.tabs__tab.is-active::after{display: none;}
}
/* =====================================================================
   "Why us" perks — now a slider (5 / 3 / 2 per view via JS data-per).
   `.perk` is the card; equal height so every slide matches.
   ===================================================================== */
.perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  height: 100%;
  padding: 10px 10px;
  background: var(--color-primary-hover);
  border: 1px solid var(--color-primary-hover);
  border-radius: var(--radius);
  transition: transform var(--t), box-shadow var(--t);
}
/* .perk:hover { transform: translateY(0); box-shadow: var(--shadow-hover); } */
.perk__ico {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary-hover);
}
.perk p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.2;
}

/* =====================================================================
   Stats band — 3 items, big % figure. Stays one line at every size.
   ===================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 10px;
  border-left: 1px solid var(--color-border);
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 1.4rem);
  line-height: 1;
  color: var(--color-primary);
}
.stat__text {
  margin: 0;
  width: 100%;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-heading);
}
/* Keep all 3 in one line on small screens — just tighten spacing/size */
@media (max-width: 767px) {
  .stat { padding: 16px 8px; gap: 6px; }
  .stat__num { font-size: clamp(1.3rem, 6.5vw, 1.9rem); }
  .stat__text { font-size: .8rem; }
}

/* =====================================================================
   Brand / "Our Learners' Experience" — 3-col, vertically centered.
   ===================================================================== */
.brand-section { background: var(--color-white);}
.brand-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  align-items: center;          /* columns vertically centered to each other */
  gap: 28px;
}

/* Video poster + play */
.brand-video {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-heading);
}
.brand-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-video::after {            /* solid scrim (no gradient) for contrast */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(36, 31, 64, .34);
  transition: background var(--t);
}
.brand-video:hover::after { background: rgba(36, 31, 64, .2); }
.brand-video__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  cursor: pointer;
  transition: transform var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.brand-video__play:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Stat columns */
.brand-stat {
  text-align: center;
  padding: 14px 18px;
}
.brand-stat__ico {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.brand-stat h3 { margin: 0 0 8px; font-size: 1.12rem; }
.brand-stat p { margin: 0; font-size: .95rem; }

@media (max-width: 767px) {
  .brand-grid { grid-template-columns: 1fr; gap: 22px; text-align: center; }
}

/* =====================================================================
   Brand + testimonial slider variant — left video 30%, slider 70%.
   Scoped so the original .brand-section / .brand-grid is untouched.
   ===================================================================== */
.brandtestimoinal-section { background: var(--color-surface-alt); }
.brandtm-grid {
  display: grid;
  grid-template-columns: 30% 68%;
  align-items: center;
  gap: 28px;
}
.brand-testimonial { min-width: 0; }   /* let the slider shrink inside grid */
/* keep this slider's arrows tucked at the column edges */
.btm-slider { padding-left: 0; padding-right: 0; }
.btm-slider .tslider__arrow--prev { left: -40px; }
.btm-slider .tslider__arrow--next { right: -40px; }
@media (max-width: 767px) {
  .brandtm-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* =====================================================================
   Left-tab section — vertical tabs 25% / content 75%.
   Same view at every breakpoint (no stacking). Bordered, compact.
   ===================================================================== */
/* Clean vertical tabs — no outer box; pill nav + white card panel */
.ltabs {
  display: flex;
  gap: 22px;
  align-items: start;
}
.ltabs__nav {
  flex: 0 0 26%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ltabs__tab {
  position: relative;
  text-align: left;
  padding: 13px 16px 13px 18px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.35;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
/* growing left accent marker */
.ltabs__tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--color-primary);
  transition: height var(--t);
}
.ltabs__tab:hover { background: var(--color-surface-alt); color: var(--color-primary); }
.ltabs__tab.is-active {
  background: var(--color-surface-alt-color);
  color: var(--color-primary);
  font-weight: 800;
}
.ltabs__tab.is-active::before { height: 58%; }
.ltabs__panels {
  flex: 1 1 74%;
  min-width: 0;
  display: grid;
  padding: 28px 30px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 7px;
  box-shadow: var(--shadow);
}
.ltabs__panel {
  grid-area: 1 / 1;            /* stack → equal height across all panels */
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s var(--ease);
}
.ltabs__panel[hidden] { display: block; }   /* keep in layout for equal height */
.ltabs__panel.is-active { opacity: 1; visibility: visible; }

.ltabs__full { margin-bottom: 22px; }
.ltabs__full > h3,
.ltabs__col > h3,
.ltabs__col > h4 {
  margin: 0 0 8px;
  color: var(--color-heading);
  font-size: 1.05rem;
}
.ltabs__full > p,
.ltabs__col > p { margin: 0; }
.ltabs__cols {
  display: grid;
  grid-template-columns: 65fr 35fr;   /* fr keeps the gap inside 100% */
  gap: 24px;
  align-items: start;
}
.ltabs__col > h4 { font-size: .95rem; margin-top: 16px; }
.ltabs__col > h4:first-child { margin-top: 0; }
.ltabs__col-side img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-top: 8px;
}
/* Inner 65/35 columns stack on mobile (tabs stay 25/75) */
@media (max-width: 767px) {
  .ltabs__cols { grid-template-columns: 1fr; gap: 18px; }
  .ltabs__tab{    padding: 10px;}
  .ltabs__panels{padding: 10px;}
  .ltabs{gap: 5px;}
}

/* Dark variant: add `dark` to .lefttab-section */
.lefttab-section.dark { background: var(--color-heading); }
.lefttab-section.dark .section-head h2,
.lefttab-section.dark .section-head p { color: var(--color-white); }
.lefttab-section.dark .ltabs__tab { color: rgba(255, 255, 255, .82); }
.lefttab-section.dark .ltabs__tab::before { background: var(--color-white); }
.lefttab-section.dark .ltabs__tab:hover {
  background: rgba(255, 255, 255, .10);
  color: var(--color-white);
}
.lefttab-section.dark .ltabs__tab.is-active {
  background: rgba(255, 255, 255, .14);
  color: var(--color-white);
}
/* keep the panel readable on the dark section (no white-on-white) */
.lefttab-section.dark .ltabs__panels {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}
.lefttab-section.dark .ltabs__panels,
.lefttab-section.dark .ltabs__full > h3,
.lefttab-section.dark .ltabs__col > h3,
.lefttab-section.dark .ltabs__col > h4,
.lefttab-section.dark .ltabs__full > p,
.lefttab-section.dark .ltabs__col > p { color: var(--color-white); }

/* =====================================================================
   Trainer cards (slider: 3 / 2 / 1 via data-per). Equal height.
   ===================================================================== */
.trainer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 15px;
  transition: transform var(--t), box-shadow var(--t);
}
/* .trainer-card:hover { transform: translateY(0px); box-shadow: var(--shadow-hover); } */
.trainer-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.trainer-card__avatar {
  flex: none;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-primary);
}
.trainer-card__id { min-width: 0; }
.trainer-card__name { margin: 0 0 2px; font-size: 1.08rem; }
.trainer-card__role {
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-primary);
}
.trainer-card__desc {
  flex: 1;
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--color-text);
}
.trainer-card__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.trainer-card__social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  transition: background var(--t-fast), color var(--t-fast);
}
.trainer-card__social a:hover { background: var(--color-primary); color: var(--color-white); }
.trainer-card__social svg { width: 16px; height: 16px; }

/* =====================================================================
   Contact form — 2-col rows, compact. Stacks below 720px.
   Class hooks kept generic so Contact Form 7 markup can drop in.
   ===================================================================== */
.contact-section { background: var(--color-surface-alt); }
.cform {
  max-width: 820px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  align-items: start;
  margin-bottom: 14px;
}
.cform__row:last-child { margin-bottom: 0; }
.cform__row--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.cform__row--full {
  grid-template-columns: 1fr;
  justify-items: start;
  text-align: left;
}
.cform__field { display: flex; flex-direction: column; min-width: 0; }
.cform__field label {
  font-size: .96rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 6px;
}
.cform .req { color: var(--color-primary); margin-left: 2px; }
.cform input,
.cform select,
.cform textarea {
  width: 100%;
  font: inherit;
  font-size: .9rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color var(--t-fast);
}
.cform textarea { min-height: 42px; resize: vertical;height: 42px;    resize: none; }
.cform input:focus,
.cform select:focus,
.cform textarea:focus { outline: none; border-color: var(--color-primary); }
.cform__terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--color-text);
  cursor: pointer;
}
.cform__terms input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  accent-color: var(--color-primary);
}
/* .cform__terms a { color: var(--color-link); text-decoration: underline; } */
@media (max-width: 720px) {
  .cform { padding: 20px; }
  .cform__row { grid-template-columns: 1fr; }
}

/* =====================================================================
   Portfolio cards (1.jpg design). Slider 5/3/2 via data-per.
   NOTE: this section intentionally uses a gradient — an explicit,
   user-approved, scoped exception to the global no-gradient rule.
   ===================================================================== */
.portfolio-section ul li{padding-bottom: 30px;;}
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* Hover overlay image (per-card src set inline in HTML; default portfolio.jpg) */
.pcard__hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity var(--t), transform var(--t);
  pointer-events: none;
}
.pcard:hover .pcard__hover {
  opacity: 1;
  transform: scale(1);
}
.pcard__top {
  position: relative;
  height: 150px;
  display: grid;
  place-items: center;
  /* orange -> magenta, expressed via brand tokens */
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
  border-radius: 16px 16px 50% 50% / 16px 16px 26% 26%;
}
.pcard__badge {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary-hover);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .18);
}
.pcard__title {
  flex: 1;
  margin: 0;
  padding: 26px 22px 16px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-heading);
}
.pcard__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 0 0 22px;
}
.pcard__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-hover);
}
.pcard__dots i:last-child { background: var(--color-primary); }

/* =====================================================================
   Video modal (YouTube popup) — responsive 16:9
   ===================================================================== */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 16, 36, .82);
}
.vmodal[hidden] { display: none; }
.vmodal__backdrop { position: absolute; inset: 0; }
.vmodal__dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
}
.vmodal__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;          /* 16:9 */
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.vmodal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vmodal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-heading);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  z-index: 9;
}
.vmodal__close:hover { background: var(--color-primary); color: var(--color-white); }
@media (max-width: 767px) {
  .vmodal__close { top: -46px; right: 0; }
}

/* .course-facts keeps the same icon | label | value row on all sizes
   (no mobile stacking — matches desktop). */

/* Detail layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.detail-main h2 { margin: 0 0 14px; }
.detail-block { margin-bottom: 38px; }
.detail-block:last-child { margin-bottom: 0; }

.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: .95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-surface-alt-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a53692' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Accordion curriculum */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--color-heading);
  text-align: left;
  cursor: pointer;
  transition: color var(--t-fast);
}
.accordion-trigger:hover { color: var(--color-primary); }
.accordion-trigger small { font-weight: 500; color: var(--color-text); margin-left: auto; margin-right: 6px; }
.accordion-trigger .ico {
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--color-primary);
  transition: transform var(--t);
}
.accordion-item.is-open .accordion-trigger .ico { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t);
}
.accordion-panel ul { padding: 4px 20px 18px; }
.accordion-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: .92rem;
  border-top: 1px dashed var(--color-border);
}
.accordion-panel li:first-child { border-top: none; }
.accordion-panel li svg { color: var(--color-primary); flex: none; }

/* Sidebar enrol card */
.enrol-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.enrol-card__media { aspect-ratio: 16 / 10; }
.enrol-card__media img { width: 100%; height: 100%; object-fit: cover; }
.enrol-card__body { padding: 24px; }
.enrol-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.enrol-card__price b { font-size: 2rem; color: var(--color-heading); }
.enrol-card__price s { color: var(--color-text); }
.enrol-card__actions { display: grid; gap: 12px; margin-bottom: 22px; }
.enrol-card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: .92rem;
  border-top: 1px solid var(--color-border);
}
.enrol-card__list li:first-child { border-top: none; }
.enrol-card__list svg { color: var(--color-primary); flex: none; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); margin-top: auto; }
.site-footer .logo img{height: 90px;}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding:40px 20px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 2px;
  background: var(--color-primary);
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a {
  color: var(--color-footer-muted);
  font-size: .92rem;
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer-col ul a:hover { color: #fff; padding-left: 5px; }

.footer-brand .logo { margin-bottom: 16px; }
/* Render the brand logo in solid white on the dark footer */
.footer-brand .logo img { filter: brightness(0) invert(1); }
.footer-brand p { color: var(--color-footer-muted); font-size: .92rem; max-width: 280px; }

.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  transition: background var(--t), transform var(--t);
}
.socials a:hover { background: var(--color-primary); transform: translateY(-3px); }
.socials img { width: 18px; height: 18px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--color-footer-muted);
  font-size: .92rem;
}
.footer-contact li svg { color: var(--color-primary); flex: none; margin-top: 3px; }
.footer-contact a { color: var(--color-footer-muted); }
.footer-contact a:hover { color: #fff; }

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
}
.footer-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bar p { color: var(--color-footer-muted); font-size: .86rem; margin: 0; }
.footer-bar nav { display: flex; gap: 22px; }
.footer-bar nav a { color: var(--color-footer-muted); font-size: .86rem; }
.footer-bar nav a:hover { color: #fff; }

/* =====================================================================
   Scroll reveal
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   Responsive — tablet
   ===================================================================== */
@media (max-width: 991px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  /* .page-hero__grid intentionally NOT changed at tablet — desktop view
     holds until the mobile (<=767px) breakpoint. */
  .detail-layout { grid-template-columns: 1fr; }
  .enrol-card { position: static; max-width: 460px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Responsive — mobile  (<= 767px)
   ===================================================================== */
@media (max-width: 767px) {
  .section { padding: 40px 0; }

  /* Header: logo (left) then burger (right). Nav collapses. */
  .burger { display: block; order: 2; }
  .logo   { order: 1; }

  .main-nav {
    order: 3;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 14px 26px rgba(45, 38, 64, .12);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t);
  }
  .main-nav.is-open { max-height: 70vh; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    padding: 14px var(--gutter);
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav a::after { display: none; }
  .main-nav li:last-child a { border-bottom: none; }

  /* Hero stacks */
  .hero .container {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero p { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; gap: 26px; }
  .hero__chip { display: none; }

  /* Single column grids */
  .features { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }

  .cta-band .container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  /* Mobile only: single column, image below the price card */
  .page-hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "facts" "price" "image";
    gap: 10px;
  }

  /* Mobile only: tab strip scrolls horizontally instead of wrapping */
  .tabs__nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .tabs__tab {
    flex: 0 0 auto;
    width: 210px;
  }

  /* Footer: exactly 2 items per row */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
    padding: 30px 20px;
  }
  .footer-bar .container { flex-direction: column; text-align: center; }
}

/* Footer columns stack (one per row) below 720px */
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .hero__stats { flex-direction: column; gap: 14px; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
