/* sticky header */
.site-header {
 top: 0;
 position: sticky;
 width: 100%!important;
}

/* Case study card styling */
.case-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 32px;
  background-color: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.case-card {
  cursor: default;
}
/* Make the whole card clickable WITHOUT link styling */
.case-card,
.case-card:visited,
.case-card:hover,
.case-card:active{
  color: inherit;
  text-decoration: none;
}

/* Optional: make sure all text inside stays normal */
.case-card *{
  color: inherit;
  text-decoration: none;
}

/* Header menu: keep on one line (6 Nov 2026) */
@media (min-width: 922px) {
  .ast-builder-menu-1 .main-header-menu { flex-wrap: nowrap; }
  .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
    padding-left: 14px !important;
    padding-right: 14px !important;
    font-size: 18px !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
  }
}
@media (min-width: 922px) and (max-width: 1279px) {
  .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
    padding-left: 9px !important;
    padding-right: 9px !important;
    font-size: 16px !important;
  }
}

/* Homepage hero heading: break before "Dental Implants" on desktop (6 Nov 2026) */
@media (min-width: 1025px) {
  .hero-line2 { display: block; }
}

/* Header: room for "Refer" in the menu, Book button on one line (Refer added 6 Nov 2026) */
@media (min-width: 922px) {
  .ast-header-button-1 .ast-custom-button {
    white-space: nowrap;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
@media (min-width: 922px) and (max-width: 1279px) {
  .ast-header-button-1 .ast-custom-button {
    font-size: 15px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 15px !important;
  }
}

/* Header: shorter button ("Free Consultation"), larger menu text (6 Nov 2026, larger menu text) */
@media (min-width: 1366px) {
  .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
    font-size: 19px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Header: solid white so page content doesn't show through when scrolling (6 Nov 2026, solid sticky header) */
.site-header .ast-primary-header-bar,
.site-header .main-header-bar { background-color: #ffffff !important; }
.site-header { box-shadow: 0 1px 0 rgba(20,48,37,.08); }

/* 6 Nov 2026 – green brand colours carried through from the referral page */
.elementor-element-c5c91e5 > .elementor-widget-container{background-color:rgba(30,59,47,.85)!important}
.jp-swiper-button-prev,.jp-swiper-button-next,.jp-swiper-button-prev svg,.jp-swiper-button-next svg{color:#1e3b2f!important;fill:#1e3b2f!important}


/* Case Studies page: every before/after photo the same size (7 Nov 2026) */
.page-id-3423 .elementor-widget-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
}