@font-face {
  font-family: "RokhFaNum";
  src: url("../fonts/RokhFaNum-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "RokhFaNum";
  src: url("../fonts/RokhFaNum-SemiBold.woff2") format("woff2");
  font-weight: 600;
}

@font-face {
  font-family: "RokhFaNum";
  src: url("../fonts/RokhFaNum-Bold.woff2") format("woff2");
  font-weight: 700;
}

@font-face {
  font-family: "RokhFaNum";
  src: url("../fonts/RokhFaNum-ExtraBold.woff2") format("woff2");
  font-weight: 800;
}

@font-face {
  font-family: "Rokh";
  src: url("../fonts/Rokh-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Rokh";
  src: url("../fonts/Rokh-Bold.woff2") format("woff2");
  font-weight: 700;
}

@font-face {
  font-family: "Rokh";
  src: url("../fonts/Rokh-ExtraBold.woff2") format("woff2");
  font-weight: 800;
}

@font-face {
  font-family: "RokhNoEng";
  src: url("../fonts/RokhNoEng-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "RokhNoEng";
  src: url("../fonts/RokhNoEng-Bold.woff2") format("woff2");
  font-weight: 700;
}

@font-face {
  font-family: "RokhNoEng";
  src: url("../fonts/RokhNoEng-ExtraBold.woff2") format("woff2");
  font-weight: 800;
}

@font-face {
  font-family: "Abar";
  src: url("../fonts/Abar-VF.ttf") format("truetype");
  font-weight: 100 900;
}

@font-face {
  font-family: "Pinar";
  src: url("../fonts/Pinar-FD-VF.woff2") format("woff2");
  font-weight: 100 900;
}

@font-face {
  font-family: "Sadu";
  src: url("../fonts/Sadu-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Sadu";
  src: url("../fonts/Sadu-Bold.ttf") format("truetype");
  font-weight: 800 900;
}

@font-face {
  font-family: "Tamam";
  src: url("../fonts/Tamam.otf") format("opentype");
}

@font-face {
  font-family: "Karesto";
  src: url("../fonts/Karesto.ttf") format("truetype");
}

@font-face {
  font-family: "Dalino";
  src: url("../fonts/Dalino.otf") format("opentype");
}

@font-face {
  font-family: "Sorena";
  src: url("../fonts/Sorena.ttf") format("truetype");
}

@font-face {
  font-family: "Tizi";
  src: url("../fonts/Tizi-Black.ttf") format("truetype");
}

:root {
  --font-main: "RokhFaNum", Tahoma, Arial, sans-serif;
  --font-body-weight: 600;
  --font-heading-weight: 800;
  --font-heavy-weight: 800;
  --rochi-fs-section-heading: clamp(42px, 5vw, 82px);
  --rochi-fs-course-desc: 20px;
  --rochi-fs-blog-title: 28px;
  --rochi-fs-blog-body: 20px;
  --red: #b3192d;
  --red-dark: #85000f;
  --black: #211b18;
  --paper: #fffaf0;
  --white: #fffefb;
  --ink-soft: #4a3b34;
  --line: rgba(33, 27, 24, 0.08);
  --cream: #f4eadb;
  --green: #1f9d57;
  --green-dark: #167a42;
  --green-soft: #e8f7ee;
  --yellow: #f2c94c;
  --shadow: 10px 10px 0 var(--black);
  --border: 4px solid var(--black);
  --max: 1460px;
}

html[data-font="rokh-fanum"] {
  --font-main: "RokhFaNum", Tahoma, Arial, sans-serif;
}

html[data-font="rokh"] {
  --font-main: "Rokh", Tahoma, Arial, sans-serif;
}

html[data-font="rokh-noeng"] {
  --font-main: "RokhNoEng", Tahoma, Arial, sans-serif;
}

html[data-font="rokh-fanum-light"],
html[data-font="rokh-noeng-light"] {
  --font-body-weight: 400;
  --font-heading-weight: 700;
  --font-heavy-weight: 800;
}

html[data-font="rokh-fanum-bold"],
html[data-font="rokh-noeng-bold"] {
  --font-body-weight: 700;
  --font-heading-weight: 800;
  --font-heavy-weight: 800;
}

html[data-font^="rokh-fanum-"] {
  --font-main: "RokhFaNum", Tahoma, Arial, sans-serif;
}

html[data-font^="rokh-noeng-"] {
  --font-main: "RokhNoEng", Tahoma, Arial, sans-serif;
}

html[data-font="abar"] {
  --font-main: "Abar", Tahoma, Arial, sans-serif;
  --font-body-weight: 620;
  --font-heading-weight: 780;
  --font-heavy-weight: 880;
}

html[data-font="abar-light"] {
  --font-main: "Abar", Tahoma, Arial, sans-serif;
  --font-body-weight: 420;
  --font-heading-weight: 680;
  --font-heavy-weight: 780;
}

html[data-font="pinar"] {
  --font-main: "Pinar", Tahoma, Arial, sans-serif;
  --font-body-weight: 620;
  --font-heading-weight: 760;
  --font-heavy-weight: 860;
}

html[data-font="pinar-heavy"] {
  --font-main: "Pinar", Tahoma, Arial, sans-serif;
  --font-body-weight: 700;
  --font-heading-weight: 850;
  --font-heavy-weight: 900;
}

html[data-font="sadu"] {
  --font-main: "Sadu", Tahoma, Arial, sans-serif;
  --font-body-weight: 600;
  --font-heading-weight: 800;
  --font-heavy-weight: 900;
}

html[data-font="tamam"] {
  --font-main: "Tamam", Tahoma, Arial, sans-serif;
}

html[data-font="karesto"] {
  --font-main: "Karesto", Tahoma, Arial, sans-serif;
}

html[data-font="dalino"] {
  --font-main: "Dalino", Tahoma, Arial, sans-serif;
}

html[data-font="sorena"] {
  --font-main: "Sorena", Tahoma, Arial, sans-serif;
}

html[data-font="tizi"] {
  --font-main: "Tizi", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  color: var(--black);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 54px 54px;
  direction: rtl;
  font-family: var(--font-main);
  font-weight: var(--font-body-weight);
  overflow-x: clip;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header,
.hero,
.wave-courses,
.why-academy,
.course-archive,
.consult-form,
.faq-section,
.blog-preview,
.webinar-preview,
.teachers-preview,
.learning-path-preview,
.rochi-templates-section,
.footer {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "actions brand"
    "nav nav";
  gap: 12px 22px;
  align-items: center;
  min-height: 94px;
  margin-top: 20px;
  padding: 14px 18px 16px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  direction: ltr;
}

.brand {
  position: relative;
  grid-area: brand;
  display: inline-flex;
  width: auto;
  min-width: 0;
  max-width: min(220px, 42vw);
  min-height: 0;
  place-items: center;
  justify-self: end;
  padding: 0;
  color: var(--red);
  background: transparent;
  border: 0;
  box-shadow: none;
  line-height: 0;
  overflow: visible;
  text-decoration: none;
}

.brand::before {
  content: none;
  display: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  object-position: center;
}

.brand strong,
.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.main-nav,
.quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
}

.main-nav {
  grid-area: nav;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding-top: 12px;
  border-top: 3px solid var(--black);
}

/* WordPress outputs ul > li > a — flatten to horizontal nav */
.main-nav > ul,
.main-nav .main-nav-list,
.main-nav .menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  direction: rtl;
}

.main-nav li,
.main-nav .menu-item {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li::before,
.main-nav li::marker {
  content: none;
  display: none;
}

.quick-actions {
  grid-area: actions;
  justify-self: start;
}

.main-nav a,
.nav-mega > a,
.quick-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: var(--red);
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a,
.nav-mega > a.active,
.quick-actions .login {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.nav-mega {
  position: relative;
}

.nav-mega > a::after {
  content: "▾";
  margin-inline-start: 8px;
  font-size: 14px;
  line-height: 1;
}

.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 50%;
  z-index: 50;
  display: none;
  width: min(860px, calc(100vw - 56px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  color: var(--black);
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  transform: translateX(50%);
}

.nav-mega:hover .mega-panel,
.nav-mega:focus-within .mega-panel {
  display: grid;
}

.main-nav > ul > .menu-item-has-children {
  position: relative;
  display: block;
}

.main-nav > ul > .menu-item-has-children > a::after {
  content: "▾";
  margin-inline-start: 6px;
  font-size: 12px;
  line-height: 1;
}

.main-nav .sub-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1181px) {
  .main-nav .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    z-index: 60;
    min-width: 220px;
    padding: 10px;
    background: var(--white);
    border: var(--border);
    box-shadow: var(--shadow);
  }

  .main-nav .menu-item-has-children:hover > .sub-menu,
  .main-nav .menu-item-has-children:focus-within > .sub-menu {
    display: flex;
  }

  .main-nav .sub-menu .menu-item {
    display: block;
    width: 100%;
  }

  .main-nav .sub-menu a {
    width: 100%;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .main-nav .sub-menu a:hover,
  .main-nav .sub-menu .current-menu-item > a {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
  }
}

.mega-panel::before {
  content: "";
  position: absolute;
  inset-block-start: -16px;
  inset-inline: 0;
  height: 16px;
}

.mega-panel section {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.12) 0 44%, transparent 44% 100%),
    var(--paper);
  border: 3px solid var(--black);
}

.mega-panel section:nth-child(even) {
  background: var(--cream);
}

.mega-panel b {
  color: var(--red);
  font-size: 24px;
  line-height: 1.35;
}

.mega-panel a {
  min-height: auto;
  justify-content: flex-start;
  padding: 0;
  color: var(--black);
  border: 0;
  font-size: 17px;
}

.mega-panel a:hover {
  color: var(--red);
}

.mega-feature small {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
}

.mobile-menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--black);
  background: var(--yellow);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  cursor: pointer;
}

.mobile-menu-toggle span {
  position: relative;
  display: block;
  width: 24px;
  height: 3px;
  background: currentColor;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  content: "";
  position: absolute;
  right: 0;
  width: 24px;
  height: 3px;
  background: currentColor;
}

.mobile-menu-toggle span::before {
  top: -8px;
}

.mobile-menu-toggle span::after {
  top: 8px;
}

.site-header.menu-open .mobile-menu-toggle span {
  background: transparent;
}

.site-header.menu-open .mobile-menu-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.menu-open .mobile-menu-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.quick-actions a:not(.login) {
  position: relative;
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  overflow: visible;
  color: var(--black);
  background: var(--cream);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 0;
  line-height: 1;
  text-indent: -999px;
  white-space: nowrap;
}

.quick-actions a:nth-child(1) {
  background: var(--green);
}

.quick-actions a:nth-child(2) {
  background: var(--yellow);
}

.quick-actions a:nth-child(1)::before,
.quick-actions a:nth-child(2)::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--black);
  text-indent: 0;
}

.quick-actions a:nth-child(1)::before {
  content: "";
  inset: 17px 15px 19px;
  border: 4px solid currentColor;
  border-top: 0;
  transform: skewX(-8deg);
}

.quick-actions a:nth-child(1)::after {
  content: "";
  position: absolute;
  right: 17px;
  bottom: 12px;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: -16px 0 0 currentColor;
}

.quick-actions a:nth-child(2)::before {
  content: "★";
  font-size: 28px;
  line-height: 1;
}

.cart-count-badge,
.favorites-count-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 2;
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  padding: 0 7px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-indent: 0;
}

.cart-count-badge[hidden],
.favorites-count-badge[hidden] {
  display: none;
}

.cart-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 18px;
  color: var(--black);
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  direction: rtl;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cart-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cart-toast div {
  display: grid;
  gap: 4px;
}

.cart-toast strong {
  color: var(--red);
  font-size: 20px;
}

.cart-toast span {
  color: var(--ink-soft);
  font-size: 16px;
}

.cart-toast a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 470px;
  margin-top: 42px;
  padding: 46px 46px 42px;
  border: var(--border);
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.16) 0 38%, transparent 38% 100%),
    var(--red);
  overflow: hidden;
}

.hero-title {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  min-height: 360px;
  padding: 24px 18px;
  color: var(--white);
  text-align: center;
}

.hero-title p {
  margin: 0;
  color: var(--white);
  font-size: clamp(21px, 2vw, 31px);
  line-height: 1.7;
}

.hero-title h1 {
  display: grid;
  margin: 0;
  max-width: 1120px;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.04;
  text-align: center;
  white-space: nowrap;
}

.hero-title h1 span {
  display: block;
}

.hero .btn.primary {
  color: var(--red);
  background: var(--white);
}

.hero .btn.ghost {
  color: var(--white);
  background: transparent;
  border-color: var(--white);
  box-shadow: 5px 5px 0 var(--black);
}

.section-head p,
.archive-card p,
.course-body p,
.course-list-card p,
.footer p,
.blog-grid p,
details p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--rochi-fs-course-desc);
  line-height: 1.9;
}

.blog-grid p,
.single-article-page .entry-content,
.single-article-page .entry-content p,
.articles-index-page .article-card p,
.articles-index-page article p {
  font-size: var(--rochi-fs-blog-body);
}

.hero-actions,
.why-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

.btn,
.archive-card a,
.buy-button,
.consult-form button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

/* Keep every CTA / WooCommerce button label centered */
.btn,
.button,
a.button,
button.button,
input.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.single_add_to_cart_button,
.archive-card a,
.buy-button,
.course-link,
.consult-form button,
.path-actions .btn,
.product-actions .button,
.product-actions a.button,
.save-course-action,
.rochi-template-download {
  text-align: center;
  justify-content: center;
}

.primary,
.consult-form button {
  color: var(--white);
  background: var(--red);
}

.ghost {
  background: var(--white);
}

.archive-card a {
  color: var(--white);
  background: var(--red);
}

.light-btn {
  color: var(--black);
}

.wave-courses {
  position: relative;
  margin-top: 76px;
  padding: 52px 64px;
  color: var(--white);
  background: var(--red);
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wave-courses::before {
  content: none;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 4px solid currentColor;
}

.section-head.light {
  z-index: 1;
  color: var(--white);
}

.section-head.light h2 {
  position: relative;
  z-index: 1;
}

.section-head h2 {
  margin: 0;
  font-size: var(--rochi-fs-section-heading);
  line-height: 1.08;
  font-weight: 800;
}

.section-head.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-head.compact {
  margin-bottom: 20px;
}

.carousel-buttons {
  display: flex;
  gap: 12px;
  direction: ltr;
}

.carousel-buttons button {
  width: 58px;
  height: 58px;
  color: var(--white);
  background: transparent;
  border: 3px solid var(--white);
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
}

.course-row,
.webinar-row,
.teacher-row,
.blog-row,
.archive-row {
  --carousel-gap: 18px;
  --carousel-gutter: 0px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (2 * var(--carousel-gap))) / 3);
  align-items: stretch;
  gap: var(--carousel-gap);
  padding: 8px 0 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.course-row::-webkit-scrollbar,
.webinar-row::-webkit-scrollbar,
.teacher-row::-webkit-scrollbar,
.blog-row::-webkit-scrollbar,
.archive-row::-webkit-scrollbar {
  display: none;
}

.course-card,
.archive-card,
.blog-grid article,
.blog-row article {
  background: var(--white);
  border: var(--border);
  box-shadow: 8px 8px 0 var(--black);
}

.course-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: none;
  min-width: 0;
  position: relative;
  color: var(--black);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.course-save,
.save-course,
.save-course-action,
button.save-course-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: var(--red);
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

button.save-course-action.is-favorited,
.save-course-action.is-favorited {
  color: var(--white);
  background: var(--red);
  border-color: var(--black);
}

button.save-course-action.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.course-save,
.save-course {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  width: 52px;
  padding: 0;
  text-decoration: none;
}

