.Typewriter,
.typewrite {
  display: inline-block;
}
.typewrite {
  margin-left: 10px;
}
.dark-mode .dark-white {
  color: white !important;
}
.dark-mode-logo {
  display: none;
}
.dark .dark-mode-logo {
  display: block;
}
.light-mode-logo {
  display: block;
}
.dark .light-mode-logo {
  display: none;
}
@media (min-width: 1025px) {
  .mn-has-sub:hover + *,
  .mn-has-sub + *:hover {
    display: block !important;
    z-index: 1;
  }
}

.fadeInText {
  animation: animationFadeText 0.5s linear 0s 1;
}
@keyframes animationFadeText {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.dark-mode .svg-shape {
  filter: invert(1) brightness(2); /* Inverts the colors and increases brightness */
}
.dark-mode .svg-dark {
  filter: invert(1) brightness(2); /* Inverts the colors and increases brightness */
}
.dark-mode .image-filter {
  filter: invert(1) brightness(2); /* Inverts the colors and increases brightness */
}
html {
  scroll-behavior: initial !important;
}
a {
  cursor: pointer;
}
.mobile-on .desktop-nav {
  height: fit-content;
  max-height: 0px;
  display: block !important;
  overflow: scroll;
  transition: 0.6s;
}

@media (min-width: 1025px) {
  .mobile-on .mn-sub {
    display: none;
  }
}
@media (max-width: 1024px) {
  .mobile-on .js-opened .mn-sub.mobile-sub-active {
    max-height: 1000px;
  }
}
.dark-mode .form .form-tip-2 {
  color: var(--color-dark-mode-gray-1);
  background-color: var(--color-dark-2) !important;
}
.btn-mod.btn-w:hover,
.btn-mod.btn-w:focus {
  background: none !important;
}
@media (max-width: 500px) {
  .team-carousel .owl-prev.owl-prev-testimonial-1 {
    left: 21px;
  }
}

.mn-sub {
  transition: max-height 0.3s ease-in-out;
}

.mn-sub.open {
  max-height: 200px;
  overflow: auto !important;
  opacity: 1 !important;
}
html {
  scroll-behavior: smooth !important;
}

/* Team section: section-descr text color override (from browser preview) */
#team .section-descr {
  color: rgba(0, 0, 0, 1) !important;
}

/* Team section: background color */
#team {
  background-color: #D2EEFF !important;
}

/* Footer: background color */
.theme-main .page-section.footer {
  background-color: #F3F3F3 !important;
}

/* FAQ section: reduce bottom padding */
#faq.page-section {
  padding-bottom: 60px !important;
}

/* Contact anchor: scroll lower so the form is more visible */
#contact {
  scroll-margin-top: -350px;
}

/* Contact section: more space between Email and Phone blocks (desktop only) */
@media (min-width: 576px) {
  #contact .row.mb-60.mb-sm-50.g-0 > .col-sm-6:first-child {
    padding-right: 2rem !important;
  }
  #contact .row.mb-60.mb-sm-50.g-0 > .col-sm-6:last-child {
    padding-left: 2rem !important;
  }
}


/* Dentist&Co: primary button color */
.theme-main .btn-mod,
.theme-main a.btn-mod,
.theme-main button.btn-mod,
.theme-main .submit_btn.btn-mod {
  background: #003A4B !important;
  border-color: #003A4B !important;
  color: #FFFFFF !important;
}
.theme-main .btn-mod span,
.theme-main a.btn-mod span,
.theme-main button.btn-mod span,
.theme-main .submit_btn.btn-mod span {
  color: #FFFFFF !important;
}
.theme-main .btn-mod:hover,
.theme-main .btn-mod:focus,
.theme-main a.btn-mod:hover,
.theme-main a.btn-mod:focus,
.theme-main button.btn-mod:hover,
.theme-main button.btn-mod:focus,
.theme-main .submit_btn.btn-mod:hover,
.theme-main .submit_btn.btn-mod:focus {
  background: #004a5f !important;
  border-color: #004a5f !important;
}
.theme-main .btn-mod:hover,
.theme-main .btn-mod:focus,
.theme-main a.btn-mod:hover,
.theme-main a.btn-mod:focus,
.theme-main button.btn-mod:hover,
.theme-main button.btn-mod:focus,
.theme-main .submit_btn.btn-mod:hover,
.theme-main .submit_btn.btn-mod:focus {
  color: #FFFFFF !important;
}
.theme-main .btn-mod:hover span,
.theme-main .btn-mod:focus span,
.theme-main a.btn-mod:hover span,
.theme-main a.btn-mod:focus span,
.theme-main button.btn-mod:hover span,
.theme-main button.btn-mod:focus span,
.theme-main .submit_btn.btn-mod:hover span,
.theme-main .submit_btn.btn-mod:focus span {
  color: #FFFFFF !important;
}

/* Contact submit button: match Hero button style */
.theme-main #contact_form .submit_btn.btn-mod {
  padding: 16px 32px 15px;
  font-size: 13px;
  letter-spacing: 0.085em;
  height: auto;
  white-space: nowrap;
}

/* Testimonials Dentist&Co: dark background with light text */
.testimonials-dentistandco {
  background-color: #003A4B !important;
}
.testimonials-dentistandco .ts1-author-img,
.bg-dark-2 .ts1-author-img {
  display: none !important;
}
.testimonials-dentistandco .section-caption,
.testimonials-dentistandco .section-descr,
.testimonials-dentistandco .testimonials-slider-1 blockquote p,
.testimonials-dentistandco .ts1-author,
.testimonials-dentistandco .ts1-author .small,
.testimonials-dentistandco .ts1-author .overflow-hidden {
  color: #F3F3F3 !important;
}
.testimonials-dentistandco .section-line {
  background: #F3F3F3 !important;
}
.testimonials-dentistandco .blockquote-icon {
  color: #003A4B !important;
  background: #F3F3F3 !important;
}
.testimonials-dentistandco .testimonials-slider-1 .owl-prev,
.testimonials-dentistandco .testimonials-slider-1 .owl-next {
  color: #F3F3F3 !important;
}
.testimonials-dentistandco .testimonials-slider-1 .owl-prev:before,
.testimonials-dentistandco .testimonials-slider-1 .owl-next:before {
  background: rgba(243, 243, 243, 0.2) !important;
  border: 1px solid #F3F3F3;
}

/* Decorative dots: reduce opacity to 15% */
.decoration-2,
.decoration-4 {
  opacity: 0.15 !important;
}

/* About section: centered title and YouTube video */
#about .about-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  background: #000;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}
#about .about-yt-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}
#about .about-yt-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#about .about-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}
#about .about-yt-thumb:hover .about-yt-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}
#about .about-yt-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 4;
}
@media (max-width: 991px) {
  #about .about-video-wrapper {
    max-width: 100%;
    border-radius: 0;
  }
  #about > .container > .row.wow.fadeInUp {
    display: flex;
    flex-wrap: wrap;
  }
  #about > .container > .row.wow.fadeInUp > .col-lg-6.col-xl-5 {
    order: -1;
    margin-bottom: 30px;
  }
}

/* Contact section: left-align heading/text on mobile */
@media (max-width: 767px) {
  #contact #contact-video-wrap .text-center {
    text-align: left !important;
  }
  #contact .row.mb-60.mb-sm-50.g-0 > .col-sm-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Contact section: Calculator video */
#contact .contact-video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  background: #000;
}
#contact .contact-video-player {
  width: 100%;
  height: auto;
  display: block;
  max-height: 540px;
  object-fit: cover;
}
