/*
Theme Name: Bright Minds Centre Elementor
Theme URI: https://brightmindscenter.org/
Author: Bright Minds Centre
Description: Elementor-ready WordPress theme for Bright Minds Centre remote ADHD and autism assessment pathways.
Version: 1.2.20
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: brightminds-elementor
*/

:root {
  --bmc-navy: #113b5b;
  --bmc-blue: #2678a7;
  --bmc-teal: #3ea49b;
  --bmc-mint: #e8f6f2;
  --bmc-sky: #eef7fb;
  --bmc-cream: #fffaf1;
  --bmc-ink: #203040;
  --bmc-muted: #617283;
  --bmc-border: #d9e7ec;
  --bmc-white: #ffffff;
  --bmc-shadow: 0 18px 45px rgba(17, 59, 91, 0.12);
  --bmc-radius: 8px;
  --bmc-max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--bmc-ink);
  background: #fbfdfe;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--bmc-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bmc-navy); }
img { max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--bmc-border);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.bmc-container {
  width: min(var(--bmc-max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--bmc-navy);
  text-decoration: none;
}

.site-branding img {
  width: auto;
  height: 68px;
  object-fit: contain;
}

.site-branding strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.site-branding span {
  display: block;
  color: var(--bmc-muted);
  font-size: 13px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li { position: relative; }

.site-nav a {
  color: var(--bmc-ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover { color: var(--bmc-blue); }

.site-nav .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 14px);
  width: 280px;
  display: none;
  padding: 10px;
  border: 1px solid var(--bmc-border);
  border-radius: var(--bmc-radius);
  background: #fff;
  box-shadow: var(--bmc-shadow);
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
  display: block;
}

.site-nav .sub-menu li { display: block; }

.site-nav .sub-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  line-height: 1.25;
}

.site-nav .sub-menu a:hover {
  background: var(--bmc-sky);
}

.bmc-button,
.site-nav .menu-cta a,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--bmc-radius);
  background: var(--bmc-blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(38, 120, 167, 0.2);
}

.bmc-button:hover,
.site-nav .menu-cta a:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--bmc-navy);
  color: #fff;
}

.bmc-button--secondary {
  background: #fff;
  color: var(--bmc-navy);
  border-color: var(--bmc-border);
  box-shadow: none;
}

.bmc-button--secondary:hover {
  background: var(--bmc-mint);
  color: var(--bmc-navy);
}

.bmc-hero {
  padding: 72px 0 46px;
  background:
    linear-gradient(115deg, rgba(232, 246, 242, 0.95), rgba(238, 247, 251, 0.9)),
    radial-gradient(circle at 92% 10%, rgba(62, 164, 155, 0.18), transparent 30%);
}

.bmc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.bmc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bmc-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bmc-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--bmc-teal);
}

h1, h2, h3, h4 {
  color: var(--bmc-navy);
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 64px);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.bmc-lead {
  margin: 0 0 24px;
  color: #34495b;
  font-size: 20px;
  max-width: 760px;
}

.bmc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.bmc-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.bmc-trust-item,
.bmc-card,
.bmc-price-card,
.bmc-team-card,
.bmc-form-card {
  background: #fff;
  border: 1px solid var(--bmc-border);
  border-radius: var(--bmc-radius);
  box-shadow: var(--bmc-shadow);
}

.bmc-trust-item {
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--bmc-navy);
}

.bmc-trust-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--bmc-teal);
  font-size: 22px;
}

.bmc-hero-visual {
  position: relative;
}

.bmc-hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--bmc-shadow);
}

.bmc-hero-note {
  position: absolute;
  right: -10px;
  bottom: -24px;
  width: min(310px, 82%);
  padding: 18px;
  border-radius: var(--bmc-radius);
  background: #fff;
  border: 1px solid var(--bmc-border);
  box-shadow: var(--bmc-shadow);
}

.bmc-hero-note strong {
  display: block;
  color: var(--bmc-navy);
  margin-bottom: 4px;
}

.bmc-section {
  padding: 70px 0;
}

.bmc-section--soft { background: var(--bmc-sky); }
.bmc-section--mint { background: var(--bmc-mint); }
.bmc-section--navy { background: var(--bmc-navy); color: #fff; }
.bmc-section--navy h2,
.bmc-section--navy h3 { color: #fff; }

.bmc-section-header {
  max-width: 780px;
  margin-bottom: 30px;
}

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

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

.bmc-card,
.bmc-price-card,
.bmc-team-card,
.bmc-form-card {
  padding: 24px;
}

.bmc-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--bmc-mint);
  color: var(--bmc-navy);
  font-weight: 900;
}