.course-card .course-save {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.carousel-shell {
  --carousel-side: 72px;
  position: relative;
  display: grid;
  grid-template-columns: var(--carousel-side) minmax(0, 1fr) var(--carousel-side);
  align-items: center;
}

.carousel-shell .course-row,
.carousel-shell .webinar-row,
.carousel-shell .teacher-row,
.carousel-shell .blog-row,
.carousel-shell .archive-row {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.carousel-shell .course-card,
.carousel-shell .webinar-card,
.carousel-shell .teacher-slide-card,
.carousel-shell .archive-card {
  box-shadow: 6px 6px 0 var(--black);
}

.carousel-shell .carousel-buttons {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 6px;
  pointer-events: none;
}

.carousel-shell .carousel-buttons button {
  pointer-events: auto;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  background: var(--white);
  color: var(--red);
  border-color: var(--black);
  box-shadow: 4px 4px 0 var(--black);
}

.course-visual {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  min-height: 0;
  align-content: end;
  padding: 22px;
  color: var(--red);
  background: var(--red);
  border-bottom: 3px solid var(--black);
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
}

.course-visual::before {
  content: "";
  position: absolute;
  inset: 68px auto -28px 50%;
  width: 180px;
  height: 240px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 20%, #303030 0 39px, transparent 40px),
    linear-gradient(#2d2d2d 0 0) center bottom / 140px 142px no-repeat;
  filter: grayscale(1);
}

.course-visual::after {
  content: "";
  position: absolute;
  inset: auto 36px 22px 36px;
  height: 72px;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.94);
}

.visual-saied::before {
  width: 190px;
  height: 230px;
  border-radius: 48% 48% 0 0;
  background:
    radial-gradient(circle at 50% 20%, #555 0 38px, transparent 39px),
    linear-gradient(#7b7b7b 0 0) center bottom / 150px 136px no-repeat;
}

.mini-logo,
.teacher,
.course-visual b {
  position: relative;
  z-index: 1;
}

.mini-logo {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--white);
  font-size: 20px;
  line-height: 0.9;
  font-weight: 800;
}

.teacher {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 7px 14px;
  color: var(--red);
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 28px;
  font-size: 15px;
  font-weight: 800;
}

.course-visual b {
  align-self: end;
  justify-self: center;
  max-width: 86%;
  color: var(--red);
  text-align: center;
  font-size: 27px;
  line-height: 1.24;
  font-weight: 800;
}

.course-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 250px;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.course-body h3,
.archive-card h3,
.blog-grid h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.28;
  font-weight: 800;
}

.blog-grid h3,
.articles-index-page .article-card h3,
.articles-index-page article h3,
.single-article-page .entry-title,
.single-article-page h1.entry-title {
  font-size: var(--rochi-fs-blog-title);
}

.course-body h3 {
  display: -webkit-box;
  min-height: calc(1.28em * 2);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.course-body h3 a {
  color: inherit;
  text-decoration: none;
}

.course-body h3 a:hover,
.course-body h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.course-body > p {
  display: -webkit-box;
  flex: 0 0 auto;
  min-height: calc(1.9em * 3);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.course-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 2px solid rgba(33, 27, 24, 0.16);
}

.course-meta span {
  color: var(--red);
  font-size: 24px;
  font-weight: 800;
}

.course-meta .rochi-price,
.course-meta-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4em;
}

.course-meta .rochi-price-was,
.course-meta-price .rochi-price-was {
  color: var(--ink-soft);
  font-size: 0.72em;
  font-weight: 700;
}

.course-meta .rochi-price-now,
.course-meta-price .rochi-price-now {
  color: var(--red);
  font-size: inherit;
  font-weight: 900;
}

.course-meta small {
  padding: 6px 12px;
  color: var(--ink-soft);
  background: var(--cream);
  border: 2px solid rgba(33, 27, 24, 0.2);
  font-size: 15px;
}

.course-link {
  align-self: flex-start;
  margin-top: 0;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.course-link:hover,
.course-link:focus {
  background: var(--red-dark);
  color: var(--white);
}

.archive-card a:hover,
.archive-card a:focus {
  background: var(--red-dark);
  color: var(--white);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.slider-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.slider-dots span.active {
  width: 34px;
  border-radius: 12px;
  background: var(--white);
}

.why-academy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
  margin-top: 72px;
  padding: 42px;
  color: var(--white);
  background: var(--red);
  border: var(--border);
  box-shadow: var(--shadow);
}

.why-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(42px, 4.4vw, 76px);
}

.why-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 22px;
  line-height: 1.7;
}

.why-copy li::before {
  content: "○";
  margin-left: 8px;
}

.why-image {
  margin: 0;
  padding: 18px;
  background: var(--white);
  border: 3px solid var(--black);
}

.why-image img {
  display: block;
  width: 100%;
}

.course-archive,
.consult-form,
.faq-section,
.blog-preview,
.webinar-preview,
.teachers-preview,
.learning-path-preview,
.rochi-templates-section {
  margin-top: 92px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 22px;
  font-weight: 800;
}

.section-link {
  align-self: center;
  color: var(--red);
  border-bottom: 4px solid var(--red);
  font-size: 20px;
  font-weight: 900;
}

/* Paths: bordered panel, cream field, left edge accent — not full-bleed */
.learning-path-preview {
  padding: 36px 36px 40px;
  background:
    linear-gradient(90deg, var(--red) 0 8px, transparent 8px),
    var(--cream);
  border: var(--border);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.learning-path-preview .section-head {
  margin-bottom: 28px;
}

.learning-path-preview .learning-path-grid {
  width: 100%;
  margin-inline: 0;
}

.learning-path-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: stretch;
}

.path-preview-copy,
.path-mini-map,
.learning-path-card,
.path-copy-card,
.path-buy-panel,
.path-detail-grid article {
  background: var(--paper);
  border: var(--border);
  box-shadow: 8px 8px 0 var(--black);
}

.path-preview-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 36px;
}

.path-preview-copy > span,
.path-copy-card > span {
  justify-self: start;
  padding: 8px 14px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  font-weight: 900;
}

.path-preview-copy h3,
.path-copy-card h1 {
  margin: 0;
  color: var(--red);
  font-size: clamp(40px, 5vw, 74px);
  line-height: 1.16;
}

.path-preview-copy p,
.path-copy-card p,
.path-buy-panel p,
.path-detail-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.9;
}

.path-price-strip {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 3px dashed rgba(33, 27, 24, 0.28);
}

.path-price-compare {
  display: grid;
  gap: 6px;
}

.path-price-compare small {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
}

.path-price-compare .path-price-was {
  color: #8a7c74;
  font-size: 20px;
  font-weight: 800;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
}

.path-price-compare .path-price-now {
  color: var(--black);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.2;
}

.path-price-strip small,
.path-buy-panel > span {
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 900;
}

.path-price-strip strong,
.path-buy-panel > strong {
  color: var(--black);
  font-size: clamp(28px, 3.2vw, 44px);
}

.path-buy-panel .path-price-compare small {
  color: rgba(255, 255, 255, 0.78);
}

.path-buy-panel .path-price-was {
  color: rgba(255, 255, 255, 0.72);
}

.path-buy-panel .path-price-now {
  color: var(--white);
}

.path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.path-mini-map,
.compact-path-map,
.path-map {
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-mini-map {
  display: grid;
  align-content: center;
  gap: 48px;
  padding: 34px;
  background:
    linear-gradient(135deg, var(--red) 0 46%, var(--paper) 46% 100%);
}

.path-mini-map li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
}

.path-mini-map li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  width: 28px;
  height: 34px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 34' fill='none'%3E%3Cpath d='M12 0h4v18H12z' fill='%23b3192d'/%3E%3Cpath d='M14 34 1 18h26L14 34z' fill='%23b3192d' stroke='%23211b18' stroke-width='2.5' stroke-linejoin='round'/%3E%3Crect x='11' y='0' width='6' height='19' fill='%23b3192d' stroke='%23211b18' stroke-width='2.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transform: translateX(-50%);
}

.path-mini-map b {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--black);
}

.path-mini-map span {
  color: var(--black);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
}

.webinar-preview {
  position: relative;
  padding: 46px;
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.16) 0 34%, transparent 34% 100%),
    var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.wave-courses .section-head.light {
  position: static;
}

.carousel-buttons.dark button,
.carousel-shell .carousel-buttons.dark button {
  color: var(--black);
  background: var(--cream);
  border-color: var(--black);
  box-shadow: 5px 5px 0 var(--black);
}

.teachers-preview {
  position: relative;
  padding: 46px;
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.12) 0 38%, transparent 38% 100%),
    var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.teacher-slide-card {
  box-sizing: border-box;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 330px;
  background: var(--paper);
  border: var(--border);
  box-shadow: 8px 8px 0 var(--black);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.teacher-slide-card.featured {
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.18) 0 42%, transparent 42% 100%),
    var(--paper);
}

.teacher-slide-card a {
  display: grid;
  height: 100%;
  gap: 16px;
  place-items: center;
  align-content: center;
  padding: 30px 26px;
  text-align: center;
}

.teacher-portrait {
  display: grid;
  width: 124px;
  height: 124px;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.35) 0 13px, transparent 14px),
    var(--red);
  border: 5px solid var(--black);
  border-radius: 50%;
  box-shadow: 8px 8px 0 var(--black);
  font-size: 58px;
  font-weight: 900;
}

.teacher-slide-card h3 {
  margin: 0;
  color: var(--red);
  font-size: 34px;
  line-height: 1.2;
}

.teacher-slide-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.8;
}

.webinar-card {
  box-sizing: border-box;
  width: auto;
  max-width: none;
  min-width: 0;
  display: grid;
  min-height: 360px;
  gap: 18px;
  align-content: start;
  padding: 28px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--white);
  border: var(--border);
  box-shadow: 7px 7px 0 var(--black);
}

.webinar-card.featured {
  background: var(--cream);
}

.webinar-card > span,
.webinar-status {
  justify-self: start;
  padding: 8px 14px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  font-size: 17px;
  font-weight: 800;
}

.webinar-card h3,
.webinar-list-card h2,
.webinar-detail-info h1,
.webinar-copy h2,
.webinar-agenda h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.18;
}

.webinar-card h3 {
  color: var(--red);
  font-size: 34px;
}

.webinar-card p,
.webinar-list-card p,
.webinar-detail-info p,
.webinar-copy p,
.webinar-copy li,
.webinar-agenda li,
.webinar-speaker small {
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.85;
}

.webinar-meta,
.webinar-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.webinar-meta b,
.webinar-meta small,
.webinar-list-meta span {
  padding: 8px 12px;
  background: var(--cream);
  border: 2px solid var(--black);
  font-size: 16px;
  font-weight: 800;
}

.webinar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.webinar-actions a,
.webinar-list-card a,
.webinar-register-box a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 18px;
  font-weight: 800;
}

.webinar-actions a:first-child,
.webinar-list-card a {
  color: var(--black);
  background: var(--white);
}

.webinar-actions a:last-child,
.webinar-register-box a {
  color: var(--white);
  background: var(--red);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.archive-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-row article {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 26px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--white);
  border: var(--border);
  box-shadow: 8px 8px 0 var(--black);
}

.blog-row article h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.45;
}

.blog-row article p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.archive-card,
.blog-grid article {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
}

.archive-row .archive-card {
  box-sizing: border-box;
  width: auto;
  max-width: none;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.archive-card .course-visual {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border: 3px solid var(--black);
}

.archive-card a,
.archive-card .btn {
  align-self: flex-start;
  margin-top: auto;
  text-align: center;
  justify-content: center;
}

.consult-form {
  padding: 46px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.consult-form form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.consult-form label {
  display: grid;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.consult-form .wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  color: var(--black);
  background: var(--white);
  border: 3px solid var(--black);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.consult-form button {
  grid-column: 1 / -1;
}

.home-consult-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
  min-height: 430px;
  padding: 58px;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--black) 0 52%, var(--red) 52% 100%);
  overflow: hidden;
}

.home-consult-cta::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, transparent 0 49%, rgba(255, 255, 255, 0.82) 49% 50.5%, transparent 50.5%),
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.16) 0 70px, transparent 72px),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.12) 0 90px, transparent 92px);
  pointer-events: none;
}

.home-consult-copy,
.home-consult-panel {
  position: relative;
  z-index: 1;
}

.home-consult-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
  max-width: 880px;
}

.home-consult-copy span {
  display: inline-flex;
  padding: 10px 16px;
  color: var(--black);
  background: var(--paper);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--red);
  font-size: 19px;
  font-weight: 900;
}

.home-consult-copy h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(48px, 5.8vw, 94px);
  line-height: 1.08;
  text-align: right;
}

.home-consult-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.9;
}

.home-consult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

.home-consult-actions .primary {
  color: var(--white);
  background: var(--red);
}

.home-consult-actions .ghost {
  color: var(--black);
  background: var(--white);
}

.home-consult-panel {
  display: grid;
  gap: 18px;
  place-items: center;
  min-height: 260px;
  padding: 34px;
  color: var(--red);
  text-align: center;
  background: var(--paper);
  border: 4px solid var(--black);
  box-shadow: 10px 10px 0 var(--black);
  transform: rotate(-2deg);
}

.home-consult-panel b {
  max-width: 420px;
  font-size: clamp(40px, 4vw, 68px);
  line-height: 1.16;
}

.home-consult-panel small {
  color: var(--black);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.8;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 54px;
  color: var(--white);
  background: var(--red);
  border: var(--border);
  box-shadow: var(--shadow);
}

.faq-section figure {
  margin: 0;
}

.faq-section img {
  display: block;
  width: 100%;
}

details {
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-bottom: 0;
}

details:last-child {
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
}

summary {
  padding: 17px 18px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

details p {
  padding: 0 18px 18px;
  color: var(--white);
}

.course-visual.big {
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.course-visual.has-cover-image {
  padding: 0;
  color: transparent;
  background: #211b18;
  background-image: none;
}

.course-visual.has-cover-image::before,
.course-visual.has-cover-image::after {
  display: none;
}

.course-visual.has-cover-image .mini-logo,
.course-visual.has-cover-image .teacher,
.course-visual.has-cover-image > b {
  display: none !important;
}

.course-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.course-visual.has-cover-image .course-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.rochi-single-product .course-visual.has-cover-image {
  background-image: none;
}

.price-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 78px;
  padding: 12px 20px;
  border: 3px dashed rgba(33, 27, 24, 0.25);
}

.price-box span {
  color: #a99d96;
}

.price-box strong,
.price-box .rochi-product-price {
  color: var(--black);
  font-size: 38px;
}

.rochi-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4em;
  line-height: 1.25;
}

.rochi-price-was {
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: line-through;
}

.rochi-price-now {
  font-weight: 900;
}

.rochi-price--sale .rochi-price-now {
  color: var(--red);
}

.rochi-price--free {
  font-weight: 900;
}

.course-list-card__price,
.archive-card__price {
  display: inline-flex;
  align-self: start;
  max-width: 100%;
  padding: 6px 10px;
  color: var(--white);
  background: var(--black);
  border: 2px solid var(--black);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.course-list-card__price .rochi-price,
.archive-card__price .rochi-price {
  color: inherit;
  font-size: inherit;
}

.course-list-card__price .rochi-price-was,
.archive-card__price .rochi-price-was {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.course-list-card__price .rochi-price-now,
.archive-card__price .rochi-price-now,
.course-list-card__price .rochi-price--free,
.archive-card__price .rochi-price--free {
  color: var(--white);
}

.rochi-product-price .rochi-price {
  font-size: inherit;
}

.rochi-product-price .rochi-price-was {
  font-size: 0.55em;
  color: #a99d96;
}

.rochi-product-price .rochi-price-now {
  color: var(--black);
  font-size: inherit;
}

.rochi-product-price .rochi-price--free {
  color: var(--black);
}

.buy-button {
  color: var(--white);
  background: var(--green);
}

.blog-thumb {
  display: block;
  width: 100%;
  min-height: 190px;
  overflow: hidden;
  border: 3px solid var(--black);
  background:
    linear-gradient(135deg, var(--red) 0 42%, transparent 42%),
    radial-gradient(circle at 52% 52%, var(--black) 0 42px, transparent 43px),
    var(--cream);
}

.blog-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.blog-thumb.alt {
  background:
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(33, 27, 24, 0.14) 28px 31px),
    var(--white);
}

.footer {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 0.8fr);
  gap: 34px;
  margin-top: 92px;
  padding: 48px;
  color: var(--white);
  background: var(--red-dark);
  border: var(--border);
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.footer p {
  color: var(--white);
  font-size: 17px;
}

.footer-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  height: fit-content;
  min-width: 0;
  padding: 14px 18px;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.footer-card p {
  margin: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-card p:last-child {
  white-space: normal;
}

.trust-mark {
  min-width: 0;
}

.trust-mark .enamad-seal {
  display: inline-grid;
  place-items: center;
  padding: 10px;
  background: var(--white);
  border: 3px solid rgba(255, 255, 255, 0.5);
  max-width: 100%;
  box-sizing: border-box;
}

.trust-mark .enamad-seal img {
  display: block;
  width: 125px;
  max-width: 100%;
  height: auto;
}

.consult-page .site-header {
  margin-bottom: 54px;
}

.consult-hero,
.consult-benefits,
.consult-process,
.consult-page-form,
.consult-faq {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

.consult-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 30px;
  align-items: stretch;
  min-height: 520px;
  padding: 54px;
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.2) 0 45%, transparent 45% 100%),
    var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.consult-hero-copy {
  display: grid;
  align-content: center;
  gap: 20px;
}

.consult-hero h1 {
  max-width: 1000px;
  margin: 0;
  color: var(--black);
  font-size: clamp(58px, 7vw, 128px);
  line-height: 1.05;
}

.consult-hero p,
.consult-benefit-grid p,
.consult-faq p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1.9;
}

.consult-hero-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 360px;
  padding: 30px;
  color: var(--white);
  text-align: center;
  background: var(--red);
  border: var(--border);
  box-shadow: 8px 8px 0 var(--black);
}

.consult-hero-panel b {
  display: grid;
  width: 110px;
  height: 110px;
  place-items: center;
  color: var(--red);
  background: var(--white);
  border: 4px solid var(--black);
  border-radius: 50%;
  font-size: 30px;
}

.consult-hero-panel strong {
  font-size: clamp(42px, 4.5vw, 76px);
  line-height: 1.05;
}

