:root { --cm-accent: #29abe2; }

    body { font-family: 'Roboto', sans-serif; }
    h1, h2, h3, .navbar-brand { font-weight: 500; }

    /* Menu Items */
    .menu-item{font-size: 1.1rem;}
    .menu-item .nav-link {
      position: relative;
      text-decoration: none;
    }
    .menu-item .nav-link::after {
      content: '';
      position: absolute;
      bottom: 2px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--cm-accent);
      transition: width .3s ease;
    }
    .menu-item .nav-link:hover::after {
      width: 100%;
    }

   /* Footer links hover underline */
    .site-footer nav ul li a,.site-footer  .row.small a{
      position: relative;
      text-decoration: none;
    }
    .site-footer nav ul li a::after, .site-footer  .row.small a::after {
      content: '';
      position: absolute;
      bottom: -3px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--cm-accent);
      transition: width .3s ease;
    }
    .site-footer nav ul li a:hover::after, .site-footer  .row.small a:hover::after {
      width: 100%;
    }

    /* ---- Hero with video background ---- */
    .hero {
      position: relative;
      min-height: 100vh;
      overflow: hidden;
      display: flex;
      align-items: center;
    }
    .hero__video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -2;
    }
    .hero__overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.55) 100%);
      z-index: -1;
    }
    .hero__credit {
      position: absolute;
      right: 1.5rem;
      bottom: 2rem;
      text-align: right;
      color: rgba(255,255,255,.55);
      font-style: italic;
      letter-spacing: .03em;
      pointer-events: none;
    }
    .hero__credit .title { font-size: 1.6rem; font-weight: 700; }
    .hero__credit .sub   { font-size: 1.9rem; }

    .btn-cm {
      background: var(--cm-accent);
      color: #fff;
      border-radius: 2rem;
      padding: .65rem 1.5rem;
      font-weight: 500;
      border: none;
    }
    .btn-cm:hover { background: #1f95c7; color: #fff; }


    /* partners */

    #partners{min-height: 25vh; padding-top: 7rem; padding-bottom: 7rem;}

    /* Video embed wrapper */
    .ratio-frame { border-radius: .5rem; overflow: hidden; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.4); }

    /* Footer */
    .site-footer { background: #1b2229; color: #cbd3da; }
    [data-bs-theme="light"] .site-footer { background: #e9ecef; color: #495057; }
    .site-footer a { color: inherit; text-decoration: none; }
    .site-footer a:hover { text-decoration: underline; }
    .social-link { font-size: 1.25rem; margin-right: .9rem; color: inherit; }

    /* ---- Theme toggle switch ---- */
    .cm-theme-toggle.form-check-input {
  width: 1.7rem;
  height: 0.9rem;
  cursor: pointer;
}

    /* Dark mode: dark grey pill */
    [data-bs-theme="dark"] .cm-theme-toggle.form-check-input {
      background-color: #495057;
      border-color: #495057;
    }
    /* Light mode: light grey pill */
    /* Light mode: light grey pill with a dark knob */
[data-bs-theme="light"] .cm-theme-toggle.form-check-input {
  background-color: #ced4da;
  border-color: #adb5bd;
}


/* Dark, solid knob in light mode across ALL unchecked states (base + focus) */
[data-bs-theme="light"] .form-switch .cm-theme-toggle.form-check-input:not(:checked) {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23495057'/%3e%3c/svg%3e");
}

.bi-sun-fill::before, .bi-moon-stars-fill::before {
    vertical-align: -.2em!important;
    margin-left: 0.1em;
}


    .cm-theme-toggle.form-check-input:focus {
      box-shadow: 0 0 0 .2rem rgba(41,171,226,.35);
    }
    .theme-icon { font-size: 1.1rem; color: #fff !important;  }

    /* Newsletter tooltip */
    .newsletter-tooltip {
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      background: rgba(255,255,255,.95);
      color: #212529;
      padding: .5rem .75rem;
      border-radius: .375rem;
      font-size: .875rem;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transition: opacity .2s ease, transform .2s ease;
      box-shadow: 0 .25rem .75rem rgba(0,0,0,.15);
      z-index: 1050;
    }
    .newsletter-tooltip::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: rgba(255,255,255,.95);
    }
    .newsletter-icon-wrapper:hover .newsletter-tooltip {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* Switch images based on theme  */
 .img-theme--light { display: none; }       /* default = dark mode */
[data-bs-theme="light"] .img-theme--dark  { display: none; }
[data-bs-theme="light"] .img-theme--light { display: inline; }

/* ---- Back to top ---- */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
  padding: 0;
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  #backToTop { transition: none; }
}
/* Ensure the back-to-top button keeps its blue in every state */
#backToTop.btn-cm {
  background-color: var(--cm-accent);
  color: #fff;
}
#backToTop.btn-cm:hover,
#backToTop.btn-cm:focus,
#backToTop.btn-cm:active {
  background-color: #1f95c7;
  color: #fff;
}

/* Newsletter */

.newsletter-icon{
  font-size: 1.3rem;
}


.modal[data-bs-theme="light"] .btn-close {
  filter: none;
}

/* Force the ActiveCampaign form to stay light even when AC applies _dark */
._dark input[type="text"],
._dark input[type="email"],
._dark input[type="tel"],
._dark textarea,
._dark select,
._dark textarea,
._dark select {
  background-color: #fff !important;
  color: #212529 !important;
  border-color: #ced4da !important;
}
._dark input[type="checkbox"]:not(:checked){ appearance: none;
  -webkit-appearance: none;   /* Safari */
  width: 1.1em;
  height: 1.1em;
  border: 2px solid #000;   /* NOW this works */
  background-color: #fff;
  border-radius: 3px; opacity: 0.1; 

}
._button-wrapper button{
  border-radius: 2rem!important;
}
._dark input::placeholder,
._dark input::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}

/* Modal width */

.modal-dialog.modal-dialog-centered{
min-width: 35%;
}

/* Mobile menu Background */

@media (max-width: 991.98px) { 

.bg-mobile-dark{

  background-color: rgba(0,0,0,.40)
  
}

 }
