/* HDT Sandbox Stage 3A live theme adjustments. */
body.hdt-sandbox-live {
  background: #fff;
}
.hdt-sandbox-live .navbar-brand img {
  max-width: 220px;
  object-fit: contain;
}
.hdt-live-logo-text {
  color: #111827;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.03em;
}
.hdt-sandbox-live .navbar .nav-link {
  font-weight: 700;
}
.hdt-live-hero .carousel-inner {
  border-radius: 0;
}
.hdt-live-hero-slide {
  position: relative;
  min-height: clamp(520px, 62vw, 760px);
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  background: radial-gradient(circle at 20% 20%, rgba(96, 93, 186, .75), transparent 34%), linear-gradient(135deg, #111827, #343a60 55%, #605dba);
  background-size: cover;
  background-position: center;
}
.hdt-live-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, .78), rgba(17, 24, 39, .42) 55%, rgba(17, 24, 39, .18));
}
.hdt-live-hero-content {
  position: relative;
  z-index: 2;
}
.hdt-live-hero-copy {
  max-width: 780px;
  color: #fff;
}
.hdt-live-hero-copy h1,
.hdt-live-hero-copy h2 {
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}
.hdt-live-hero-copy p {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
  max-width: 650px;
  margin-bottom: 1.7rem;
  color: rgba(255, 255, 255, .92);
}
.hdt-live-hero .carousel-indicators {
  margin-bottom: 1.5rem;
}
.hdt-live-hero .carousel-control-prev,
.hdt-live-hero .carousel-control-next {
  width: 8%;
}
.hdt-live-content {
  max-width: 1220px;
  margin: 0 auto;
}
.hdt-live-content section {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}
.hdt-live-content section:first-child {
  padding-top: 0;
}
.hdt-live-content h1,
.hdt-live-content h2,
.hdt-live-content h3,
.hdt-live-content h4 {
  letter-spacing: -.03em;
}
.hdt-live-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.hdt-live-content h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin-top: 1rem;
  margin-bottom: .65rem;
}
.hdt-live-content p {
  line-height: 1.75;
  max-width: 78ch;
}
.hdt-live-content .lead {
  font-size: 1.2rem;
  line-height: 1.65;
}
.hdt-live-content .row {
  row-gap: 2rem;
}
.hdt-live-content img {
  border-radius: .8rem;
}
.hdt-live-content .cta-section {
  background: #f0f0f8;
  border-radius: 1.25rem;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}
.hdt-live-blocks .card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(30, 34, 40, .07);
}
@media (max-width: 991.98px) {
  .hdt-live-hero-slide {
    min-height: 560px;
    padding: 4rem 0;
  }
}
@media (max-width: 767.98px) {
  .hdt-live-hero-copy h1,
  .hdt-live-hero-copy h2 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }
}


/* HDT nav recovery: keep Sandbox desktop menu intact and add a small fallback for mobile toggle. */
.hdt-sandbox-live .navbar .navbar-nav .nav-link {
  pointer-events: auto;
}
.hdt-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  display: none;
  border: 0;
  background: rgba(30, 34, 40, .55);
}
.hdt-nav-backdrop.show {
  display: block;
}
@media (max-width: 991.98px) {
  #hdtOffcanvasNav.offcanvas.show {
    visibility: visible !important;
  }
}

/* HDT mobile menu close button: visible text fallback so it works even if Bootstrap icon assets are unavailable. */
.hdt-offcanvas-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
}
.hdt-offcanvas-close:hover,
.hdt-offcanvas-close:focus {
  background: rgba(255, 255, 255, .22);
  color: #fff;
  outline: 2px solid rgba(255, 255, 255, .55);
  outline-offset: 2px;
}
.hdt-offcanvas-close span {
  display: block;
  transform: translateY(-1px);
}