.consult-hero-panel span {
  font-size: 22px;
  font-weight: 800;
}

.consult-benefits,
.consult-process,
.consult-page-form,
.consult-faq {
  margin-top: 86px;
}

.consult-benefit-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.consult-benefit-grid article,
.process-grid div {
  min-height: 250px;
  padding: 28px;
  background: var(--white);
  border: var(--border);
  box-shadow: 7px 7px 0 var(--black);
}

.consult-benefit-grid article:nth-child(2),
.process-grid div:nth-child(2) {
  background: var(--cream);
}

.consult-benefit-grid h3 {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 36px;
  line-height: 1.15;
}

.consult-process {
  padding: 42px;
  color: var(--white);
  background: var(--red);
  border: var(--border);
  box-shadow: var(--shadow);
}

.process-grid div {
  display: grid;
  align-content: center;
  gap: 18px;
  color: var(--black);
  background: var(--white);
  text-align: center;
}

.process-grid b {
  color: var(--red);
  font-size: 46px;
  line-height: 1;
}

.process-grid span {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
}

.consult-page-form {
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(179, 25, 45, 0.12) 58% 100%),
    var(--white);
}

.consult-faq {
  padding: 46px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 0;
}

.consult-faq details {
  border: 3px solid var(--black);
  border-bottom: 0;
}

.consult-faq details:last-child {
  border-bottom: 3px solid var(--black);
}

.consult-faq summary {
  color: var(--black);
  background: var(--cream);
}

.consult-faq details[open] summary {
  color: var(--white);
  background: var(--red);
}

.consult-faq p {
  padding: 0 18px 20px;
  color: var(--ink-soft);
  background: var(--white);
}

.account-page .site-header,
.dashboard-page .site-header {
  margin-bottom: 54px;
}

.account-layout,
.dashboard-shell {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

body.woocommerce-account .dashboard-shell,
body.woocommerce-account .account-layout {
  width: min(var(--max), calc(100% - 56px));
  max-width: var(--max);
  margin-inline: auto;
}

.account-note span,
.dashboard-section p,
.dashboard-section li {
  margin: 0;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.9;
}

.account-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  margin-top: 0;
}

.signup-card,
.login-card,
.dashboard-sidebar,
.dashboard-hero,
.dashboard-section {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.signup-card,
.login-card {
  padding: 38px;
}

.signup-card .section-head h2 {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.15;
  white-space: nowrap;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.account-form label {
  display: grid;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.account-form .wide {
  grid-column: 1 / -1;
}

.account-submit {
  display: inline-flex;
  grid-column: 1 / -1;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  font-size: 20px;
  font-weight: 800;
}

.account-submit.secondary {
  background: var(--black);
}

button.account-submit {
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.login-card {
  align-self: start;
  display: grid;
  gap: 26px;
  background: var(--cream);
}

.login-card h2,
.dashboard-section h2 {
  margin: 0;
  color: var(--red);
  font-size: 40px;
  line-height: 1.15;
}

.compact-form {
  grid-template-columns: 1fr;
}

.account-note {
  display: grid;
  gap: 10px;
  padding: 22px;
  background: var(--white);
  border: 3px solid var(--black);
}

.account-note b {
  color: var(--red);
  font-size: 24px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 80px;
}

.dashboard-sidebar {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 22px;
  padding: 24px;
  min-width: 0;
  align-content: start;
  align-items: stretch;
  grid-auto-rows: min-content;
}

.student-card {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  flex: 0 0 auto;
  width: 100%;
  height: auto !important;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 16px 18px;
  background: var(--red);
  color: var(--white);
  border: 3px solid var(--black);
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  box-sizing: border-box;
}

.student-card b,
.student-card strong,
.student-card span:not(.student-card__hello) {
  display: none !important;
}

.student-card__hello {
  display: block !important;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.dashboard-sidebar nav,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-items: stretch;
}

.dashboard-sidebar nav a,
.woocommerce-MyAccount-navigation a,
.woocommerce-MyAccount-navigation li,
.woocommerce-MyAccount-navigation li a {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 14px;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  color: var(--black);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.woocommerce-MyAccount-navigation li {
  box-shadow: none;
  border: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
}

.dashboard-sidebar nav a.active,
.woocommerce-MyAccount-navigation a.active,
.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation li.is-active a {
  color: var(--white);
  background: var(--red);
}

.dashboard-content {
  display: grid;
  gap: 46px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.16) 0 46%, transparent 46% 100%),
    var(--white);
}

.dashboard-hero > div > span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 22px;
  font-weight: 800;
}

.dashboard-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 5vw, 82px);
  line-height: 1.1;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dashboard-stats div {
  display: grid;
  min-width: 128px;
  min-height: 128px;
  place-items: center;
  padding: 16px;
  text-align: center;
  background: var(--cream);
  border: 3px solid var(--black);
}

.dashboard-stats b {
  color: var(--red);
  font-size: 44px;
  line-height: 1;
}

.dashboard-stats span {
  font-size: 17px;
  font-weight: 800;
}

.dashboard-section {
  display: grid;
  gap: 24px;
  padding: 34px;
}

.my-course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.my-course-grid article {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--cream);
  border: 3px solid var(--black);
  overflow: hidden;
}

.my-course-grid .course-visual {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border: 3px solid var(--black);
  overflow: hidden;
}

.my-course-grid .course-visual::before,
.my-course-grid .course-visual::after,
.saved-grid .course-visual::before,
.saved-grid .course-visual::after,
.rochi-favorites-grid .course-visual::before,
.rochi-favorites-grid .course-visual::after {
  display: none;
}

.my-course-grid h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.progress-line {
  height: 18px;
  background: var(--white);
  border: 3px solid var(--black);
}

.progress-line span {
  display: block;
  height: 100%;
  background: var(--red);
}

.my-course-grid a,
.dashboard-link,
.certificate-card a {
  justify-self: start;
  padding-bottom: 4px;
  color: var(--red);
  border-bottom: 3px solid currentColor;
  font-size: 20px;
  font-weight: 800;
}

.saved-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.saved-grid article {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--cream);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
}

.saved-grid b {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: var(--white);
  border: 3px solid var(--black);
  font-size: 24px;
}

.saved-grid h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.saved-grid a {
  justify-self: start;
  padding-bottom: 4px;
  color: var(--red);
  border-bottom: 3px solid currentColor;
  font-size: 20px;
  font-weight: 800;
}

.two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.two-columns article {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: var(--paper);
  border: 3px solid var(--black);
}

.order-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  padding: 12px 0;
  border-bottom: 2px solid rgba(33, 27, 24, 0.16);
  font-size: 18px;
}

.order-row b,
.order-row strong {
  color: var(--red);
}

.certificate-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--white);
  border: 3px dashed var(--red);
}

.certificate-card b {
  color: var(--red);
  font-size: 22px;
}

.dashboard-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 24px 0 0;
}

.archive-page .site-header,
.contact-page .site-header {
  margin-bottom: 54px;
}

.page-hero,
.archive-title,
.archive-toolbar,
.course-listing-grid,
.webinar-grid,
.article-layout,
.contact-layout,
.learning-path-grid,
.path-shell {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

.learning-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.learning-paths-page .page-hero,
.paths-landing-hero {
  margin-top: 48px;
  margin-bottom: 42px;
}

.paths-landing-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.paths-landing-points div {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--paper);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
}

.paths-landing-points b {
  color: var(--red);
  font-size: 22px;
}

.paths-landing-points span {
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
}

.learning-path-card {
  display: grid;
  gap: 26px;
  min-height: 560px;
  padding: 34px;
}

/* Templates home: open section, vertical download tiles — distinct from paths panel */
.rochi-templates-section {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.rochi-templates-section .section-head {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--black);
}

.rochi-templates-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.rochi-template-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  min-width: 0;
  height: 100%;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  overflow: hidden;
}

.rochi-template-tile__media {
  display: block;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(33, 27, 24, 0.06),
      rgba(33, 27, 24, 0.06) 10px,
      transparent 10px,
      transparent 20px
    ),
    var(--paper);
  border-bottom: 3px solid var(--black);
  overflow: hidden;
}

.rochi-template-tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rochi-template-tile__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cream);
}

.rochi-template-tile__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
  padding: 18px;
}

.rochi-template-tile__price {
  align-self: flex-start;
  display: inline-flex;
  max-width: 100%;
  padding: 6px 10px;
  color: var(--white);
  background: var(--black);
  border: 2px solid var(--black);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.rochi-template-tile__price .rochi-price {
  color: inherit;
  font-size: inherit;
}

.rochi-template-tile__price .rochi-price-was {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.rochi-template-tile__price .rochi-price-now {
  color: var(--white);
}

.rochi-template-tile__body h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.rochi-template-tile__body h3 a {
  color: var(--red);
  text-decoration: none;
}

.rochi-template-tile__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.rochi-template-tile__body .btn {
  width: 100%;
  margin-top: auto;
  text-align: center;
  justify-content: center;
}

@media (max-width: 1180px) {
  .rochi-templates-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .learning-path-preview {
    padding: 22px;
  }

  .rochi-templates-rail {
    grid-template-columns: 1fr;
  }
}

.learning-path-card.featured {
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.18) 0 40%, transparent 40% 100%),
    var(--paper);
}

.learning-path-card h2 {
  margin: 12px 0;
  color: var(--red);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.2;
}

.learning-path-card p {
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.8;
}

.compact-path-map {
  counter-reset: compact-step;
  display: grid;
  gap: 44px;
  align-content: center;
}

.compact-path-map li {
  counter-increment: compact-step;
  position: relative;
  padding: 20px 48px 18px 18px;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.compact-path-map li::before {
  content: counter(compact-step);
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--black);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.compact-path-map li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  width: 26px;
  height: 32px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 34' fill='none'%3E%3Cpath d='M12 0h4v18H12z' fill='%23b3192d'/%3E%3Cpath d='M14 34 1 18h26L14 34z' fill='%23b3192d' stroke='%23211b18' stroke-width='2.5' stroke-linejoin='round'/%3E%3Crect x='11' y='0' width='6' height='19' fill='%23b3192d' stroke='%23211b18' stroke-width='2.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transform: translateX(-50%);
}

.learning-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  align-self: end;
  padding-top: 18px;
  border-top: 3px solid var(--black);
}

.learning-card-footer .path-price-compare {
  gap: 4px;
}

.learning-card-footer .path-price-was {
  font-size: 17px;
}

.learning-card-footer .path-price-now {
  font-size: 28px;
}

.learning-card-footer small {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
}

.learning-card-footer strong {
  color: var(--black);
  font-size: 28px;
}

.learning-card-footer a {
  color: var(--red);
  border-bottom: 4px solid var(--red);
  font-size: 20px;
  font-weight: 900;
}

.paths-wp-note {
  width: min(var(--max), calc(100% - 56px));
  margin: 48px auto 0;
  padding: 36px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.paths-wp-note h2 {
  margin: 0 0 14px;
  color: var(--red);
  font-size: clamp(28px, 3vw, 42px);
}

.paths-wp-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.9;
}

.archive-title {
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 4px solid var(--black);
}

.archive-title h1 {
  margin: 0;
  color: var(--red);
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.2;
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.courses-landing-page .archive-empty-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  color: #5a667c;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  font-size: 18px;
  font-weight: 700;
}

.articles-index-page .archive-title p {
  margin: 12px 0 0;
  color: #5a667c;
  font-size: 18px;
  line-height: 1.7;
}

.page-hero {
  display: grid;
  gap: 18px;
  padding: 48px;
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.16) 0 44%, transparent 44% 100%),
    var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.page-hero span {
  justify-self: start;
  padding: 10px 18px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 20px;
  font-weight: 800;
}

.page-hero h1 {
  max-width: 1050px;
  margin: 0;
  color: var(--red);
  font-size: clamp(54px, 7vw, 112px);
  line-height: 1.05;
}

.page-hero p,
.course-list-card p,
.article-card p,
.article-sidebar a,
.contact-info-grid p,
.contact-info-grid span {
  margin: 0;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.9;
}

.course-list-card p,
.course-body p,
.archive-card p,
.product-info p,
.rochi-single-product .woocommerce-product-details__short-description,
.rochi-single-product .woocommerce-product-details__short-description p {
  font-size: var(--rochi-fs-course-desc);
}

.article-card h2,
.blog-grid h3,
.single-article-hero h1 {
  font-size: var(--rochi-fs-blog-title);
}

.article-card p,
.blog-grid p,
.single-article-hero p,
.single-article-content,
.single-article-content p,
.single-article-page .entry-content,
.single-article-page .entry-content p {
  font-size: var(--rochi-fs-blog-body);
}

.compact-page-hero {
  min-height: 380px;
  align-content: center;
}

.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 56px;
}

.archive-toolbar button {
  min-height: 54px;
  padding: 12px 20px;
  color: var(--black);
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 18px;
  font-weight: 800;
}

.archive-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 20px;
  color: var(--black);
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

.archive-toolbar button.active {
  color: var(--white);
  background: var(--red);
}

.archive-toolbar a.active,
.archive-toolbar a:hover {
  color: var(--white);
  background: var(--red);
}

.course-listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 38px;
}

.course-list-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
  min-height: 0;
  padding: 26px;
  background: var(--white);
  border: var(--border);
  box-shadow: 7px 7px 0 var(--black);
  overflow: hidden;
}

.course-list-card.featured {
  grid-column: 1 / -1;
  background: var(--cream);
}

.course-list-card .course-visual {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  height: auto;
  justify-self: stretch;
  align-self: center;
  padding: 0;
  border: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
  box-sizing: border-box;
}

/* Decorative overlays belong to empty prototypes — never on listing cards. */
.course-list-card .course-visual::before,
.course-list-card .course-visual::after {
  content: none;
  display: none;
}

.course-list-card > div:last-child {
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 16px;
  min-width: 0;
  height: 100%;
}

.course-list-card__cta {
  margin-top: auto;
}

.webinar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 38px;
}

.webinar-list-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  min-height: 0;
  padding: 26px;
  background: var(--white);
  border: var(--border);
  box-shadow: 7px 7px 0 var(--black);
  overflow: hidden;
}

.webinar-list-card.featured {
  grid-column: 1 / -1;
  background: var(--cream);
}

.webinar-list-card > div:last-child {
  display: grid;
  align-content: center;
  gap: 16px;
  min-width: 0;
}

.webinar-list-card h2 {
  color: var(--red);
  font-size: 36px;
}

.webinar-poster,
.webinar-detail-poster {
  position: relative;
  display: grid;
  min-height: 260px;
  align-content: end;
  gap: 18px;
  padding: 24px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 44%, transparent 44% 100%),
    var(--red);
  border: 3px solid var(--black);
  overflow: hidden;
}

.webinar-poster::before,
.webinar-detail-poster::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  width: 86px;
  height: 86px;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
}

.webinar-poster.alt,
.webinar-detail-poster.alt {
  color: var(--black);
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.16) 0 44%, transparent 44% 100%),
    var(--cream);
}

.webinar-poster.dark,
.webinar-detail-poster.dark {
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.44) 0 44%, transparent 44% 100%),
    var(--black);
}

.webinar-poster span,
.webinar-detail-poster span {
  position: relative;
  z-index: 1;
  justify-self: start;
  padding: 8px 14px;
  color: var(--red);
  background: var(--white);
  border: 3px solid var(--black);
  font-size: 18px;
  font-weight: 900;
}

.webinar-poster b,
.webinar-detail-poster b {
  position: relative;
  z-index: 1;
  font-size: 38px;
  line-height: 1.2;
}

.course-type {
  justify-self: start;
  padding: 8px 14px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  font-size: 18px;
  font-weight: 800;
}

.course-list-card h2,
.article-card h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.article-card h2 {
  font-size: var(--rochi-fs-blog-title);
}

.course-list-card a:not(.course-visual):not(.save-course):not(.btn),
.article-card > a:not(.blog-thumb),
.sidebar-cta a {
  justify-self: start;
  padding-bottom: 5px;
  color: var(--red);
  border-bottom: 3px solid currentColor;
  font-size: 20px;
  font-weight: 800;
}

.course-list-card .course-title-link {
  border-bottom-width: 2px;
}

.course-list-card .course-visual,
.course-list-card .course-visual:hover,
.course-list-card .course-visual:focus {
  color: inherit;
  border-bottom: 3px solid var(--black);
  font-size: inherit;
  font-weight: inherit;
  padding-bottom: 0;
  text-decoration: none;
}

.article-card a.blog-thumb {
  justify-self: stretch;
  width: 100%;
  padding: 0;
  color: inherit;
  border-bottom: 0;
  text-decoration: none;
  overflow: hidden;
}

.article-card h2 a {
  color: inherit;
  border-bottom: 0;
  text-decoration: none;
  font-size: inherit;
  font-weight: inherit;
  padding: 0;
}

