/*
 * UK Therapy Guild — Consolidated Child Theme Stylesheet
 * =======================================================
 * File:    uktg-consolidated.css
 * Purpose: Single source of truth for all shared styles.
 *          Add this to your child theme's style.css (or enqueue it).
 *          Once live, REMOVE the matching CSS from every Elementor HTML block.
 *
 * Sections
 * --------
 *  1. Design Tokens (CSS custom properties)
 *  2. Base / Typography reset
 *  3. Animations & keyframes
 *  4. Bubble background system
 *  5. Site header bar
 *  6. Section containers & layout
 *  7. Cards & feather-edge masks
 *  8. Buttons (.btn, .btn-gold, .btn-ghost, .btn-metal)
 *  9. Payment strip
 * 10. Accordion
 * 11. Testimonial accent
 * 12. Section title
 * 13. Apply grid
 * 14. Hero blocks (uktg-hero-mask, uktg-area-hero)
 * 15. Travel block (uktg-travel-*)
 * 16. Course chat / eligibility form (course-chat-*)
 * 17. Team profile (uktg-team-*)
 * 18. Salary widget (uktg-salary-*)
 * 19. FAQ accordion (uktg-faq, uktg-acc-*)
 * 20. Compare table (uktg-compare-*)
 * 21. Tailwind utility shim (scoped to .bubble-stage)
 * 22. Basket hero
 * 23. Guides section
 * 24. YouTube review grid
 * 25. Student dashboard widgets (crcard, crstu)
 * 26. Student hero (stu-hero)
 */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  --uktg-gold:        #BFAA7C;
  --uktg-gold-soft:   #d8c6a0;
  --uktg-gold-deep:   #8f7a4f;
  --uktg-gold-link:   #6b5a32;
  --uktg-gold-hover:  #4f4326;
  --uktg-dark:        #2b2b2b;
  --uktg-ink:         #333333;
  --uktg-trust:       #00B67A;
  --uktg-ease-soft:   cubic-bezier(.22,.61,.36,1);
  --uktg-ease-spring: cubic-bezier(.16,1,.3,1);

  /* Convenience aliases used across blocks */
  --gold:      var(--uktg-gold);
  --dark:      var(--uktg-dark);
  --ink:       var(--uktg-ink);
  --trust:     var(--uktg-trust);
}


/* ==========================================================================
   2. BASE / TYPOGRAPHY RESET (scoped so it doesn't blow up WP admin)
   ========================================================================== */
.bubble-stage,
.site-header,
.uktg-landing-post,
.course-chat-form,
.uktg-faq,
.uktg-salary-widget,
.uktg-team-profile,
.basket-hero,
.guides-section,
.uktg-compare,
.uktg-diploma-wrap,
.uktg-l5c-wrap,
.uktg-l5h-wrap {
  font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu,
               Cantarell, Arial, sans-serif;
  box-sizing: border-box;
  color: var(--uktg-ink);
}

.bubble-stage *,
.site-header * {
  box-sizing: border-box;
}

.bubble-stage a,
.uktg-faq a,
.uktg-l5c-wrap a,
.uktg-l5h-wrap a {
  color: inherit;
  text-decoration: none;
}

.bubble-stage a:hover,
.uktg-faq a:hover,
.uktg-l5c-wrap a:hover,
.uktg-l5h-wrap a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Styled links in content blocks */
.uktg-faq a,
.uktg-l5c-inner a,
.uktg-l5h-wrap a,
.uktg-diploma-inner a {
  color: var(--uktg-gold-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.uktg-faq a:hover,
.uktg-l5c-inner a:hover,
.uktg-l5h-wrap a:hover,
.uktg-diploma-inner a:hover {
  color: var(--uktg-gold-hover);
}

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


/* ==========================================================================
   3. ANIMATIONS & KEYFRAMES
   ========================================================================== */

/* Bubble float (used on most pages) */
@keyframes floatY {
  from { transform: translateY(-10px); }
  to   { transform: translateY(20px);  }
}
@keyframes floatX {
  from { transform: translateX(-6px); }
  to   { transform: translateX(8px);  }
}

/* Legacy single-axis float (Meet the Team, Home) */
@keyframes float {
  0%   { transform: translateY(0px);   }
  50%  { transform: translateY(-30px); }
  100% { transform: translateY(0px);   }
}

/* Basket / term-dates bubble rise */
@keyframes float-up {
  0%   { transform: translateY(0)   scale(var(--scale,1)); opacity: 0.9; }
  80%  { opacity: 0.7; }
  100% { transform: translateY(-110vh) scale(calc(var(--scale,1) * 0.8)); opacity: 0; }
}

/* YouTube hero blob */
@keyframes uktgFloat {
  0%, 100% { transform: translate(0, 0) scale(1);     }
  50%       { transform: translate(10px, -15px) scale(1.03); }
}
@keyframes uktgFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1);      }
  50%       { transform: translate(-8px, 10px) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .bubble,
  .uktg-hero-blob,
  .stu-bubble {
    animation: none;
  }
}


/* ==========================================================================
   4. BUBBLE BACKGROUND SYSTEM
   ========================================================================== */
.bubble-stage {
  position: relative;
  isolation: isolate;
}

.bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 9999px;
  background: rgba(191,170,124,0.14);
  filter: blur(0.3px);
  animation:
    floatY var(--dur,12s) ease-in-out infinite alternate,
    floatX calc(var(--dur,12s) * 1.4) ease-in-out infinite alternate;
}


/* ==========================================================================
   5. SITE HEADER BAR
   ========================================================================== */
.site-header {
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.site-header.sticky {
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.header-intake {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--uktg-dark);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(191,170,124,0.15);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}


/* ==========================================================================
   6. SECTION CONTAINERS & LAYOUT
   ========================================================================== */

/* Standard section wrapper used on course pages */
.bubble-stage section {
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
}

@media (min-width: 1024px) {
  .bubble-stage section {
    padding-top: 4.2rem;
    padding-bottom: 4.2rem;
  }
}

.bubble-stage .container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 28px);
  padding-right: clamp(16px, 3vw, 28px);
}

.bubble-stage .mxw-6xl {
  max-width: 100%;
}

/* Shared panel background used by multiple block types */
.uktg-panel {
  max-width: 1120px;
  margin: 3.5rem auto;
  padding: 2.75rem 2.5rem 3rem;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(191,170,124,0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(47,47,47,0.12), transparent 55%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
  color: var(--uktg-dark);
}

@media (max-width: 960px) {
  .uktg-panel {
    padding: 2.2rem 1.6rem 2.5rem;
    margin: 2.5rem auto;
  }
}

@media (max-width: 600px) {
  .uktg-panel {
    padding: 1.9rem 1.25rem 2.2rem;
  }
}

/* Accent line decorator */
.uktg-accent-line {
  height: 6px;
  width: 80px;
  border-radius: 999px;
  background: linear-gradient(135deg, #bfa36a, #e3d0a0);
  margin: 0 auto 1rem;
}

/* Apply / two-column grid */
.apply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .apply-grid {
    grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr);
    align-items: start;
  }
}


/* ==========================================================================
   7. CARDS & FEATHER-EDGE MASKS
   ========================================================================== */
.card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(130%) blur(3px);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

/* Shared "warm cream card" used in price/steps/guide blocks */
.uktg-card {
  background: rgba(255,253,248,0.96);
  border-radius: 16px;
  border: 1px solid rgba(219,208,185,0.8);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.feather-edges {
  -webkit-mask-image: radial-gradient(120% 120% at 50% 50%, #000 88%, transparent 100%);
          mask-image: radial-gradient(120% 120% at 50% 50%, #000 88%, transparent 100%);
}


/* ==========================================================================
   8. BUTTONS
   ========================================================================== */

/* Primary gold metal pill — used site-wide */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.6rem 1.35rem;
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    transform .12s ease,
    box-shadow .18s ease,
    filter .18s ease,
    background .18s ease,
    color .18s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(120,96,58,0.9);
  color: #2a2418;
  background:
    radial-gradient(circle at 20% 20%, #fff8e6 0, #f5e5c3 32%, transparent 70%),
    radial-gradient(circle at 80% 80%, #a68854 0, #6c5834 45%, #473620 90%),
    linear-gradient(120deg, #e6d2aa 0, #f5e4bd 28%, #c8aa73 55%, #8a7246 80%, #f5e4bd 100%);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.9),
    inset 0 -1px 2px rgba(115,93,56,0.9),
    0 4px 10px rgba(0,0,0,0.28);
  position: relative;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  opacity: 0.8;
  pointer-events: none;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(0,0,0,0.18), transparent 40%,
                              rgba(255,255,255,0.16) 60%, rgba(0,0,0,0.36));
  mix-blend-mode: soft-light;
  opacity: 0.65;
  pointer-events: none;
}

.btn span {
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.80rem;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.7),
    0 -1px 0 rgba(90,68,38,0.75);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.95),
    inset 0 -1px 2px rgba(115,93,56,0.95),
    0 6px 16px rgba(0,0,0,0.32);
}

.btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 3px rgba(90,68,38,0.95),
    inset 0 -1px 1px rgba(255,255,255,0.3),
    0 2px 6px rgba(0,0,0,0.25);
  filter: saturate(1.02);
}

.btn:focus { outline: none; }

.btn:focus-visible {
  box-shadow:
    0 0 0 3px rgba(191,170,124,0.35),
    inset 0 1px 2px rgba(255,255,255,0.9),
    inset 0 -1px 2px rgba(115,93,56,0.9),
    0 4px 10px rgba(0,0,0,0.28);
}

/* Ghost variant — translucent */
.btn-ghost {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.95) 0, rgba(255,255,255,0.75) 32%, transparent 70%),
    radial-gradient(circle at 80% 80%, rgba(191,170,124,0.35) 0, rgba(143,122,79,0.35) 45%, rgba(71,54,32,0.20) 90%),
    linear-gradient(120deg, rgba(255,255,255,0.86) 0, rgba(245,228,189,0.55) 45%, rgba(191,170,124,0.45) 100%);
  border: 1px solid rgba(191,170,124,0.85);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.85),
    inset 0 -1px 2px rgba(191,170,124,0.35),
    0 4px 10px rgba(0,0,0,0.18);
}

