@font-face {
  font-family: 'GoodTimes';
  src: url('../fonts/ctdc/goodtimes.ad051e04773e.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #094590;
  --primary-color-rgb: 9, 69, 144;
  --secondary-color: #094590;
  --primary-gradient: 0deg, #094590 0%, #094590 100%;
  --bg-dark-1: #06366f;
  --bg-dark-2: #073a75;
  --bg-dark-3: #094590;
  --bg-dark-1-rgb: 6, 54, 111;
  --bg-light: #f7f9fb;
  --body-font-color: #566571;
  --body-font-color-dark: rgba(255, 255, 255, .78);
  --heading-font-color: #17232d;
  --surface-main: #ffffff;
  --surface-alt: #f7f9fb;
  --surface-tint: #eef7fb;
  --border-subtle: #d6e0e6;
  --text-main: #17232d;
  --text-muted: #566571;
  --interactive: #094590;
  --interactive-hover: #06366f;
  --accent-decorative: #31b9ea;
  --rounded-1: 8px;
  --btn-rounded: 6px;
  --h1-letter-spacing: 0;
  --h2-letter-spacing: 0;
}

body {
  background: var(--surface-main);
}

h1,
h2,
h3,
h4,
h5,
h6,
.subtitle,
#mainmenu li a,
.btn-main {
  letter-spacing: 0 !important;
}

#logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

#logo .logo-main,
#logo .logo-mobile {
  content: url("../images/logo-big.4827f401e480.webp");
  width: 44px;
  height: 44px;
  object-fit: contain;
}

#logo .logo-wordmark {
  font-family: var(--heading-font);
  color: var(--text-main);
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.logo-footer-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-footer-wrap .logo-wordmark {
  font-family: var(--heading-font);
  color: var(--text-main);
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1;
}

header,
header.transparent,
header.smaller,
header.header-mobile {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(9, 69, 144, .08);
  backdrop-filter: blur(14px);
}

header .de-flex {
  min-height: 82px;
}

#mainmenu > li > a {
  color: var(--text-main) !important;
  font-size: 15px;
}

#mainmenu > li > a:hover,
#mainmenu > li > a:focus,
#mainmenu > li > a.active {
  color: var(--interactive) !important;
}

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

.menu_side_area .topbar-widget {
  order: 2;
  margin: 0 !important;
}

.menu_side_area .topbar-widget a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--text-main);
  font-size: 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--surface-main);
}

.menu_side_area .language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 !important;
  border: 0;
  background: none;
  white-space: nowrap;
}

/* Closed control: identical to the approved .topbar-widget flag+code pill. */
.menu_side_area .language-switcher .language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-main);
  background: var(--surface-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.menu_side_area .language-switcher .language-toggle[hidden] {
  display: none;
}

.menu_side_area .language-switcher .language-toggle:hover,
.menu_side_area .language-switcher .language-toggle[aria-expanded="true"] {
  color: var(--interactive);
  border-color: var(--interactive);
  background: var(--surface-tint);
}

.menu_side_area .language-switcher .language-toggle:focus-visible {
  color: var(--interactive);
  border-color: var(--interactive);
  outline: 3px solid var(--interactive);
  outline-offset: 3px;
}

.menu_side_area .language-switcher .language-flag {
  font-size: 14px;
  line-height: 1;
}

.menu_side_area .language-switcher .language-caret {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.menu_side_area .language-switcher .language-toggle[aria-expanded="true"] .language-caret {
  border-top: 0;
  border-bottom: 5px solid currentColor;
}

.menu_side_area.language-menu-open {
  z-index: 1002;
}

.menu_side_area .language-switcher .language-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1100;
  min-width: 100%;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--surface-main);
  box-shadow: 0 8px 20px rgba(23, 35, 45, .14);
}

.menu_side_area .language-switcher .language-menu[hidden] {
  display: none;
}

.menu_side_area .language-switcher .language-menu:focus-visible {
  outline: 3px solid var(--interactive);
  outline-offset: 2px;
}