/* HDT Sandbox Stage 3C remaining public pages. */
.hdt-inner-hero {
  position: relative;
  overflow: hidden;
}
.hdt-inner-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: rgba(96, 93, 186, .14);
  pointer-events: none;
}
.hdt-inner-hero .container {
  position: relative;
  z-index: 1;
}
.hdt-inner-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #605dba;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hdt-inner-hero .lead {
  max-width: 760px;
  color: #60697b;
}
.hdt-inner-main {
  min-height: 48vh;
}
.hdt-content-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 .5rem 1.75rem rgba(30, 34, 40, .07);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.hdt-content-narrow {
  max-width: 960px;
}
.hdt-prose {
  color: #60697b;
  line-height: 1.78;
}
.hdt-prose > *:last-child {
  margin-bottom: 0;
}
.hdt-prose h2,
.hdt-prose h3,
.hdt-prose h4 {
  color: #343f52;
  letter-spacing: -.03em;
  margin-top: 2rem;
}
.hdt-prose h2:first-child,
.hdt-prose h3:first-child,
.hdt-prose h4:first-child {
  margin-top: 0;
}
.hdt-listing-card {
  overflow: hidden;
  border-radius: 1.1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hdt-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .8rem 2rem rgba(30, 34, 40, .1) !important;
}
.hdt-listing-card .card-img-top {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hdt-profile-photo {
  max-height: 460px;
  object-fit: cover;
}
.hdt-error-card {
  max-width: 720px;
}
.hdt-error-code {
  color: #605dba;
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.06em;
}

/* HDT Sandbox Stage 4A forms and CTA styling. */
.hdt-form .form-label,
.hdt-contact-form .form-label {
  color: #343f52;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .45rem;
}
.hdt-form .form-label span,
.hdt-contact-form .form-label span { color: #d16b86; }
.hdt-form .form-control,
.hdt-form .form-select,
.hdt-contact-form .form-control,
.hdt-contact-form .form-select,
.hdt-search-panel .form-control {
  min-height: 3.05rem;
  border: 1px solid rgba(96, 105, 123, .22);
  border-radius: .85rem;
  background-color: #fff;
  color: #343f52;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hdt-form textarea.form-control,
.hdt-contact-form textarea.form-control { min-height: 9rem; }
.hdt-form .form-control:focus,
.hdt-form .form-select:focus,
.hdt-contact-form .form-control:focus,
.hdt-contact-form .form-select:focus,
.hdt-search-panel .form-control:focus {
  border-color: rgba(96, 93, 186, .65);
  box-shadow: 0 0 0 .25rem rgba(96, 93, 186, .12);
}
.hdt-form-submit,
.hdt-cta-button { box-shadow: 0 .45rem 1rem rgba(96, 93, 186, .18); }
.hdt-form-submit:hover,
.hdt-cta-button:hover { transform: translateY(-1px); }
.hdt-embedded-form {
  border: 0;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 .5rem 1.75rem rgba(30, 34, 40, .07);
}
.hdt-embedded-form .hdt-form-inner { padding: clamp(1.25rem, 3vw, 2rem); }
.hdt-radio-group,
.hdt-form .form-check,
.hdt-contact-form .form-check { color: #60697b; }
.hdt-form .form-check-input:checked,
.hdt-contact-form .form-check-input:checked { background-color: #605dba; border-color: #605dba; }
.hdt-contact-card .hdt-contact-detail { color: #60697b; }
.hdt-alert {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 .35rem 1.1rem rgba(30, 34, 40, .05);
}
.hdt-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(96, 93, 186, .12), rgba(247, 247, 252, 1));
  box-shadow: 0 .5rem 1.75rem rgba(30, 34, 40, .06);
}
.hdt-cta-copy { max-width: 760px; color: #343f52; font-size: 1.08rem; line-height: 1.65; }
@media (max-width: 767.98px) {
  .hdt-cta-box { align-items: flex-start; flex-direction: column; }
  .hdt-search-panel .input-group { display: block; }
  .hdt-search-panel .input-group .form-control,
  .hdt-search-panel .input-group .btn { width: 100%; border-radius: .85rem !important; }
  .hdt-search-panel .input-group .btn { margin-top: .75rem; }
}


/* HDT submenu support for CMS-controlled navigation. */
.hdt-sandbox-live .navbar .dropdown-menu {
  border: 0;
  border-radius: .8rem;
  box-shadow: 0 .5rem 1.5rem rgba(30, 34, 40, .12);
  padding: .55rem;
}
.hdt-sandbox-live .navbar .dropdown-item {
  border-radius: .55rem;
  font-weight: 700;
  padding: .55rem .8rem;
}
.hdt-sandbox-live .navbar .dropdown-item:hover,
.hdt-sandbox-live .navbar .dropdown-item:focus {
  color: #605dba;
  background: rgba(96, 93, 186, .08);
}
@media (min-width: 992px) {
  .hdt-sandbox-live .navbar .nav-item.dropdown:hover > .dropdown-menu,
  .hdt-sandbox-live .navbar .nav-item.dropdown:focus-within > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}
@media (max-width: 991.98px) {
  .hdt-sandbox-live #hdtOffcanvasNav .dropdown-menu {
    position: static;
    display: block;
    width: 100%;
    margin: .15rem 0 .65rem 0;
    padding: 0 0 0 1rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .hdt-sandbox-live #hdtOffcanvasNav .dropdown-toggle::after {
    display: none;
  }
  .hdt-sandbox-live #hdtOffcanvasNav .dropdown-item {
    color: rgba(255, 255, 255, .82);
    padding: .35rem 0;
  }
  .hdt-sandbox-live #hdtOffcanvasNav .dropdown-item:hover,
  .hdt-sandbox-live #hdtOffcanvasNav .dropdown-item:focus {
    color: #fff;
    background: transparent;
  }
}

/* HDT dropdown indicator: visible chevron for CMS submenu parent links. */
.hdt-sandbox-live .navbar .nav-link.dropdown-toggle::after {
  content: "\25BE";
  display: inline-block;
  margin-left: .4rem;
  border: 0;
  font-size: .72em;
  line-height: 1;
  vertical-align: .08em;
  opacity: .75;
  transition: transform .2s ease, opacity .2s ease;
}
.hdt-sandbox-live .navbar .nav-item.dropdown:hover > .nav-link.dropdown-toggle::after,
.hdt-sandbox-live .navbar .nav-item.dropdown:focus-within > .nav-link.dropdown-toggle::after {
  opacity: 1;
  transform: rotate(180deg);
}
@media (max-width: 991.98px) {
  .hdt-sandbox-live #hdtOffcanvasNav .dropdown-toggle::after {
    display: inline-block;
    color: rgba(255, 255, 255, .85);
    transform: none;
  }
  .hdt-sandbox-live #hdtOffcanvasNav .nav-item.dropdown:focus-within > .dropdown-toggle::after,
  .hdt-sandbox-live #hdtOffcanvasNav .nav-item.dropdown:hover > .dropdown-toggle::after {
    transform: none;
  }
}