.bmc-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.bmc-list li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
}

.bmc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--bmc-teal);
}

.bmc-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.bmc-step {
  position: relative;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--bmc-border);
  border-radius: var(--bmc-radius);
}

.bmc-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 99px;
  background: var(--bmc-blue);
  color: #fff;
  font-weight: 900;
}

.bmc-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bmc-price-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 12px;
}

.bmc-price {
  color: var(--bmc-navy);
  font-size: 34px;
  font-weight: 900;
}

.bmc-price small {
  color: var(--bmc-muted);
  font-size: 14px;
  font-weight: 700;
}

.bmc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bmc-border);
  border-radius: var(--bmc-radius);
  background: #fff;
  box-shadow: var(--bmc-shadow);
}

table.bmc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.bmc-table th,
.bmc-table td {
  padding: 15px;
  border-bottom: 1px solid var(--bmc-border);
  text-align: left;
  vertical-align: top;
}

.bmc-table th {
  background: var(--bmc-navy);
  color: #fff;
  font-size: 14px;
}

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

.bmc-fees {
  display: grid;
  gap: 46px;
}

.bmc-fees-group {
  display: grid;
  gap: 18px;
}

.bmc-fees-group--mint {
  padding: 34px;
  border-radius: 16px;
  background: var(--bmc-mint);
}

.bmc-grid--fee {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bmc-grid--one {
  grid-template-columns: minmax(0, 1fr);
  max-width: 380px;
}

.bmc-fee-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.bmc-fee-card .bmc-price {
  margin: 0;
}

.bmc-fee-card .bmc-button {
  margin-top: auto;
}

.bmc-boundary {
  padding: 24px;
  border-left: 5px solid var(--bmc-teal);
  border-radius: var(--bmc-radius);
  background: #fff;
  box-shadow: var(--bmc-shadow);
}

.bmc-faq details {
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid var(--bmc-border);
  border-radius: var(--bmc-radius);
  background: #fff;
}

.bmc-faq summary {
  color: var(--bmc-navy);
  cursor: pointer;
  font-weight: 900;
}

.bmc-team-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
}

.bmc-avatar {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bmc-mint);
  color: var(--bmc-navy);
  font-weight: 900;
}

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

.bmc-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--bmc-navy);
  font-weight: 800;
}

.bmc-field input,
.bmc-field select,
.bmc-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--bmc-border);
  border-radius: var(--bmc-radius);
  background: #fff;
  color: var(--bmc-ink);
  font: inherit;
}

.bmc-field textarea { min-height: 132px; resize: vertical; }
.bmc-field--full { grid-column: 1 / -1; }

.bmc-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bmc-help-text {
  margin: 7px 0 0;
  color: var(--bmc-muted);
  font-size: 13px;
}

.site-footer {
  padding: 46px 0 24px;
  background: #0d2f49;
  color: rgba(255,255,255,0.84);
}

.site-footer a { color: #fff; }
.site-footer h2,
.site-footer h3 { color: #fff; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

.site-footer__bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.elementor-page .site-main {
  padding: 0;
}

.bmc-page-hero {
  padding: 58px 0;
  background: var(--bmc-sky);
}

.bmc-page-hero--split {
  padding: 46px 0;
}

.bmc-page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 34px;
}

.bmc-page-hero__media {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--bmc-shadow);
  background: #fff;
}

.bmc-page-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
}

.bmc-content {
  padding: 56px 0;
}