.menu_side_area .language-switcher .language-option {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.menu_side_area .language-switcher .language-option.is-active,
.menu_side_area .language-switcher .language-option:hover {
  color: var(--interactive);
  background: var(--surface-tint);
}

.menu_side_area .language-switcher .language-option[aria-selected="true"] {
  color: var(--interactive);
}

.menu_side_area .language-switcher a.language-fallback {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-main);
  background: var(--surface-main);
  font-size: 13px;
  font-weight: 600;
}

.menu_side_area .language-switcher a.language-fallback:hover {
  color: var(--interactive);
  border-color: var(--interactive);
  background: var(--surface-tint);
}

header .menu_side_area .social-icons {
  order: 3;
  display: none;
  align-items: center;
  gap: 8px;
}

header .menu_side_area .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--interactive);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--surface-main);
}

header .menu_side_area .social-icons a:hover,
header .menu_side_area .social-icons a:focus {
  color: var(--interactive-hover);
  border-color: var(--interactive);
  background: var(--surface-tint);
}

header .menu_side_area .social-icons i {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  background: transparent;
}

.menu_side_area #menu-btn {
  order: 4;
  color: var(--text-main);
}

.menu_side_area button#menu-btn {
  border: 0;
  background: transparent;
  font: inherit;
}

.ctdc-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: stretch;
  padding: 142px 0 52px;
  overflow: hidden;
  background: #0c1424;
}

.ctdc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/slider/1.bd79300a1262.webp");
  background-size: cover;
  background-position: center;
  opacity: .42;
}

.ctdc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 20, 36, .96) 0%, rgba(12, 20, 36, .88) 46%, rgba(12, 20, 36, .58) 100%),
    linear-gradient(180deg, rgba(12, 20, 36, .62) 0%, rgba(12, 20, 36, .12) 52%, rgba(12, 20, 36, .86) 100%);
}

.ctdc-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
}

.ctdc-hero-copy {
  max-width: 820px;
}

.ctdc-hero .subtitle {
  color: var(--accent-decorative);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.ctdc-hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 54px;
  line-height: 1.08;
}

.ctdc-hero-lede {
  max-width: 740px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .84);
  font-size: 21px;
  line-height: 1.55;
}

.ctdc-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-bottom: 28px;
}

.ctdc-secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-decorative);
}

.ctdc-secondary-link:hover,
.ctdc-secondary-link:focus {
  color: var(--accent-decorative);
}

.ctdc-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ctdc-hero-proof li {
  padding: 8px 12px;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}

.ctdc-hero-service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
}

.ctdc-hero-service-strip a {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 24px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(12, 20, 36, .72);
}

.ctdc-hero-service-strip a:hover,
.ctdc-hero-service-strip a:focus {
  background: rgba(49, 185, 234, .16);
}

.ctdc-hero-service-strip span {
  color: var(--accent-decorative);
  font-size: 13px;
  font-weight: 700;
}

.ctdc-hero-service-strip strong {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.2;
}

.ctdc-hero-service-strip em {
  color: rgba(255, 255, 255, .74);
  font-style: normal;
  line-height: 1.55;
}

.ctdc-cta-band {
  background: var(--surface-tint) !important;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ctdc-cta-band :is(h3, .ctdc-type-h3) {
  font-size: 28px !important;
  line-height: 1.25;
}

.ctdc-cta-band .btn-main.btn-line {
  border-color: var(--interactive) !important;
  color: var(--interactive) !important;
}

.bg-dark-gradient {
  background: var(--surface-main) !important;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px rgba(9, 69, 144, .08);
}

.section-dark .lead {
  color: var(--text-muted);
}

@media (max-width: 1199.98px) {
  #mainmenu > li > a {
    font-size: 14px;
  }

  header .menu_side_area .social-icons {
    display: none;
  }

  .ctdc-hero h1 {
    font-size: 50px;
  }
}