/* .btn-metal and .btn-gold inherit all styles from .btn */
.btn-metal {}
.btn-gold {}

/* Hero page CTA buttons (uktg-hero-mask scope) */
.uktg-hero-mask .uktg-cta,
.uktg-hero-mask .uktg-cta-secondary,
.uktg-hero-mask .uktg-cta-tertiary,
#uktg-about-counselling .uktg-cta,
#uktg-about-counselling .uktg-cta-secondary,
#uktg-about-counselling .uktg-cta-tertiary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  font-size: 13.5px;
  min-height: 42px;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(154,126,66,.55);
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.70), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #c9b06a, #9a7e42);
  color: #0b1220;
  box-shadow: 0 10px 20px rgba(15,23,42,.14);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  text-decoration: none;
}

.uktg-hero-mask .uktg-cta:hover,
.uktg-hero-mask .uktg-cta-secondary:hover,
.uktg-hero-mask .uktg-cta-tertiary:hover,
#uktg-about-counselling .uktg-cta:hover,
#uktg-about-counselling .uktg-cta-secondary:hover,
#uktg-about-counselling .uktg-cta-tertiary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15,23,42,.16);
  filter: saturate(1.05);
}

.uktg-hero-mask .uktg-cta:active,
.uktg-hero-mask .uktg-cta-secondary:active,
.uktg-hero-mask .uktg-cta-tertiary:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(15,23,42,.12);
}

.uktg-hero-mask .uktg-cta:focus,
.uktg-hero-mask .uktg-cta-secondary:focus,
.uktg-hero-mask .uktg-cta-tertiary:focus,
#uktg-about-counselling .uktg-cta:focus,
#uktg-about-counselling .uktg-cta-secondary:focus,
#uktg-about-counselling .uktg-cta-tertiary:focus {
  outline: 3px solid rgba(154,126,66,.32);
  outline-offset: 3px;
}

/* Mobile CTA sizing */
@media (max-width: 720px) {
  .uktg-hero-mask .uktg-cta,
  .uktg-hero-mask .uktg-cta-secondary,
  .uktg-hero-mask .uktg-cta-tertiary {
    font-size: 13px;
    padding: 10px 12px;
    min-height: 40px;
  }
}

@media (max-width: 520px) {
  .btn {
    padding: 0.58rem 1.05rem;
    font-size: 0.9rem;
  }
  .btn span { font-size: 0.78rem; }
}


/* ==========================================================================
   9. PAYMENT STRIP
   ========================================================================== */
.payment-info-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.payment-info-text {
  font-weight: 800;
  font-size: 0.98rem;
}

.payment-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}


/* ==========================================================================
   10. ACCORDION
   ========================================================================== */
.accordion-wrap { border: 0; }

.accordion-button {
  background: rgba(255,255,255,0.96);
  color: var(--uktg-dark);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 900;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.06);
  font-family: inherit;
}

.accordion-button:hover { filter: saturate(1.02); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  display: none;
}

.accordion-panel {
  background: rgba(255,255,255,0.96);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  margin-top: 0.4rem;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Shared <details>-based accordion items (FAQ, L5 course pages) */
.uktg-acc-item,
.uktg-l5c-acc-item,
.uktg-l5h-acc-item {
  border-radius: 16px;
  background: rgba(255,253,248,0.96);
  border: 1px solid rgba(219,208,185,0.8);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  overflow: hidden;
}

.uktg-acc-summary,
.uktg-l5c-acc-item summary,
.uktg-l5h-acc-item summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
  color: var(--uktg-dark);
  list-style: none;
}

.uktg-acc-summary::-webkit-details-marker,
.uktg-l5c-acc-item summary::-webkit-details-marker,
.uktg-l5h-acc-item summary::-webkit-details-marker { display: none; }

.uktg-acc-item > .uktg-acc-summary::after,
.uktg-l5c-acc-item summary::after,
.uktg-l5h-acc-item summary::after {
  content: "+";
  font-weight: 800;
  opacity: 0.7;
  flex: 0 0 auto;
}

.uktg-acc-item[open] > .uktg-acc-summary::after { content: "−"; }
.uktg-l5c-acc-item[open] summary::after,
.uktg-l5h-acc-item[open] summary::after { content: "+"; opacity: 0.35; }

.uktg-acc-panel,
.uktg-l5c-acc-body,
.uktg-l5h-acc-body {
  padding: 0 16px 14px;
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

.uktg-accordion,
.uktg-l5c-accordion,
.uktg-l5h-accordion {
  display: grid;
  gap: 12px;
}

@media (max-width: 520px) {
  .accordion-button { padding: 1rem 1.05rem; }
}


/* ==========================================================================
   11. TESTIMONIAL ACCENT
   ========================================================================== */
.testimonial-card {
  border-left: 5px solid var(--uktg-gold);
}


/* ==========================================================================
   12. SECTION TITLE
   ========================================================================== */
.section-title,
.bubble-stage h1,
.bubble-stage h2,
.bubble-stage h3,
.bubble-stage h4,
.bubble-stage h5,
.bubble-stage h6 {
  text-shadow:
    0 1px 0 rgba(0,0,0,0.10),
    0 2px 2px rgba(0,0,0,0.08),
    0 4px 6px rgba(0,0,0,0.06);
}

.section-title {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.35rem);
  font-weight: 800;
  color: var(--uktg-dark);
  text-align: center;
  margin: 0 0 1.75rem;
}

/* Brand helpers */
.brand-gold { color: var(--uktg-gold); }
.brand-dark { color: var(--uktg-dark); }
.mxw-6xl   { max-width: 72rem; }

/* Founder block */
.founder-card { gap: 2.0rem; }
.founder-card img { max-width: 260px; height: auto; }

/* Hero intro */
.hero-intro {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.65;
}
.hero-intro p { margin: 0 0 0.9rem; }


/* ==========================================================================
   14. HERO BLOCKS
   ========================================================================== */

/* --- Main homepage / Inter hero mask --- */
.uktg-hero-mask {
  position: relative;
  overflow: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Arial, sans-serif;
  background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.uktg-hero-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(154,126,66,.08);
}

.uktg-hero-blob-top {
  top: -50px; left: 10%;
  width: 200px; height: 200px;
  animation: uktgFloat 12s ease-in-out infinite;
}

.uktg-hero-blob-bottom {
  bottom: -80px; right: 5%;
  width: 250px; height: 250px;
  background: rgba(154,126,66,.06);
  animation: uktgFloat2 14s ease-in-out infinite;
}

.uktg-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.uktg-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #2b2b2b;
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 800px;
}
.uktg-hero-title span { color: #9A7E42; }

.uktg-hero-lead {
  font-size: 1.25rem;
  color: #495057;
  max-width: 650px;
  margin: 0 0 2.5rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .uktg-hero-inner { padding: 1.25rem; min-height: 360px; }
  .uktg-hero-lead  { font-size: 1.1rem; }
  .uktg-hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
}

/* --- Course / local area hero (uktg-area-hero) --- */
.uktg-area-hero {
  position: relative;
  overflow: hidden;
  color: #2b2b2b;
  background-image: url("https://uktherapyguild.co.uk/wp-content/uploads/2026/02/IMG_1456.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1.8rem 0.9rem 2.1rem;
}

.uktg-area-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left,  rgba(191,170,124,0.10), transparent 55%),
    radial-gradient(circle at bottom right, rgba(47,47,47,0.08), transparent 55%),
    rgba(255,255,255,0.94);
}

.uktg-area-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(219,208,185,0.85);
  border-radius: 16px;
  padding: 1.15rem 1rem;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.uktg-area-hero__top {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.uktg-area-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(191,170,124,0.14);
  color: #856f3a;
  border: 1px solid rgba(191,170,124,0.55);
}

.uktg-area-hero__pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #35b567;
  box-shadow: 0 0 0 4px rgba(53,181,103,0.22);
}

.uktg-area-hero__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5f5f5f;
}

.uktg-area-hero__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.uktg-area-hero__lead {
  font-size: 0.97rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 0.9rem;
  max-width: 680px;
}

.uktg-area-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