/* HDT basic mobile submenu fix: keep desktop dropdowns, simplify mobile submenu behaviour. */
.hdt-sandbox-live .navbar .nav-link.dropdown-toggle::after,
.hdt-sandbox-live #hdtOffcanvasNav .dropdown-toggle::after {
  content: none !important;
  display: none !important;
}
.hdt-sandbox-live .hdt-submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.hdt-sandbox-live .hdt-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75em;
  line-height: 1;
  opacity: .8;
  transition: transform .2s ease, opacity .2s ease;
}
@media (min-width: 992px) {
  .hdt-sandbox-live .navbar .nav-item.dropdown:hover > .hdt-submenu-toggle .hdt-dropdown-icon,
  .hdt-sandbox-live .navbar .nav-item.dropdown:focus-within > .hdt-submenu-toggle .hdt-dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
  }
}
@media (max-width: 991.98px) {
  .hdt-sandbox-live #hdtOffcanvasNav .hdt-submenu-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .hdt-sandbox-live #hdtOffcanvasNav .hdt-dropdown-icon {
    color: rgba(255, 255, 255, .88);
    font-size: 1rem;
  }
  .hdt-sandbox-live #hdtOffcanvasNav .hdt-submenu {
    display: none !important;
    margin: .25rem 0 .75rem 0;
    padding: .35rem 0 .35rem 1rem;
    border-left: 1px solid rgba(255, 255, 255, .18);
  }
  .hdt-sandbox-live #hdtOffcanvasNav .hdt-menu-has-children.is-open > .hdt-submenu {
    display: block !important;
  }
  .hdt-sandbox-live #hdtOffcanvasNav .hdt-menu-has-children.is-open > .hdt-submenu-toggle .hdt-dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
  }
}

/* HDT home page content polish: keep the final CTA button readable on the dark/primary card. */
.hdt-home-final-cta .btn.btn-light,
.hdt-home-final-cta a.btn.btn-light {
  background: #fff !important;
  border-color: #fff !important;
  color: #605dba !important;
  box-shadow: 0 .5rem 1.25rem rgba(30, 34, 40, .16);
}
.hdt-home-final-cta .btn.btn-light:hover,
.hdt-home-final-cta .btn.btn-light:focus,
.hdt-home-final-cta a.btn.btn-light:hover,
.hdt-home-final-cta a.btn.btn-light:focus {
  background: #f7f7fc !important;
  border-color: #f7f7fc !important;
  color: #343f52 !important;
  transform: translateY(-1px);
}

/* Extra cleanup for mobile-menu backdrops if Bootstrap/Sandbox leaves one behind. */
body:not(.offcanvas-open) .hdt-nav-backdrop,
body:not(.offcanvas-open) .offcanvas-backdrop {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keep light CTA buttons readable inside dark/primary CMS content cards, even if the wrapper class changes. */
.hdt-live-content .bg-primary .btn.btn-light,
.hdt-live-content .bg-primary a.btn.btn-light,
.hdt-live-content .text-white .btn.btn-light,
.hdt-live-content .text-white a.btn.btn-light {
  background: #fff !important;
  border-color: #fff !important;
  color: #605dba !important;
}
.hdt-live-content .bg-primary .btn.btn-light:hover,
.hdt-live-content .bg-primary .btn.btn-light:focus,
.hdt-live-content .bg-primary a.btn.btn-light:hover,
.hdt-live-content .bg-primary a.btn.btn-light:focus,
.hdt-live-content .text-white .btn.btn-light:hover,
.hdt-live-content .text-white .btn.btn-light:focus,
.hdt-live-content .text-white a.btn.btn-light:hover,
.hdt-live-content .text-white a.btn.btn-light:focus {
  background: #f7f7fc !important;
  border-color: #f7f7fc !important;
  color: #343f52 !important;
}