.course-list-card .save-course {
  justify-self: auto;
  padding: 0;
  color: var(--red);
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 24px;
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  margin-top: 40px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.article-card,
.article-sidebar,
.contact-info-grid article {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: var(--white);
  border: var(--border);
  box-shadow: 7px 7px 0 var(--black);
}

.article-card {
  gap: 12px;
  padding: 18px;
  align-content: start;
  height: auto;
}

.article-card a.blog-thumb {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.article-card a.blog-thumb img {
  min-height: 0;
  aspect-ratio: auto;
}

.article-card h2 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
}

.article-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.7;
}

.article-card:nth-child(2n),
.contact-info-grid article:nth-child(2) {
  background: var(--cream);
}

.article-card > span {
  justify-self: start;
  padding: 7px 12px;
  color: var(--white);
  background: var(--black);
  border: 3px solid var(--black);
  font-size: 17px;
  font-weight: 800;
}

.article-sidebar {
  align-self: start;
  position: sticky;
  top: 28px;
  background: var(--cream);
}

.article-sidebar .rochi-sidebar-block {
  display: grid;
  gap: 0;
}

.article-sidebar .rochi-sidebar-block + .rochi-sidebar-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid rgba(33, 27, 24, 0.12);
}

.article-sidebar h2,
.contact-info-grid h2 {
  margin: 0;
  color: var(--red);
  font-size: 34px;
  line-height: 1.15;
}

.article-sidebar > a,
.article-sidebar .rochi-sidebar-block > a {
  padding: 13px 0;
  border-bottom: 2px solid rgba(33, 27, 24, 0.2);
  font-weight: 800;
}

.rochi-sidebar-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.rochi-sidebar-search input {
  min-height: 44px;
  padding: 8px 12px;
  border: 3px solid var(--black);
  font-weight: 700;
}

.rochi-sidebar-search button {
  min-height: 44px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  font-weight: 900;
  cursor: pointer;
}

.sidebar-cta {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 18px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
}

.sidebar-cta b {
  font-size: 22px;
  line-height: 1.5;
}

.sidebar-cta a {
  color: var(--white);
}

.single-article-shell {
  width: min(var(--max), calc(100% - 56px));
  margin: 54px auto 90px;
}

.single-article-breadcrumbs {
  margin: 0 0 22px;
  padding-inline: 2px;
}

.single-article-hero {
  display: grid;
  gap: 36px;
  padding: 46px;
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.16) 0 38%, transparent 38% 100%),
    var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: visible;
}

.single-article-hero.alt {
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.22) 0 48%, transparent 48% 100%),
    var(--cream);
}

.single-article-hero > span {
  justify-self: start;
  padding: 8px 14px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  font-size: 18px;
  font-weight: 900;
}

.single-article-hero h1 {
  max-width: 1000px;
  margin: 0;
  padding-top: 0.2em;
  color: var(--red);
  font-size: var(--rochi-fs-blog-title);
  line-height: 1.28;
  overflow: visible;
}

.single-article-hero .single-feature-image {
  margin: 0;
}

.single-article-hero .single-feature-image + h1,
.single-article-hero .single-feature-image + .elementor-widget-container h1,
.single-article-hero h1 {
  margin-top: 8px;
}

.single-article-hero p {
  max-width: 900px;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--rochi-fs-blog-body);
  font-weight: 800;
  line-height: 1.9;
}

.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-meta-line b {
  padding: 9px 14px;
  color: var(--black);
  background: var(--paper);
  border: 3px solid var(--black);
  font-size: 17px;
}

.single-feature-image {
  min-height: clamp(260px, 28vw, 420px);
  border: 4px solid var(--black);
  background:
    linear-gradient(135deg, var(--red) 0 42%, transparent 42%),
    radial-gradient(circle at 52% 52%, var(--black) 0 58px, transparent 59px),
    var(--cream);
}

.single-feature-image.alt {
  background:
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(33, 27, 24, 0.14) 36px 40px),
    linear-gradient(135deg, rgba(179, 25, 45, 0.18) 0 44%, transparent 44%),
    var(--white);
}

.single-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
  margin-top: 34px;
}

.single-article-content,
.single-article-sidebar section {
  background: var(--white);
  border: var(--border);
  box-shadow: 7px 7px 0 var(--black);
}

.single-article-content {
  display: grid;
  gap: 22px;
  padding: 42px;
}

.single-article-content h2 {
  margin: 0;
  color: var(--black);
  font-size: 40px;
  line-height: 1.25;
}

.single-article-content p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 21px;
  font-weight: 700;
  line-height: 2.15;
}

.single-article-content ul,
.single-article-content ol {
  margin: 0;
  padding-inline-start: 1.4em;
  color: var(--ink-soft);
  font-size: 21px;
  font-weight: 700;
  line-height: 2.15;
}

.single-article-content img,
.single-article-content figure {
  max-width: 100%;
  height: auto;
  border: 3px solid var(--black);
}

.single-article-content a {
  color: var(--red);
  font-weight: 900;
}

.single-article-content blockquote {
  margin: 10px 0;
  padding: 24px;
  color: var(--red);
  background: var(--cream);
  border: 4px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.8;
}

.inline-article-cta {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 28px;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--black) 0 52%, var(--red) 52% 100%);
  border: 4px solid var(--black);
  box-shadow: 7px 7px 0 var(--black);
}

.inline-article-cta h2,
.inline-article-cta p {
  color: var(--white);
}

.inline-article-cta a {
  justify-self: start;
  padding: 12px 20px;
  color: var(--black);
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 19px;
  font-weight: 900;
}

.single-article-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 22px;
}

.single-article-sidebar section,
.single-article-sidebar .rochi-sidebar-block {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.single-article-sidebar h2 {
  margin: 0;
  color: var(--red);
  font-size: 30px;
  line-height: 1.2;
}

.single-article-sidebar a {
  padding-bottom: 10px;
  color: var(--black);
  border-bottom: 2px solid rgba(33, 27, 24, 0.18);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.7;
}

.single-article-sidebar .sidebar-cta {
  color: var(--white);
  background: var(--red);
}

.single-article-sidebar .sidebar-cta a {
  color: var(--white);
  border-color: currentColor;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: start;
  margin-top: 42px;
}

.contact-info-grid {
  display: grid;
  gap: 22px;
}

.contact-info-grid p {
  color: var(--black);
  font-weight: 800;
}

.contact-layout .consult-form,
.contact-layout .contact-form {
  width: auto;
  max-width: none;
  margin-inline: 0;
  margin-top: 0;
}

.contact-form {
  margin-top: 0;
}

.course-product-page .site-header {
  margin-bottom: 54px;
}

.product-shell,
.webinar-shell {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto 80px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 17px;
}

.breadcrumbs > * {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs > *:not(:last-child)::after {
  content: "←";
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
}

.breadcrumbs a,
.breadcrumbs strong {
  color: var(--red);
}

.path-product-page .site-header {
  margin-bottom: 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 900;
}

.breadcrumb a,
.breadcrumb strong {
  color: var(--red);
}

.path-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  gap: 28px;
  align-items: stretch;
}

.path-copy-card {
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: 520px;
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.14) 0 42%, transparent 42% 100%),
    var(--white);
}

.path-product-note {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 3px dashed rgba(33, 27, 24, 0.32);
}

.path-product-note b {
  color: var(--black);
  font-size: 23px;
}

.path-product-note small {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
}

.path-buy-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 30px;
  background: var(--red);
}

/* Secondary CTA under buy was redundant / often empty on path singles. */
.path-buy-panel > a.btn.ghost {
  display: none !important;
}

.path-buy-panel > span,
.path-buy-panel p {
  color: var(--white);
}

.path-buy-panel > strong {
  color: var(--white);
  line-height: 1.35;
}

.path-include-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-include-list li {
  position: relative;
  padding: 10px 16px 10px 14px;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  font-size: 18px;
  font-weight: 800;
}

.path-include-list li::before {
  content: "✓";
  margin-left: 10px;
  color: var(--red);
  font-weight: 900;
}

.path-map-section,
.path-detail-grid {
  margin-top: 80px;
}

.path-map-section {
  padding: 44px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.path-map {
  display: grid;
  gap: 84px;
  max-width: 920px;
  margin-inline: auto;
}

.path-step {
  position: relative;
}

.path-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 2;
  width: 40px;
  height: 68px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 68' fill='none'%3E%3Crect x='15' y='1' width='10' height='42' fill='%23b3192d' stroke='%23211b18' stroke-width='3'/%3E%3Cpath d='M20 66 2 40h36L20 66z' fill='%23b3192d' stroke='%23211b18' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transform: translateX(-50%);
}

.path-step article {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--paper);
  border: var(--border);
  box-shadow: 8px 8px 0 var(--black);
}

.path-step:nth-child(even) article {
  background: var(--white);
}

.path-step-visual {
  min-height: 220px;
  border-left: 3px solid var(--black);
}

.path-step-visual .mini-logo,
.path-step-visual > b {
  display: none;
}

.path-step-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
}

.path-step span {
  justify-self: start;
  padding: 8px 14px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  font-weight: 900;
}

.path-step h3 {
  margin: 0;
  color: var(--black);
  font-size: clamp(28px, 3.2vw, 44px);
}

.path-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.8;
}

.path-step a {
  justify-self: start;
  color: var(--red);
  border-bottom: 4px solid var(--red);
  font-size: 18px;
  font-weight: 900;
}

.path-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.path-detail-grid article {
  min-height: 310px;
  padding: 30px;
}

.path-detail-grid h2 {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 30px;
}

.product-hero {
  --product-panel-height: clamp(410px, 32vw, 500px);
  display: grid !important;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.2fr) minmax(200px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: visible;
}

.webinar-detail-page .site-header {
  margin-bottom: 54px;
}

.webinar-detail-hero {
  display: grid;
  grid-template-columns: 0.85fr minmax(0, 1.15fr) 0.76fr;
  gap: 24px;
  align-items: stretch;
  padding: 32px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.webinar-detail-poster {
  min-height: 430px;
}

.webinar-detail-info {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
}

.webinar-detail-info h1 {
  color: var(--red);
  font-size: clamp(38px, 4.6vw, 78px);
}

.webinar-speaker {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--cream);
  border: 3px solid var(--black);
}

.webinar-speaker b {
  display: block;
  color: var(--black);
  font-size: 21px;
}

.webinar-register-box {
  display: grid;
  align-content: stretch;
  background: var(--paper);
  border: 3px solid var(--black);
}

.webinar-register-box div {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 108px;
  padding: 18px;
  border-bottom: 2px solid rgba(33, 27, 24, 0.18);
}

.webinar-register-box span {
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 800;
}

.webinar-register-box b {
  color: var(--black);
  font-size: 21px;
  line-height: 1.6;
}

.webinar-register-box a {
  align-self: end;
  margin: 18px;
}

.webinar-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  margin-top: 42px;
}

.webinar-copy,
.webinar-agenda {
  padding: 34px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.webinar-copy {
  display: grid;
  gap: 18px;
}

.webinar-copy h2,
.webinar-agenda h2 {
  color: var(--red);
  font-size: 38px;
}

.webinar-copy ul,
.webinar-agenda ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 26px 0 0;
}

.webinar-agenda {
  background: var(--cream);
}

.webinar-agenda li::marker {
  color: var(--red);
  font-weight: 900;
}

.benefit-list {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  align-self: stretch;
  height: 100%;
  min-height: var(--product-panel-height);
  min-width: 0;
  background: var(--paper);
  border: 3px solid var(--black);
  overflow: hidden;
}

.benefit-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: 10px 14px;
  border-bottom: 2px solid rgba(33, 27, 24, 0.18);
}

.benefit-list div:last-child {
  border-bottom: 0;
}

.benefit-list b {
  box-sizing: border-box;
  display: grid;
  flex: none;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 4px;
  color: var(--red);
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}

.benefit-list span {
  min-width: 0;
  color: #5a667c;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rochi-single-product .benefit-list b {
  width: 54px;
  height: 54px;
  font-size: 11px;
}

.product-info {
  display: grid;
  align-content: start;
  align-self: stretch;
  gap: 14px;
  min-width: 0;
  min-height: var(--product-panel-height);
  overflow: visible;
  padding-block: 4px;
}

.product-info h1 {
  margin: 0;
  color: var(--red);
  font-size: clamp(28px, 2.8vw, 48px);
  line-height: 1.2;
  font-weight: 800;
}

.product-info p,
.product-about p,
.curriculum-section .section-head p,
.teacher-card p {
  margin: 0;
  color: #5a667c;
  font-size: var(--rochi-fs-course-desc);
  line-height: 1.75;
}

.social-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 16px;
  color: #5a667c;
  background: var(--paper);
  border: 3px solid rgba(33, 27, 24, 0.3);
  font-size: 16px;
}

.social-proof span {
  color: #15a052;
  font-weight: 800;
}

.product-price {
  min-height: 62px;
  border-style: solid;
  border-color: rgba(33, 27, 24, 0.3);
}

.installment-note {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  min-height: 0;
  padding: 14px 16px;
  color: #5a667c;
  background: var(--white);
  border: 3px solid rgba(33, 27, 24, 0.3);
}

.installment-note b {
  color: var(--black);
  line-height: 1.4;
}

.installment-note span {
  display: block;
  line-height: 1.6;
}

.product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 12px;
  min-width: 0;
}

.product-actions .buy-button,
.product-actions .save-course-action {
  min-width: 0;
  min-height: 58px;
  padding: 12px 14px;
  text-align: center;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.preview-button,
.save-course-action {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: var(--black);
  background: var(--white);
  border: 3px solid #9aa4b7;
  box-shadow: 5px 5px 0 var(--black);
  font-size: 18px;
  font-weight: 800;
}

.product-video {
  position: relative;
  display: grid;
  align-self: start;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 4px solid var(--black);
  box-shadow: 8px 8px 0 var(--black);
}

.shop-shell {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto 90px;
}

/* WooCommerce cart uses .rochi-cart-layout — not the nested shortcode wrapper grid */
body.woocommerce-cart .shop-shell .cart-layout-host > .woocommerce,
body.woocommerce-checkout .shop-shell .checkout-layout-host > .woocommerce {
  display: block;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.rochi-cart-layout.cart-layout,
.rochi-checkout-layout.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.rochi-cart-layout .cart-panel,
.rochi-checkout-layout .checkout-main .checkout-box,
.rochi-checkout-layout .checkout-form {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.rochi-cart-layout .cart-panel {
  padding: 30px;
  height: 100%;
  box-sizing: border-box;
}

.rochi-cart-layout .cart-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 22px;
}

.rochi-cart-layout .cart-actions label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 800;
}

.rochi-cart-layout .cart-actions input.input-text {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 12px 14px;
  border: 3px solid var(--black);
  background: var(--paper);
  font-size: 17px;
  font-weight: 700;
  box-sizing: border-box;
}

.rochi-cart-layout .cart-actions .button,
.rochi-cart-layout .cart-actions button {
  min-height: 54px;
  margin: 0;
  padding: 10px 18px;
  color: var(--black);
  background: var(--cream);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  border-radius: 0;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.rochi-cart-layout .cart-actions .ghost-action {
  background: var(--white);
}

.rochi-cart-layout .cart-summary,
.rochi-checkout-layout .order-review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.rochi-checkout-layout .order-review {
  position: sticky;
  top: 110px;
  height: auto;
  min-height: 0;
}

.rochi-cart-layout .cart-summary .cart_totals {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 16px;
  height: 100%;
  min-height: 100%;
}

.rochi-cart-layout .cart-summary h2,
.rochi-checkout-layout .order-review h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.rochi-cart-layout .summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
  font-size: 18px;
  font-weight: 700;
}

.rochi-cart-layout .summary-row.total {
  border-bottom: 0;
  font-size: 22px;
}

.rochi-cart-layout .wc-proceed-to-checkout {
  margin-top: auto;
  display: grid;
  width: 100%;
  padding-top: 12px;
}

.rochi-cart-layout .checkout-button {
  display: inline-flex;
  width: 100%;
  box-sizing: border-box;
}

/* Cart / checkout primary CTAs — override Woo purple .button.alt */
body.woocommerce-cart .woocommerce a.checkout-button.button.alt,
body.woocommerce-cart .woocommerce a.checkout-button,
body.woocommerce-cart .cart-summary .checkout-button,
body.woocommerce-checkout .woocommerce button#place_order,
body.woocommerce-checkout .woocommerce #place_order,
body.woocommerce-checkout .woocommerce button.button.alt,
body.woocommerce-checkout .order-review .place-order button,
body.woocommerce-checkout .order-review button[type="submit"],
.rochi-cart-layout .checkout-button.button.alt,
.rochi-checkout-layout #place_order {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 16px 22px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--white) !important;
  background: var(--green) !important;
  border: 3px solid var(--black) !important;
  border-radius: 0 !important;
  box-shadow: 7px 7px 0 var(--black) !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  cursor: pointer !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

body.woocommerce-cart .woocommerce a.checkout-button.button.alt:hover,
body.woocommerce-cart .woocommerce a.checkout-button:hover,
body.woocommerce-cart .cart-summary .checkout-button:hover,
body.woocommerce-checkout .woocommerce button#place_order:hover,
body.woocommerce-checkout .woocommerce #place_order:hover,
body.woocommerce-checkout .woocommerce button.button.alt:hover,
body.woocommerce-checkout .order-review .place-order button:hover,
.rochi-cart-layout .checkout-button.button.alt:hover,
.rochi-checkout-layout #place_order:hover {
  background: var(--green-dark) !important;
  color: var(--white) !important;
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--black) !important;
}