@media (max-width: 991.98px) {
  header .de-flex {
    min-height: 70px;
  }

  header .menu_side_area .social-icons {
    display: none;
  }

  .ctdc-hero {
    min-height: auto;
    padding: 118px 0 42px;
  }

  .ctdc-hero-inner {
    gap: 34px;
  }

  .ctdc-hero h1 {
    font-size: 42px;
  }

  .ctdc-hero-lede {
    font-size: 18px;
  }

  .ctdc-hero-service-strip {
    grid-template-columns: 1fr;
  }

  .ctdc-hero-service-strip a {
    min-height: auto;
    padding: 20px;
  }
}

@media (max-width: 575.98px) {
  #logo .logo-wordmark {
    font-size: 18px;
  }

  .ctdc-hero {
    padding-top: 104px;
  }

  .ctdc-hero h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .ctdc-hero .subtitle {
    font-size: 13px;
  }

  .ctdc-hero-lede {
    font-size: 17px;
    line-height: 1.5;
  }

  .ctdc-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .ctdc-hero-proof li {
    font-size: 13px;
  }

  .ctdc-cta-band :is(h3, .ctdc-type-h3) {
    font-size: 26px !important;
  }
}

@media (max-width: 479.98px) {
  #logo .logo-wordmark {
    display: none;
  }
}

/* Equal-height service cards with button pinned to bottom */
#services-grid > [class*="col-"] {
  display: flex;
}
#services-grid > [class*="col-"] > div {
  width: 100%;
  display: flex;
  flex-direction: column;
}
#services-grid > [class*="col-"] .relative.z-2 {
  display: flex;
  flex-direction: column;
  flex: 1;
}
#services-grid > [class*="col-"] .btn-main {
  margin-top: auto;
}

/* btn-line visible on light/white backgrounds (sections without section-dark) */
section:not(.section-dark) .btn-main.btn-line,
.bg-light .btn-main.btn-line {
  border-color: var(--color-2, #094590) !important;
  color: var(--color-2, #094590) !important;
}
section:not(.section-dark) .btn-main.btn-line:hover,
.bg-light .btn-main.btn-line:hover {
  background-color: var(--color-2, #094590) !important;
  color: #fff !important;
}

/* Pricing cards: button pinned to bottom */
#pricing-grid > [class*="col-"] {
  display: flex;
}
#pricing-grid > [class*="col-"] > div {
  width: 100%;
  display: flex;
  flex-direction: column;
}
#pricing-grid > [class*="col-"] .mt-4:last-child {
  margin-top: auto !important;
}

/* Blog pagination: uniform round items */
.pagination .page-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: inherit;
}
.pagination .page-item.active .page-link {
  background-color: var(--color-2, #094590);
  color: #fff;
  border-radius: 50%;
}
.pagination .page-item.disabled .page-link {
  opacity: 0.4;
}



/* Service cards: equal height, CTA pinned to bottom */
#vciso, #dpo, #compliance, #gdpr, #penetration-testing, #cloud-devsecops,
#ai-governance, #fintech-web3, #incident-response, #awareness-training {
  display: flex;
}
#vciso > div, #dpo > div, #compliance > div, #gdpr > div,
#penetration-testing > div, #cloud-devsecops > div, #ai-governance > div,
#fintech-web3 > div, #incident-response > div, #awareness-training > div {
  width: 100%;
  display: flex !important;
  flex-direction: column;
}
#vciso .z-2, #dpo .z-2, #compliance .z-2, #gdpr .z-2,
#penetration-testing .z-2, #cloud-devsecops .z-2, #ai-governance .z-2,
#fintech-web3 .z-2, #incident-response .z-2, #awareness-training .z-2 {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
#vciso .btn-main, #dpo .btn-main, #compliance .btn-main, #gdpr .btn-main,
#penetration-testing .btn-main, #cloud-devsecops .btn-main, #ai-governance .btn-main,
#fintech-web3 .btn-main, #incident-response .btn-main, #awareness-training .btn-main {
  margin-top: auto;
}

