/* CTA Button Container */
.implant-cta-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 30px auto 40px !important;
}

/* CTA Buttons */
.implant-cta-buttons a {
    display: flex !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 275px !important;
    height: 55px !important;
    margin: 0 !important;
    padding: 0 25px !important;

    box-sizing: border-box !important;
    text-align: center !important;
    white-space: nowrap !important;
    line-height: normal !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 3px !important;

    transition: all 0.3s ease !important;
}

/* Primary */
.implant-cta-buttons .implant-cta-primary {
    background-color: #a86b11 !important;
    color: #ffffff !important;
    border: 2px solid #a86b11 !important;
}

.implant-cta-buttons .implant-cta-primary:hover {
    background-color: #273f87 !important;
    color: #ffffff !important;
    border-color: #273f87 !important;
}

/* Secondary */
.implant-cta-buttons .implant-cta-secondary {
    background-color: #ffffff !important;
    color: #a86b11 !important;
    border: 2px solid #a86b11 !important;
}

.implant-cta-buttons .implant-cta-secondary:hover {
    background-color: #273f87 !important;
    color: #ffffff !important;
    border-color: #273f87 !important;
}

/* Mobile */
@media (max-width: 767px) {
    .implant-cta-buttons {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .implant-cta-buttons a {
        width: 100% !important;
        max-width: 350px !important;
        min-width: 0 !important;
    }
}

a[href*="botox-and-dermal-fillers"].cover.image{
    background-image: url("https://meadowsdentistry.com/wp-content/uploads/2026/07/botox.webp") !important;
    background-size: cover;
    background-position: center;
}
.hero_slider .main-slider .cover .wrap-btn a {

   
}
.wpml-ls-item-en::after {
    display: none !important;
}
.ti-with-tooltip{
	color:black;
}
.ti-widget.ti-goog .ti-read-more span {
	color:black !important;
	    opacity: 0.7 !important;
}
.hero_slider{
	background-color: rgba(0, 0, 0, 0.1) !important;
}
.hero_slider .main-slider{
		background-color: rgba(0, 0, 0, 0.1) !important;
}
.insta-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 6px;
	justify-content:center;
	align-content:center;
}
.section_contact .box .box_info.menu_social span {
    text-align: center;
	width: 20.33% !important;
}

.hero_slider .main-slider .cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Adjust opacity */
	background-position : top center!important;
	width: 100%;
}
.hero_slider .main-slider .cover {
    background-position: top right !important;
}
.vertical_align {
    position: relative;
    top: 75% !important;
}

/* Floating Language Switcher */
.wpml-ls-statics-footer{
    position: fixed;
    top: 95px;
    right: 40px;
    z-index: 9999;
}

.wpml-ls-statics-footer ul{
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 10px 18px !important;
    background: #fff;
    border: 1.5px solid #2f4ea1;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Remove default WPML styling */
.wpml-ls-statics-footer li{
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Language links */
.wpml-ls-statics-footer .wpml-ls-link{
    display: flex !important;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    color: #222 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Flag size */
.wpml-ls-flag{
    width: 20px !important;
    height: auto !important;
    border-radius: 2px;
}

/* Text */
.wpml-ls-native{
    font-size: 18px;
    font-weight: 500;
}

/* Hide (ES) text */
.wpml-ls-display{
    display: none !important;
}

/* Add divider after EN */
.wpml-ls-item-en::after{
    content: "/";
    margin-left: 10px;
    color: #666;
    font-size: 18px;
}

/* Hide current language highlight */
.wpml-ls-current-language a{
    font-weight: 500 !important;
}
.wpml-ls-native{
    font-size:16px;
    font-weight:400;
}

.wpml-ls-statics-footer ul{
    padding:9px 16px !important;
}

.steam-foundation-photos {
    width: 100%;
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.steam-foundation-photos img {
    display: block;
    width: 100%;
    height: auto;
}

.steam-photo-main {
    margin-bottom: 20px;
}

.steam-photo-secondary {
    margin-bottom: 20px;
}

.steam-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.steam-photo-grid .steam-photo {
    height: 480px;
    overflow: hidden;
}

.steam-photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .steam-photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .steam-photo-grid .steam-photo {
        height: auto;
    }

    .steam-photo-grid img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}
jQuery(function ($) {
  var tries = 0;
  var maxTries = 50; // 50 x 300ms = 15s
 
  function place() {
    var jQuerywidget = jQuery('.membership-wrapper').first();
    if (!jQuerywidget.length) {
      jQuerywidget = jQuery('[id^="mni-membership-"]').first().addClass('membership-wrapper');
    }
    var jQueryrow = jQuery('footer.footer .footer-1 .container .row').first();
 
    if (!jQuerywidget.length || !jQueryrow.length) return false;
    if (!jQuery.contains(jQueryrow[0], jQuerywidget[0])) {
      jQuerywidget.appendTo(jQueryrow);
    }
    return true;
  }
 
  if (place()) return;
 
  var timer = setInterval(function () {
    tries++;
    if (place() || tries >= maxTries) {
      clearInterval(timer);
    }
  }, 300);
});




/* Membership badge inside the footer (blue section only).
   Scoped to footer.footer .footer-1 so no other section is affected. */

/* The wrapper the JS moves into the footer */
footer.footer .footer-1 .membership-wrapper {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 30px 0 38px;
  border-top: 1px solid #4760ac;
}

footer.footer .footer-1 .mn-widget-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* "Meadows Family Dentistry" is already the footer logo, so keep it
   for screen readers only */
footer.footer .footer-1 .mn-widget-member-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* "PROUD MEMBER OF" with a hairline on each side */
footer.footer .footer-1 .mn-widget-member-text {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 560px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #cfd8f2;
  white-space: nowrap;
}
footer.footer .footer-1 .mn-widget-member-text::before,
footer.footer .footer-1 .mn-widget-member-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #4760ac;
}

/* White card so the badge reads clearly on the blue */
footer.footer .footer-1 .mn-widget-member-link {
  display: block;
  line-height: 0;
  background: #fff;
  border-radius: 14px;
  padding: 16px 28px;
  box-shadow: 0 6px 18px rgba(8, 18, 54, 0.35);
  transition: transform 0.2s ease;
}
footer.footer .footer-1 .mn-widget-member-link:hover {
  transform: translateY(-2px);
}

/* The widget injects "#mni-membership-… .mn-widget-member-logo { max-width: 100% }",
   which an ID selector would beat, so !important is needed here.
   The source image is 200x200; raise/lower the 160px to taste. */
footer.footer .footer-1 .mn-widget-member-logo {
  display: block;
  width: 100%;
  max-width: 160px !important;
  height: auto;
}


@media (max-width: 600px) {
  footer.footer .footer-1 .mn-widget-member-logo {
    max-width: 100px !important; /* try 90–120px */
  }
  footer.footer .footer-1 .mn-widget-member-link {
    padding: 10px 16px; /* smaller white card around it */
  }
}