/* Cart head «ادامه انتخاب دوره» — same green family */
body.woocommerce-cart .cart-head a,
body.woocommerce-cart .rochi-cart-layout .cart-head a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: var(--white) !important;
  background: var(--green) !important;
  border: 3px solid var(--black) !important;
  box-shadow: 5px 5px 0 var(--black) !important;
  border-radius: 0;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

body.woocommerce-cart .cart-head a:hover {
  background: var(--green-dark) !important;
}

/* Coupon / update cart secondary buttons */
body.woocommerce-cart .rochi-cart-layout .cart-actions .button,
body.woocommerce-cart .rochi-cart-layout .cart-actions button {
  min-height: 54px;
  color: var(--black) !important;
  background: var(--white) !important;
  border: 3px solid var(--black) !important;
  box-shadow: 5px 5px 0 var(--black) !important;
}

body.woocommerce-cart .rochi-cart-layout .cart-actions .button[name="apply_coupon"],
body.woocommerce-cart .rochi-cart-layout .cart-actions button[name="apply_coupon"] {
  color: var(--white) !important;
  background: var(--green) !important;
}

body.woocommerce-cart .rochi-cart-layout .cart-actions .button[name="apply_coupon"]:hover,
body.woocommerce-cart .rochi-cart-layout .cart-actions button[name="apply_coupon"]:hover {
  background: var(--green-dark) !important;
}

.rochi-cart-layout .cart-summary {
  gap: 18px;
}

.rochi-cart-layout .cart-summary .shop_table {
  margin: 0;
}

.rochi-cart-layout .cart-summary .order-total .amount,
.rochi-cart-layout .cart-summary .order-total strong {
  color: var(--green-dark);
}

/* Coupon only on cart — hide any leftover checkout coupon UI */
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout_coupon,
body.woocommerce-checkout form.woocommerce-form-coupon {
  display: none !important;
}

/* Kill legacy float-based Woo coupon styles that caused overlap */
body.woocommerce-cart .woocommerce-cart-form .coupon,
body.woocommerce-cart .woocommerce-cart-form td.actions {
  display: contents;
}

@media (max-width: 900px) {
  .rochi-cart-layout.cart-layout,
  .rochi-checkout-layout.checkout-layout {
    grid-template-columns: 1fr;
  }

  .rochi-cart-layout .cart-actions {
    grid-template-columns: 1fr;
  }

  .rochi-cart-layout .cart-summary,
  .rochi-checkout-layout .order-review {
    position: static;
  }
}

body.woocommerce-cart .shop-shell .woocommerce-cart-form,
body.woocommerce-checkout .shop-shell form.checkout {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

body.woocommerce-cart .shop-shell .cart-collaterals {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  position: static;
}

.shop-page .site-header {
  margin-bottom: 48px;
}

.shop-hero,
.order-complete {
  display: grid;
  gap: 18px;
  margin-bottom: 42px;
  padding: 42px;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(179, 25, 45, 0.14) 44% 100%),
    var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.shop-hero span,
.order-complete span {
  color: var(--red);
  font-size: 20px;
  font-weight: 800;
}

.shop-hero h1,
.order-complete h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(46px, 6vw, 96px);
  line-height: 1.05;
}

.shop-hero p,
.order-complete p,
.cart-summary p,
.order-review p {
  max-width: 780px;
  margin: 0;
  color: #5a667c;
  font-size: 20px;
  line-height: 1.9;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: start;
}

.cart-panel,
.cart-summary,
.checkout-form,
.order-review {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.cart-panel,
.checkout-form {
  padding: 30px;
}

.cart-summary,
.order-review {
  display: grid;
  gap: 18px;
  padding: 28px;
  position: sticky;
  top: 110px;
}

.cart-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.cart-head h2,
.cart-summary h2,
.checkout-box h2,
.checkout-box h3,
.order-review h2 {
  margin: 0;
  color: var(--black);
  font-size: 34px;
  line-height: 1.2;
}

.rochi-checkout-auth {
  margin-bottom: 24px;
}

.cart-head a,
.checkout-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: var(--white);
  background: var(--green);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
}

.shop_table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 3px solid var(--black);
}

.shop_table th,
.shop_table td {
  padding: 18px;
  text-align: right;
  vertical-align: middle;
  border-bottom: 3px solid var(--black);
}

.shop_table th {
  color: var(--white);
  background: var(--black);
  font-size: 18px;
}

.shop_table tr:last-child td {
  border-bottom: 0;
}

.cart-product {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: center;
}

.course-thumb {
  position: relative;
  display: grid;
  min-height: 96px;
  place-items: end center;
  padding: 12px;
  color: var(--red);
  background: var(--red);
  border: 3px solid var(--black);
  overflow: hidden;
}

.course-thumb b {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  font-size: 17px;
  line-height: 1.25;
}

.cart-product a {
  color: var(--black);
  font-size: 22px;
  font-weight: 800;
}

.cart-product span {
  display: block;
  margin-top: 8px;
  color: #5a667c;
  font-size: 16px;
}

.product-quantity input {
  width: 76px;
  min-height: 46px;
  padding: 8px;
  color: var(--black);
  background: var(--paper);
  border: 3px solid var(--black);
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.cart-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 24px;
}

.cart-actions label,
.checkout-box label {
  display: grid;
  gap: 10px;
  color: var(--black);
  font-size: 18px;
  font-weight: 800;
}

.cart-actions input,
.checkout-box input,
.checkout-box select,
.checkout-box textarea {
  min-height: 54px;
  padding: 12px 14px;
  color: var(--black);
  background: var(--paper);
  border: 3px solid var(--black);
  font-size: 17px;
  font-weight: 700;
}

.cart-actions button,
.ghost-action {
  min-height: 54px;
  padding: 10px 18px;
  color: var(--black);
  background: var(--cream);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.ghost-action {
  background: var(--white);
}

/* WooCommerce shortcode cart — coupon / update row (kills default floats) */
.woocommerce-cart-form .shop_table td.actions,
.woocommerce-cart-form .actions {
  text-align: start;
}

.woocommerce-cart-form .shop_table td.actions {
  display: block;
  padding: 22px !important;
}

.woocommerce-cart-form td.actions::before,
.woocommerce-cart-form td.actions::after,
.woocommerce-cart-form .coupon::before,
.woocommerce-cart-form .coupon::after {
  content: none !important;
  display: none !important;
}

.woocommerce-cart-form td.actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: end !important;
  position: static !important;
}

.woocommerce-cart-form .coupon {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px 12px !important;
  align-items: end !important;
  float: none !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-cart-form .coupon .screen-reader-text {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  white-space: normal !important;
  grid-column: 1 / -1;
  color: var(--black);
  font-size: 18px;
  font-weight: 800;
}

.woocommerce-cart-form .coupon label:not(.screen-reader-text) {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 800;
}

.woocommerce-cart-form .coupon .input-text,
.woocommerce-cart-form .coupon input[type="text"] {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 54px;
  margin: 0 !important;
  padding: 12px 14px;
  color: var(--black);
  background: var(--paper);
  border: 3px solid var(--black);
  font-size: 17px;
  font-weight: 700;
  box-sizing: border-box;
}

.woocommerce-cart-form .coupon .button,
.woocommerce-cart-form .coupon button,
.woocommerce-cart-form td.actions > .button,
.woocommerce-cart-form td.actions > button {
  float: none !important;
  position: static !important;
  width: auto !important;
  min-height: 54px;
  margin: 0 !important;
  padding: 10px 18px;
  color: var(--black) !important;
  background: var(--cream) !important;
  border: 3px solid var(--black) !important;
  box-shadow: 5px 5px 0 var(--black);
  border-radius: 0 !important;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.woocommerce-cart-form td.actions .button.disabled,
.woocommerce-cart-form td.actions button.disabled {
  opacity: 0.55;
}

.rochi-qty-fixed {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--black);
  background: var(--paper);
  font-weight: 800;
}

.rochi-already-in-cart {
  display: grid;
  gap: 14px;
}

.rochi-already-in-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.rochi-hide-qty .quantity {
  display: none !important;
}

body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout .woocommerce-additional-fields > h3 {
  margin: 0 0 16px;
  color: var(--black);
  font-size: 28px;
  line-height: 1.2;
}

body.woocommerce-checkout .checkout-layout-host .woocommerce-billing-fields,
body.woocommerce-checkout .checkout-layout-host .woocommerce-additional-fields {
  margin-bottom: 22px;
}

body.woocommerce-checkout .form-row label {
  font-weight: 800;
}

body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .form-row select {
  min-height: 52px;
  border: 3px solid var(--black) !important;
  border-radius: 0 !important;
  background: var(--paper);
  box-shadow: none !important;
}

.woocommerce-cart-form td.actions > .button[name="update_cart"],
.woocommerce-cart-form td.actions > button[name="update_cart"] {
  background: var(--white);
}

/* Checkout coupon form */
form.checkout_coupon,
form.woocommerce-form-coupon {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 24px;
  padding: 22px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

form.checkout_coupon > p,
form.woocommerce-form-coupon > p:not(.form-row) {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 700;
}

form.checkout_coupon .form-row,
form.woocommerce-form-coupon .form-row {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

form.checkout_coupon .form-row-first,
form.woocommerce-form-coupon .form-row-first {
  grid-column: 1;
}

form.checkout_coupon .form-row-last,
form.woocommerce-form-coupon .form-row-last {
  grid-column: 2;
  align-self: end;
}

form.checkout_coupon .input-text,
form.woocommerce-form-coupon .input-text {
  width: 100% !important;
  min-height: 54px;
  padding: 12px 14px;
  color: var(--black);
  background: var(--paper);
  border: 3px solid var(--black);
  font-size: 17px;
  font-weight: 700;
  box-sizing: border-box;
}

form.checkout_coupon .button,
form.woocommerce-form-coupon .button,
form.checkout_coupon button,
form.woocommerce-form-coupon button {
  min-height: 54px;
  padding: 10px 18px;
  color: var(--black);
  background: var(--cream);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

form.checkout_coupon .clear,
form.woocommerce-form-coupon .clear {
  display: none !important;
}

.summary-row,
.review-item {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 3px solid rgba(33, 27, 24, 0.18);
  font-size: 19px;
}

.summary-row.total {
  color: var(--red);
  border-bottom-color: var(--black);
  font-size: 24px;
  font-weight: 900;
}

.checkout-layout {
  grid-template-columns: 1fr 0.62fr;
}

.checkout-form {
  display: grid;
  gap: 24px;
}

.checkout-box {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: var(--paper);
  border: 3px solid var(--black);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.payment_methods {
  display: grid;
  gap: 12px;
}

.payment_methods label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 3px solid var(--black);
}

.place-order {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.woocommerce-checkout .rochi-checkout-layout .order-review .place-order,
body.woocommerce-checkout .woocommerce .place-order {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .woocommerce .place-order #place_order,
body.woocommerce-checkout .rochi-checkout-layout .place-order #place_order {
  display: flex !important;
  width: 100% !important;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 8px 0;
}

.order-meta div {
  display: grid;
  gap: 6px;
  padding: 20px;
  background: var(--paper);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
}

.order-meta b {
  color: var(--red);
  font-size: 28px;
}

.product-video .course-visual {
  height: auto;
  min-height: 0;
  border: 0;
}

.rochi-single-product .product-video .course-visual.big {
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
}

.rochi-single-product .product-video .course-visual.has-cover-image {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  background: #111;
}

.rochi-single-product .product-video .course-visual.has-cover-image .course-visual-img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
}

.rochi-single-product .video-bar,
.video-bar {
  display: none !important;
}

.product-about,
.curriculum-section,
.teacher-card {
  margin-top: 76px;
  padding: 44px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.product-about {
  display: grid;
  gap: 20px;
}

.product-about h2,
.curriculum-section .section-head h2,
.teacher-card h2 {
  margin: 0;
  color: var(--red);
  font-size: clamp(38px, 4vw, 66px);
  line-height: 1.12;
}

.product-about a,
.teacher-card a {
  justify-self: start;
  padding-bottom: 5px;
  color: var(--red);
  border-bottom: 3px solid currentColor;
  font-size: 20px;
  font-weight: 800;
}

.curriculum-card {
  border: 3px solid var(--red);
  background: var(--paper);
}

.curriculum-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  color: var(--red);
  border-bottom: 3px solid var(--red);
  font-size: 18px;
}

.curriculum-card details {
  border: 0;
}

.curriculum-card summary {
  padding: 24px;
  color: var(--black);
  font-size: 24px;
}

.lesson-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 14px 24px;
  border-top: 2px solid rgba(33, 27, 24, 0.12);
  font-size: 19px;
}

.lesson-list b {
  padding: 7px 13px;
  color: #0e8848;
  background: #c9f5dc;
  border-radius: 999px;
  font-size: 16px;
}

.lesson-list a {
  padding: 8px 18px;
  color: var(--red);
  background: #f2e9ff;
  border: 2px solid #d8c9ff;
  font-weight: 800;
}

.teacher-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.teacher-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.teacher-avatar {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.35) 0 10px, transparent 11px),
    var(--red);
  border: 4px solid var(--black);
  border-radius: 50%;
  box-shadow: 7px 7px 0 var(--black);
  font-size: 38px;
  font-weight: 900;
}

.teacher-profile p strong {
  color: var(--black);
  font-size: 24px;
}

.teacher-page .page-hero {
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(179, 25, 45, 0.14) 48% 100%),
    var(--white);
}

.teacher-page .teacher-courses-title {
  width: min(var(--max), calc(100% - 56px));
  margin: 42px auto 0;
  padding: 0 0 18px;
  border-bottom: 4px solid var(--black);
}

.teacher-page .teacher-courses-title h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.3;
}

.teacher-page .course-listing-grid {
  margin-top: 28px;
}

.teacher-directory {
  display: grid;
  width: min(var(--max), calc(100% - 56px));
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 48px auto 0;
}

.teacher-directory .teacher-slide-card {
  min-height: 340px;
}

.lesson-player-page {
  background-color: var(--paper);
}

.lesson-shell {
  width: min(var(--max), calc(100% - 56px));
  margin: 46px auto 90px;
}

.lesson-breadcrumbs {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 4px solid var(--black);
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: start;
}

.lesson-main,
.lesson-sidebar > div,
.course-content-panel {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.lesson-main {
  display: grid;
  gap: 26px;
  padding: 34px;
}

.lesson-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.lesson-topbar span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  font-size: 17px;
  font-weight: 900;
}

.lesson-topbar h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.1;
}

.lesson-topbar > a {
  padding-bottom: 5px;
  color: var(--red);
  border-bottom: 3px solid currentColor;
  font-size: 19px;
  font-weight: 900;
}

.secure-video-frame {
  position: relative;
  display: grid;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.18) 0 42%, transparent 42%),
    var(--black);
  border: 5px solid var(--black);
}

/* Prototype locked state only — dimmed fake video behind placeholder */
.secure-video-frame:has(.video-placeholder) > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  pointer-events: none;
}

/* Real secure player must stay fully visible and interactive */
.secure-video-frame.is-playing,
.secure-video-frame:has(.rochi-player) {
  display: block;
  min-height: 0;
  width: 100%;
  background: #fffefb;
  overflow: visible;
}

.secure-video-frame .rochi-player,
.secure-video-frame .rochi-player-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  background: transparent;
}

.secure-video-frame .rochi-player-video,
.secure-video-frame .rochi-player video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none;
  object-fit: contain !important;
  opacity: 1 !important;
  background: #000;
}

.secure-video-frame .rochi-player-logo-wm,
.secure-video-frame .rochi-player-brand,
.secure-video-frame .rochi-player-watermark {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.secure-video-frame .rochi-player-stage {
  position: relative;
  width: 100%;
  min-height: 0 !important;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 720px);
  overflow: hidden;
  background: #000;
}

.secure-video-frame .rochi-player-wrap {
  border: 0;
  box-shadow: none;
}

.secure-video-frame .rochi-mark-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: 100%;
  margin: 14px;
  padding: 2px 4px 8px;
  box-sizing: border-box;
  min-width: 0;
}

.secure-video-frame .rochi-mark-complete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: auto !important;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  box-sizing: border-box;
  border: 3px solid #211b18 !important;
  box-shadow: 3px 3px 0 #211b18;
}

.video-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  place-self: center;
  max-width: 620px;
  padding: 34px;
  color: var(--white);
  text-align: center;
}

.video-placeholder b {
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.1;
}

.video-placeholder span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.9;
}

.student-watermark {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 22px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(0, 0, 0, 0.32);
  border: 2px solid rgba(255, 255, 255, 0.22);
  font-size: 16px;
  font-weight: 800;
  pointer-events: none;
}

.lesson-progress-card {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 0.6fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: var(--cream);
  border: 3px solid var(--black);
}

.lesson-progress-card b,
.lesson-progress-card strong {
  font-size: 24px;
  font-weight: 900;
}