/* Service card icon and title row */
:is(#vciso, #dpo, #compliance, #gdpr, #penetration-testing, #cloud-devsecops,
#ai-governance, #fintech-web3, #incident-response, #awareness-training) .z-2 {
  display: grid !important;
  grid-template-columns: 90px minmax(0, 1fr);
  grid-template-rows: auto auto auto auto 1fr auto;
  column-gap: 18px;
  row-gap: 16px;
  flex: 1 1 auto;
}

:is(#vciso, #dpo, #compliance, #gdpr, #penetration-testing, #cloud-devsecops,
#ai-governance, #fintech-web3, #incident-response, #awareness-training) .z-2 > img.w-90px:first-child {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  margin-bottom: 0 !important;
}

:is(#vciso, #dpo, #compliance, #gdpr, #penetration-testing, #cloud-devsecops,
#ai-governance, #fintech-web3, #incident-response, #awareness-training) .z-2 > img.w-90px:first-child + :is(h2, h3, h4) {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  line-height: 1.2;
}

:is(#vciso, #dpo, #compliance, #gdpr, #penetration-testing, #cloud-devsecops,
#ai-governance, #fintech-web3, #incident-response, #awareness-training) .z-2 > p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}

:is(#vciso, #dpo) .z-2 > p + h4 {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
}

:is(#vciso, #dpo) .z-2 > ul {
  grid-column: 1 / -1;
  grid-row: 4;
}

:is(#vciso, #dpo, #compliance, #gdpr, #penetration-testing, #cloud-devsecops,
#ai-governance, #fintech-web3, #incident-response, #awareness-training) .z-2 > .btn-main {
  grid-column: 1 / -1;
  grid-row: 6;
  justify-self: start;
  align-self: end;
}

@media (max-width: 575.98px) {
  :is(#vciso, #dpo, #compliance, #gdpr, #penetration-testing, #cloud-devsecops,
  #ai-governance, #fintech-web3, #incident-response, #awareness-training) .z-2 {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 14px;
  }

  :is(#vciso, #dpo, #compliance, #gdpr, #penetration-testing, #cloud-devsecops,
  #ai-governance, #fintech-web3, #incident-response, #awareness-training) .z-2 > img.w-90px:first-child {
    width: 72px !important;
  }
}

/* Header fallback for pages before build injection */
.menu_side_area .social-icons:not(.ctdc-header-social) {
  order: 3;
}

/* Footer: compact balanced layout */
footer.ctdc-footer {
  padding: 38px 0 0;
}

footer.ctdc-footer .ctdc-footer-main {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, auto) auto;
  align-items: center;
  gap: 28px;
}

footer.ctdc-footer .ctdc-footer-brand,
footer.ctdc-footer .ctdc-footer-nav {
  min-width: 0;
}

footer.ctdc-footer .ctdc-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

footer.ctdc-footer .ctdc-footer-logo .logo-footer {
  width: 46px;
  max-width: 46px;
  height: 46px;
}

footer.ctdc-footer .ctdc-footer-logo .logo-wordmark {
  font-family: 'GoodTimes', sans-serif;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}

footer.ctdc-footer .ctdc-footer-tagline {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: 15px;
  line-height: 1.6;
}

footer.ctdc-footer .ctdc-footer-nav,
footer.ctdc-footer .ctdc-footer-social {
  justify-self: end;
}

footer.ctdc-footer .ctdc-footer-links,
footer.ctdc-footer .ctdc-legal-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer.ctdc-footer .ctdc-footer-links li,
footer.ctdc-footer .ctdc-legal-links li {
  margin: 0;
}

footer.ctdc-footer .ctdc-footer-links a,
footer.ctdc-footer .ctdc-legal-links a {
  white-space: nowrap;
  line-height: 1.2;
}

footer.ctdc-footer .ctdc-footer-links a {
  font-size: 15px;
}