/* Info tooltip (inside area hero status line) */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(191,170,124,0.18);
  color: #6b5a32;
  border: 1px solid rgba(191,170,124,0.45);
}

.info-tip__content {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 210px; max-width: 260px;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(219,208,185,0.9);
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #444;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.info-tip__content::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(255,255,255,0.97) transparent transparent transparent;
}

.info-tip:hover .info-tip__content,
.info-tip:focus .info-tip__content {
  opacity: 1;
}


/* ==========================================================================
   15. TRAVEL BLOCK
   ========================================================================== */
.uktg-travel-block,
.uktg-travel-wrap,
.uktg-travel-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.uktg-travel-title {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.1rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

.uktg-travel-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 22px;
}

.uktg-travel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
  width: 100%;
}

@media (max-width: 1024px) {
  .uktg-travel-grid { grid-template-columns: 1fr; }
}

.uktg-travel-card {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.uktg-travel-kicker {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
  margin: 0 0 10px;
}

.uktg-travel-meta,
.uktg-travel-addr {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
  margin: 0 0 10px;
}

.uktg-travel-links  { margin: 10px 0; }

.uktg-travel-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: #7a6037;
  text-decoration: none;
}
.uktg-travel-link:hover { text-decoration: underline; }

.uktg-travel-btnrow { margin-top: 16px; }

.uktg-travel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0f172a;
  background: #f3ead6;
  border: 1px solid rgba(143,122,79,0.55);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.85);
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}

.uktg-travel-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.uktg-travel-btn.is-secondary {
  background: #f3ead6;
  border: 1px solid rgba(143,122,79,0.55);
  color: #0f172a;
}

.uktg-travel-foot {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #64748b;
}


/* ==========================================================================
   16. COURSE CHAT / ELIGIBILITY FORM
   ========================================================================== */
.course-chat-form {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  color: #2f2f2f;
}

.course-chat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.course-chat-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff6de, #bfaa7c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #2f2f2f;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.course-chat-title h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #bfa977;
}

.course-chat-title p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: #666;
}

.course-chat-window {
  background: linear-gradient(to bottom right, #fffefb, #fdf9f1);
  border-radius: 20px;
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(191,170,124,0.35);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.04),
    0 16px 36px rgba(0,0,0,0.08);
  position: relative;
}

.chat-step          { display: none; }
.chat-step.active   { display: block; }

.chat-message {
  margin-bottom: 1.2rem;
}

.chat-message.bot {
  background: #ffffff;
  border-radius: 16px 16px 16px 6px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(191,170,124,0.45);
  font-size: 0.98rem;
  line-height: 1.65;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.05),
    inset 0 0 0.5px rgba(255,255,255,0.6);
}

.chat-message.user-input {
  margin-top: 0.6rem;
  padding: 0.5rem 0.2rem 0.2rem;
}

.chat-message.user-input label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #444;
}

.chat-message.user-input input,
.chat-message.user-input textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d9d0be;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 0.8rem;
  background-color: rgba(255,255,255,0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-message.user-input input:focus,
.chat-message.user-input textarea:focus {
  outline: none;
  border-color: #bfa977;
  box-shadow: 0 0 0 2px rgba(191,169,119,0.3);
}

.chat-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
  color: #444;
}
.chat-checkbox span { line-height: 1.4; }
.chat-checkbox input { margin-top: 0.15rem; }

.chat-next-btn,
.chat-prev-btn,
.chat-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.4rem;
  margin-right: 0.4rem;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.chat-next-btn,
.chat-submit-btn {
  background: linear-gradient(180deg, #d4b97a, #a37f3c);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
}

.chat-next-btn:hover,
.chat-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.chat-prev-btn {
  background: rgba(0,0,0,0.06);
  color: #555;
}

.chat-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }


/* ==========================================================================
   17. TEAM PROFILE
   ========================================================================== */
.uktg-team-profile {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: #0f172a;
}