.lesson-progress-card span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-weight: 800;
}

.progress-meter {
  height: 18px;
  overflow: hidden;
  background: var(--white);
  border: 3px solid var(--black);
}

.progress-meter span {
  display: block;
  height: 100%;
  margin: 0;
  background: var(--red);
}

.lesson-notes {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
}

.lesson-notes h2 {
  margin: 0;
  color: var(--red);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
}

.lesson-notes p,
.lesson-notes__body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.9;
}

.lesson-notes__body > *:first-child {
  margin-top: 0;
}

.lesson-notes__body > *:last-child {
  margin-bottom: 0;
}

.lesson-notes__body ul,
.lesson-notes__body ol {
  padding-inline-start: 1.4em;
}

.lesson-resources {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--cream);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
}

.lesson-resources__head h2 {
  margin: 0 0 6px;
  color: var(--red);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
}

.lesson-resources__head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.lesson-resources__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-resources__item {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--white);
  border: 3px solid var(--black);
}

.lesson-resources__item.is-locked {
  opacity: 0.72;
}

.lesson-resources__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  flex: 1 1 220px;
}

.lesson-resources__ext {
  display: inline-flex;
  min-width: 52px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--white);
  background: var(--black);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.lesson-resources__meta strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}

.lesson-resources__meta small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.lesson-resources__download {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 18px;
  text-decoration: none;
}

.lesson-resources__locked {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 2px solid rgba(33, 27, 24, 0.25);
  font-size: 15px;
  font-weight: 800;
}

.lesson-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 22px;
}

.lesson-sidebar > div {
  padding: 24px;
}

.access-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.status-dot {
  width: 38px;
  height: 38px;
  background: #14b86a;
  border: 4px solid var(--black);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--black);
}

.access-panel h2,
.course-content-head h2,
.secure-policy-card h2 {
  margin: 0;
  color: var(--red);
  font-size: 30px;
  line-height: 1.2;
}

.access-panel p,
.secure-policy-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.8;
}

.course-content-panel {
  display: grid;
  gap: 18px;
}

.course-content-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.course-content-head small {
  color: var(--black);
  font-size: 17px;
  font-weight: 900;
}

.autoplay-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
}

.autoplay-toggle input {
  position: absolute;
  opacity: 0;
}

.autoplay-toggle span {
  position: relative;
  width: 64px;
  height: 34px;
  background: #ddd;
  border: 3px solid var(--black);
  border-radius: 999px;
}

.autoplay-toggle span::before {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  content: "";
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 50%;
}

.autoplay-toggle input:checked + span {
  background: var(--red);
}

.autoplay-toggle input:checked + span::before {
  right: 32px;
}

.course-content-panel details {
  border: 3px solid var(--black);
}

.course-content-panel details + details {
  margin-top: 12px;
}

.course-content-panel summary {
  padding: 16px;
  color: var(--black);
  background: var(--cream);
  font-size: 20px;
}

.lesson-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  color: var(--black);
  border-top: 3px solid var(--black);
}

.lesson-item b {
  font-size: 17px;
  line-height: 1.5;
}

.lesson-item small {
  color: var(--ink-soft);
  font-weight: 800;
}

.lesson-item em {
  grid-column: 2 / -1;
  justify-self: start;
  color: var(--red);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.play-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  font-size: 14px;
  font-weight: 900;
}

.lesson-sidebar .lesson-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.lesson-sidebar .lesson-list > li {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  font-size: inherit;
}

.lesson-sidebar .lesson-item > a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px;
  color: var(--black);
  background: #fffefb;
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  text-decoration: none;
}

.lesson-sidebar .lesson-item > a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--black);
}

.lesson-sidebar .lesson-item.active > a {
  background: #ffe8e1;
}

.lesson-sidebar .lesson-item > a > b {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: #0e8848;
  background: #c9f5dc;
  border: 2px solid var(--black);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
}

.lesson-sidebar .lesson-item > a > small {
  color: var(--black);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.lesson-sidebar .lesson-play-label,
.lesson-sidebar .lesson-watched-sticker {
  grid-column: 2;
  justify-self: start;
  margin: 0;
  padding: 5px 10px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0 var(--black);
}

.lesson-sidebar .lesson-play-label {
  color: #5b3fd6;
  background: #f2e9ff;
}

.lesson-sidebar .lesson-watched-sticker {
  color: #fff;
  background: #1f9d57;
}

.lesson-sidebar .lesson-item.is-watched > a > b {
  color: #fff;
  background: #1f9d57;
}

.lesson-item.active {
  background: rgba(179, 25, 45, 0.12);
}

.lesson-item.locked {
  opacity: 0.72;
  background: #f3eee7;
}

.lesson-item.locked .play-icon {
  color: var(--black);
  background: var(--cream);
}

.rochi-settings-hero {
  width: min(var(--max), calc(100% - 56px));
  margin: 58px auto 42px;
  padding: 46px;
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.18) 0 46%, transparent 46% 100%),
    var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.rochi-settings-hero h1 {
  max-width: 920px;
  margin: 0 0 18px;
  color: var(--red);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1.1;
}

.rochi-settings-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1.9;
}

.rochi-settings-title,
.rochi-font-grid,
.media-slot-grid {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

.rochi-font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 80px;
}

.media-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 90px;
}

.media-slot-card {
  display: grid;
  align-content: center;
  min-height: 190px;
  padding: 22px;
  color: var(--black);
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.12) 0 42%, transparent 42% 100%),
    var(--white);
  border: var(--border);
  box-shadow: 7px 7px 0 var(--black);
}

.media-slot-card:nth-child(even) {
  background: var(--cream);
}

.media-slot-card b {
  color: var(--red);
  font-size: 27px;
  line-height: 1.35;
}

.media-slot-card span {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.8;
}

.rochi-font-card {
  display: grid;
  gap: 16px;
  min-height: 300px;
  padding: 22px;
  color: var(--black);
  background: var(--white);
  border: var(--border);
  box-shadow: 7px 7px 0 var(--black);
  cursor: pointer;
}

.rochi-font-card[aria-pressed="true"] {
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.18) 0 50%, var(--white) 50% 100%);
  box-shadow: 11px 11px 0 var(--black);
}

.rochi-font-card strong {
  color: var(--red);
  font-size: 28px;
  line-height: 1.25;
}

.rochi-font-card span {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
}

.rochi-font-card .font-sample {
  display: grid;
  min-height: 110px;
  place-items: center;
  padding: 16px;
  color: var(--black);
  background: var(--paper);
  border: 3px solid var(--black);
  font-size: 30px;
  line-height: 1.35;
  text-align: center;
}

.rochi-font-card[data-font-option^="rokh-fanum"] .font-sample {
  font-family: "RokhFaNum", Tahoma, Arial, sans-serif;
}

.rochi-font-card[data-font-option="rokh"] .font-sample {
  font-family: "Rokh", Tahoma, Arial, sans-serif;
}

.rochi-font-card[data-font-option^="rokh-noeng"] .font-sample {
  font-family: "RokhNoEng", Tahoma, Arial, sans-serif;
}

.rochi-font-card[data-font-option^="abar"] .font-sample {
  font-family: "Abar", Tahoma, Arial, sans-serif;
}

.rochi-font-card[data-font-option^="pinar"] .font-sample {
  font-family: "Pinar", Tahoma, Arial, sans-serif;
}

.rochi-font-card[data-font-option="sadu"] .font-sample {
  font-family: "Sadu", Tahoma, Arial, sans-serif;
}

.rochi-font-card[data-font-option="tamam"] .font-sample {
  font-family: "Tamam", Tahoma, Arial, sans-serif;
}

.rochi-font-card[data-font-option="karesto"] .font-sample {
  font-family: "Karesto", Tahoma, Arial, sans-serif;
}

.rochi-font-card[data-font-option="dalino"] .font-sample {
  font-family: "Dalino", Tahoma, Arial, sans-serif;
}

.rochi-font-card[data-font-option="sorena"] .font-sample {
  font-family: "Sorena", Tahoma, Arial, sans-serif;
}

.rochi-font-card[data-font-option="tizi"] .font-sample {
  font-family: "Tizi", Tahoma, Arial, sans-serif;
}

body,
input,
select,
textarea,
button {
  font-family: var(--font-main);
}

p,
li,
span,
small,
label,
summary,
details p {
  font-weight: var(--font-body-weight);
}

h1,
.hero-title h1,
.product-info h1 {
  font-weight: var(--font-heavy-weight);
}