footer.ctdc-footer .ctdc-footer-social {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

footer.ctdc-footer .ctdc-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
}

footer.ctdc-footer .ctdc-footer-social a:hover,
footer.ctdc-footer .ctdc-footer-social a:focus {
  color: #111827;
  background: #fff;
  border-color: #fff;
}

footer.ctdc-footer .ctdc-footer-social i {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  background: transparent;
}

footer.ctdc-footer .ctdc-subfooter {
  margin-top: 32px;
  padding: 14px 0;
}

footer.ctdc-footer .ctdc-subfooter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

footer.ctdc-footer .ctdc-copyright,
footer.ctdc-footer .ctdc-legal-links a {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.4;
}

footer.ctdc-footer .ctdc-legal-links {
  gap: 18px;
}

@media (max-width: 991.98px) {
  footer.ctdc-footer {
    padding-top: 34px;
  }

  footer.ctdc-footer .ctdc-footer-main {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  footer.ctdc-footer .ctdc-footer-nav,
  footer.ctdc-footer .ctdc-footer-social {
    justify-self: start;
  }

  footer.ctdc-footer .ctdc-footer-links {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  footer.ctdc-footer .ctdc-subfooter-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  /* Override the theme's collapsed mobile nav so the grid keeps its 20px gap. */
  footer.ctdc-footer .ctdc-footer-nav {
    height: auto;
  }

  footer.ctdc-footer .ctdc-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 575.98px) {
  footer.ctdc-footer {
    padding-top: 30px;
  }

  footer.ctdc-footer .ctdc-footer-tagline {
    font-size: 14px;
  }

  footer.ctdc-footer .ctdc-footer-links {
    gap: 10px 18px;
  }

  footer.ctdc-footer .ctdc-subfooter {
    margin-top: 26px;
  }
}

/* Light surface system */
a.btn-main:hover,
a.btn-main:focus-visible,
.btn-main:hover,
.btn-main:focus-visible {
  color: #ffffff;
  background: var(--interactive-hover);
}

a.btn-main:focus-visible,
a.btn-line:focus-visible,
#mainmenu a:focus-visible,
.menu_side_area a:focus-visible,
footer.ctdc-footer a:focus-visible {
  outline: 3px solid var(--interactive);
  outline-offset: 3px;
}

/* The sliding copy is decorative; keep the visible span as the link name. */
a.btn-main.fx-slide::before {
  content: attr(data-hover) / "";
}

a.btn-main.fx-slide:not([data-hover])::before {
  display: none;
}

a.btn-main.fx-slide:not([data-hover]):hover span,
a.btn-main.fx-slide:not([data-hover]):focus span {
  opacity: 1;
  transform: none;
}

#logo .logo-main,
#logo .logo-mobile,
footer.ctdc-footer .logo-footer {
  content: url("../images/logo-big.4827f401e480.webp");
  object-fit: contain;
}

section.section-dark.bg-dark:not(#subheader),
section.section-dark.bg-dark-2,
section.section-dark.bg-dark-gradient {
  background: var(--surface-alt) !important;
}

div.section-dark.bg-color,
section.section-dark.bg-color,
section.bg-color {
  background: var(--surface-tint) !important;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

:is(
  section.section-dark.bg-dark:not(#subheader),
  section.section-dark.bg-dark-2,
  section.section-dark.bg-dark-gradient,
  div.section-dark.bg-color,
  section.section-dark.bg-color,
  section.bg-color,
  .ctdc-cta-band
) {
  color: var(--text-main) !important;
}

:is(
  section.section-dark.bg-dark:not(#subheader),
  section.section-dark.bg-dark-2,
  section.section-dark.bg-dark-gradient,
  div.section-dark.bg-color,
  section.section-dark.bg-color,
  section.bg-color,
  .ctdc-cta-band
) :is(h1, h2, h3, h4, h5, h6, .ctdc-type-h2, .ctdc-type-h3) {
  color: var(--text-main) !important;
}

:is(
  section.section-dark.bg-dark:not(#subheader),
  section.section-dark.bg-dark-2,
  section.section-dark.bg-dark-gradient,
  div.section-dark.bg-color,
  section.section-dark.bg-color,
  section.bg-color,
  .ctdc-cta-band
) p:not(.ctdc-type-h2, .ctdc-type-h3) {
  color: var(--text-muted) !important;
}

.bg-dark-gradient.text-light,
.bg-dark-gradient.text-light :is(h1, h2, h3, h4, h5, h6, .ctdc-type-h2, .ctdc-type-h3) {
  color: var(--text-main) !important;
}

.bg-dark-gradient.text-light p:not(.ctdc-type-h2, .ctdc-type-h3) {
  color: var(--text-muted) !important;
}

.bg-dark-gradient .btn-main.bg-dark,
.bg-dark-gradient .btn-main.bg-dark:hover,
.bg-dark-gradient .btn-main.bg-dark:focus-visible {
  color: #ffffff !important;
  background: var(--interactive) !important;
}

.bg-dark-gradient .btn-main.bg-dark:hover,
.bg-dark-gradient .btn-main.bg-dark:focus-visible {
  background: var(--interactive-hover) !important;
}

.section-dark.bg-dark-2 a.bg-dark.text-light {
  color: var(--text-main) !important;
  background: var(--surface-main) !important;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(9, 69, 144, .07);
}

.section-dark.bg-dark-2 a.bg-dark.text-light :is(h1, h2, h3, h4, h5, h6, .ctdc-type-h2, .ctdc-type-h3):not(.text-white) {
  color: var(--text-main) !important;
}

.section-dark.bg-dark-2 a.bg-dark.text-light p:not(.ctdc-type-h2, .ctdc-type-h3) {
  color: var(--text-muted) !important;
}

.section-dark.bg-dark-2 a.bg-dark.text-light:hover,
.section-dark.bg-dark-2 a.bg-dark.text-light:focus-visible {
  border-color: var(--interactive);
}

.bg-dark.text-light .id-color {
  color: #ffffff;
}

#pricing-grid > [class*="col-"] > div {
  background: var(--surface-main) !important;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(9, 69, 144, .07);
}

.bg-dark-2.rounded-1.p-40.text-light.text-center {
  color: var(--text-main) !important;
  background: var(--surface-tint) !important;
  border: 1px solid var(--border-subtle);
}

.bg-dark-2.rounded-1.p-40.text-light.text-center :is(h1, h2, h3, h4, h5, h6, .ctdc-type-h2, .ctdc-type-h3) {
  color: var(--text-main) !important;
}

.bg-dark-2.rounded-1.p-40.text-light.text-center p:not(.ctdc-type-h2, .ctdc-type-h3) {
  color: var(--text-muted) !important;
}

.ctdc-cta-band .btn-main.btn-line:hover,
.ctdc-cta-band .btn-main.btn-line:focus-visible,
section.bg-color .btn-main.btn-line:hover,
section.bg-color .btn-main.btn-line:focus-visible {
  color: #ffffff !important;
  background: var(--interactive) !important;
}

section.section-dark.bg-dark-gradient .triangle-bottomright-dark {
  border-bottom-color: var(--surface-alt);
}

footer.ctdc-footer {
  color: var(--text-muted);
  background: var(--surface-alt) !important;
  border-top: 1px solid var(--border-subtle);
}

footer.ctdc-footer .ctdc-footer-logo .logo-wordmark,
footer.ctdc-footer .ctdc-footer-links a {
  color: var(--text-main);
}

footer.ctdc-footer .ctdc-footer-tagline,
footer.ctdc-footer .ctdc-copyright,
footer.ctdc-footer .ctdc-legal-links a {
  color: var(--text-muted);
}

footer.ctdc-footer .ctdc-footer-links a:hover,
footer.ctdc-footer .ctdc-footer-links a:focus,
footer.ctdc-footer .ctdc-legal-links a:hover,
footer.ctdc-footer .ctdc-legal-links a:focus {
  color: var(--interactive);
}

footer.ctdc-footer .ctdc-footer-social a {
  color: var(--interactive);
  background: var(--surface-main);
  border-color: var(--border-subtle);
}

footer.ctdc-footer .ctdc-footer-social a:hover,
footer.ctdc-footer .ctdc-footer-social a:focus {
  color: #ffffff;
  background: var(--interactive);
  border-color: var(--interactive);
}

footer.ctdc-footer .ctdc-subfooter {
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 991.98px) {
  header.header-mobile #mainmenu li {
    border-color: var(--border-subtle);
  }
}

/* Scoped contrast fixes for supporting text on light surfaces. */
.ctdc-assurance-list,
.ctdc-booking-intro,
.ctdc-principle-description,
.ctdc-contact-details a,
.ctdc-assurance-stat,
.ctdc-assurance-intro,
#pricing-grid p,
#pricing-grid .ul-check,
.ctdc-legal-copy > p.lead,
.ctdc-legal-copy > p:not([class]),
.ctdc-legal-copy > p:not([class]) a,
.ctdc-legal-copy li,
.ctdc-legal-copy li a {
  color: var(--text-muted);
}

/* These sections retain horizontal overflow after their reveals settle.
   Keep it at the section edge without changing gutters or vertical overflow. */
@media (max-width: 992px) {
  .ctdc-mobile-contain {
    overflow-x: clip;
  }

  footer.ctdc-footer .ctdc-legal-links {
    flex-wrap: wrap;
  }
}

/* The booking embed's inline 280px minimum exceeds the page below 340px. */
@media (max-width: 339.98px) {
  .calendly-inline-widget {
    min-width: 0 !important;
    margin-inline: -40px;
  }
}

/* Preserve theme typography when a heading level changes or a tagline is text.
   Type-level specificity keeps existing font-size and line-height utilities in control. */
.ctdc-type-h2,
.ctdc-type-h3,
:where(.ctdc-type-h4):is(h1, h2, h3, p) {
  margin-top: 0;
  font-family: var(--heading-font);
  color: var(--heading-font-color);
  text-transform: var(--heading-text-transform);
  letter-spacing: 0 !important;
}

:where(.ctdc-type-h2):is(h1, h2, h3, p) {
  font-size: var(--h2-font-size);
  font-weight: var(--h2-font-weight);
  line-height: var(--h2-line-height);
  margin-bottom: var(--h2-margin-bottom);
}

:where(.ctdc-type-h3):is(h1, h2, h3, p) {
  font-size: var(--h3-font-size);
  font-weight: var(--h3-font-weight);
  line-height: var(--h3-line-height);
  margin-bottom: var(--h3-margin-bottom);
}

:where(.ctdc-type-h4):is(h1, h2, h3, p) {
  font-size: var(--h4-font-size);
  font-weight: var(--h4-font-weight);
  line-height: var(--h4-line-height);
  margin-bottom: var(--h4-margin-bottom);
}

.text-light :is(.ctdc-type-h2, .ctdc-type-h3, .ctdc-type-h4) {
  color: #fff;
}

#subheader .ctdc-type-h3 {
  margin: 0;
}

.slider-title.ctdc-type-h2 {
  font-size: 64px;
  font-weight: var(--h2-font-weight);
  line-height: var(--h2-line-height);
}

.slider-teaser.ctdc-type-h3 {
  font-size: 24px;
  font-weight: var(--h3-font-weight);
  line-height: var(--h3-line-height);
}

@media only screen and (max-width: 992px) {
  :where(.ctdc-type-h2):is(h1, h2, h3, p) {
    font-size: 40px;
  }

  .slider-title.ctdc-type-h2 {
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 767px) {
  :where(.ctdc-type-h2):is(h1, h2, h3, p) {
    font-size: 36px;
  }

  .slider-title.ctdc-type-h2 {
    font-size: 48px;
  }
}