.uktg-team-card {
  background: linear-gradient(135deg, #bfaa7c, #e5d7b9);
  border-radius: 22px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}

.uktg-team-head {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.uktg-team-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: #bfaa7c;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 3.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.uktg-team-title { flex: 1; }

.uktg-team-name {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 900;
  color: #9a7e42;
}

.uktg-team-roles {
  margin: 0.4rem 0 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
}

.uktg-team-quals ul  { margin: 0; padding-left: 1.2rem; }
.uktg-team-quals li  { font-size: 0.95rem; line-height: 1.7; margin: 0.2rem 0; }

.uktg-team-body {
  margin-top: 1.6rem;
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.uktg-team-body p             { margin: 0 0 1rem; line-height: 1.8; font-size: 1.02rem; }
.uktg-team-body p:last-child  { margin-bottom: 0; }

@media (max-width: 720px) {
  .uktg-team-head           { flex-direction: column; text-align: center; }
  .uktg-team-avatar         { margin-bottom: 0.6rem; }
  .uktg-team-quals ul       { padding-left: 0; list-style-position: inside; }
}


/* ==========================================================================
   18. SALARY WIDGET
   ========================================================================== */
.uktg-salary-widget {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
  width: 100%;
}

.uktg-salary-shell {
  border-radius: 18px;
  padding: 2.2rem 2rem;
  color: #2b2b2b;
  background:
    radial-gradient(circle at top left, rgba(191,170,124,0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(47,47,47,0.12), transparent 55%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(15,23,42,0.10);
}

.uktg-salary-shell[role="button"] { cursor: pointer; }

.uktg-salary-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.uktg-salary-intro  { flex: 1 1 340px; min-width: 280px; }
.uktg-salary-title  { font-weight: 800; font-size: 1.25rem; margin: 0; }

.uktg-salary-desc {
  margin-top: 0.45rem;
  color: #555;
  line-height: 1.65;
  font-size: 0.98rem;
}

.uktg-salary-support {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.uktg-salary-updated {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #777;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uktg-salary-grid {
  flex: 1 1 640px;
  min-width: 280px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  align-items: stretch;
}

.uktg-salary-card {
  background: rgba(255,253,248,0.96);
  border-radius: 16px;
  padding: 1.05rem 1.05rem 1rem;
  border: 1px solid rgba(219,208,185,0.8);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.uktg-salary-kicker {
  font-size: 0.78rem;
  color: #888;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.uktg-salary-value {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  margin: 0;
  color: #2b2b2b;
}

.uktg-salary-hint {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.55;
}

.uktg-salary-footer {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
}


/* ==========================================================================
   19. FAQ ACCORDION (uktg-faq)
   ========================================================================== */
.uktg-faq {
  max-width: 1120px;
  margin: 3.5rem auto;
  padding: 2.75rem 2.5rem 3rem;
  border-radius: 18px;
  color: #2b2b2b;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left,  rgba(191,170,124,0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(47,47,47,0.12), transparent 55%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
}

.uktg-faq h3 {
  margin: 0 0 1.6rem;
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
  color: #2b2b2b;
}

.uktg-acc-cta { border: 1px solid rgba(191,170,124,0.45); }

.uktg-faq-links {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: #555;
}

/* FAQ embeds eligibility form */
.uktg-faq .eligibility-form-wrapper {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(221,210,188,0.9);
}

.uktg-faq .column-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #9a7e42;
  margin: 0 0 0.8rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(228,219,201,0.9);
}

.uktg-faq .eligibility-intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  max-width: 720px;
}

.uktg-faq .course-chat-window {
  background: rgba(255,253,248,0.96);
  border-radius: 16px;
  padding: 1.6rem 1.7rem 1.8rem;
  border: 1px solid rgba(219,208,185,0.8);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.uktg-faq .chat-step           { display: none; }
.uktg-faq .chat-step.active    { display: block; }


/* ==========================================================================
   20. COMPARE TABLE
   ========================================================================== */
.uktg-compare {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  background: #fdf8ef;
  border-radius: 20px;
}

.uktg-compare h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.uktg-compare-intro {
  max-width: 820px;
  margin: 0 auto 2.25rem;
  text-align: center;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.6;
}

.uktg-compare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: -0.75rem 0 2.25rem;
}

.uktg-compare-chip {
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #eadfbf;
  color: #374151;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.uktg-compare-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
}

.uktg-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  min-width: 760px;
}

.uktg-compare-table thead th {
  background: linear-gradient(135deg, #bfa35a, #9a7e42);
  color: #ffffff;
  font-weight: 600;
  padding: 1.1rem 1rem;
  text-align: left;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.uktg-compare-table thead th:first-child { border-top-left-radius: 16px; }
.uktg-compare-table thead th:last-child  { border-top-right-radius: 16px; }

.uktg-compare-table tbody td {
  padding: 1.05rem 1rem;
  border-bottom: 1px solid #f0e6d2;
  color: #1f2937;
  font-size: 0.95rem;
  vertical-align: top;
  line-height: 1.55;
}

.uktg-compare-table tbody tr:last-child td { border-bottom: none; }
.uktg-compare-table tbody td:first-child    { font-weight: 700; color: #374151; width: 32%; }
.uktg-compare-table tbody td:nth-child(2)   { background: #faf4e6; font-weight: 600; position: relative; }

.uktg-compare-table tbody td:nth-child(2),
.uktg-compare-table thead th:nth-child(2) { border-right: 1px solid #eadfbf; }

.uktg-compare-strong { font-weight: 800; color: #9a7e42; }
.uktg-compare-small  { font-size: 0.9rem; color: #6b7280; }
.uktg-compare-muted  { color: #6b7280; }
.uktg-compare-note   { font-size: 0.88rem; color: #9ca3af; margin-top: 0.35rem; }

.uktg-compare-yes {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #1f2937;
}
.uktg-compare-yes::before {
  content: "✓";
  width: 1.5rem; height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #faf4e6;
  border: 1px solid #eadfbf;
  color: #9a7e42;
  font-weight: 900;
  flex: 0 0 auto;
}

.uktg-compare-no {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #9ca3af;
}
.uktg-compare-no::before {
  content: "✕";
  width: 1.5rem; height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #d1d5db;
  font-weight: 700;
  flex: 0 0 auto;
}


/* ==========================================================================
   21. TAILWIND UTILITY SHIM (scoped to .bubble-stage)
   ========================================================================== */
.bubble-stage .mx-auto  { margin-left: auto; margin-right: auto; }
.bubble-stage .px-4     { padding-left: 16px; padding-right: 16px; }
.bubble-stage .py-3     { padding-top: 12px; padding-bottom: 12px; }
.bubble-stage .p-4      { padding: 1rem; }
.bubble-stage .p-5      { padding: 1.25rem; }
.bubble-stage .p-6      { padding: 1.5rem; }
.bubble-stage .p-7      { padding: 1.75rem; }
.bubble-stage .p-8      { padding: 2rem; }
.bubble-stage .text-center  { text-align: center; }
.bubble-stage .w-full       { width: 100%; }
.bubble-stage .overflow-hidden { overflow: hidden; }
.bubble-stage .sticky       { position: sticky; }
.bubble-stage .list-disc    { list-style-type: disc; }
.bubble-stage .list-inside  { list-style-position: inside; }
.bubble-stage .italic       { font-style: italic; }
.bubble-stage .leading-tight { line-height: 1.15; }

/* Spacing */
.bubble-stage .space-y-1 > * + * { margin-top: 0.25rem; }
.bubble-stage .space-y-4 > * + * { margin-top: 1rem; }
.bubble-stage .space-y-5 > * + * { margin-top: 1.25rem; }
.bubble-stage .mb-1  { margin-bottom: 0.25rem; }
.bubble-stage .mb-2  { margin-bottom: 0.5rem; }
.bubble-stage .mb-3  { margin-bottom: 0.75rem; }
.bubble-stage .mb-4  { margin-bottom: 1rem; }
.bubble-stage .mb-5  { margin-bottom: 1.25rem; }
.bubble-stage .mb-8  { margin-bottom: 2rem; }
.bubble-stage .mt-1  { margin-top: 0.25rem; }
.bubble-stage .mt-3  { margin-top: 0.75rem; }
.bubble-stage .mt-4  { margin-top: 1rem; }
.bubble-stage .mt-6  { margin-top: 1.5rem; }
.bubble-stage .mt-8  { margin-top: 2rem; }
.bubble-stage .ml-4  { margin-left: 1rem; }

/* Typography scale */
.bubble-stage .text-xs   { font-size: 0.78rem; }
.bubble-stage .text-sm   { font-size: 0.9rem; }
.bubble-stage .text-base { font-size: 1rem; }
.bubble-stage .text-lg   { font-size: 1.1rem; }
.bubble-stage .text-xl   { font-size: 1.25rem; }
.bubble-stage .text-2xl  { font-size: 1.5rem; }
.bubble-stage .text-3xl  { font-size: 1.9rem; }
.bubble-stage .text-4xl  { font-size: 2.25rem; }
.bubble-stage .font-medium    { font-weight: 500; }
.bubble-stage .font-semibold  { font-weight: 600; }
.bubble-stage .font-bold      { font-weight: 700; }
.bubble-stage .font-extrabold { font-weight: 800; }

/* Grey palette */
.bubble-stage .text-gray-500 { color: #6b7280; }
.bubble-stage .text-gray-600 { color: #4b5563; }
.bubble-stage .text-gray-700 { color: #374151; }
.bubble-stage .text-gray-800 { color: #1f2937; }

/* Flex */
.bubble-stage .flex            { display: flex; }
.bubble-stage .flex-col        { flex-direction: column; }
.bubble-stage .flex-wrap       { flex-wrap: wrap; }
.bubble-stage .items-center    { align-items: center; }
.bubble-stage .items-start     { align-items: flex-start; }
.bubble-stage .justify-center  { justify-content: center; }
.bubble-stage .justify-between { justify-content: space-between; }
.bubble-stage .gap-3  { gap: 0.75rem; }
.bubble-stage .gap-5  { gap: 1.25rem; }
.bubble-stage .gap-6  { gap: 1.5rem; }
.bubble-stage .gap-8  { gap: 2rem; }
.bubble-stage .gap-x-8 { column-gap: 2rem; }
.bubble-stage .gap-y-2 { row-gap: 0.5rem; }

/* Grid */
.bubble-stage .grid { display: grid; }

/* Responsive overrides */
@media (min-width: 768px) {
  .bubble-stage .md\:px-6      { padding-left: 24px; padding-right: 24px; }
  .bubble-stage .md\:text-base { font-size: 1rem; }
  .bubble-stage .md\:text-lg   { font-size: 1.1rem; }
  .bubble-stage .md\:text-xl   { font-size: 1.2rem; }
  .bubble-stage .md\:text-3xl  { font-size: 2rem; }
  .bubble-stage .md\:text-5xl  { font-size: 3rem; }
  .bubble-stage .md\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bubble-stage .md\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .bubble-stage .lg\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 1200px) {
  .bubble-stage .container,
  .bubble-stage .mxw-6xl { max-width: 1320px; }
}

@media (max-width: 520px) {
  .bubble-stage section { padding-top: 2.6rem; padding-bottom: 2.6rem; }
  .header-bar { gap: 0.6rem 0.8rem; }
}


/* ==========================================================================
   22. BASKET HERO
   ========================================================================== */
.basket-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(3rem,6vw,7rem) 1rem;
  text-align: center;
  background:
    radial-gradient(1200px 500px at -10% 120%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(800px 400px at 110% -10%, rgba(255,255,255,.15), transparent 60%),
    linear-gradient(135deg, #ffffff, #bfaa7c 65%);
  box-shadow: 0 10px 40px rgba(0,0,0,.15) inset, 0 10px 30px rgba(0,0,0,.08);
  isolation: isolate;
}

.basket-title {
  margin: 0;
  font-family: ui-rounded, system-ui, -apple-system, Segoe UI, Roboto,
               "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #f6f6f6 50%, #bfaa7c 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,.3), 0 8px 30px rgba(0,0,0,.25);
  position: relative;
  z-index: 2;
}

/* Basket animated bubbles */
.bubbles.basket-bubbles {
  position: absolute;
  inset: -10% -20% -15% -20%;
  pointer-events: none;
  z-index: 1;
}

.basket-bubbles .bubble {
  position: absolute;
  bottom: -12vmin;
  left: var(--left,50%);
  width: var(--size,12vmin);
  height: var(--size,12vmin);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.25) 40%,
                    rgba(191,170,124,.3) 60%, rgba(191,170,124,0) 80%),
    radial-gradient(circle at 70% 70%, rgba(191,170,124,.25), rgba(255,255,255,0) 60%);
  box-shadow:
    inset 0 0 2.2vmin rgba(255,255,255,.6),
    0 6px 30px rgba(0,0,0,.12);
  filter: blur(var(--blur,0px));
  opacity: .9;
  transform: translate3d(0,0,0) scale(var(--scale,1));
  animation: float-up var(--duration,18s) linear infinite;
  animation-delay: var(--delay,0s);
  will-change: transform, opacity;
}


/* ==========================================================================
   23. GUIDES SECTION
   ========================================================================== */
.guides-section {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left,  rgba(191,170,124,0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(47,47,47,0.12), transparent 55%);
  border-radius: 18px;
  padding: 2.75rem 2.5rem 3rem;
  max-width: 1120px;
  margin: 3.5rem auto;
  color: #2b2b2b;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
}

.guides-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 0.7rem;
  text-align: center;
}

.guides-intro {
  font-size: 1rem;
  color: #555;
  max-width: 720px;
  margin: 0 auto 2.4rem;
  line-height: 1.7;
  text-align: center;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.6rem;
  align-items: stretch;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,253,248,0.96);
  color: #2b2b2b;
  padding: 1.7rem 1.7rem 1.6rem;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(219,208,185,0.8);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.guide-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 0.7rem;
  color: #2b2b2b;
  line-height: 1.35;
}

.guide-card p {
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
  color: #555;
}

.card-link {
  margin-top: auto;
  padding-top: 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #6b5a32;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.guide-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(191,163,106,0.25), 0 14px 30px rgba(0,0,0,0.10);
  border-color: rgba(191,163,106,0.65);
}

@media (max-width: 960px) {
  .guides-section { padding: 2.2rem 1.6rem 2.5rem; margin: 2.5rem auto; }
  .guides-grid    { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
  .guides-title   { font-size: 1.75rem; }
}

@media (max-width: 600px) {
  .guides-section { padding: 1.9rem 1.25rem 2.2rem; }
  .guides-grid    { grid-template-columns: minmax(0,1fr); }
}


/* ==========================================================================
   24. YOUTUBE REVIEW GRID
   ========================================================================== */
#utg-review-videos {
  --gap: 16px;
  --radius: 14px;
  --accent: #bfaa7c;
  --bg: #fffdf8;
  --ink: #333;
  max-width: 85%;
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
          mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

#utg-review-videos .wrap {
  background: transparent;
  border-radius: 20px;
  padding: 2rem;
}

#utg-review-videos h2 {
  margin: 0 0 .75rem;
  font: 700 1.6rem/1.25 "Lato",system-ui,arial;
  color: var(--accent);
  text-align: center;
}

#utg-review-videos p.lead {
  margin: .25rem auto 1.5rem;
  max-width: 52ch;
  color: var(--ink);
  text-align: center;
}

#utg-review-videos .yt-grid       { display: grid; gap: var(--gap); }
#utg-review-videos .yt-grid-3     { grid-template-columns: repeat(3, minmax(0,1fr)); }

@media (max-width: 980px) {
  #utg-review-videos              { max-width: 100%; }
  #utg-review-videos .wrap        { padding: 1.5rem; }
  #utg-review-videos .yt-grid-3  { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px) {
  #utg-review-videos              { padding: 1.75rem 1rem; }
  #utg-review-videos .wrap        { padding: 1.25rem; }
  #utg-review-videos .yt-grid-3  { grid-template-columns: 1fr; }
}

#utg-review-videos .yt-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

#utg-review-videos .yt-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.92);
  transition: transform .28s ease, filter .28s ease;
}

#utg-review-videos .yt-card:hover .yt-thumb {
  transform: scale(1.03);
  filter: brightness(1);
}

#utg-review-videos .yt-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .6rem .8rem;
  font: 600 .95rem/1.2 "Lato",system-ui,arial;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
}

#utg-review-videos .yt-play {
  position: absolute;
  inset: auto 12px 12px auto;
  border: 0;
  border-radius: 999px;
  padding: .5rem .75rem;
  background: #fff;
  color: #000;
  font: 700 .8rem/1 system-ui;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

#utg-review-videos .yt-play::before { content: "▶"; margin-right: .45rem; }

#utg-review-videos .yt-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

#utg-review-videos .yt-iframe,
#utg-review-videos iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}


/* ==========================================================================
   25. STUDENT DASHBOARD WIDGETS (crcard, crstu)
   ========================================================================== */
.crcard {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.crcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.crcard__title { margin: 0; font-weight: 700; font-size: 1.05rem; color: #111827; }
.crcard__empty { margin: 8px 0 2px; color: #6b7280; }

.crlist          { list-style: none; margin: 10px 0 0; padding: 0; }
.crlist__item    {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 10px 8px;
  border-top: 1px solid #f1f5f9;
}
.crlist__item:first-child { border-top: none; }
.crlist__date   { min-width: 8.5rem; font-weight: 600; color: #374151; }
.crlist__dot    { width: 8px; height: 8px; border-radius: 999px; background: #f59e0b; display: inline-block; }
.crlist__title  { font-weight: 600; color: #111827; }
.crlist__note   { color: #6b7280; }

@media (max-width: 480px) {
  .crlist__date { min-width: auto; font-size: .92rem; }
  .crlist__item { flex-wrap: wrap; }
}

.crstu-wrap    { border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.crstu-overall { font-weight: 700; margin: 6px 0 14px; font-size: 1.05rem; }
.crstu-overall .lbl { color: #6b7280; margin-right: 8px; }
.crstu-card    { border: 1px solid #eef2f7; border-radius: 12px; padding: 12px; margin: 10px 0; background: #fafafa; }
.crstu-card-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.crstu-ttitle  { font-weight: 700; }
.crstu-range   { color: #6b7280; }
.crstu-table   { width: 100%; border-collapse: collapse; margin: 6px 0; }
.crstu-table th,
.crstu-table td { border: 1px solid #e5e7eb; padding: 6px 8px; text-align: center; }
.crstu-details summary { cursor: pointer; margin-top: 8px; }
.crstu-list    { margin: 6px 0 0 18px; }
.crstu-muted   { color: #6b7280; }
.crstu-msg     { padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }


/* ==========================================================================
   26. STUDENT HERO (stu-hero — Term Dates page)
   ========================================================================== */
.stu-hero {
  --gold:  #bf9b30;
  --gold-2: #d9bb57;
  --gold-3: #f2e3b5;
  --panel-alpha: 0.85;
  --txt: #ffffff;
  --shadow: 0 14px 48px rgba(0,0,0,.28);
  --txt-shadow: 0 2px 0 rgba(0,0,0,.22), 0 14px 40px rgba(0,0,0,.45);
  --txt-soft: 0 1px 0 rgba(0,0,0,.25);

  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  margin: 0 0 1.25rem;
  padding: clamp(2.25rem,5vw,4.25rem) 1.25rem;
  background:
    radial-gradient(1400px 600px at -10% 120%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(900px 480px at 110% -10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--gold)   calc(var(--panel-alpha)*100%),  transparent),
      color-mix(in srgb, var(--gold-2) calc(var(--panel-alpha)*.95*100%), transparent) 60%,
      color-mix(in srgb, var(--gold-3) calc(var(--panel-alpha)*.75*100%), transparent)
    );
  box-shadow: var(--shadow), inset 0 10px 36px rgba(0,0,0,.08);
  color: var(--txt);
  font-family: "Lato", sans-serif;
}

.stu-hero__inner {
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stu-hero__title {
  margin: 0 0 .6rem;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  letter-spacing: .015em;
  font-size: clamp(1.7rem,4.6vw,3rem);
  line-height: 1.1;
  color: var(--txt);
  text-shadow: var(--txt-shadow);
}

.stu-hero__desc {
  margin: 0 auto;
  max-width: 900px;
  font: 400 clamp(0.98rem,1.7vw,1.06rem)/1.75 "Lato", sans-serif;
  color: rgba(255,255,255,.98);
  text-shadow: var(--txt-soft);
}

/* Stu-hero bubbles (rise-type, similar to basket) */
.stu-bubbles {
  position: absolute;
  inset: -12% -25% -20% -25%;
  pointer-events: none;
  z-index: 1;
}

.stu-bubble {
  position: absolute;
  bottom: -12vmin;
  left: var(--left,50%);
  width: var(--size,10vmin);
  height: var(--size,10vmin);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.2) 40%,
                    rgba(217,187,87,.3) 60%, rgba(217,187,87,0) 80%),
    radial-gradient(circle at 70% 70%, rgba(217,187,87,.25), rgba(255,255,255,0) 60%);
  box-shadow:
    inset 0 0 2vmin rgba(255,255,255,.55),
    0 5px 25px rgba(0,0,0,.10);
  filter: blur(var(--blur,0px));
  opacity: .85;
  transform: translate3d(0,0,0) scale(var(--scale,1));
  animation: float-up var(--duration,20s) linear infinite;
  animation-delay: var(--delay,0s);
  will-change: transform, opacity;
}


/* ==========================================================================
   IMAGE CAROUSEL — uniform height across all slides
   ========================================================================== */
/* Image carousel — uniform height across all slides */
.elementor-image-carousel-wrapper .swiper-slide-inner {
  display: block;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 20px;
}

.elementor-image-carousel-wrapper .swiper-slide-image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

@media (max-width: 767px) {
  .elementor-image-carousel-wrapper .swiper-slide-inner {
    height: 220px;
  }
}
/* ==========================================================================
   MOBILE PERFORMANCE OVERRIDES
   Simplify expensive GPU effects on screens under 768px
   ========================================================================== */
@media (max-width: 767px) {

  /* Kill backdrop-filter — biggest mobile GPU drain */
  .card,
  .uktg-card,
  .uktg-panel,
  .uktg-faq,
  .uktg-salary-shell,
  .guides-section,
  .site-header,
  .course-chat-window,
  .uktg-area-hero__inner {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Simplify cards to flat backgrounds */
  .card { background: #ffffff; }
  .uktg-card,
  .uktg-salary-card,
  .guide-card { background: #fffdf8; }

  /* Simplify buttons to a single flat gradient */
  .btn {
    background: linear-gradient(180deg, #e8d49a, #c4a44e) !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.20) !important;
  }
  .btn::before,
  .btn::after { display: none; }

  .btn-ghost {
    background: rgba(255,255,255,0.9) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
  }

  /* Stop bubble animations on mobile */
  .bubble,
  .stu-bubble,
  .basket-bubbles .bubble { animation: none !important; }

  /* Reduce box-shadows */
  .card,
  .uktg-travel-card,
  .uktg-salary-card,
  .accordion-panel,
  .guide-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }

  /* Simplify hero overlays */
  .uktg-area-hero::before {
    background: rgba(255,255,255,0.94) !important;
  }

  /* Feather mask is expensive — remove on mobile */
  .feather-edges {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

/* ==========================================================================
   27. ASTRA HEADER — NAVIGATION & DROPDOWN MENUS

   JS-driven mega-menu. uktg-mega-menu.js adds .uktg-mega-js to body
   and toggles .uktg-mega-open on parent <li> items. When JS is active
   Astra's native :hover show/hide is disabled so the JS delay timer
   controls transitions between parents.

   Level 1 sub-menus: horizontal bar, full width of nav row.
   Level 2+ sub-menus: vertical dropdown below their parent item.
   ========================================================================== */

/* ── Masthead z-index — keeps dropdowns above page content ── */
#masthead {
    position: relative !important;
    z-index: 999 !important;
    overflow: visible !important;
}

/* ── Kill Astra's large SVG arrow toggle button ── */
.dropdown-menu-toggle.ast-header-navigation-arrow,
button.ast-header-navigation-arrow,
.ast-header-navigation-arrow,
.main-navigation .ast-menu-toggle,
.ast-above-header-bar .ast-menu-toggle,
.ast-below-header-bar .ast-menu-toggle {
    display: none !important;
}

@media (min-width: 922px) {

    /* ──────────────────────────────────────────────────────────────
       SMALL CHEVRONS on top-level parent items only
       ────────────────────────────────────────────────────────────── */
    .main-header-menu > .menu-item-has-children > a::after,
    .main-header-menu > .menu-item-has-children > .menu-link::after {
        content: "\25BE" !important;
        display: inline-block !important;
        font-size: 0.7em !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        opacity: 0.4 !important;
        margin-left: 0.3em !important;
        transition: opacity 0.2s ease, color 0.2s ease !important;
        font-family: inherit !important;
        border: none !important;
        width: auto !important;
        height: auto !important;
    }

    .main-header-menu > .menu-item-has-children:hover > a::after,
    .main-header-menu > .menu-item-has-children:hover > .menu-link::after {
        opacity: 1 !important;
        color: var(--uktg-gold) !important;
    }

    /* Hide chevrons inside sub-menus */
    .main-header-menu .sub-menu .menu-item-has-children > a::after,
    .main-header-menu .sub-menu .menu-item-has-children > .menu-link::after {
        display: none !important;
        content: none !important;
    }


    /* ──────────────────────────────────────────────────────────────
       MEGA-MENU POSITIONING
       ────────────────────────────────────────────────────────────── */

    .main-header-menu > .menu-item {
        position: static !important;
    }

    .main-header-menu {
        position: relative !important;
    }


    /* ──────────────────────────────────────────────────────────────
       LEVEL 1 SUB-MENUS — horizontal bar, full width of nav row
       ────────────────────────────────────────────────────────────── */

    .ast-builder-menu-1 .sub-menu,
    .ast-builder-menu-1 .main-header-menu .sub-menu,
    .ast-builder-menu-2 .sub-menu,
    .ast-builder-menu-2 .main-header-menu .sub-menu,
    .main-header-menu > .menu-item > .sub-menu {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        background: rgba(255,255,255,0.97) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 3px solid var(--uktg-gold) !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-radius: 0 0 14px 14px !important;
        box-shadow: 0 10px 36px rgba(0,0,0,0.12),
                    0 4px 10px rgba(0,0,0,0.06) !important;
        padding: 0 !important;
        position: absolute !important;
        top: calc(100% + 6px) !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }

    /* Override Astra builder inline margin-top */
    .ast-builder-menu-1 .main-header-menu > .menu-item > .sub-menu,
    .ast-builder-menu-1 .main-header-menu > .menu-item > .astra-full-megamenu-wrapper,
    .ast-builder-menu-2 .main-header-menu > .menu-item > .sub-menu,
    .ast-builder-menu-2 .main-header-menu > .menu-item > .astra-full-megamenu-wrapper {
        margin-top: 0 !important;
    }


    /* ──────────────────────────────────────────────────────────────
       JS-CONTROLLED SHOW/HIDE
       When .uktg-mega-js is on body, disable Astra's :hover show
       and only show via .uktg-mega-open (set by JS).
       ────────────────────────────────────────────────────────────── */

    /* Disable Astra's native hover show when JS is active */
    .uktg-mega-js .main-header-menu > .menu-item:hover > .sub-menu,
    .uktg-mega-js .main-header-menu > .menu-item.focus > .sub-menu {
        left: -999em !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* JS-controlled: show sub-menu — doubled class for higher specificity */
    .uktg-mega-js .main-header-menu > .menu-item.menu-item.uktg-mega-open > .sub-menu {
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Fallback: if JS hasn't loaded, Astra's :hover still works */
    .main-header-menu > .menu-item:hover > .sub-menu,
    .main-header-menu > .menu-item.focus > .sub-menu {
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }


    /* ──────────────────────────────────────────────────────────────
       LEVEL 1 SUB-MENU ITEMS (horizontal)
       ────────────────────────────────────────────────────────────── */

    .main-header-menu > .menu-item > .sub-menu > li {
        flex: 0 0 auto !important;
        border-bottom: none !important;
        list-style: none !important;
        white-space: nowrap !important;
        position: relative !important;
    }

    .main-header-menu > .menu-item > .sub-menu > li:not(:last-child) {
        border-right: 1px solid rgba(0,0,0,0.06) !important;
    }


    /* ──────────────────────────────────────────────────────────────
       LEVEL 2 SUB-SUB-MENUS — drops DOWN from the horizontal bar
       LEVEL 3+ — flies RIGHT (or left near screen edge)
       
       Pattern: V > V > V >
       Parent items in horizontal bar → children drop down
       Any deeper levels → fly out to the right
       ────────────────────────────────────────────────────────────── */

    /* Items in the horizontal bar need position:relative */
    .main-header-menu > .menu-item > .sub-menu > .menu-item-has-children {
        position: relative !important;
    }

    /* LEVEL 2: drops DOWN from parent in horizontal bar */
    .main-header-menu > .menu-item > .sub-menu > .menu-item > .sub-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        width: auto !important;
        min-width: 180px !important;
        max-width: 280px !important;
        display: none !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        white-space: normal !important;
        background: rgba(255,255,255,0.98) !important;
        border-top: 2px solid var(--uktg-gold-soft) !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-radius: 0 0 12px 12px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
        padding: 0.25rem 0 !important;
        z-index: 100000 !important;
    }

    /* LEVEL 2 flip: right-align when near right edge */
    .main-header-menu > .menu-item > .sub-menu > .menu-item-has-children.uktg-flip-left > .sub-menu {
        left: auto !important;
        right: 0 !important;
    }

    /* LEVEL 3+: flies RIGHT from parent in vertical list */
    .main-header-menu .sub-menu .sub-menu .sub-menu {
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
        right: auto !important;
        width: auto !important;
        min-width: 180px !important;
        max-width: 280px !important;
        display: none !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        white-space: normal !important;
        border-top: none !important;
        border-left: 2px solid var(--uktg-gold-soft) !important;
        border-right: none !important;
        border-bottom: none !important;
        border-radius: 0 12px 12px 0 !important;
        box-shadow: 6px 4px 24px rgba(0,0,0,0.10) !important;
    }

    /* LEVEL 3+ flip: to the left when near right edge */
    .main-header-menu .sub-menu .sub-menu .menu-item-has-children.uktg-flip-left > .sub-menu {
        left: auto !important;
        right: 100% !important;
        border-left: none !important;
        border-right: 2px solid var(--uktg-gold-soft) !important;
        border-radius: 12px 0 0 12px !important;
        box-shadow: -6px 4px 24px rgba(0,0,0,0.10) !important;
    }

    /* Items in vertical sub-sub-menus need position:relative for level 3+ */
    .main-header-menu .sub-menu .sub-menu > .menu-item-has-children {
        position: relative !important;
    }

    /* Show sub-sub-menu on hover */
    .main-header-menu .sub-menu > .menu-item-has-children:hover > .sub-menu,
    .main-header-menu .sub-menu .sub-menu > .menu-item-has-children:hover > .sub-menu {
        display: flex !important;
    }

    /* Raise hovered item above siblings */
    .main-header-menu > .menu-item > .sub-menu > .menu-item-has-children:hover {
        z-index: 100001 !important;
    }

    .main-header-menu .sub-menu .sub-menu > li {
        flex: none !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.04) !important;
        white-space: normal !important;
    }

    .main-header-menu .sub-menu .sub-menu > li:last-child {
        border-bottom: none !important;
    }

    /* Sub-sub-menu link styling — dark text on white background */
    .main-header-menu .sub-menu .sub-menu a,
    .main-header-menu .sub-menu .sub-menu .menu-link {
        color: #2c2c2c !important;
        padding: 0.6rem 1.1rem !important;
        font-size: 0.84rem !important;
        font-weight: 400 !important;
        white-space: normal !important;
        border-bottom: none !important;
        background: transparent !important;
        text-decoration: none !important;
        display: block !important;
    }

    .main-header-menu .sub-menu .sub-menu a:hover,
    .main-header-menu .sub-menu .sub-menu .menu-link:hover {
        background: rgba(191,170,124,0.08) !important;
        color: var(--uktg-gold-deep) !important;
        border-bottom: none !important;
    }


    /* ──────────────────────────────────────────────────────────────
       SUB-MENU LINK STYLING (level 1)
       ────────────────────────────────────────────────────────────── */

    .main-header-menu > .menu-item > .sub-menu > li > a,
    .main-header-menu > .menu-item > .sub-menu > li > .menu-link {
        color: #2c2c2c !important;
        font-size: 0.88rem !important;
        font-weight: 500 !important;
        padding: 0.85rem 1.4rem !important;
        border-left: none !important;
        border-bottom: 2px solid transparent !important;
        transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease !important;
        display: block !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        line-height: 1.4 !important;
        background: transparent !important;
    }

    .main-header-menu > .menu-item > .sub-menu > li > a:hover,
    .main-header-menu > .menu-item > .sub-menu > li > .menu-link:hover {
        color: var(--uktg-gold-deep) !important;
        border-bottom-color: var(--uktg-gold) !important;
        background: rgba(191,170,124,0.06) !important;
    }

    .main-header-menu .sub-menu .current-menu-item > a,
    .main-header-menu .sub-menu .current_page_item > a {
        color: var(--uktg-gold-deep) !important;
        font-weight: 600 !important;
        border-bottom-color: var(--uktg-gold) !important;
    }
}


/* ==========================================================================
   28. MOBILE OFF-CANVAS MENU (Apple style)
   ========================================================================== */

@media (max-width: 1024px) {

    .ast-menu-toggle,
    button.ast-menu-toggle,
    .ast-mobile-popup-drawer .ast-menu-toggle,
    #ast-mobile-popup .ast-menu-toggle,
    .ast-header-break-point .ast-menu-toggle {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
    }

    #ast-mobile-popup a::before,
    #ast-mobile-popup a::after,
    #ast-mobile-popup li::before,
    #ast-mobile-popup li::after,
    .ast-mobile-popup-drawer a::before,
    .ast-mobile-popup-drawer a::after,
    .ast-mobile-popup-drawer li::before,
    .ast-mobile-popup-drawer li::after {
        display: none !important;
        content: '' !important;
        width: 0 !important;
        height: 0 !important;
    }

    #ast-mobile-popup,
    #ast-mobile-popup .ast-mobile-popup-inner,
    .ast-mobile-popup-drawer,
    .ast-mobile-popup-drawer .ast-mobile-popup-inner {
        background: #f2f2f7 !important;
        height: 100vh !important;
        padding: 20px 0 80px !important;
    }

    #ast-mobile-popup .nav-menu > li,
    .ast-mobile-popup-drawer .nav-menu > li {
        background: #ffffff !important;
        margin: 6px 16px !important;
        border-radius: 12px !important;
        border: none !important;
        padding: 0 !important;
        animation: none !important;
        list-style: none !important;
    }

    #ast-mobile-popup .nav-menu > li > a,
    .ast-mobile-popup-drawer .nav-menu > li > a {
        display: block !important;
        padding: 16px 18px 14px 16px !important;
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        color: #1c1c1e !important;
        text-transform: none !important;
        letter-spacing: -0.02em !important;
        line-height: 1.2 !important;
        text-decoration: none !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.08) !important;
        text-shadow: none !important;
        cursor: pointer !important;
    }

    #ast-mobile-popup .nav-menu > li:not(.menu-item-has-children) > a,
    .ast-mobile-popup-drawer .nav-menu > li:not(.menu-item-has-children) > a {
        font-size: 1.15rem !important;
        font-weight: 600 !important;
        color: #1c1c1e !important;
        padding: 16px 18px !important;
        border-bottom: none !important;
    }

    #ast-mobile-popup .nav-menu > li:not(.menu-item-has-children) > a[href*="login"],
    .ast-mobile-popup-drawer .nav-menu > li:not(.menu-item-has-children) > a[href*="login"],
    #ast-mobile-popup .nav-menu > li:not(.menu-item-has-children) > a[href*="logout"],
    .ast-mobile-popup-drawer .nav-menu > li:not(.menu-item-has-children) > a[href*="logout"] {
        color: #b8956a !important;
        font-weight: 700 !important;
    }

    #ast-mobile-popup .nav-menu > li > .sub-menu,
    .ast-mobile-popup-drawer .nav-menu > li > .sub-menu,
    #ast-mobile-popup ul.sub-menu,
    .ast-mobile-popup-drawer ul.sub-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        max-height: none !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 4px 0 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        animation: none !important;
    }

    #ast-mobile-popup .sub-menu > li,
    .ast-mobile-popup-drawer .sub-menu > li {
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        animation: none !important;
        list-style: none !important;
    }

    #ast-mobile-popup .sub-menu > li:last-child,
    .ast-mobile-popup-drawer .sub-menu > li:last-child {
        border-bottom: none !important;
    }

    #ast-mobile-popup .sub-menu > li > a,
    .ast-mobile-popup-drawer .sub-menu > li > a {
        display: block !important;
        padding: 9px 18px 9px 32px !important;
        font-size: 0.88rem !important;
        font-weight: 400 !important;
        color: #8e8e93 !important;
        text-decoration: none !important;
        letter-spacing: 0 !important;
        background: transparent !important;
        border: none !important;
        text-transform: none !important;
        text-shadow: none !important;
        line-height: 1.4 !important;
        transition: color 0.15s ease !important;
    }

    #ast-mobile-popup .sub-menu > li > a:hover,
    .ast-mobile-popup-drawer .sub-menu > li > a:hover {
        color: #1c1c1e !important;
        background: transparent !important;
    }
}


/* ==========================================================================
   29. HEADER PILL
   ========================================================================== */

.uktg-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.38rem 0.6rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 -10px 22px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    max-width: 100%;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
}

.uktg-header-pill .uktg-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #ffffff;
    font-family: Lato, sans-serif;
    font-size: clamp(11px, 3.4vw, 13px);
    line-height: 1.15;
    white-space: nowrap;
}

.uktg-header-pill .uktg-contact a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.uktg-header-pill .uktg-contact a:focus-visible {
    outline: 2px solid rgba(191,170,124,0.95);
    outline-offset: 3px;
    border-radius: 8px;
}

.uktg-header-pill .uktg-sep {
    opacity: 0.55;
}

.uktg-header-pill .uktg-accreditors {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.uktg-header-pill .uktg-accreditor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 -6px 14px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.70);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.uktg-header-pill .uktg-accreditor-link img {
    max-width: 46px;
    max-height: 20px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.95;
    filter: saturate(0.9) contrast(1.05);
}

@media (hover: hover) {
    .uktg-header-pill .uktg-accreditor-link:hover {
        transform: translateY(-1px);
        box-shadow: 0 -10px 18px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.75);
    }
}

.uktg-header-pill .uktg-accreditor-link:focus-visible {
    outline: 2px solid rgba(191,170,124,0.95);
    outline-offset: 3px;
}

@media (min-width: 1100px) {
    .uktg-header-pill {
        padding: 0.42rem 0.7rem;
        gap: 0.7rem;
    }
    .uktg-header-pill .uktg-accreditor-link {
        width: 62px;
        height: 32px;
    }
    .uktg-header-pill .uktg-accreditor-link img {
        max-width: 50px;
        max-height: 22px;
    }
}

@media (max-width: 820px) {
    .uktg-header-pill {
        padding: 0.34rem 0.5rem;
        gap: 0.5rem;
        border-radius: 18px;
    }
    .uktg-header-pill .uktg-accreditor-link {
        width: 48px;
        height: 26px;
        border-radius: 9px;
    }
    .uktg-header-pill .uktg-accreditor-link img {
        max-width: 40px;
        max-height: 18px;
    }
}

@media (max-width: 480px) {
    .uktg-header-pill {
        display: none;
    }
}


/* ==========================================================================
   30. BUDDYPRESS REGISTRATION FORM
   ========================================================================== */

.caps-lock-warning,
.password-input-wrapper .notice,
#buddypress .caps-lock-warning,
div[class*="caps"] { display: none !important; }

#buddypress .info { display: none !important; }

body.register {
    background-image: url('https://uktherapyguild.co.uk/wp-content/uploads/2025/08/TherapyLogin.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

#buddypress #register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

#buddypress #register-page form {
    background: white !important;
    padding: 50px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25) !important;
    max-width: 680px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

#buddypress #register-page form > * {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
    clear: both !important;
    box-sizing: border-box !important;
}

#buddypress .register-section,
#buddypress div.register-section,
#buddypress .layout-wrap,
#buddypress .layout-wrap > div,
#buddypress #register-page .default-profile,
#buddypress #register-page .extended-profile,
#buddypress #basic-details-section,
#buddypress #profile-details-section,
#buddypress #register-page form > div > div {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
    clear: both !important;
    margin-bottom: 40px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
}

#buddypress .layout-wrap,
#buddypress #register-page form > div {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    float: none !important;
    gap: 0 !important;
}

#buddypress .register-section h2 {
    font-size: 24px !important;
    margin-bottom: 25px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e5e5e5 !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
}

#buddypress .editfield label {
    display: block !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    color: #374151 !important;
    font-size: 14px !important;
}

#buddypress input[type="text"],
#buddypress input[type="email"],
#buddypress input[type="password"],
#buddypress input[type="tel"] {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    margin-bottom: 10px !important;
    transition: all 0.2s ease !important;
    background: white !important;
    color: #1a1a1a !important;
    box-sizing: border-box !important;
}

#buddypress input[type="text"]:focus,
#buddypress input[type="email"]:focus,
#buddypress input[type="password"]:focus,
#buddypress input[type="tel"]:focus {
    border-color: #BFAA7C !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(191,170,124,0.1) !important;
}

#buddypress .password-strength {
    margin: 8px 0 12px 0 !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

#buddypress .description {
    color: #6b7280 !important;
    font-size: 13px !important;
    margin: 8px 0 20px 0 !important;
    line-height: 1.5 !important;
}

#buddypress .field-visibility-settings-toggle,
#buddypress .field-visibility-settings p {
    color: #9ca3af !important;
    font-size: 12px !important;
    font-style: italic !important;
    margin: 10px 0 25px 0 !important;
    line-height: 1.4 !important;
}

#buddypress .field-visibility-settings a {
    color: #BFAA7C !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

#buddypress .editfield { margin-bottom: 25px !important; }

#buddypress .register-privacy-policy {
    margin: 30px 0 25px 0 !important;
    padding: 16px !important;
    background: #f9fafb !important;
    border-radius: 6px !important;
    border-left: 3px solid #BFAA7C !important;
}

#buddypress .register-privacy-policy label {
    font-weight: 400 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    color: #4b5563 !important;
}

#buddypress .register-privacy-policy a {
    color: #BFAA7C !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

#buddypress input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin-right: 8px !important;
    cursor: pointer !important;
    accent-color: #BFAA7C !important;
}

#buddypress #signup_submit,
#buddypress input[type="submit"] {
    background: #BFAA7C !important;
    color: white !important;
    padding: 14px 40px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-shadow: 0 2px 8px rgba(191,170,124,0.3) !important;
}

#buddypress #signup_submit:hover,
#buddypress input[type="submit"]:hover {
    background: #ab9a6d !important;
    box-shadow: 0 4px 12px rgba(191,170,124,0.4) !important;
}

@media (max-width: 768px) {
    #buddypress #register-page { padding: 30px 15px !important; }
    #buddypress #register-page form { padding: 35px 25px !important; }
}


/* ==========================================================================
   31. SPECIAL LINK COLOURS & ACCESSIBILITY
   ========================================================================== */

nav a[href*="logout"],
.menu a[href*="logout"] { color: #c74343 !important; }

nav a[href*="logout"]:hover,
.menu a[href*="logout"]:hover { color: #a33636 !important; }

nav a[href*="register"],
nav a[href*="signup"],
.menu a[href*="register"] {
    color: #8a7050 !important;
    font-weight: 600 !important;
}

nav a:focus-visible,
.menu a:focus-visible {
    outline: 2px solid #b8956a !important;
    outline-offset: 3px !important;
}


/* ==========================================================================
   33. BBPRESS STYLE PACK — AJAX SUBMIT SPINNER FIX
   The "Submitting" button and spinner should be hidden by default
   and only shown by the BSP plugin JS when a form is being submitted.
   ========================================================================== */

#bsp_topic_submit,
#bsp_reply_submit {
    display: none !important;
}

#bsp_topic_submit.bsp-ajax-submitting,
#bsp_reply_submit.bsp-ajax-submitting {
    display: inline-block !important;
}


/* ==========================================================================
   32. COLOUR HELPERS (CTA text colours used in Elementor widgets)
   ========================================================================== */

.uas-status-text  { color: #6b6b6b; }
.course-price-note { color: #5f5f5f; }
.payment-info-text { color: #5f5f5f; }
.cta-secondary    { color: #5a4a28; }

/* =====================================================================
   Section 34 — bbPress Forum Toolbar
   Overrides BSP Style Pack's scattered float-based button layout with
   a clean toolbar. Create New Topic = full-width primary CTA on its
   own row. Subscribe, Profile = outlined inline. Mark All = outlined,
   pushed right. Does NOT change the container's display mode, so the
   topic list, pagination, and reply form keep their full width.
   ===================================================================== */

/* --- Ensure the inner wrapper stays block (never flex) --- */
#bbpress-forums > .bbpress-wrapper,
.bbpress-wrapper#bbpress-forums {
  display: block !important;
}

/* --- Reset BSP float/width on all button containers --- */
#bbpress-forums .bbpress-wrapper > .bsp-center,
#bbpress-forums .bbpress-wrapper > .bsp-center.bsp-one-third,
.bbpress-wrapper#bbpress-forums > .bsp-center,
.bbpress-wrapper#bbpress-forums > .bsp-center.bsp-one-third {
  float: none !important;
  width: auto !important;
  display: inline-block !important;
  vertical-align: middle;
  margin: 0 0.25rem 0 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* --- Create New Topic: full-width row above the others --- */
#bbpress-forums .bbpress-wrapper > .bsp-center:not(.bsp-one-third),
.bbpress-wrapper#bbpress-forums > .bsp-center:not(.bsp-one-third) {
  display: block !important;
  width: 100% !important;
  margin-bottom: 0.625rem !important;
}

/* --- Hide empty spacer div (first child, no class) --- */
#bbpress-forums .bbpress-wrapper > div:first-child:not([class]),
.bbpress-wrapper#bbpress-forums > div:first-child:not([class]) {
  display: none !important;
}

/* --- Hide empty one-third containers (no button or form inside) --- */
#bbpress-forums .bbpress-wrapper > .bsp-center.bsp-one-third:not(:has(a)):not(:has(form)),
.bbpress-wrapper#bbpress-forums > .bsp-center.bsp-one-third:not(:has(a)):not(:has(form)) {
  display: none !important;
}

/* --- Mark All Topics As Read: push to the right --- */
#bbpress-forums .bbpress-wrapper > .bsp-center.bsp-one-third:has(.bsp-mark-all),
.bbpress-wrapper#bbpress-forums > .bsp-center.bsp-one-third:has(.bsp-mark-all) {
  float: right !important;
  display: inline-block !important;
  margin-right: 0 !important;
}

/* --- Clear floats before the notice / pagination / topic list --- */
#bbpress-forums .bbpress-wrapper > .bbp-template-notice,
#bbpress-forums .bbpress-wrapper > .bbp-pagination:first-of-type,
.bbpress-wrapper#bbpress-forums > .bbp-template-notice,
.bbpress-wrapper#bbpress-forums > .bbp-pagination:first-of-type {
  clear: both !important;
}

/* --- Mark All form: inline layout --- */
#bbpress-forums .bsp-mark-all,
#bbpress-forums .bsp-mark-all form {
  display: inline-flex !important;
  align-items: center;
}

/* =====================================================================
   Button Styles — shared base for all toolbar buttons
   ===================================================================== */
#bbpress-forums .bsp_button1,
#bbpress-forums .bsp-mark-all input[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.8125rem !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: var(--uktg-dark, #2b2b2b) !important;
  background: transparent !important;
  border: 1.5px solid var(--uktg-gold, #BFAA7C) !important;
  border-radius: 6px !important;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* --- Create New Topic: gold-filled primary CTA --- */
#bbpress-forums > .bbpress-wrapper > .bsp-center:not(.bsp-one-third) .bsp_button1,
.bbpress-wrapper#bbpress-forums > .bsp-center:not(.bsp-one-third) .bsp_button1 {
  width: 100% !important;
  background: var(--uktg-gold, #BFAA7C) !important;
  color: #fff !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  padding: 0.625rem 1.5rem !important;
}

#bbpress-forums > .bbpress-wrapper > .bsp-center:not(.bsp-one-third) .bsp_button1:hover,
.bbpress-wrapper#bbpress-forums > .bsp-center:not(.bsp-one-third) .bsp_button1:hover {
  background: var(--uktg-gold-deep, #8f7a4f) !important;
}

/* --- Outlined buttons: hover/focus fill --- */
#bbpress-forums .bsp-center.bsp-one-third .bsp_button1:hover,
#bbpress-forums .bsp-center.bsp-one-third .bsp_button1:focus-visible,
#bbpress-forums .bsp-mark-all input[type="submit"]:hover,
#bbpress-forums .bsp-mark-all input[type="submit"]:focus-visible {
  background: var(--uktg-gold, #BFAA7C) !important;
  color: #fff !important;
  outline: none;
}

/* --- Focus ring for keyboard navigation (WCAG) --- */
#bbpress-forums .bsp_button1:focus-visible,
#bbpress-forums .bsp-mark-all input[type="submit"]:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--uktg-gold, #BFAA7C);
}

/* =====================================================================
   Mobile — stack everything vertically below 600px
   ===================================================================== */
@media (max-width: 600px) {
  #bbpress-forums .bbpress-wrapper > .bsp-center,
  #bbpress-forums .bbpress-wrapper > .bsp-center.bsp-one-third,
  .bbpress-wrapper#bbpress-forums > .bsp-center,
  .bbpress-wrapper#bbpress-forums > .bsp-center.bsp-one-third {
    display: block !important;
    width: 100% !important;
    margin: 0 0 0.375rem 0 !important;
    float: none !important;
  }

  #bbpress-forums .bsp_button1,
  #bbpress-forums .bsp-mark-all input[type="submit"] {
    width: 100% !important;
    justify-content: center;
  }
}