h2,
h3,
strong,
b,
.btn,
.main-nav a,
.quick-actions a,
.course-link,
.buy-button,
.preview-button,
.save-course-action {
  font-weight: var(--font-heading-weight);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "toggle brand"
      "actions actions"
      "nav nav";
    justify-items: stretch;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    grid-area: toggle;
    justify-self: start;
  }

  .brand {
    grid-area: brand;
    justify-self: end;
    max-width: min(180px, 46vw);
  }

  .brand-logo {
    max-height: 58px;
  }

  .quick-actions {
    grid-area: actions;
    justify-self: stretch;
    justify-content: center;
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    grid-area: nav;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding-top: 14px;
    border-top: 3px solid var(--black);
  }

  .site-header.menu-open .main-nav {
    display: flex;
  }

  .main-nav > ul,
  .main-nav .main-nav-list,
  .main-nav .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .main-nav li,
  .main-nav .menu-item {
    width: 100%;
  }

  .main-nav a,
  .main-nav > a,
  .nav-mega > a {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    border: 3px solid var(--black);
    background: var(--paper);
    white-space: normal;
    text-align: center;
  }

  .main-nav a.active,
  .main-nav .current-menu-item > a,
  .main-nav .current_page_item > a,
  .main-nav > a.active,
  .nav-mega > a.active {
    color: var(--white);
    background: var(--red);
  }

  .nav-mega {
    width: 100%;
  }

  .mega-panel {
    position: static;
    display: none;
    width: 100%;
    grid-template-columns: 1fr;
    transform: none;
    margin-top: 8px;
    box-shadow: 5px 5px 0 var(--black);
  }

  .nav-mega:hover .mega-panel,
  .nav-mega:focus-within .mega-panel {
    display: none;
  }

  .nav-mega.is-open .mega-panel,
  .menu-item-has-children.is-open > .sub-menu {
    display: flex;
    flex-direction: column;
  }

  .main-nav .sub-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-mega.is-open .mega-panel {
    display: grid;
  }

  .mega-panel section {
    min-height: auto;
  }

  .why-academy,
  .faq-section,
  .footer {
    grid-template-columns: 1fr;
  }

  .course-row,
  .archive-grid,
  .blog-grid,
  .product-hero,
  .learning-path-feature,
  .learning-path-grid,
  .path-hero,
  .path-detail-grid,
  .webinar-grid,
  .webinar-list-card,
  .webinar-detail-hero,
  .webinar-content-grid,
  .consult-hero,
  .home-consult-cta,
  .consult-benefit-grid,
  .process-grid,
  .account-layout,
  .dashboard-shell,
  .dashboard-hero,
  .my-course-grid,
  .saved-grid,
  .two-columns,
  .cart-layout,
  .checkout-layout,
  .form-grid,
  .order-meta,
  .course-listing-grid,
  .course-list-card,
  .article-layout,
  .article-grid,
  .contact-layout,
  .teacher-directory,
  .media-slot-grid,
  .single-article-layout {
    grid-template-columns: 1fr;
  }

  .lesson-layout,
  .lesson-progress-card {
    grid-template-columns: 1fr;
  }

  .product-actions,
  .cart-actions,
  .lesson-list li,
  .woocommerce-cart-form td.actions,
  .woocommerce-cart-form .coupon,
  form.checkout_coupon,
  form.woocommerce-form-coupon {
    grid-template-columns: 1fr !important;
  }

  form.checkout_coupon .form-row-first,
  form.woocommerce-form-coupon .form-row-first,
  form.checkout_coupon .form-row-last,
  form.woocommerce-form-coupon .form-row-last {
    grid-column: 1;
  }

  .cart-summary,
  .order-review {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .wave-courses,
  .why-academy,
  .course-archive,
  .learning-path-preview,
  .webinar-preview,
  .teachers-preview,
  .consult-form,
  .faq-section,
  .blog-preview,
  .footer {
    width: min(var(--max), calc(100% - 24px));
  }

  .product-shell,
  .webinar-shell,
  .shop-shell,
  .consult-hero,
  .consult-benefits,
  .consult-process,
  .consult-page-form,
  .consult-faq,
  .account-layout,
  .dashboard-shell,
  .page-hero,
  .archive-toolbar,
  .course-listing-grid,
  .webinar-grid,
  .article-layout,
  .contact-layout,
  .teacher-directory,
  .learning-path-grid,
  .path-shell {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-header {
    position: static;
  }

  .quick-actions {
    order: unset;
  }

  .shop-hero,
  .order-complete,
  .cart-panel,
  .checkout-form,
  .cart-summary,
  .order-review {
    padding: 22px;
  }

  .shop_table thead {
    display: none;
  }

  .shop_table,
  .shop_table tbody,
  .shop_table tr,
  .shop_table td {
    display: block;
    width: 100%;
  }

  .shop_table td {
    border-bottom: 2px solid rgba(33, 27, 24, 0.18);
  }

  .cart-product {
    grid-template-columns: 1fr;
  }

  .hero-title,
  .wave-courses,
  .why-academy,
  .learning-path-preview,
  .path-map-section,
  .consult-form,
  .faq-section,
  .footer {
    padding: 24px;
  }

  .course-row,
  .webinar-row,
  .teacher-row,
  .blog-row,
  .archive-row {
    --carousel-gap: 14px;
  }

  .carousel-shell {
    display: block;
    position: relative;
    padding-inline: 54px;
    box-sizing: border-box;
  }

  .carousel-shell .course-row,
  .carousel-shell .webinar-row,
  .carousel-shell .teacher-row,
  .carousel-shell .blog-row,
  .carousel-shell .archive-row {
    display: flex;
    grid-column: auto;
    width: 100%;
    gap: var(--carousel-gap);
  }

  .carousel-shell .course-card,
  .carousel-shell .webinar-card,
  .carousel-shell .teacher-slide-card,
  .carousel-shell .blog-row > article,
  .carousel-shell .archive-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .carousel-shell .carousel-buttons {
    padding-inline: 4px;
  }

  .carousel-shell .carousel-buttons button {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .consult-hero,
  .consult-process,
  .consult-faq {
    padding: 24px;
  }

  .consult-hero {
    min-height: auto;
  }

  .consult-hero h1 {
    font-size: 56px;
  }

  .consult-hero p,
  .consult-benefit-grid p,
  .consult-faq p {
    font-size: 18px;
  }

  .consult-hero-panel {
    min-height: 260px;
  }

  .consult-benefit-grid article,
  .process-grid div {
    min-height: 210px;
    padding: 22px;
  }

  .signup-card,
  .login-card,
  .dashboard-hero,
  .dashboard-section,
  .dashboard-sidebar,
  .page-hero,
  .course-list-card,
  .webinar-list-card,
  .webinar-copy,
  .webinar-agenda,
  .article-card,
  .article-sidebar,
  .contact-info-grid article {
    padding: 24px;
  }

  .account-form {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .order-row {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 46px;
  }

  .course-list-card.featured {
    grid-column: auto;
  }

  .webinar-list-card.featured {
    grid-column: auto;
  }

  .webinar-preview {
    padding: 24px;
  }

  .course-row,
  .webinar-row,
  .teacher-row,
  .blog-row,
  .archive-row {
    --carousel-gap: 16px;
  }

  .carousel-shell {
    display: block;
    position: relative;
    padding-inline: 56px;
    box-sizing: border-box;
  }

  .carousel-shell .course-row,
  .carousel-shell .webinar-row,
  .carousel-shell .teacher-row,
  .carousel-shell .blog-row,
  .carousel-shell .archive-row {
    display: flex;
    grid-column: auto;
    width: 100%;
    gap: var(--carousel-gap);
  }

  .carousel-shell .course-card,
  .carousel-shell .webinar-card,
  .carousel-shell .teacher-slide-card,
  .carousel-shell .blog-row > article,
  .carousel-shell .archive-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .teachers-preview {
    padding: 24px;
  }

  .path-preview-copy,
  .path-copy-card,
  .path-buy-panel,
  .learning-path-card,
  .path-detail-grid article {
    padding: 24px;
  }

  .path-copy-card {
    min-height: auto;
  }

  .paths-landing-points {
    grid-template-columns: 1fr;
  }

  .path-step article {
    grid-template-columns: 1fr;
  }

  .path-step-visual {
    min-height: 200px;
    border-left: 0;
    border-bottom: 3px solid var(--black);
  }

  .path-preview-copy h3,
  .path-copy-card h1 {
    font-size: 42px;
  }

  .teacher-portrait {
    width: 104px;
    height: 104px;
    font-size: 48px;
  }

  .cart-toast {
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cart-toast a {
    width: 100%;
  }

  .webinar-detail-hero,
  .webinar-content-grid {
    gap: 18px;
  }

  .webinar-detail-poster {
    min-height: 300px;
  }

  .webinar-detail-info h1 {
    font-size: 42px;
  }

  .article-sidebar {
    position: static;
  }

  .single-article-shell {
    width: min(var(--max), calc(100% - 24px));
    margin-top: 28px;
  }

  .rochi-settings-hero,
  .rochi-settings-title,
  .rochi-font-grid,
  .media-slot-grid {
    width: min(var(--max), calc(100% - 24px));
  }

  .single-article-hero {
    gap: 28px;
    padding: 24px;
  }

  .single-article-hero,
  .single-article-content,
  .single-article-sidebar section,
  .media-slot-card {
    padding: 24px;
  }

  .single-article-hero h1 {
    font-size: 36px;
    line-height: 1.3;
    padding-top: 0.15em;
  }

  .single-feature-image {
    min-height: 220px;
  }

  .single-article-content h2 {
    font-size: 30px;
  }

  .single-article-content p {
    font-size: 18px;
  }

  .single-article-sidebar {
    position: static;
  }

  .lesson-shell {
    width: min(var(--max), calc(100% - 24px));
    margin-top: 28px;
  }

  .lesson-main,
  .lesson-sidebar > div {
    padding: 24px;
  }

  .lesson-sidebar {
    position: static;
  }

  .secure-video-frame {
    min-height: 0;
  }

  .secure-video-frame:has(.video-placeholder) {
    min-height: 220px;
  }

  .secure-video-frame .rochi-player-stage {
    max-height: none;
  }

  .lesson-topbar h1 {
    font-size: clamp(28px, 7.5vw, 40px);
  }

  .lesson-breadcrumbs {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .lesson-shell {
    width: min(var(--max), calc(100% - 20px));
  }

  .lesson-main {
    padding: 18px;
  }

  .video-placeholder b {
    font-size: 38px;
  }

  .hero-title h1 {
    font-size: clamp(30px, 8vw, 46px);
  }

  .hero {
    min-height: 340px;
    padding: 24px;
  }

  .hero-title {
    min-height: 260px;
    padding: 12px;
  }

  .section-head h2 {
    font-size: 42px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .consult-form form {
    grid-template-columns: 1fr;
  }

  .home-consult-cta {
    min-height: auto;
    padding: 28px;
    background:
      linear-gradient(145deg, var(--black) 0 57%, var(--red) 57% 100%);
  }

  .home-consult-copy {
    justify-items: stretch;
  }

  .home-consult-copy span {
    width: fit-content;
  }

  .home-consult-copy h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .home-consult-copy p {
    font-size: 18px;
  }

  .home-consult-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-consult-panel {
    min-height: 190px;
    padding: 24px;
    transform: none;
  }

  .home-consult-panel b {
    font-size: 38px;
  }

  .course-visual {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .product-hero,
  .product-about,
  .curriculum-section,
  .teacher-card {
    padding: 24px;
  }

  .teacher-card {
    display: grid;
  }
}

/* —— WooCommerce My Account / LMS overrides (Rochi dashboard) —— */
.woocommerce-account .entry-header,
.woocommerce-account .page-title,
.woocommerce-account > .woocommerce > h1,
.rochi-account-page .entry-title,
body.woocommerce-account .site-main > .page-header {
  display: none !important;
}

body.woocommerce-account .entry-content > .woocommerce,
body.rochi-account-page .entry-content {
  max-width: none;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.rochi-account-shell {
  margin: 0;
  max-width: none;
  padding: 0;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.woocommerce-MyAccount-navigation .active,
.dashboard-sidebar nav a.active {
  background: var(--red, #b3192d);
  color: #fff;
}

.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content > h3:first-child {
  font-family: inherit;
}

.woocommerce-MyAccount-content .woocommerce-Addresses,
.woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-MyAccount-content .woocommerce-order-details,
.woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  border: 4px solid #211b18;
  box-shadow: 6px 6px 0 #211b18;
  background: #fffefb;
}

.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td {
  border-color: #211b18;
  padding: 12px;
}

.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button.button {
  border: 3px solid #211b18 !important;
  box-shadow: 4px 4px 0 #211b18;
  font-weight: 800;
  border-radius: 0 !important;
}

.rochi-account-guest .account-layout,
.account-layout {
  width: 100%;
}

.my-course-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.my-course-grid article {
  border: 4px solid #211b18;
  box-shadow: 6px 6px 0 #211b18;
  background: #fffefb;
  padding: 0 0 18px;
  overflow: hidden;
}

.my-course-grid .course-visual {
  aspect-ratio: 4 / 3;
  min-height: 0;
  margin-bottom: 12px;
  overflow: hidden;
}

.my-course-grid h3,
.my-course-grid p {
  padding: 0 16px;
}

.my-course-grid .dashboard-link,
.my-course-grid > article > a {
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  margin: 8px 16px 0;
  padding: 0 0 4px;
  justify-self: start;
  color: var(--red);
  border-bottom: 3px solid currentColor;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  overflow: visible;
  text-decoration: none;
}

.my-course-grid .save-course-action,
.saved-grid .save-course-action,
.rochi-favorites-grid .save-course-action {
  display: inline-flex;
  width: calc(100% - 32px);
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  margin: 10px 16px 0;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border-bottom: 0;
}

.progress-line {
  height: 18px;
  margin: 8px 16px 12px;
  background: var(--white);
  border: 3px solid var(--black);
}

.progress-line span {
  display: block;
  height: 100%;
  background: var(--red);
}

.saved-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.saved-grid article {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--cream);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
}

.saved-grid b {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: var(--white);
  border: 3px solid var(--black);
  font-size: 24px;
}

.saved-grid h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.saved-grid a {
  justify-self: start;
  padding-bottom: 4px;
  color: var(--red);
  border-bottom: 3px solid currentColor;
  font-size: 20px;
  font-weight: 800;
}

.dashboard-section.two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dashboard-section.two-columns > article {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: var(--paper, #fffefb);
  border: var(--border);
  box-shadow: var(--shadow);
}

.order-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px solid rgba(33, 27, 24, 0.12);
}

.order-row b,
.order-row strong {
  font-weight: 800;
}

.certificate-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--cream);
  border: 3px solid var(--black);
}

.certificate-card b {
  color: var(--red);
}

.certificate-card a,
.my-course-grid > article > a,
.dashboard-link {
  justify-self: start;
  padding-bottom: 4px;
  color: var(--red);
  border-bottom: 3px solid currentColor;
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .saved-grid,
  .dashboard-section.two-columns {
    grid-template-columns: 1fr;
  }
}

.rochi-profile-form.account-form,
.rochi-profile-form {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: none;
}

.rochi-profile-form p {
  display: grid;
  gap: 8px;
  margin: 0;
  width: 100%;
}

.rochi-profile-form label {
  font-weight: 800;
  color: #211b18;
}

.rochi-profile-form input[type="text"],
.rochi-profile-form input[type="tel"],
.rochi-profile-form input[type="password"],
.rochi-profile-form input.regular-text,
.rochi-profile-form .regular-text {
  width: 100% !important;
  max-width: none !important;
  min-height: 52px;
  padding: 12px 14px;
  border: 3px solid #211b18;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
}

.rochi-profile-form .description {
  color: #5a667c;
  font-size: 14px;
}

.rochi-profile-form .account-submit,
.rochi-profile-form button.button {
  justify-self: start;
  min-width: 220px;
  min-height: 56px;
  margin-top: 8px;
  color: #fff !important;
  background: var(--red) !important;
  border: 3px solid #211b18 !important;
  box-shadow: 5px 5px 0 #211b18;
  font-size: 18px;
  font-weight: 800;
}

/* Account dashboard — full-bleed coordinated layout */
.account-page-main {
  width: min(1680px, calc(100% - 40px));
  margin: 24px auto 80px;
  padding: 0;
}

body.woocommerce-account .account-page-main .woocommerce,
body.woocommerce-account .shop-shell .woocommerce,
body.woocommerce-account .shop-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.rochi-account-shell,
.dashboard-shell.rochi-account-shell {
  width: min(var(--max), calc(100% - 56px));
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rochi-account-shell .dashboard-sidebar {
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 20px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  align-content: start;
  grid-auto-rows: min-content;
}

.rochi-account-shell .student-card {
  display: flex !important;
  align-items: center;
  justify-content: center;
  align-self: start !important;
  flex: 0 0 auto !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: 4.5rem;
  padding: 14px 16px !important;
  box-sizing: border-box;
  font-size: 20px !important;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
}

/* Kill Woo default 30%/68% float layout inside our custom shell */
body.woocommerce-account .rochi-account-shell .woocommerce-MyAccount-navigation,
body.woocommerce-account .dashboard-sidebar .woocommerce-MyAccount-navigation,
.rochi-account-shell .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: grid !important;
  gap: 14px;
  justify-items: stretch;
}

body.woocommerce-account .rochi-account-shell .woocommerce-MyAccount-content,
body.woocommerce-account .rochi-account-shell .dashboard-content {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

.rochi-account-shell .dashboard-content {
  display: grid;
  gap: 24px;
  min-width: 0;
  width: 100%;
}

.rochi-account-shell .dashboard-section,
.rochi-account-shell .dashboard-hero,
.rochi-account-shell .woocommerce-MyAccount-content > * {
  width: 100%;
  box-sizing: border-box;
}

.rochi-account-shell .dashboard-section {
  padding: 28px 32px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.rochi-account-shell .dashboard-sidebar nav a,
.rochi-account-shell .woocommerce-MyAccount-navigation a,
.rochi-account-shell .woocommerce-MyAccount-navigation li,
.rochi-account-shell .woocommerce-MyAccount-navigation li a {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 14px;
  margin: 0;
  text-align: center;
  white-space: normal;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  color: var(--black);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.rochi-account-shell .woocommerce-MyAccount-navigation a.active,
.rochi-account-shell .woocommerce-MyAccount-navigation .is-active a,
.rochi-account-shell .dashboard-sidebar nav a.active {
  color: var(--white) !important;
  background: var(--red) !important;
}

.rochi-account-shell .section-head h2,
.rochi-account-shell .dashboard-section > .section-head h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.rochi-account-shell .rochi-tickets-layout,
.rochi-account-shell .rochi-licenses-grid,
.rochi-account-shell .my-course-grid,
.rochi-account-shell .rochi-profile-form {
  width: 100%;
}

@media (max-width: 980px) {
  .rochi-account-shell,
  .dashboard-shell.rochi-account-shell {
    grid-template-columns: 1fr;
  }

  .rochi-account-shell .dashboard-sidebar {
    position: static;
  }
}

.rochi-woo-panel {
  border: 4px solid #211b18;
  box-shadow: 8px 8px 0 #211b18;
  background: #fffefb;
  padding: 24px;
}

/* Do NOT wrap the whole cart/checkout grid in one outer box — panels are styled separately. */
body.woocommerce-cart .shop-shell > .woocommerce,
body.woocommerce-checkout .shop-shell > .woocommerce,
body.woocommerce-cart .cart-layout-host > .woocommerce,
body.woocommerce-checkout .checkout-layout-host > .woocommerce {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.secure-video-frame {
  position: relative;
  border: 4px solid #211b18;
  box-shadow: 8px 8px 0 #211b18;
  background: #111;
  min-height: 0;
}

.secure-video-frame:has(.video-placeholder) {
  min-height: 220px;
}

.secure-video-frame .video-placeholder {
  display: grid;
  gap: 12px;
  place-items: center;
  min-height: 220px;
  color: #fff;
  padding: 24px;
  text-align: center;
}

body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error {
  border: 3px solid #211b18;
  box-shadow: 4px 4px 0 #211b18;
}

/* ------------------------------------------------------------------ */
/* Single product (WooCommerce) — match prototype course page layout  */
/* ------------------------------------------------------------------ */

.product-page-main {
  width: 100%;
  margin: 0;
  padding: 0 0 80px;
  overflow: visible;
}

.product-page-main .woocommerce,
.product-page-main .woocommerce-notices-wrapper,
body.single-product div.product.rochi-single-product {
  float: none !important;
  width: 100%;
  max-width: none;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.product-page-main .woocommerce-notices-wrapper {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto 18px;
}

body.single-product div.product .images,
body.single-product div.product .summary,
body.single-product div.product .woocommerce-product-gallery,
body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .upsells.products {
  display: none !important;
}

.rochi-single-product .related-courses-section,
.related-courses-section.wave-courses {
  display: grid !important;
  width: min(var(--max), calc(100% - 56px));
  margin: 70px auto 30px;
}

.related-courses-section .section-head.light {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
}

.related-courses-section .section-head.light .section-link {
  color: var(--white);
  border-bottom: 3px solid currentColor;
  font-weight: 800;
}

body.course-product-page .site-header {
  margin-bottom: 54px;
}

.rochi-single-product.product-shell {
  display: block;
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto 80px;
  overflow: visible;
}

.rochi-single-product .product-hero {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.2fr) minmax(200px, 0.75fr);
  overflow: visible;
}

.rochi-single-product .product-video,
.rochi-single-product .product-info,
.rochi-single-product .benefit-list {
  min-width: 0;
}

.rochi-single-product .product-info h1,
.rochi-single-product .product_title {
  margin: 0;
  padding-top: 0.15em;
  overflow: visible;
  color: var(--red);
  font-size: clamp(28px, 2.8vw, 48px);
  line-height: 1.25;
  font-weight: 800;
}

.rochi-single-product .woocommerce-product-details__short-description,
.rochi-single-product .woocommerce-product-details__short-description p {
  margin: 0;
  color: #5a667c;
  font-size: var(--rochi-fs-course-desc);
  line-height: 1.75;
}

.rochi-single-product .product-actions {
  align-items: stretch;
}

.rochi-single-product .product-actions form.cart,
.rochi-single-product .product-actions form.rochi-add-to-cart {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 0;
  margin: 0;
  min-width: 0;
}

.rochi-single-product .product-actions .quantity {
  display: none !important;
}

body.single-product .rochi-single-product .product-actions .single_add_to_cart_button,
body.single-product .rochi-single-product .product-actions .single_add_to_cart_button.button,
body.single-product .rochi-single-product .product-actions .single_add_to_cart_button.button.alt,
.rochi-single-product .product-actions .buy-button {
  width: 100%;
  min-height: 58px;
  margin: 0;
  color: var(--white) !important;
  background: var(--green) !important;
  border: 3px solid var(--black) !important;
  box-shadow: 5px 5px 0 var(--black) !important;
  border-radius: 0 !important;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

body.single-product .rochi-single-product .product-actions .single_add_to_cart_button:hover,
.rochi-single-product .product-actions .buy-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--black) !important;
}

.rochi-single-product .rochi-login-required {
  margin: 0;
  padding: 14px 16px;
  color: var(--red);
  background: var(--paper);
  border: 3px solid var(--black);
  font-weight: 800;
}

.rochi-single-product .price-box.product-price .rochi-product-price .woocommerce-Price-amount,
.rochi-single-product .price-box.product-price .rochi-product-price,
.rochi-single-product .price-box.product-price strong .woocommerce-Price-amount,
.rochi-single-product .price-box.product-price strong {
  color: var(--black);
}

.rochi-consult-blocks {
  margin-bottom: 12px;
}

@media (max-width: 980px) {
  .rochi-single-product .product-hero,
  .product-hero {
    grid-template-columns: 1fr !important;
  }

  .rochi-single-product .product-actions {
    grid-template-columns: 1fr;
  }
}

/* Account — SpotPlayer licenses */
.rochi-licenses-grid {
  display: grid;
  gap: 22px;
}

.rochi-license-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: #fffefb;
  border: 4px solid #211b18;
  box-shadow: 8px 8px 0 #211b18;
}

.rochi-license-card__visual {
  min-height: 180px;
  text-decoration: none;
}

.rochi-license-card__body {
  display: grid;
  align-content: start;
  gap: 12px;
}

.rochi-license-card__body h3 {
  margin: 0;
  color: #211b18;
  font-size: 24px;
  line-height: 1.35;
}

.rochi-license-key-box {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: #f7f1e8;
  border: 3px solid #211b18;
}

.rochi-license-key-box span {
  color: #b3192d;
  font-weight: 800;
}

.rochi-license-key {
  display: block;
  padding: 10px 12px;
  color: #211b18;
  background: #fff;
  border: 2px solid #211b18;
  font-size: 16px;
  word-break: break-all;
}

.rochi-license-card .dashboard-link.secondary {
  justify-self: start;
  background: #fff;
  color: #211b18;
}

.rochi-licenses-empty {
  margin: 0;
  padding: 18px;
  border: 3px solid #211b18;
  background: #fffefb;
  font-weight: 700;
}

@media (max-width: 720px) {
  .rochi-license-card {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* Ticketing panel                                                    */
/* ------------------------------------------------------------------ */

.rochi-tickets-layout {
  display: grid;
  gap: 28px;
}

.rochi-ticket-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: #fffefb;
  border: 4px solid #211b18;
  box-shadow: 8px 8px 0 #211b18;
}

.rochi-ticket-panel-head {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 3px solid #211b18;
}

.rochi-ticket-panel-head span {
  justify-self: start;
  padding: 6px 12px;
  color: #fff;
  background: #b3192d;
  border: 2px solid #211b18;
  font-size: 13px;
  font-weight: 800;
}

.rochi-ticket-panel-head h3 {
  margin: 0;
  color: #b3192d;
  font-size: 28px;
  line-height: 1.25;
}

.rochi-ticket-panel-head p {
  margin: 0;
  color: #5a667c;
  font-size: 16px;
  line-height: 1.7;
}

.rochi-ticket-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rochi-ticket-field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.rochi-ticket-field.wide {
  grid-column: 1 / -1;
}

.rochi-ticket-field label {
  color: #211b18;
  font-size: 15px;
  font-weight: 800;
}

.rochi-ticket-field input,
.rochi-ticket-field select,
.rochi-ticket-field textarea,
.rochi-ticket-reply textarea {
  width: 100%;
  padding: 12px 14px;
  color: #211b18;
  background: #fff;
  border: 3px solid #211b18;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
}

.rochi-ticket-field textarea,
.rochi-ticket-reply textarea {
  min-height: 140px;
  resize: vertical;
}

.rochi-ticket-submit {
  justify-self: start;
  width: auto;
  min-width: 220px;
  margin-top: 8px;
}

.rochi-ticket-table-wrap {
  overflow-x: auto;
}

.rochi-ticket-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 3px solid #211b18;
}

.rochi-ticket-table th,
.rochi-ticket-table td {
  padding: 12px 10px;
  border: 2px solid rgba(33, 27, 24, 0.2);
  text-align: right;
  vertical-align: middle;
  font-size: 14px;
}

.rochi-ticket-table th {
  background: #f7f1e8;
  color: #211b18;
  font-weight: 800;
  white-space: nowrap;
}

.rochi-ticket-subject-link {
  display: block;
  color: #211b18;
  font-weight: 800;
  text-decoration: none;
}

.rochi-ticket-subject-link + small {
  display: block;
  margin-top: 4px;
  color: #5a667c;
}

.rochi-ticket-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 2px solid #211b18;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.rochi-ticket-badge.priority-low { background: #eef2f7; }
.rochi-ticket-badge.priority-normal { background: #fff3c4; }
.rochi-ticket-badge.priority-high { background: #ffd4b8; }
.rochi-ticket-badge.priority-urgent { background: #ffc9c9; color: #b3192d; }

.rochi-ticket-badge.status-open { background: #d9f5e4; }
.rochi-ticket-badge.status-pending { background: #ffe8b8; }
.rochi-ticket-badge.status-answered { background: #dce9ff; }
.rochi-ticket-badge.status-closed { background: #ececec; color: #666; }

.rochi-ticket-empty {
  padding: 20px;
  border: 3px dashed #211b18;
  background: #f7f1e8;
  text-align: center;
}

.rochi-ticket-view {
  display: grid;
  gap: 20px;
}

.rochi-ticket-view-head {
  display: grid;
  gap: 12px;
}

.rochi-ticket-view-head h3 {
  margin: 0;
  color: #211b18;
  font-size: 28px;
}

.rochi-ticket-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rochi-ticket-messages {
  display: grid;
  gap: 14px;
}

.rochi-ticket-message {
  padding: 16px;
  border: 3px solid #211b18;
  box-shadow: 4px 4px 0 #211b18;
  background: #fff;
}

.rochi-ticket-message.is-admin {
  background: #fff5f5;
  border-color: #b3192d;
}

.rochi-ticket-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.rochi-ticket-message-meta small,
.rochi-ticket-message-meta em {
  color: #5a667c;
  font-size: 13px;
}

.rochi-ticket-message-body p {
  margin: 0 0 8px;
  color: #211b18;
  line-height: 1.75;
}

.rochi-ticket-reply {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #f7f1e8;
  border: 3px solid #211b18;
}

.rochi-ticket-reply label {
  font-weight: 800;
}

.rochi-ticket-closed-note {
  margin: 0;
  padding: 14px 16px;
  background: #ececec;
  border: 3px solid #211b18;
  font-weight: 700;
}

@media (max-width: 900px) {
  .rochi-ticket-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* 404 — creative broken-thread stage                                 */
/* ------------------------------------------------------------------ */

.error-404-page {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto 90px;
  padding-top: 18px;
}

.error-404-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.12) 0 38%, transparent 38% 100%),
    var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.error-404-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  min-height: 320px;
  padding: 28px;
  background: var(--paper);
  border: 4px solid var(--black);
  box-shadow: 10px 10px 0 var(--black);
}

.error-404-digit {
  color: var(--red);
  font-size: clamp(92px, 14vw, 168px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-shadow: 6px 6px 0 var(--black);
  animation: rochi-404-bob 3.6s ease-in-out infinite;
}

.error-404-digit-b {
  animation-delay: -1.2s;
}

.error-404-loom {
  display: grid;
  place-items: center;
  width: clamp(120px, 18vw, 200px);
  animation: rochi-404-spin 18s linear infinite;
}

.error-404-loom img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(4px 4px 0 rgba(33, 27, 24, 0.35));
}

.error-404-stamp {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  font-size: 15px;
  font-weight: 900;
  transform: rotate(-8deg);
  animation: rochi-404-pulse 2.8s ease-in-out infinite;
}

.error-404-copy {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.error-404-kicker {
  margin: 0;
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.error-404-copy h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.15;
}

.error-404-copy > p {
  margin: 0;
  max-width: 34em;
  color: #5a667c;
  font-size: 18px;
  line-height: 1.8;
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.error-404-shortcuts {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.error-404-shortcuts a {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  color: inherit;
  background: var(--cream);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.error-404-shortcuts a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}

.error-404-shortcuts strong {
  color: var(--red);
  font-size: 18px;
}

.error-404-shortcuts span {
  color: #5a667c;
  font-size: 14px;
  font-weight: 700;
}

.order-complete-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.order-complete.is-failed {
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.16) 0 42%, transparent 42% 100%),
    var(--white);
}

.rochi-order-received {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto 70px;
}

@keyframes rochi-404-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes rochi-404-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rochi-404-pulse {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(-8deg) scale(1.04); }
}

@media (max-width: 980px) {
  .error-404-stage {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .error-404-visual {
    min-height: 240px;
  }

  .error-404-page {
    width: min(var(--max), calc(100% - 24px));
  }
}



/* Quiz + certificate CTA on single course */
.rochi-quiz-cta {
  margin-top: 76px;
}

.rochi-quiz-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: stretch;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(179, 25, 45, 0.08) 0 28%, transparent 28%),
    var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rochi-quiz-cta__header {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 40px 36px;
  border-left: 3px solid var(--black);
  background: var(--cream);
}

.rochi-quiz-cta__kicker {
  margin: 0;
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.rochi-quiz-cta__header h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.15;
}

.rochi-quiz-cta__lead {
  margin: 0;
  max-width: 28ch;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
}

.rochi-quiz-cta__panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 36px 34px;
}

.rochi-quiz-cta__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border: 2px solid var(--black);
  font-size: 14px;
  font-weight: 900;
}

.rochi-quiz-cta__badge.is-open {
  color: var(--white);
  background: var(--red);
}

.rochi-quiz-cta__badge.is-closed {
  color: var(--black);
  background: var(--paper);
}

.rochi-quiz-cta__title {
  margin: 0 0 16px;
  color: var(--black);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.35;
  font-weight: 900;
}

.rochi-quiz-cta__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.rochi-quiz-cta__facts li {
  display: grid;
  gap: 6px;
  padding: 14px 12px;
  background: var(--paper);
  border: 2px solid rgba(33, 27, 24, 0.22);
}

.rochi-quiz-cta__facts span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.rochi-quiz-cta__facts strong {
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.rochi-quiz-cta__note {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.rochi-quiz-cta__action {
  display: inline-flex;
  width: fit-content;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  text-decoration: none;
}

.rochi-quiz-cta__secondary {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding-bottom: 3px;
  color: var(--red);
  border-bottom: 2px solid currentColor;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.rochi-quiz-cta__body {
  min-width: 0;
}

@media (max-width: 900px) {
  .rochi-quiz-cta__inner {
    grid-template-columns: 1fr;
  }

  .rochi-quiz-cta__header {
    border-left: 0;
    border-bottom: 3px solid var(--black);
    padding: 28px 24px;
  }

  .rochi-quiz-cta__panel {
    padding: 26px 22px;
  }

  .rochi-quiz-cta__facts {
    grid-template-columns: 1fr;
  }

  .rochi-quiz-cta__lead {
    max-width: none;
  }
}

.rochi-account-quiz {
  display: grid;
  gap: 14px;
}

.rochi-quiz-form {
  display: grid;
  gap: 18px;
  margin-top: 12px;
  padding: 22px;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
}

.rochi-quiz-form h3 {
  margin: 0;
  font-size: 26px;
}

.rochi-quiz-question-field {
  margin: 0;
  padding: 14px 16px;
  border: 3px solid var(--black);
  background: var(--paper);
}

.rochi-quiz-question-field legend {
  padding: 0 8px;
  font-weight: 800;
}

.rochi-quiz-form label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0;
  font-weight: 700;
}

.rochi-quiz-form .button,
.rochi-quiz-form button {
  justify-self: start;
  min-height: 52px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.rochi-quiz-passed {
  color: var(--red);
  font-weight: 800;
}

.my-course-grid article .dashboard-link + .dashboard-link {
  margin-top: 4px;
}

/* ------------------------------------------------------------------ */
/* Responsive hardening (Elementor + mobile carousels) — v1.2.42     */
/* ------------------------------------------------------------------ */

html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget,
.elementor-widget-container,
.elementor-element {
  max-width: 100%;
  min-width: 0;
}

.elementor-widget-rochi_courses,
.elementor-widget-rochi_webinars,
.elementor-widget-rochi_teachers,
.elementor-widget-rochi_blog,
.elementor-widget-rochi_learning_paths {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.carousel-shell,
.course-row,
.webinar-row,
.teacher-row,
.blog-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.course-card,
.webinar-card,
.teacher-slide-card,
.blog-row article {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.site-header,
.hero,
.wave-courses,
.why-academy,
.course-archive,
.consult-form,
.faq-section,
.blog-preview,
.webinar-preview,
.teachers-preview,
.learning-path-preview,
.footer {
  max-width: 100%;
  box-sizing: border-box;
}

.learning-path-grid,
.course-listing-grid,
.webinar-grid,
.teacher-directory,
.article-grid,
.blog-grid,
.archive-grid {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 980px) and (min-width: 721px) {
  .course-row,
  .webinar-row,
  .teacher-row,
  .blog-row,
  .archive-row {
    grid-auto-columns: calc((100% - var(--carousel-gap, 16px)) / 2);
  }

  .learning-path-grid,
  .course-listing-grid,
  .webinar-grid,
  .teacher-directory,
  .blog-grid,
  .archive-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .wave-courses,
  .why-academy,
  .course-archive,
  .learning-path-preview,
  .webinar-preview,
  .teachers-preview,
  .consult-form,
  .faq-section,
  .blog-preview,
  .footer,
  .product-shell,
  .webinar-shell,
  .shop-shell,
  .path-shell,
  .consult-hero,
  .consult-benefits,
  .consult-process,
  .consult-page-form,
  .consult-faq,
  .page-hero,
  .archive-title,
  .archive-toolbar,
  .course-listing-grid,
  .webinar-grid,
  .article-layout,
  .contact-layout,
  .learning-path-grid,
  .teacher-directory,
  .single-article-shell,
  .related-courses-section.wave-courses {
    width: min(var(--max), calc(100% - 24px)) !important;
    max-width: calc(100% - 24px) !important;
    margin-inline: auto;
    box-sizing: border-box;
  }

  .course-row,
  .webinar-row,
  .teacher-row,
  .blog-row,
  .archive-row {
    --carousel-gap: 14px;
  }

  .carousel-shell {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 52px !important;
    box-sizing: border-box !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }

  .carousel-shell .course-row,
  .carousel-shell .webinar-row,
  .carousel-shell .teacher-row,
  .carousel-shell .blog-row,
  .carousel-shell .archive-row {
    display: flex !important;
    grid-column: auto !important;
    grid-auto-columns: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: var(--carousel-gap) !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
  }

  .carousel-shell .course-card,
  .carousel-shell .webinar-card,
  .carousel-shell .teacher-slide-card,
  .carousel-shell .blog-row > article,
  .carousel-shell .archive-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Keep desktop card shape: shorten forced heights on small screens */
  .carousel-shell .course-visual {
    aspect-ratio: 4 / 3 !important;
    min-height: 0 !important;
    padding: 16px !important;
  }

  .carousel-shell .course-visual.has-cover-image {
    padding: 0 !important;
  }

  .carousel-shell .course-body {
    min-height: 0 !important;
    padding: 16px !important;
    gap: 10px !important;
  }

  .carousel-shell .course-body h3,
  .carousel-shell .course-body > p {
    min-height: 0 !important;
  }

  .carousel-shell .course-body h3 {
    font-size: 20px !important;
  }

  .carousel-shell .course-body > p {
    font-size: 15px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel-shell .teacher-slide-card {
    min-height: 0 !important;
  }

  .carousel-shell .teacher-slide-card a {
    padding: 22px 18px !important;
    gap: 12px !important;
  }

  .carousel-shell .teacher-portrait {
    width: 88px !important;
    height: 88px !important;
    font-size: 40px !important;
  }

  .carousel-shell .teacher-slide-card h3 {
    font-size: 22px !important;
  }

  .carousel-shell .teacher-slide-card p {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .carousel-shell .webinar-card {
    min-height: 0 !important;
    padding: 18px !important;
    gap: 12px !important;
  }

  .carousel-shell .webinar-card h3 {
    font-size: 22px !important;
  }

  .carousel-shell .webinar-card p {
    font-size: 15px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel-shell .webinar-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .carousel-shell .webinar-actions a {
    min-width: 0 !important;
    width: 100% !important;
    justify-content: center;
    text-align: center;
    padding-inline: 8px !important;
    font-size: 14px !important;
  }

  .carousel-shell .blog-row > article {
    padding: 18px !important;
  }

  .carousel-shell .blog-row > article h3 {
    font-size: 20px !important;
  }

  .carousel-shell .blog-row > article p {
    font-size: 15px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel-shell .carousel-buttons {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-inline: 2px !important;
    pointer-events: none;
    z-index: 6;
  }

  .carousel-shell .carousel-buttons button {
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
    pointer-events: auto;
  }

  .learning-path-grid,
  .course-listing-grid,
  .webinar-grid,
  .teacher-directory,
  .blog-grid,
  .archive-grid,
  .article-grid,
  .paths-landing-points,
  .process-grid,
  .consult-benefit-grid,
  .my-course-grid,
  .saved-grid,
  .dashboard-stats,
  .form-grid,
  .contact-info-grid,
  .media-slot-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .learning-path-card,
  .course-list-card,
  .webinar-list-card,
  .article-card,
  .footer-card,
  .trust-mark .enamad-seal {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .footer {
    grid-template-columns: 1fr !important;
    gap: 22px;
    padding: 24px !important;
  }

  .footer-card,
  .trust-mark .enamad-seal,
  .footer nav {
    width: 100%;
  }

  .footer-card p:last-child {
    white-space: normal !important;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .section-head .section-link {
    align-self: flex-start;
  }

  .teacher-slide-card {
    min-height: 280px;
  }

  .teacher-portrait {
    width: 96px;
    height: 96px;
    font-size: 42px;
  }

  .course-visual,
  .blog-thumb {
    min-height: 180px;
  }
}

/* Account: consult sessions list */
.rochi-consult-list {
  display: grid;
  gap: 16px;
}

.rochi-consult-card {
  padding: 20px 22px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.rochi-consult-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rochi-consult-status {
  display: inline-block;
  font-weight: 800;
}

.rochi-consult-card.status-paid .rochi-consult-status {
  color: var(--red);
}

.rochi-consult-card.status-completed .rochi-consult-status {
  color: #1a7a3a;
}

/* Custom form builder shortcodes */
form.rochi-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin: 24px 0;
}

form.rochi-form > label,
form.rochi-form > fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
  min-width: 0;
  font-weight: 700;
}

form.rochi-form > .wide {
  grid-column: 1 / -1;
}

form.rochi-form input[type="text"],
form.rochi-form input[type="email"],
form.rochi-form input[type="tel"],
form.rochi-form input[type="url"],
form.rochi-form input[type="number"],
form.rochi-form select,
form.rochi-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 2px solid var(--black);
  background: var(--white);
  font: inherit;
}

form.rochi-form button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 12px 22px;
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.rochi-form-choices {
  display: grid;
  gap: 8px;
}

.rochi-form-choice {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}

.rochi-form-success {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 2px solid var(--black);
  background: #e8f6ec;
  font-weight: 800;
}

@media (max-width: 700px) {
  form.rochi-form {
    grid-template-columns: 1fr;
  }
}

/* Consult CTA on single product */
.rochi-single-product .rochi-product-consult-cta,
.rochi-product-consult-cta {
  margin: 48px 0 12px;
}