@media (max-width: 980px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .site-nav ul { flex-wrap: wrap; gap: 12px; }
  .site-nav .sub-menu {
    position: static;
    display: block;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
  .bmc-hero__grid,
  .bmc-page-hero__grid,
  .bmc-grid,
  .bmc-grid--two,
  .bmc-grid--fee,
  .bmc-grid--one,
  .bmc-grid--four,
  .bmc-pricing,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
  .bmc-trust-strip,
  .bmc-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .bmc-hero-note { position: static; width: auto; margin-top: 14px; }
}

@media (max-width: 640px) {
  .bmc-hero { padding-top: 44px; }
  .site-branding strong { font-size: 16px; }
  .bmc-trust-strip,
  .bmc-steps,
  .bmc-form-grid {
    grid-template-columns: 1fr;
  }
  .bmc-team-card { grid-template-columns: 1fr; }
}

/* Bright Minds live theme alignment with approved preview build */
:root {
  --bmc-ink: #12312f;
  --bmc-text: #39514f;
  --bmc-teal: #15998c;
  --bmc-teal-dark: #117f75;
  --bmc-blue: #2f6fb4;
  --bmc-mint: #e8f7f4;
  --bmc-sky: #eef6ff;
  --bmc-line: #d9e8e5;
  --bmc-shadow: 0 14px 32px rgba(18, 49, 47, 0.09);
}

body {
  color: var(--bmc-text);
  background: #f7fbfb;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  line-height: 1.65;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--bmc-line);
  box-shadow: 0 8px 24px rgba(18, 49, 47, 0.06);
  backdrop-filter: none;
}

.site-header__inner,
.bmc-container {
  width: min(var(--bmc-max), calc(100% - 40px));
}

.site-header__inner {
  min-height: 88px;
  gap: 20px;
}

.site-branding {
  gap: 0;
  color: var(--bmc-ink);
}

.site-branding img,
.site-branding .custom-logo {
  width: auto;
  height: 68px;
  object-fit: contain;
}

.site-branding strong {
  color: #2fa79c;
  font-family: "Fredoka", Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-shadow: 1px 2px 0 rgba(90, 83, 72, 0.28), 0 1px 0 rgba(255, 255, 255, 0.38);
}

.site-branding > span > span {
  color: #1d3540;
  font-size: 13px;
  line-height: 1.2;
}

.site-nav ul {
  display: flex;
  gap: 19px;
}

.site-nav {
  margin-left: auto;
}

.site-nav li {
  display: block;
}

.site-nav a {
  color: var(--bmc-ink);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav li:hover > a,
.site-nav li:focus-within > a {
  color: var(--bmc-blue);
}

.site-nav .sub-menu {
  top: 34px;
  width: 320px;
  padding: 10px;
  border: 1px solid var(--bmc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(18, 49, 47, 0.09);
}

.site-nav li.menu-item-has-children,
.site-nav li:has(> .sub-menu) {
  padding-bottom: 16px;
  margin-bottom: -16px;
}

.site-nav li.menu-item-has-children > a,
.site-nav li:has(> .sub-menu) > a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.site-nav li.menu-item-has-children::after,
.site-nav li:has(> .sub-menu)::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 16px;
}

.site-nav li.menu-item-has-children:hover > .sub-menu,
.site-nav li.menu-item-has-children:focus-within > .sub-menu,
.site-nav li.menu-item-has-children.is-open > .sub-menu,
.site-nav li:has(> .sub-menu):hover > .sub-menu,
.site-nav li:has(> .sub-menu):focus-within > .sub-menu,
.site-nav li:has(> .sub-menu).is-open > .sub-menu {
  display: block;
}

.site-nav .sub-menu a {
  padding: 10px 11px;
  border-radius: 6px;
  line-height: 1.2;
}

.site-nav .sub-menu a:hover {
  background: var(--bmc-sky);
}

.bmc-button,
.site-nav .menu-cta a,
button,
input[type="submit"] {
  min-height: 44px;
  padding: 11px 18px;
  border: 2px solid var(--bmc-teal);
  border-radius: 8px;
  background: var(--bmc-teal);
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}

.bmc-button:hover,
.site-nav .menu-cta a:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--bmc-teal-dark);
  border-color: var(--bmc-teal-dark);
  color: #fff;
}

.bmc-button--secondary {
  background: #fff;
  color: var(--bmc-ink);
  border-color: var(--bmc-teal);
}

.bmc-button--secondary:hover {
  background: #fff;
  color: var(--bmc-ink);
}

h1, h2, h3, h4,
.bmc-boundary strong,
.footer-panel h2,
.footer-panel h3 {
  color: var(--bmc-ink);
  font-family: "Fredoka", Arial, sans-serif;
  letter-spacing: 0;
}

.bmc-lead {
  color: #31514d;
  font-size: 22px;
  max-width: 780px;
}

.site-main .elementor-section:first-of-type {
  margin-top: 8px;
}

.site-main .elementor-widget-text-editor p {
  margin-top: 0;
}

.site-main .elementor-widget-html .bmc-actions {
  margin: 18px 0 16px;
}

.site-main .elementor-widget-html .bmc-boundary {
  max-width: 760px;
  margin-top: 10px;
  padding: 18px 22px;
}

