/*
Theme Name:  Vibe English (Blocksy child)
Template:    blocksy
Description: Child theme for learnenglish-vibe.com. Holds the site's custom CSS, images and section patterns (Patterns › Vibe English in the block inserter).
Version:     1.6.4
Text Domain: blocksy-child
*/

/* =========================================================
   Brand colours and fonts are written in directly (v1.2.0), so
   Blocksy's palette and typography settings can't change them.
   Crimson #D23738 · Crimson deep #A51B23 · Ink #14173A
   Navy #022B7D · Border #EADADB · Blush #FBE7E7 · Soft blush #FFF6F5
   White #FFFFFF · Vibe blue #0273FF · Marigold #FF7005
   Marigold text #C25200 · Muted #5C5F78
   Display font: Bricolage Grotesque · Body font: Hanken Grotesk
   (both loaded by functions.php)
   Add new sections at the bottom, each with its own heading.
   ========================================================= */

/* ---------- SHARED: brand fonts on every Vibe section ---------- */
:root {
  --ve-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ve-body: 'Hanken Grotesk', system-ui, sans-serif;
}
.ve-hero, .ve-sec { font-family: var(--ve-body) !important; }
.ve-hero p, .ve-sec p, .ve-sec li, .ve-sec summary { font-family: inherit; }
.ve-hero h1, .ve-sec h1, .ve-sec h2, .ve-sec h3 {
  font-family: var(--ve-display) !important;
  text-transform: none !important;
}
.ve-hero .wp-block-button__link, .ve-sec .wp-block-button__link {
  font-family: var(--ve-body) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ---------- SHARED: buttons ----------
   These rules set the button look directly, so Blocksy's own
   button settings in the Customizer don't override them. */

.ve-btn-wa .wp-block-button__link,
.ve-btn-arrow .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

/* Filled crimson button (WhatsApp) */
.ve-btn-wa .wp-block-button__link {
  background: #D23738 !important;
  color: #FFFFFF !important;
  border: 0 !important;
}
.ve-btn-wa .wp-block-button__link:hover {
  background: #A51B23 !important;
  color: #FFFFFF !important;
}

/* Outline navy button (level test) */
.ve-btn-arrow .wp-block-button__link {
  background: #FFFFFF !important;
  color: #022B7D !important;
  border: 2px solid #022B7D !important;
}
.ve-btn-arrow .wp-block-button__link:hover {
  background: #022B7D !important;
  color: #FFFFFF !important;
}

/* WhatsApp icon and soft shadow on buttons with the ve-btn-wa class */
.ve-btn-wa .wp-block-button__link {
  box-shadow: 0 10px 24px rgba(210, 55, 56, 0.28);
}
.ve-btn-wa .wp-block-button__link::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.4 7.4L3 21l2.1-5.4A8.5 8.5 0 1 1 21 11.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.4 7.4L3 21l2.1-5.4A8.5 8.5 0 1 1 21 11.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Arrow after the text on buttons with the ve-btn-arrow class */
.ve-btn-arrow .wp-block-button__link::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- HOME HERO (.ve-hero) ---------- */

/* Text sits in the middle of the 580px-tall section; the background
   image (block Styles › Background) sits on the right */
.ve-hero { display: flex; flex-direction: column; justify-content: center; }

/* Text column: always left-aligned inside a 1200px container, max 560px wide,
   whatever Blocksy's page container or alignment settings are */
.ve-hero .ve-hero-text {
  width: 100%;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}
.ve-hero .ve-hero-text > * {
  max-width: 560px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}
.ve-hero .ve-hero-text > * + * { margin-top: 24px !important; }
.ve-hero .wp-block-buttons { justify-content: flex-start !important; gap: 14px; }

/* Hero colours set here so Blocksy's heading and text colours can't override them */
.ve-hero h1 { color: #022B7D !important; }
.ve-hero h1 mark {
  color: #D23738 !important;
  background: none !important;
}
.ve-hero .ve-hero-text p { color: #5C5F78 !important; }

/* Orange hand-drawn line under any highlighted word in the heading
   (highlight a word with the editor's Highlight tool) */
.ve-hero h1 mark {
  position: relative;
  display: inline-block;
}
.ve-hero h1 mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 14px;
  background: #FF7005;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 16' preserveAspectRatio='none'%3E%3Cpath d='M2 10 C30 2 50 14 80 8 S140 2 170 9 S230 14 258 6' stroke='black' stroke-width='5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 16' preserveAspectRatio='none'%3E%3Cpath d='M2 10 C30 2 50 14 80 8 S140 2 170 9 S230 14 258 6' stroke='black' stroke-width='5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Desktop: hide the mobile image (the background image shows instead) */
.ve-hero-mobile { display: none; }

/* Under 1000px: drop the background image and show the mobile image under the text */
@media (max-width: 1000px) {
  .ve-hero { background-image: none !important; min-height: 0 !important; padding-bottom: 40px !important; }
  .ve-hero-mobile { display: block; max-width: 520px; margin: 32px auto 0 !important; }
  .ve-hero-mobile img { width: 100%; height: auto; }
}

/* =========================================================
   v1.1.0 — HOME SECTIONS 2 TO 7
   Every section below is a pattern with the class "ve-sec".
   Layout, colours and type are set here, so Blocksy's own
   heading, text and button settings can't override them.
   ========================================================= */

/* ---------- SHARED: section basics ---------- */

.entry-content > .ve-hero,
.entry-content > .ve-sec {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.ve-sec {
  position: relative;
  box-sizing: border-box;
  color: #14173A;
}
.ve-sec * { box-sizing: border-box; }

/* Spacing inside sections comes from flex/grid gaps, not block margins */
.ve-sec h1, .ve-sec h2, .ve-sec h3, .ve-sec p, .ve-sec figure, .ve-sec details {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.ve-sec .wp-block-group, .ve-sec .wp-block-buttons, .ve-sec .wp-block-image {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 1200px content column */
.ve-sec .ve-wrap {
  width: 100%;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Headings */
.ve-sec h2, .ve-sec h3 { font-family: var(--ve-display); }
.ve-sec .ve-title {
  font-size: clamp(32px, 3.6vw, 46px) !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  color: #022B7D !important;
}
.ve-sec .ve-title--sm { font-size: clamp(30px, 3.2vw, 42px) !important; }
.ve-sec .ve-lead {
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: #5C5F78 !important;
}
.ve-sec .ve-eyebrow {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A51B23 !important;
}

/* Links inside sections */
.ve-sec p a { color: #A51B23; font-weight: 700; }
.ve-sec p a:hover { color: #022B7D; }

/* Text link with an arrow after it ("How classes work →") */
.ve-sec .ve-link-arrow a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.ve-sec .ve-link-arrow a::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- SHARED: more button styles ----------
   Add one of these classes to a Button block (Advanced › Additional CSS class):
   ve-btn-outline   navy outline pill, no arrow ("All courses")
   ve-btn-white     white pill with dark red text (on crimson)
   ve-btn-ghost-white  white outline pill (on crimson)
   ve-btn-soft      blush pill with dark red text ("See all questions") */

.ve-sec .wp-block-buttons { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px; }

.ve-btn-outline .wp-block-button__link,
.ve-btn-white .wp-block-button__link,
.ve-btn-ghost-white .wp-block-button__link,
.ve-btn-soft .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ve-btn-outline .wp-block-button__link,
.ve-btn-soft .wp-block-button__link {
  min-height: 48px;
  padding: 0 22px !important;
}

.ve-btn-outline .wp-block-button__link {
  background: #FFFFFF !important;
  color: #022B7D !important;
  border: 2px solid #022B7D !important;
}
.ve-btn-outline .wp-block-button__link:hover {
  background: #022B7D !important;
  color: #FFFFFF !important;
}

.ve-btn-white .wp-block-button__link {
  background: #FFFFFF !important;
  color: #A51B23 !important;
  border: 2px solid #FFFFFF !important;
}
.ve-btn-white .wp-block-button__link:hover {
  background: #FBE7E7 !important;
  border-color: #FBE7E7 !important;
  color: #A51B23 !important;
}

.ve-btn-ghost-white .wp-block-button__link {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
}
.ve-btn-ghost-white .wp-block-button__link:hover {
  background: #FFFFFF !important;
  color: #A51B23 !important;
}

.ve-btn-soft .wp-block-button__link {
  background: #FBE7E7 !important;
  color: #A51B23 !important;
  border: 0 !important;
}
.ve-btn-soft .wp-block-button__link:hover {
  background: #A51B23 !important;
  color: #FFFFFF !important;
}

/* ---------- HOME 2: PHRASE TAPES (.ve-tapes) ----------
   Two tilted strips of everyday phrases. Each phrase is its own
   paragraph; the separators are added here. */

.ve-tapes {
  padding: 40px 0 72px;
  overflow: hidden;
}
.ve-tapes .ve-tape {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 28px;
  width: 112%;
  margin-left: -6% !important;
  white-space: nowrap;
  font-family: var(--ve-display);
  font-weight: 700;
}
.ve-tapes .ve-tape p {
  font-family: var(--ve-display);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: inherit !important;
  line-height: 1.3 !important;
  color: inherit !important;
}
.ve-tapes .ve-tape--pink {
  transform: rotate(1.6deg);
  padding: 16px 0;
  background: #FBE7E7;
  font-size: 20px;
  color: #A51B23;
}
.ve-tapes .ve-tape--pink p + p::before { content: "·"; }
.ve-tapes .ve-tape--navy {
  position: relative;
  z-index: 1;
  transform: rotate(-2deg);
  margin-top: -14px !important;
  padding: 18px 0;
  background: #022B7D;
  font-size: 22px;
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(2, 43, 125, 0.18);
}
.ve-tapes .ve-tape--navy p + p::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #FF7005;
  clip-path: polygon(0 7%, 100% 7%, 50% 93%);
}
@media (max-width: 760px) {
  .ve-tapes .ve-tape--pink { font-size: 17px; }
  .ve-tapes .ve-tape--navy { font-size: 18px; }
}

/* ---------- HOME 3: WHY LEARNERS CHOOSE US (.ve-why) ---------- */

.ve-why { padding: 112px 24px 128px; }
.ve-why .ve-title {
  max-width: 720px;
  margin: 0 auto 88px !important;
  text-align: center;
}
.ve-why .ve-why-rows {
  position: relative;
  display: flex !important;
  flex-direction: column;
  gap: 120px;
}
/* Dotted wavy line down the middle (desktop only) */
.ve-why .ve-why-rows::before {
  content: "";
  position: absolute;
  left: calc(50% - 40px);
  top: 0;
  bottom: 20px;
  width: 80px;
  pointer-events: none;
  background: #D23738;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 1200' preserveAspectRatio='none'%3E%3Cpath d='M40 0 C80 200 0 400 40 600 C80 800 0 1000 40 1200' stroke='black' stroke-width='3' stroke-dasharray='2 12' stroke-linecap='round' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 1200' preserveAspectRatio='none'%3E%3Cpath d='M40 0 C80 200 0 400 40 600 C80 800 0 1000 40 1200' stroke='black' stroke-width='3' stroke-dasharray='2 12' stroke-linecap='round' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.ve-why .ve-why-row {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px 96px;
}
.ve-why .ve-why-row--rev { flex-direction: row-reverse; }
.ve-why .ve-why-text {
  flex: 0 1 480px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.ve-why .ve-why-img { flex: 0 1 460px; max-width: 460px; }
.ve-why .ve-why-img img { display: block; width: 100%; height: auto; }

/* Big pale number with a crimson dot */
.ve-why .ve-why-num {
  position: relative;
  height: 104px;
  font-family: var(--ve-display);
  font-size: 128px !important;
  line-height: 0.82 !important;
  font-weight: 800 !important;
  color: #FBE7E7 !important;
}
.ve-why .ve-why-num::after {
  content: "";
  position: absolute;
  left: 62px;
  top: 40px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #D23738;
  box-shadow: 0 0 0 6px #FFFFFF;
}
.ve-why h3 {
  font-size: 30px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  color: #022B7D !important;
}
.ve-why .ve-why-body {
  max-width: 460px;
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: #5C5F78 !important;
}
@media (max-width: 1100px) {
  .ve-why .ve-why-rows::before { display: none; }
  .ve-why .ve-why-rows { gap: 72px; }
}

/* ---------- HOME 4: COURSES (.ve-courses) ----------
   Soft blush band with a wave at the top and bottom. */

.ve-courses {
  padding: 152px 24px 184px;
  background: linear-gradient(to bottom,
    transparent 55px,
    #FFF6F5 55px,
    #FFF6F5 calc(100% - 55px),
    transparent calc(100% - 55px));
}
.ve-courses::before,
.ve-courses::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 56px;
  background: #FFF6F5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 260 0 520 0 760 34 C 1000 68 1220 64 1440 26 L1440 70 L0 70Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 260 0 520 0 760 34 C 1000 68 1220 64 1440 26 L1440 70 L0 70Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.ve-courses::before { top: 0; }
.ve-courses::after { bottom: 0; transform: scaleY(-1); }

.ve-courses .ve-wrap {
  display: flex !important;
  flex-direction: column;
  gap: 56px;
}
.ve-courses .ve-courses-head {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.ve-courses .ve-courses-intro {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
}

/* Course card (v1.3.0): one solid brand colour, a big white title,
   a short meta line, and the 3D object large in the bottom-right
   corner. The course name is the link; it covers the whole card. */
.ve-courses .ve-course-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.ve-courses .ve-course {
  --ve-bg: #D23738;
  position: relative;
  flex: 0 1 calc((100% - 56px) / 3);
  min-width: 280px;
  min-height: 400px;
  display: flex !important;
  flex-direction: column;
  gap: 14px;
  padding: 34px 32px 30px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ve-bg);
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(20, 23, 58, 0.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ve-courses .ve-course:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(20, 23, 58, 0.2);
}
.ve-courses .ve-course:focus-within {
  outline: 3px solid #022B7D;
  outline-offset: 4px;
}
.ve-courses .ve-course--general   { --ve-bg: #D23738; }
.ve-courses .ve-course--spoken    { --ve-bg: #022B7D; }
.ve-courses .ve-course--business  { --ve-bg: #0262DB; }
.ve-courses .ve-course--grammar   { --ve-bg: #C25200; }
.ve-courses .ve-course--interview { --ve-bg: #A51B23; }

.ve-courses .ve-course p,
.ve-courses .ve-course h3,
.ve-courses .ve-course a { color: #FFFFFF !important; }

/* Text sits above the 3D object */
.ve-courses .ve-course > *:not(.ve-course-img) {
  position: relative;
  z-index: 2;
}

/* No eyebrow labels on the cards */
.ve-courses .ve-course .ve-course-eyebrow { display: none !important; }

.ve-courses .ve-course .ve-course-title {
  max-width: 80%;
  font-size: 32px !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}
.ve-courses .ve-course .ve-course-title a { text-decoration: none; }
.ve-courses .ve-course-title a::after {
  content: "";
  position: absolute;
  inset: -400px;
  z-index: 3;
}
.ve-courses .ve-course { isolation: isolate; }
.ve-courses .ve-course-title a:focus { outline: none; }

.ve-courses .ve-course .ve-course-desc {
  max-width: 64%;
  font-size: 15px !important;
  line-height: 1.6 !important;
  opacity: 0.92;
}

/* Meta line: "A1 to C1 | 4 to 20 hours" */
.ve-courses .ve-course .ve-course-tags {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  max-width: 64%;
}
.ve-courses .ve-course .ve-course-tags p {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}
.ve-courses .ve-course .ve-course-tags p + p::before {
  content: "|";
  margin: 0 10px;
  opacity: 0.55;
}

/* Large 3D object in the bottom-right corner */
.ve-courses .ve-course .ve-course-img {
  position: absolute !important;
  z-index: 1;
  right: -6px;
  bottom: -6px;
  width: 52%;
  max-width: 210px;
  pointer-events: none;
}
.ve-courses .ve-course .ve-course-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 16px 18px rgba(20, 23, 58, 0.3));
  transition: transform .35s ease;
}
.ve-courses .ve-course:hover .ve-course-img img { transform: translate(-4px, -6px) rotate(-3deg) scale(1.04); }

.ve-courses .ve-course .ve-course-badge {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ve-bg) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
/* Keep the title clear of the badge */
.ve-courses .ve-course .ve-course-badge + .ve-course-title { max-width: none; padding-right: 112px; }

/* "View course →" bottom-left */
.ve-courses .ve-course .ve-course-more {
  margin-top: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px !important;
  font-weight: 700 !important;
}
.ve-courses .ve-course-more::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  transition: transform .2s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ve-courses .ve-course:hover .ve-course-more::after { transform: translateX(4px); }

@media (max-width: 1000px) {
  .ve-courses .ve-course { flex-basis: calc((100% - 28px) / 2); }
}
@media (max-width: 640px) {
  .ve-courses .ve-course { flex-basis: 100%; min-height: 360px; }
  .ve-courses .ve-course .ve-course-tags { max-width: 100%; }
  .ve-courses .ve-course .ve-course-desc { max-width: 72%; }
}

/* "Preparing for an exam?" strip */
.ve-courses .ve-exam {
  align-self: center;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  padding: 18px 24px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px dashed #EADADB;
}
.ve-courses .ve-exam p { font-size: 16px !important; line-height: 1.4 !important; }
.ve-courses .ve-exam p:first-child { font-weight: 600; color: #5C5F78 !important; }
.ve-courses .ve-exam a { text-decoration: none; }
@media (max-width: 760px) {
  .ve-courses .ve-exam { border-radius: 24px; }
}

/* ---------- HOME 5: HOW IT WORKS (.ve-how) ---------- */

.ve-how { padding: 120px 24px; }
.ve-how .ve-wrap {
  display: flex !important;
  flex-direction: column;
  gap: 80px;
}
.ve-how .ve-how-head {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.ve-how .ve-how-head .ve-lead { max-width: 620px; }
.ve-how .ve-steps {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}
/* Dotted curve joining the three circles (desktop only) */
.ve-how .ve-steps::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 100%;
  height: 90px;
  pointer-events: none;
  background: #D23738;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M180 40 C 360 120 440 -20 600 40 S 860 120 1020 40' stroke='black' stroke-width='3' stroke-dasharray='2 12' stroke-linecap='round' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M180 40 C 360 120 440 -20 600 40 S 860 120 1020 40' stroke='black' stroke-width='3' stroke-dasharray='2 12' stroke-linecap='round' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.ve-how .ve-step {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  text-align: center;
}
.ve-how .ve-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: #D23738;
  box-shadow: 0 0 0 10px #FBE7E7;
  font-family: var(--ve-display);
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
}
.ve-how .ve-step-num--navy {
  background: #022B7D;
  box-shadow: 0 0 0 10px #EEF1F8;
}
.ve-how .ve-step h3 {
  margin-top: 12px !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #022B7D !important;
}
.ve-how .ve-step-body {
  max-width: 320px;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #5C5F78 !important;
}
@media (max-width: 900px) {
  .ve-how .ve-steps::before { display: none; }
  .ve-how .ve-steps { gap: 64px; }
}

/* ---------- HOME 6: WHERE WE TEACH (.ve-where) ----------
   v1.3.0: heading, short intro and mascot on the left (they stay in
   view on desktop while you scroll); on the right, three separate
   points, each with a marigold sparkle. */

.ve-where { padding: 120px 24px; }
.ve-where .ve-wrap {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px 96px;
}
.ve-where .ve-where-side {
  flex: 1 1 340px;
  max-width: 460px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 1000px) {
  .ve-where .ve-where-side { position: sticky; top: 120px; }
}
.ve-where .ve-where-side h2 {
  font-size: clamp(34px, 3.8vw, 50px) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.015em;
}
/* Highlight a word in the heading with the editor's Highlight tool */
.ve-where .ve-where-side h2 mark {
  background: none !important;
  color: #D23738 !important;
}
.ve-where .ve-where-side > p:not(.ve-eyebrow) {
  max-width: 420px;
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: #5C5F78 !important;
}
.ve-where .ve-where-mascot {
  width: 200px;
  margin-top: 12px !important;
}
.ve-where .ve-where-mascot img { display: block; width: 100%; height: auto; }

.ve-where .ve-where-main {
  flex: 1 1 520px;
  max-width: 620px;
  display: flex !important;
  flex-direction: column;
}
.ve-where .ve-where-point {
  position: relative;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  padding: 40px 0 40px 56px;
  border-top: 1px solid #EADADB;
}
.ve-where .ve-where-point:first-child { padding-top: 6px; border-top: 0; }
.ve-where .ve-where-point:last-child { padding-bottom: 0; }
/* Marigold sparkle beside each point */
.ve-where .ve-where-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 42px;
  width: 30px;
  height: 30px;
  background: #FF7005;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0 C12 7 17 12 24 12 C17 12 12 17 12 24 C12 17 7 12 0 12 C7 12 12 7 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0 C12 7 17 12 24 12 C17 12 12 17 12 24 C12 17 7 12 0 12 C7 12 12 7 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ve-where .ve-where-point:first-child::before { top: 8px; }
.ve-where .ve-where-point h3 {
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #022B7D !important;
}
.ve-where .ve-where-point p {
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: #5C5F78 !important;
}

/* Emirate chips */
.ve-sec .ve-chips {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}
.ve-sec .ve-chips p {
  padding: 8px 16px;
  border-radius: 999px;
  background: #FFF6F5;
  border: 1px solid #EADADB;
  color: #022B7D !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}
.ve-sec .ve-chips p:last-child {
  background: #022B7D;
  border-color: #022B7D;
  color: #FFFFFF !important;
}

@media (max-width: 760px) {
  .ve-where { padding: 72px 20px; }
  .ve-where .ve-where-mascot { width: 150px; }
  .ve-where .ve-where-point { padding: 32px 0 32px 44px; }
  .ve-where .ve-where-point::before { width: 24px; height: 24px; top: 34px; }
}

/* ---------- SHARED: LEVEL TEST CTA (.ve-cta) ----------
   Reusable on any page; turn it into a synced pattern once. */

.ve-cta { padding: 40px 24px 120px; }
.ve-cta .ve-cta-box {
  position: relative;
  overflow: hidden;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding: 80px 72px;
  border-radius: 36px;
  background: #D23738;
}
/* Faint ring in the bottom-left corner */
.ve-cta .ve-cta-box::before {
  content: "";
  position: absolute;
  left: -92px;
  bottom: -152px;
  width: 364px;
  height: 364px;
  border-radius: 50%;
  border: 29px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.ve-cta .ve-cta-text {
  position: relative;
  flex: 1 1 420px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.ve-cta .ve-cta-text h2 {
  font-size: clamp(32px, 3.6vw, 48px) !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
}
.ve-cta .ve-cta-text > p {
  max-width: 460px;
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: #FFFFFF !important;
}
.ve-cta .ve-cta-text .wp-block-buttons { padding-top: 6px; }
.ve-cta .ve-cta-art {
  position: relative;
  flex: 1 1 360px;
  max-width: 440px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.ve-cta .ve-cta-blob {
  overflow: hidden;
  padding: 18% 17%;
  background: #FFFFFF;
  border-radius: 48% 52% 46% 54% / 52% 44% 56% 48%;
}
.ve-cta .ve-cta-blob img { display: block; width: 100%; height: auto; }

/* "Word of the day" card */
.ve-cta .ve-wotd {
  position: absolute !important;
  left: -24px;
  top: -20px;
  transform: rotate(-5deg);
  max-width: 220px;
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 12px 28px rgba(20, 23, 58, 0.18);
}
.ve-cta .ve-wotd p { line-height: 1.35 !important; }
.ve-cta .ve-wotd-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A51B23 !important;
}
.ve-cta .ve-wotd-word {
  font-family: var(--ve-display);
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #022B7D !important;
}
.ve-cta .ve-wotd-meaning {
  font-size: 13px !important;
  color: #5C5F78 !important;
}
.ve-cta .ve-wotd-example {
  font-size: 13px !important;
  font-style: italic;
  color: #14173A !important;
}
@media (max-width: 760px) {
  .ve-cta .ve-cta-box { padding: 40px 24px; border-radius: 28px; }
  .ve-cta .ve-wotd { left: 0; top: -12px; }
}

/* ---------- SHARED: FAQ TEASER (.ve-faq) ----------
   Uses the core Details block. Reusable on any page. */

.ve-faq { padding: 40px 24px 128px; }
.ve-faq .ve-wrap {
  display: flex !important;
  flex-wrap: wrap;
  gap: 48px 112px;
}
.ve-faq .ve-faq-side {
  flex: 1 1 320px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 1000px) {
  .ve-faq .ve-faq-side { position: sticky; top: 120px; align-self: flex-start; }
}
.ve-faq .ve-faq-side .wp-block-buttons { margin-top: 6px !important; }
.ve-faq .ve-faq-list {
  flex: 2 1 520px;
  display: flex !important;
  flex-direction: column;
}
.ve-faq details {
  padding: 26px 0;
  border: 0;
  border-bottom: 1px solid #EADADB;
}
.ve-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-family: var(--ve-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #022B7D;
}
.ve-faq summary::-webkit-details-marker { display: none; }
.ve-faq summary::marker { content: ""; }
.ve-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #FBE7E7;
  color: #A51B23;
  font-family: var(--ve-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.ve-faq details[open] summary::after {
  content: "−";
  background: #D23738;
  color: #FFFFFF;
}
.ve-faq details > p {
  max-width: 620px;
  margin-top: 14px !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: #5C5F78 !important;
}

/* ---------- SHARED: spacing on phones ---------- */
@media (max-width: 760px) {
  .ve-why { padding: 72px 20px 80px; }
  .ve-why .ve-title { margin-bottom: 56px !important; }
  .ve-courses { padding: 112px 20px 140px; }
  .ve-courses .ve-wrap { gap: 40px; }
  .ve-how { padding: 80px 20px; }
  .ve-how .ve-wrap { gap: 56px; }
  .ve-cta { padding: 24px 20px 80px; }
  .ve-cta .ve-cta-box { padding: 48px 24px; gap: 40px; }
  .ve-faq { padding: 24px 20px 88px; }
}

/* ---------- SHARED: SCROLL EFFECTS ----------
   assets/js/ve-scroll.js adds these classes on the live site only
   (never in the editor). Parts fade up as they come into view. */

.ve-js .ve-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1) !important;
}
.ve-js .ve-anim.ve-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .ve-js .ve-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- SITE FOOTER (.ve-footer) ----------
   Shown on every page by functions.php (edit it under Patterns › Site footer).
   Blocksy's own footer contents are hidden while this one is active. */

.ve-has-footer .ct-footer > :not(.ve-footer) { display: none !important; }
.ve-has-footer .ct-footer { padding: 0 !important; background: none !important; border: 0 !important; }

.ve-footer {
  position: relative;
  margin: 0 !important;
  padding: 120px 24px 36px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif !important;
  color: #14173A;
  background: linear-gradient(to bottom, transparent 63px, #FFF6F5 63px);
}
/* Wave at the top */
.ve-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  background: #FFF6F5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 48 C 240 8 420 8 640 40 C 860 72 1080 76 1260 40 C 1340 24 1400 24 1440 32 L1440 80 L0 80Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 48 C 240 8 420 8 640 40 C 860 72 1080 76 1260 40 C 1340 24 1400 24 1440 32 L1440 80 L0 80Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.ve-footer * { box-sizing: border-box; }
.ve-footer p, .ve-footer figure, .ve-footer .wp-block-group,
.ve-footer .wp-block-buttons, .ve-footer ul {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.ve-footer .ve-foot-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto !important;
}

/* Mascot peeking over the card, with its speech bubble */
.ve-footer .ve-foot-greeting {
  position: absolute !important;
  right: 56px;
  top: -112px;
  z-index: 0;
  display: flex !important;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.ve-footer .ve-foot-mascot { width: 160px; }
.ve-footer .ve-foot-mascot img { display: block; width: 100%; height: auto; }
.ve-footer .ve-foot-bubble {
  margin-bottom: 40px !important;
  padding: 10px 16px;
  border-radius: 20px 20px 4px 20px;
  background: #FFFFFF;
  border: 2px solid #EADADB;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.3;
  color: #022B7D !important;
  white-space: nowrap;
}

/* White card holding the brand and the link columns */
.ve-footer .ve-foot-card {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-wrap: wrap;
  gap: 40px 40px;
  padding: 56px;
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(20, 23, 58, 0.08);
}
.ve-footer .ve-foot-brand {
  flex: 1.4 1 240px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.ve-footer .ve-foot-logo { width: 84px; }
.ve-footer .ve-foot-logo img { display: block; width: 100%; height: auto; }
.ve-footer .ve-foot-brand > p {
  max-width: 300px;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: #5C5F78 !important;
}
.ve-footer .wp-block-buttons { display: flex !important; }
.ve-footer .ve-btn-wa .wp-block-button__link {
  min-height: 48px;
  padding: 0 22px !important;
  font-size: 15px !important;
  font-family: 'Hanken Grotesk', system-ui, sans-serif !important;
  box-shadow: none;
}

/* Social icons: soft blush circles, crimson on hover */
.ve-footer .ve-socials {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px !important;
  padding: 4px 0 0 !important;
  list-style: none;
}
.ve-footer .ve-socials .wp-social-link {
  margin: 0 !important;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #FFF6F5 !important;
  border: 1px solid #EADADB;
  color: #022B7D !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.ve-footer .ve-socials .wp-social-link a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  color: inherit !important;
}
.ve-footer .ve-socials .wp-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.ve-footer .ve-socials .wp-social-link:hover {
  background: #D23738 !important;
  border-color: #D23738;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Service names are for screen readers only */
.ve-footer .ve-socials .wp-block-social-link-label,
.ve-footer .ve-socials .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Link columns */
.ve-footer .ve-foot-col {
  flex: 1 1 150px;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}
.ve-footer .ve-foot-col p {
  font-size: 15px !important;
  line-height: 1.5 !important;
}
.ve-footer .ve-foot-col .ve-foot-title {
  margin-bottom: 6px !important;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 17px !important;
  font-weight: 700;
  color: #022B7D !important;
}
.ve-footer .ve-foot-col a {
  color: #14173A !important;
  text-decoration: none;
  transition: color .2s ease;
}
.ve-footer .ve-foot-col a:hover { color: #A51B23 !important; }

/* Bottom line */
.ve-footer .ve-foot-bottom {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 8px 0;
}
.ve-footer .ve-foot-bottom p {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #5C5F78 !important;
}

@media (max-width: 760px) {
  .ve-footer { padding: 104px 16px 28px; }
  .ve-footer .ve-foot-card { padding: 36px 24px; gap: 36px 24px; }
  .ve-footer .ve-foot-col { flex-basis: 40%; }
  .ve-footer .ve-foot-greeting { right: 12px; top: -100px; }
  .ve-footer .ve-foot-mascot { width: 120px; }
  .ve-footer .ve-foot-bubble { margin-bottom: 24px !important; font-size: 14px !important; }
}

/* =========================================================
   v1.5.0 — COURSES PAGE (/english-courses/)
   Patterns: Courses 1 to 5. The cards reuse the Home 4 card
   design (.ve-courses .ve-course), with hub-only tweaks below.
   ========================================================= */

/* ---------- COURSES 1: BANNER (.ve-cbanner) ----------
   Blush band with a wave at the bottom; mascot art on the right. */

.ve-cbanner {
  padding: 64px 24px 128px;
  overflow: hidden;
  background: linear-gradient(to bottom,
    #FFF6F5 calc(100% - 55px),
    transparent calc(100% - 55px));
}
.ve-cbanner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: #FFF6F5;
  transform: scaleY(-1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 260 0 520 0 760 34 C 1000 68 1220 64 1440 26 L1440 70 L0 70Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 260 0 520 0 760 34 C 1000 68 1220 64 1440 26 L1440 70 L0 70Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.ve-cbanner .ve-wrap {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px 64px;
}
.ve-cbanner .ve-cbanner-text {
  flex: 1 1 480px;
  max-width: 640px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.ve-cbanner .ve-cbanner-text .ve-lead { max-width: 560px; }

/* Breadcrumb */
.ve-sec .ve-crumbs {
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #5C5F78 !important;
}
.ve-sec .ve-crumbs a { color: #5C5F78 !important; font-weight: 500; text-decoration: none; }
.ve-sec .ve-crumbs a:hover { color: #A51B23 !important; }
.ve-sec .ve-crumbs span:last-child { color: #14173A; font-weight: 600; }
.ve-sec .ve-crumbs span[aria-hidden] { margin: 0 6px; }

.ve-cbanner .ve-cbanner-title {
  font-size: clamp(38px, 4.6vw, 58px) !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: #022B7D !important;
}
/* Highlight a word with the editor's Highlight tool */
.ve-cbanner .ve-cbanner-title mark {
  background: none !important;
  color: #D23738 !important;
}

/* Mascot art: crimson ring, blush circle, three tilted tags */
.ve-cbanner .ve-cbanner-art {
  position: relative;
  flex: 0 1 420px;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  margin-left: auto !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Ccircle cx='230' cy='160' r='128' stroke='%23D23738' stroke-width='10' fill='none' stroke-dasharray='560 260' stroke-linecap='round' transform='rotate(-140 230 160)'/%3E%3Ccircle cx='230' cy='160' r='96' fill='%23FBE7E7'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.ve-cbanner .ve-cbanner-mascot {
  position: absolute !important;
  left: 37.5%;
  top: 24%;
  width: 42.5%;
}
.ve-cbanner .ve-cbanner-mascot img { display: block; width: 100%; height: auto; }
.ve-cbanner .ve-cbanner-tag {
  position: absolute;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 16px;
  font-family: var(--ve-display);
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(20, 23, 58, 0.1);
}
.ve-cbanner .ve-cbanner-tag--1 {
  left: 1%;
  top: 13%;
  transform: rotate(-8deg);
  background: #022B7D;
  color: #FFFFFF !important;
}
.ve-cbanner .ve-cbanner-tag--2 {
  left: 7%;
  top: 62%;
  transform: rotate(6deg);
  background: #FFFFFF;
  border: 2px solid #EADADB;
  color: #A51B23 !important;
}
.ve-cbanner .ve-cbanner-tag--3 {
  right: 0;
  top: 3%;
  transform: rotate(10deg);
  background: #D23738;
  color: #FFFFFF !important;
}

/* ---------- COURSES 2: COURSE CARDS (.ve-courses--hub) ----------
   Same cards as Home 4, on white, a little taller for the longer
   descriptions. Card titles are H2 here (the page H1 is the banner). */

.ve-courses--hub {
  padding: 48px 24px 120px;
  background: none;
}
.ve-courses--hub::before,
.ve-courses--hub::after { display: none; }
.ve-courses .ve-course h2 { color: #FFFFFF !important; }
.ve-courses--hub .ve-course { min-height: 440px; }
.ve-courses--hub .ve-course .ve-course-desc,
.ve-courses--hub .ve-course .ve-course-tags { max-width: 100%; }
.ve-courses--hub .ve-course .ve-course-img { width: 46%; max-width: 180px; }
.ve-courses--hub .ve-course .ve-course-img img { max-height: 180px; }
.ve-courses--hub .ve-exam { background: #FFF6F5; }

/* ---------- COURSES 3: WHICH COURSE IS RIGHT FOR ME? (.ve-pick) ---------- */

.ve-pick { padding: 0 24px 128px; }
.ve-pick .ve-wrap {
  display: flex !important;
  flex-direction: column;
  gap: 48px;
}
.ve-pick .ve-pick-head {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.ve-pick .ve-pick-head .ve-lead { max-width: 680px; }
.ve-pick .ve-pick-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Speech-bubble card; the course link covers the whole card */
.ve-pick .ve-pick-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  padding: 34px 30px 30px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ve-pick .ve-pick-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20, 23, 58, 0.16);
}
.ve-pick .ve-pick-card:focus-within { outline: 3px solid #022B7D; outline-offset: 4px; }
.ve-pick .ve-pick-card--navy    { background: #022B7D; border-radius: 28px 28px 28px 8px; }
.ve-pick .ve-pick-card--crimson { background: #D23738; border-radius: 28px 28px 8px 28px; }
.ve-pick .ve-pick-card--blush   { background: #FBE7E7; border-radius: 8px 28px 28px 28px; }

.ve-pick .ve-pick-intro {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: rgba(255, 255, 255, 0.85) !important;
}
.ve-pick .ve-pick-end {
  font-size: 26px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
}
.ve-pick .ve-pick-card--blush .ve-pick-intro { color: #A51B23 !important; }
.ve-pick .ve-pick-card--blush .ve-pick-end { color: #022B7D !important; }

.ve-pick .ve-pick-link { margin-top: auto !important; }
.ve-pick .ve-pick-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #022B7D !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.ve-pick .ve-pick-card--crimson .ve-pick-link a { color: #A51B23 !important; }
.ve-pick .ve-pick-card--blush .ve-pick-link a { background: #D23738; color: #FFFFFF !important; }
.ve-pick .ve-pick-link a:focus { outline: none; }
/* Arrow after the link text */
.ve-pick .ve-pick-link a::before {
  content: "";
  order: 2;
  width: 16px;
  height: 16px;
  background: currentColor;
  transition: transform .2s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ve-pick .ve-pick-card:hover .ve-pick-link a::before { transform: translateX(3px); }
/* Makes the whole card clickable */
.ve-pick .ve-pick-link a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Level test strip */
.ve-pick .ve-pick-test {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 24px;
  border: 2px dashed #EADADB;
}
.ve-pick .ve-pick-test > p {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: #022B7D !important;
}
.ve-pick .ve-pick-test > p::before {
  content: "";
  flex: 0 0 48px;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='24' fill='%23FBE7E7'/%3E%3Cpath d='M16 24l6 6 11-12' stroke='%23D23738' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- COURSES 4: LONG-FORM TEXT (.ve-longform) ----------
   Reusable for any page's SEO text: blush band with waves,
   an 860px reading column, H2 then H3 + paragraphs. */

.ve-longform {
  padding: 152px 24px 168px;
  background: linear-gradient(to bottom,
    transparent 55px,
    #FFF6F5 55px,
    #FFF6F5 calc(100% - 55px),
    transparent calc(100% - 55px));
}
.ve-longform::before,
.ve-longform::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 56px;
  background: #FFF6F5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 260 0 520 0 760 34 C 1000 68 1220 64 1440 26 L1440 70 L0 70Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 260 0 520 0 760 34 C 1000 68 1220 64 1440 26 L1440 70 L0 70Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.ve-longform::before { top: 0; }
.ve-longform::after { bottom: 0; transform: scaleY(-1); }
.ve-longform .ve-wrap {
  max-width: 860px !important;
  display: flex !important;
  flex-direction: column;
  gap: 18px;
}
.ve-longform .ve-title { margin-bottom: 8px !important; }
.ve-longform h3 {
  margin-top: 22px !important;
  font-size: 23px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #022B7D !important;
}
.ve-longform p {
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: #5C5F78 !important;
}

/* ---------- COURSES 5: FAQ ----------
   Uses the shared FAQ layout (.ve-faq). More room after the blush band. */
.ve-longform + .ve-faq { padding-top: 120px; }

/* ---------- Courses page on phones ---------- */
@media (max-width: 760px) {
  .ve-cbanner { padding: 40px 20px 96px; }
  .ve-cbanner .ve-cbanner-art { display: none !important; }
  .ve-courses--hub { padding: 32px 20px 80px; }
  .ve-courses--hub .ve-course { min-height: 400px; }
  .ve-pick { padding: 0 20px 80px; }
  .ve-pick .ve-wrap { gap: 36px; }
  .ve-pick .ve-pick-card { min-height: 240px; padding: 28px 24px 24px; }
  .ve-pick .ve-pick-end { font-size: 23px !important; }
  .ve-pick .ve-pick-test { padding: 24px 20px; }
  .ve-pick .ve-pick-test > p { font-size: 17px !important; }
  .ve-pick .ve-pick-test > p::before { flex-basis: 40px; height: 40px; }
  .ve-longform { padding: 112px 20px 128px; }
  .ve-longform + .ve-faq { padding-top: 72px; }
}

/* =========================================================
   v1.6.0 — FREE LEVEL TEST PAGE (/free-english-level-test/)
   Patterns: Level test 1 to 3. The test itself is built by
   assets/js/ve-level-test.js inside .ve-ltest (.ve-lt...).
   Level test 2 reuses the Home 6 layout (.ve-where); 3 uses .ve-faq.
   ========================================================= */

/* ---------- LEVEL TEST 1: INTRO (.ve-ltest) ---------- */

.ve-ltest {
  padding: 56px 24px 136px;
  overflow: hidden;
  overflow: clip; /* clip, not hidden, so the reading text can stay in view (sticky) */
  background: linear-gradient(to bottom,
    #FFF6F5 calc(100% - 55px),
    transparent calc(100% - 55px));
}
.ve-ltest::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: #FFF6F5;
  transform: scaleY(-1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 260 0 520 0 760 34 C 1000 68 1220 64 1440 26 L1440 70 L0 70Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 260 0 520 0 760 34 C 1000 68 1220 64 1440 26 L1440 70 L0 70Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.ve-ltest .ve-wrap { position: relative; }

/* Mascot art (desktop only): crimson ring, mascot, two tilted tags */
.ve-ltest .ve-ltest-art {
  position: absolute !important;
  right: -20px;
  top: 0;
  width: 250px;
  aspect-ratio: 1;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Ccircle cx='150' cy='150' r='120' stroke='%23D23738' stroke-width='10' fill='none' stroke-dasharray='420 340' stroke-linecap='round' transform='rotate(-120 150 150)'/%3E%3Ccircle cx='150' cy='150' r='92' fill='%23FBE7E7'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.ve-ltest .ve-ltest-mascot {
  position: absolute !important;
  left: 24%;
  top: 22%;
  width: 52%;
}
.ve-ltest .ve-ltest-mascot img { display: block; width: 100%; height: auto; }
.ve-ltest .ve-ltest-tag {
  position: absolute;
  padding: 10px 16px;
  border-radius: 16px;
  font-family: var(--ve-display);
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(20, 23, 58, 0.1);
}
.ve-ltest .ve-ltest-tag--1 { left: -30px; top: 12%; transform: rotate(-8deg); background: #022B7D; color: #FFFFFF !important; }
.ve-ltest .ve-ltest-tag--2 { left: -10px; bottom: 6%; transform: rotate(6deg); background: #FFFFFF; border: 2px solid #EADADB; color: #A51B23 !important; }
@media (max-width: 1100px) { .ve-ltest .ve-ltest-art { display: none !important; } }

.ve-ltest .ve-ltest-intro {
  max-width: 820px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.ve-ltest .ve-ltest-title {
  font-size: clamp(40px, 5vw, 62px) !important;
  line-height: 1.04 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: #022B7D !important;
}
.ve-ltest .ve-ltest-title mark { background: none !important; color: #D23738 !important; }
.ve-ltest .ve-ltest-intro > .ve-lead { max-width: 640px; }

/* The two choice cards */
.ve-ltest .ve-ltest-opts {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 12px !important;
}
.ve-ltest .ve-ltest-opt {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 30px 28px 28px;
  border-radius: 28px;
  background: #FFFFFF;
  border: 2px solid #EADADB;
  box-shadow: 0 8px 24px rgba(20, 23, 58, 0.06);
}
.ve-ltest .ve-ltest-opt--full {
  background: #022B7D;
  border-color: #022B7D;
}
.ve-ltest .ve-ltest-time {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #A51B23 !important;
}
.ve-ltest .ve-ltest-opt-title {
  font-size: 30px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  color: #022B7D !important;
}
.ve-ltest .ve-ltest-opt-desc {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #5C5F78 !important;
}
.ve-ltest .ve-ltest-opt--full .ve-ltest-time { color: #FF7005 !important; }
.ve-ltest .ve-ltest-opt--full .ve-ltest-opt-title { color: #FFFFFF !important; }
.ve-ltest .ve-ltest-opt--full .ve-ltest-opt-desc { color: rgba(255, 255, 255, 0.82) !important; }
.ve-ltest .ve-ltest-opt .wp-block-buttons { margin-top: auto !important; padding-top: 8px; }
.ve-ltest .ve-ltest-note {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #5C5F78 !important;
}

/* Start buttons: filled crimson pill */
.ve-btn-start .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  min-height: 54px;
  padding: 0 26px !important;
  border-radius: 999px !important;
  background: #D23738 !important;
  color: #FFFFFF !important;
  border: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(210, 55, 56, 0.28);
  transition: background-color .2s ease;
}
.ve-btn-start .wp-block-button__link:hover { background: #A51B23 !important; color: #FFFFFF !important; }
.ve-ltest-opt--full .ve-btn-start .wp-block-button__link { box-shadow: none; }

/* While a test is running, the intro and art hide */
.ve-ltest.is-running .ve-ltest-intro > *:not(.ve-crumbs),
.ve-ltest.is-running .ve-ltest-art { display: none !important; }

/* ---------- LEVEL TEST 1: THE TEST (.ve-lt, built by JS) ---------- */

.ve-lt {
  max-width: 880px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--ve-body);
  color: #14173A;
}
.ve-lt[hidden] { display: none; }
.ve-lt p { margin: 0 !important; }
.ve-lt h2, .ve-lt h3 { margin: 0 !important; font-family: var(--ve-display); color: #022B7D; text-transform: none; }
.ve-lt [tabindex="-1"]:focus { outline: none; }
.ve-lt .ve-lt-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ve-lt .ve-lt-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 700;
}
.ve-lt .ve-lt-part { color: #A51B23; }
.ve-lt .ve-lt-count { color: #5C5F78; }
.ve-lt .ve-lt-bar {
  height: 12px;
  border-radius: 999px;
  background: #FBE7E7;
  overflow: hidden;
}
.ve-lt .ve-lt-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #D23738;
  transition: width .4s ease;
}
.ve-lt .ve-lt-bar--thin { height: 8px; }

.ve-lt .ve-lt-card {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 40px;
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(20, 23, 58, 0.08);
}
.ve-lt .ve-lt-loading { align-items: center; color: #5C5F78; }

/* Questions */
.ve-lt .ve-lt-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.ve-lt .ve-lt-qtext {
  display: block;
  padding: 0;
  margin-bottom: 18px;
  font-family: var(--ve-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  color: #022B7D;
}
.ve-lt .ve-lt-qs .ve-lt-qtext { font-size: 19px; margin-bottom: 12px; }
.ve-lt .ve-lt-qnum { color: #D23738; }
.ve-lt .ve-lt-gap {
  display: inline-block;
  width: 3.2em;
  height: 0.9em;
  margin: 0 3px;
  border-bottom: 3px solid #D23738;
  vertical-align: baseline;
}
.ve-lt .ve-lt-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ve-lt .ve-lt-qs .ve-lt-opts { grid-template-columns: 1fr; gap: 8px; }
.ve-lt .ve-lt-qs--wide .ve-lt-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ve-lt .ve-lt-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 2px solid #EADADB;
  background: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.ve-lt .ve-lt-qs .ve-lt-opt { min-height: 48px; padding: 7px 14px; gap: 12px; border-radius: 14px; font-size: 16px; }
.ve-lt .ve-lt-qs .ve-lt-key { width: 30px; height: 30px; border-radius: 9px; }
.ve-lt .ve-lt-opt:hover { border-color: #D23738; }
.ve-lt .ve-lt-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ve-lt .ve-lt-opt:focus-within { outline: 3px solid #022B7D; outline-offset: 2px; }
.ve-lt .ve-lt-key {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #FFF6F5;
  color: #022B7D;
  font-weight: 800;
}
.ve-lt .ve-lt-opt.is-picked { border-color: #D23738; background: #FBE7E7; }
.ve-lt .ve-lt-opt.is-picked .ve-lt-key { background: #D23738; color: #FFFFFF; }

/* Reading: text beside the questions */
.ve-lt .ve-lt-card--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.ve-lt .ve-lt-card--split .ve-lt-actions { grid-column: 1 / -1; }
.ve-lt .ve-lt-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 20px;
  background: #FFF6F5;
  font-size: 16px;
  line-height: 1.75;
}
@media (min-width: 900px) {
  .ve-lt .ve-lt-text { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow-y: auto; }
}
.ve-lt .ve-lt-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A51B23;
}
.ve-lt .ve-lt-text-title { font-size: 24px; line-height: 1.2; }
.ve-lt .ve-lt-qs { display: flex; flex-direction: column; gap: 28px; }

/* Listening player */
.ve-lt .ve-lt-audio {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border-radius: 20px;
  background: #FFF6F5;
}
.ve-lt .ve-lt-play {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: #D23738;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(210, 55, 56, 0.28);
}
.ve-lt .ve-lt-play:hover { background: #A51B23; }
.ve-lt .ve-lt-play:disabled { background: #EADADB; box-shadow: none; cursor: default; }
.ve-lt .ve-lt-play.is-playing { background: #022B7D; animation: ve-lt-pulse 1.4s ease-in-out infinite; }
@keyframes ve-lt-pulse { 50% { box-shadow: 0 0 0 10px rgba(2, 43, 125, 0.12); } }
.ve-lt .ve-lt-audio-info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ve-lt .ve-lt-track { height: 6px; border-radius: 999px; background: #FBE7E7; overflow: hidden; }
.ve-lt .ve-lt-track span { display: block; height: 100%; width: 0; background: #D23738; }
.ve-lt .ve-lt-plays { font-size: 15px; color: #5C5F78; }

/* Part intro screens */
.ve-lt .ve-lt-card--part { align-items: center; text-align: center; padding: 56px 40px; gap: 16px; }
.ve-lt .ve-lt-part-no {
  padding: 8px 16px;
  border-radius: 999px;
  background: #FBE7E7;
  color: #A51B23;
  font-size: 14px;
  font-weight: 700;
}
.ve-lt .ve-lt-part-title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.ve-lt .ve-lt-part-copy { max-width: 560px; font-size: 17px; line-height: 1.7; color: #5C5F78; }
.ve-lt .ve-lt-note { font-size: 15px; line-height: 1.6; color: #5C5F78; }

/* Bottom bar: start again, hint, next */
.ve-lt .ve-lt-actions {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.ve-lt .ve-lt-actions--center { justify-content: center; padding-top: 12px; }
.ve-lt .ve-lt-hint { margin-left: auto !important; font-size: 15px; color: #5C5F78; }
.ve-lt .ve-lt-quit,
.ve-lt .ve-lt-again {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #A51B23;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.ve-lt .ve-lt-quit:hover, .ve-lt .ve-lt-again:hover { color: #022B7D; }
.ve-lt .ve-lt-next {
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #022B7D;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
}
.ve-lt .ve-lt-next:hover { background: #0262DB; }
.ve-lt .ve-lt-next:disabled { opacity: .35; cursor: not-allowed; background: #022B7D; }
.ve-lt .ve-lt-start-part { background: #D23738; box-shadow: 0 10px 24px rgba(210, 55, 56, 0.28); }
.ve-lt .ve-lt-start-part:hover { background: #A51B23; }

/* Result */
.ve-lt .ve-lt-result { align-items: center; text-align: center; gap: 16px; padding: 48px 40px; }
.ve-lt .ve-lt-result-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A51B23;
}
.ve-lt .ve-lt-ring { position: relative; width: 168px; height: 168px; display: flex; align-items: center; justify-content: center; }
.ve-lt .ve-lt-ring svg { position: absolute; inset: 0; }
.ve-lt .ve-lt-ring circle { fill: none; stroke-width: 14; }
.ve-lt .ve-lt-ring-bg { stroke: #FBE7E7; }
.ve-lt .ve-lt-ring-fg { stroke: #D23738; stroke-linecap: round; }
.ve-lt .ve-lt-ring > span { position: relative; font-family: var(--ve-display); font-size: 56px; font-weight: 800; color: #022B7D; }
.ve-lt .ve-lt-result-title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.ve-lt .ve-lt-result-score { font-size: 17px; font-weight: 700; color: #14173A; }
.ve-lt .ve-lt-result-desc { max-width: 560px; font-size: 17px; line-height: 1.65; color: #5C5F78; }

.ve-lt .ve-lt-break, .ve-lt .ve-lt-rec {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  text-align: left;
}
.ve-lt .ve-lt-break h3, .ve-lt .ve-lt-rec h3 { font-size: 19px; }
.ve-lt .ve-lt-break-row { display: flex; flex-direction: column; gap: 6px; }
.ve-lt .ve-lt-break-row p { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.ve-lt .ve-lt-courses { display: flex; flex-wrap: wrap; gap: 10px; }
.ve-lt .ve-lt-course {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--c, #D23738);
  color: #FFFFFF !important;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease;
}
.ve-lt .ve-lt-course:hover { transform: translateY(-2px); color: #FFFFFF !important; }
.ve-lt .ve-lt-result-btns { justify-content: center; margin-top: 12px !important; }
.ve-lt .ve-lt-links { font-size: 15px; color: #5C5F78; }
.ve-lt .ve-lt-links a { color: #A51B23; font-weight: 700; }

/* ---------- LEVEL TEST 2: ABOUT ENGLISH LEVELS (.ve-where--narrow .ve-levels) ----------
   Same layout as Home 6 (left side stays in view, points scroll on the
   right), with a narrower left side and the certificate image.
   ve-where--narrow can be reused on any page for SEO text. */

.ve-where--narrow { padding-top: 96px; }
.ve-where--narrow .ve-wrap { gap: 56px 88px; }
.ve-where--narrow .ve-where-side { flex: 0 1 360px; max-width: 360px; }
.ve-where--narrow .ve-where-side h2 { font-size: clamp(32px, 3.2vw, 44px) !important; }
.ve-where--narrow .ve-where-main { flex: 1 1 560px; max-width: 720px; }

/* The image is a transparent graphic, no frame.
   Size: 320px wide by default. Set Width in the Image block's
   settings (or drag its handles) and that size is used instead.
   Position: use the block's Align button (left, centre or right). */
.ve-levels .ve-levels-img {
  max-width: 100%;
  margin-top: 8px !important;
}
.ve-levels .ve-levels-img:not(.is-resized) img { width: 320px; }
.ve-levels .ve-levels-img img { display: block; max-width: 100%; height: auto; }
.ve-where-side .wp-block-image.aligncenter { align-self: center; float: none; margin-left: 0; margin-right: 0; }
.ve-where-side .wp-block-image.alignright { align-self: flex-end; float: none; margin-left: 0; margin-right: 0; }
.ve-where-side .wp-block-image.alignleft { align-self: flex-start; float: none; margin-left: 0; margin-right: 0; }

/* Level rows: crimson code badge, then the description */
.ve-levels .ve-lvl-list {
  display: flex !important;
  flex-direction: column;
  margin-top: 8px !important;
  border: 1px solid #EADADB;
  border-radius: 20px;
  overflow: hidden;
}
.ve-levels .ve-where-point p.ve-lvl {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  font-size: 16px !important;
  line-height: 1.6 !important;
}
.ve-levels .ve-lvl + .ve-lvl { border-top: 1px solid #EADADB; }
.ve-levels .ve-lvl:nth-child(odd) { background: #FFF6F5; }
.ve-levels .ve-lvl strong {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  border-radius: 10px;
  background: #D23738;
  color: #FFFFFF;
  font-family: var(--ve-display);
  font-size: 16px;
  font-weight: 800;
}
.ve-levels .ve-lvl:nth-child(n+3) strong { background: #022B7D; }
.ve-levels .ve-lvl:nth-child(5) strong { background: #FF7005; color: #14173A; }
.ve-levels .ve-lvl b { color: #14173A; font-weight: 700; }

@media (max-width: 760px) {
  .ve-where--narrow { padding-top: 64px; }
  .ve-levels .ve-levels-img:not(.is-resized) img { width: 240px; }
  .ve-levels .ve-where-point p.ve-lvl { padding: 14px 16px; gap: 12px; }
}

/* ---------- Level test page on phones ---------- */
@media (max-width: 760px) {
  .ve-ltest { padding: 36px 20px 96px; }
  .ve-ltest .ve-ltest-opt { padding: 24px 22px; }
  .ve-ltest .ve-ltest-opt-title { font-size: 26px !important; }
  .ve-lt { margin-top: 16px; }
  .ve-lt .ve-lt-card { padding: 24px 20px; gap: 22px; border-radius: 24px; }
  .ve-lt .ve-lt-card--split { grid-template-columns: 1fr; gap: 24px; }
  .ve-lt .ve-lt-text { padding: 20px; }
  .ve-lt .ve-lt-opts,
  .ve-lt .ve-lt-qs--wide .ve-lt-opts { grid-template-columns: 1fr; }
  .ve-lt .ve-lt-audio { padding: 18px; gap: 16px; }
  .ve-lt .ve-lt-play { width: 58px; height: 58px; }
  .ve-lt .ve-lt-hint { order: -1; width: 100%; margin-left: 0 !important; }
  .ve-lt .ve-lt-next { flex: 1 1 auto; }
  .ve-lt .ve-lt-card--part, .ve-lt .ve-lt-result { padding: 40px 22px; }
}