body.home .site-main > .elementor > .elementor-section {
  padding-left: 0;
  padding-right: 0;
}

body.home .site-main > .elementor > .elementor-section > .elementor-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

body.home .site-main > .elementor > .elementor-section > .elementor-container > .elementor-column {
  width: 100% !important;
}

body.home .site-main > .elementor > .elementor-section > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding: 0 !important;
  width: 100% !important;
}

body.home .site-main .elementor-widget-html > .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

body.home .site-main .elementor-widget-html .bmc-section,
body.home .site-main .elementor-widget-html .bmc-page-hero {
  width: 100% !important;
}

.bmc-card,
.bmc-form-card,
.bmc-boundary {
  border: 1px solid var(--bmc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(18, 49, 47, 0.07);
}

.bmc-boundary {
  border-left: 5px solid var(--bmc-teal);
}

.bmc-card__icon {
  border-radius: 8px;
  background: var(--bmc-mint);
  color: var(--bmc-teal);
}

.site-footer {
  padding: 72px 0 28px;
  background: #18363b;
  color: #e7f5f2;
}

.site-footer a {
  color: #e7f5f2;
  text-decoration: none;
}

.site-footer a:hover {
  color: #9de7de;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 22px;
}

.footer-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-panel h2,
.footer-panel h3 {
  margin: 0 0 14px;
  color: #fff;
}

.company-smallprint {
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.88;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 0 0 10px;
}

.footer-social {
  margin-top: 24px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.footer-note p {
  margin: 0;
}

@media (max-width: 900px) {
  .footer-grid,
  .footer-note {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  body.home .site-main > .elementor > .elementor-section:first-of-type {
    padding: 22px 0 20px;
  }

  body.home .site-main > .elementor > .elementor-section > .elementor-container {
    width: min(var(--bmc-max), calc(100% - 28px));
  }

  body.home .site-main > .elementor > .elementor-section:first-of-type > .elementor-container {
    column-gap: 24px;
  }

  body.home .site-main > .elementor > .elementor-section:first-of-type .elementor-heading-title,
  body.home .site-main > .elementor > .elementor-section:first-of-type .bmc-lead,
  body.home .site-main > .elementor > .elementor-section:first-of-type .bmc-boundary {
    max-width: none;
  }
}

@media (max-width: 767px) {
  body.home .site-main > .elementor > .elementor-section > .elementor-container {
    width: calc(100% - 24px);
  }

  body.home .site-main > .elementor > .elementor-section:first-of-type > .elementor-container > .elementor-column:first-child,
  body.home .site-main > .elementor > .elementor-section:first-of-type > .elementor-container > .elementor-column:last-child {
    width: 100%;
  }

  body.home .site-main > .elementor > .elementor-section:first-of-type .elementor-heading-title {
    max-width: none;
    font-size: clamp(2.35rem, 10vw, 3.1rem);
  }

  body.home .site-main > .elementor > .elementor-section:first-of-type .elementor-widget-image img {
    max-width: none;
    margin: 0 auto;
  }
}

body:not(.home) .site-main > .elementor > .elementor-section {
  padding-left: 0;
  padding-right: 0;
}

body:not(.home) .site-main > .elementor > .elementor-section > .elementor-container,
body:not(.home) .site-main > .elementor > .elementor-section > .elementor-container > .elementor-column,
body:not(.home) .site-main > .elementor > .elementor-section > .elementor-container > .elementor-column > .elementor-widget-wrap {
  width: 100%;
  max-width: none;
}

body:not(.home) .site-main > .elementor > .elementor-section > .elementor-container {
  margin: 0 auto;
}

body:not(.home) .site-main .bmc-page-hero,
body:not(.home) .site-main .bmc-section {
  width: min(var(--bmc-max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
}

body:not(.home) .site-main .bmc-page-hero {
  margin-top: 8px;
}

body:not(.home) .site-main .bmc-page-hero > .bmc-container,
body:not(.home) .site-main .bmc-section > .bmc-container,
.bmc-shortcode-frame {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.bmc-shortcode-frame {
  padding-top: 0;
  padding-bottom: 0;
}

.bmc-shortcode-frame--form {
  max-width: 920px;
}

body:not(.home) .site-main .bmc-page-hero:not(.bmc-page-hero--split) {
  padding: 46px 0;
}

body:not(.home) .site-main .bmc-page-hero:not(.bmc-page-hero--split) .bmc-lead {
  max-width: 760px;
}

body:not(.home) .site-main .bmc-section .bmc-grid,
.bmc-shortcode-frame > .bmc-grid,
.bmc-shortcode-frame > .bmc-fees,
.bmc-shortcode-frame > .bmc-faq {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Bright Minds shared Elementor form card */
body:not(.home) .site-main .elementor-widget-form {
  width: min(920px, calc(100% - 40px)) !important;
  max-width: 920px !important;
  margin: 0 auto 64px !important;
  padding: 28px !important;
  border: 1px solid var(--bmc-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 16px 38px rgba(18, 49, 47, 0.08) !important;
}

body:not(.home) .site-main .elementor-widget-form .elementor-form-fields-wrapper {
  gap: 18px 20px;
}

.bmc-form-note {
  margin: 0;
  color: var(--bmc-muted);
  font-size: 14px;
  font-weight: 700;
}

body:not(.home) .site-main .elementor-widget-form .elementor-field-group {
  margin-bottom: 0;
}

body:not(.home) .site-main .elementor-widget-form .elementor-field-label {
  margin-bottom: 7px;
  color: var(--bmc-ink);
  font-weight: 800;
}

body:not(.home) .site-main .elementor-widget-form .elementor-field,
body:not(.home) .site-main .elementor-widget-form .elementor-select-wrapper select {
  border-color: var(--bmc-line);
  border-radius: 12px;
  color: var(--bmc-ink);
}

body:not(.home) .site-main .elementor-widget-form .elementor-button {
  border-radius: 999px;
  background: var(--bmc-teal);
  color: #fff;
  font-weight: 900;
}

body:not(.home) .site-main .elementor-widget-form .elementor-button:hover,
body:not(.home) .site-main .elementor-widget-form .elementor-button:focus-visible {
  background: #247f78;
  color: #fff;
}

@media (max-width: 767px) {
  body:not(.home) .site-main .elementor-widget-form {
    width: min(100% - 24px, 920px) !important;
    padding: 20px !important;
    margin-bottom: 44px !important;
  }
}

.bmc-shortcode-frame .bmc-team-card {
  align-items: start;
}

.bmc-shortcode-frame .bmc-team-card p:first-of-type {
  margin-top: 0;
}

.policy-shell {
  display: grid;
  gap: 28px;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-tag {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--bmc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bmc-ink);
  font-size: 13px;
  font-weight: 800;
}

.policy-section {
  padding: 24px;
  border: 1px solid var(--bmc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(18, 49, 47, 0.06);
}

.policy-section h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.policy-section h3 {
  margin-bottom: 8px;
  color: var(--bmc-ink);
  font-size: 21px;
}

.policy-list {
  margin: 0;
  padding-left: 18px;
}

.policy-list li {
  margin: 8px 0;
}

@media (max-width: 980px) {
  .site-nav li.menu-item-has-children,
  .site-nav li:has(> .sub-menu) {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .site-nav li.menu-item-has-children::after,
  .site-nav li:has(> .sub-menu)::after {
    content: none;
  }

  .site-nav .sub-menu,
  .site-nav li:hover > .sub-menu,
  .site-nav li:focus-within > .sub-menu,
  .site-nav li.menu-item-has-children:hover > .sub-menu,
  .site-nav li.menu-item-has-children:focus-within > .sub-menu,
  .site-nav li:has(> .sub-menu):hover > .sub-menu,
  .site-nav li:has(> .sub-menu):focus-within > .sub-menu {
    position: static;
    display: none;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .site-nav li.is-open > .sub-menu,
  .site-nav li.menu-item-has-children.is-open > .sub-menu,
  .site-nav li:has(> .sub-menu).is-open > .sub-menu {
    display: block;
  }
}

/* Mobile header sizing fix - keeps logo and brand text within the screen */
@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }
  .site-header__inner,
  .topbar {
    flex-wrap: wrap;
    align-items: center;
  }
  .site-branding {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }
  .site-branding img,
  .site-branding .custom-logo {
    width: auto;
    height: 52px;
  }
  .site-branding strong {
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: none;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .site-branding > span,
  .site-branding > span > span {
    font-size: 11px;
    overflow-wrap: break-word;
  }
}

@media (max-width: 400px) {
  .site-branding img,
  .site-branding .custom-logo {
    width: auto;
    height: 44px;
  }
  .site-branding strong {
    font-size: 20px;
  }
}
