/*
 Theme Name:     North Shore Cosmetic Surgery Theme
 Theme URI:      https://www.nscsurgery.com
 Description:    The custom theme for North Shore Cosmetic Surgery built on Divi.
 Author:         Optimal Digital Marketing
 Author URI:     https://optimal.marketing
 Template:       Divi
*/

/* =Theme customization starts here
------------------------------------------------------- */

:root {
  --color-porcelain-mist: #ecebe7;
  --color-soft-bone: #dcd8d2;
  --color-olive-deep: #425542;
  --color-shadow-umber: #4d4a45;
  --color-ink-smoke: #2b2b2b;
  --color-porcelain-brush: #f2e8e4;
  --color-pale-quartz-rose: #e8c8be;
  --color-terracotta-veil: #c97c63;
  --color-graphite-gray: #5f5f5f;
  --color-olive-midtone: #394739;
  --color-soft-clay: #ede6dc;
  --color-cloud-white: #ecebe7;

  --font-size-body: clamp(0.875rem, 0.125vw + 0.875rem, 1rem);
  --font-size-small: clamp(0.75rem, 0.125vw + 0.75rem, 0.875rem);
  --font-size-h1: clamp(2.75rem, 2.5vw + 1.75rem, 3.765rem);
  --font-size-h2: clamp(2.4rem, 2.05vw + 1.32rem, 3.059rem);
  --font-size-h3: clamp(1.98rem, 1.7vw + 1.1rem, 2.52rem);
  --font-size-h4: clamp(1.53rem, 1.35vw + 0.88rem, 1.98rem);
  --font-size-h5: clamp(1.17rem, 1vw + 0.7rem, 1.53rem);
  --font-size-h6: clamp(1.05rem, 0.85vw + 0.6rem, 1.25rem);
}

#main-content h1.tpt-section-heading,
#main-content h2.tpt-section-heading,
#main-content h3.tpt-section-heading {
  font-family: var(--et_global_heading_font) !important;
  line-height: 1.2 !important;
  margin: 0;
}
#main-content h1.tpt-section-heading {
  font-size: var(--font-size-h1) !important;
}
#main-content h2.tpt-section-heading {
  font-size: var(--font-size-h3) !important;
  margin-top: 2rem;
  border-bottom: 1px solid rgba(77, 74, 69, 0.2);
}
#main-content h3.tpt-section-heading {
  font-size: var(--font-size-h4) !important;
  margin-top: 2rem;
}
#main-content .policy_embed_div p {
  font-size: var(--font-size-body) !important;
}

.hidden {
  display: none !important;
}

html body {
  font-weight: 400;
  font-size: var(--font-size-body, 1rem);
}

body.nav-open {
  overflow: hidden;
}

.et_pb_section,
.et-db #et-boc .et-l .et_pb_section,
#main-content {
  background: none;
}

.et_pb_button_module_wrapper a.et_pb_button {
  text-align: center;
}

/* Override weird Divi column styles that only appear on custom post types
pretty sure these are a bug, some leftover thing from Divi 4 */
.et_pb_gutters3 #main-content .et_pb_column {
  margin: 0;
}

/* Add focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-olive-deep, #425542);
  outline-offset: 2px;
}

/* Add text selection color for fun */
::selection {
  background-color: var(--color-olive-deep, #425542);
  color: var(--color-cloud-white, #ecebe7);
}

.table {
  border: 1px solid rgba(77, 74, 69, 0.2);
}
.table th,
.table td {
  border: 1px solid rgba(77, 74, 69, 0.2);
  padding: 0.75rem;
}

/** Fancy Bullet List */
#page-container .fancy-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.75rem;
}

.fancy-list li {
  list-style: none;
  margin-bottom: 0.5rem;
  position: relative;
}

.fancy-list li::marker {
  display: none;
}

.fancy-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19' fill='none'%3E%3Cpath stroke='%23c97c63' stroke-linecap='round' stroke-linejoin='round' d='M.5 9.125a8.624 8.624 0 1 0 17.249 0 8.624 8.624 0 0 0-17.249 0'/%3E%3Cpath fill='%23c97c63' stroke='%23c97c63' stroke-linecap='round' stroke-linejoin='round' d='M5 9.125a4.125 4.125 0 1 0 8.25 0 4.125 4.125 0 0 0-8.25 0'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: inline-block;
  height: 1.25rem;
  left: -1.75rem;
  position: absolute;
  top: 0.25rem;
  width: 1.25rem;
}

.education_list {
  display: flex;
  flex-direction: column;
  font-size: var(--font-size-body, 1rem);
  gap: 2rem;
}

.education_list .fancy-list li {
  margin-bottom: 0.5rem;
}

#page-container .fancy-list.nested {
  margin-top: 0.5rem;
}

.education_list .fancy-list.nested li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 21' fill='none'%3E%3Cpath fill='%23c97c63' stroke='%23c97c63' stroke-linecap='round' stroke-linejoin='round' d='M4.875 12a4.125 4.125 0 1 0 8.25 0 4.125 4.125 0 0 0-8.25 0'/%3E%3C/svg%3E");
  top: 0.15rem;
}

.education_list.memberships {
  color: var(--color-cloud-white, #ecebe7);
}

.education_list.memberships .fancy-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19' fill='none'%3E%3Cpath stroke='%23c6baa7' stroke-linecap='round' stroke-linejoin='round' d='M.5 9.125a8.624 8.624 0 1 0 17.249 0 8.624 8.624 0 0 0-17.249 0'/%3E%3Cpath fill='%23c6baa7' stroke='%23c6baa7' stroke-linecap='round' stroke-linejoin='round' d='M5 9.125a4.125 4.125 0 1 0 8.25 0 4.125 4.125 0 0 0-8.25 0'/%3E%3C/svg%3E");
}

/** -------------------------------------------------------------
  Navigation
------------------------------------------------------- */
#top-nav .et_pb_menu__menu,
#top-nav .et_pb_menu__menu > nav {
  width: 100%;
}
#top-nav .et_pb_menu__menu li {
  margin: 0 !important;
  padding: 0 !important;
}
#top-nav .et_pb_menu__menu .menu-item > a {
  border-radius: 6px;
  margin: 0;
  padding: 1em !important;
  text-transform: uppercase;
}
#top-nav .et_pb_menu__menu .menu-item > a:hover {
  opacity: 1;
}
#top-nav .et_pb_menu__menu ul.et-menu {
  align-items: center !important;
  display: flex;
  justify-content: center !important;
  overflow: visible;
  position: relative;
  width: 100%;
}
#top-nav .et_pb_menu__menu .menu-items-before,
#top-nav .et_pb_menu__menu .menu-items-after {
  align-items: center;
  display: flex;
  flex: 1 1 0;
  gap: 1rem;
  min-width: 0;
}
#top-nav .et_pb_menu__menu .menu-items-before {
  justify-content: flex-start;
}
#top-nav .et_pb_menu__menu .menu-items-after {
  justify-content: flex-end;
}
#top-nav .et_pb_menu__menu .button a {
  background-color: var(--color-olive-deep);
  border: 1px solid var(--color-olive-deep);
  border-radius: 100px;
  color: var(--color-porcelain-mist);
  font-size: var(--font-size-body);
  font-style: normal;
  font-weight: normal;
  padding: 0.75rem 1.25rem !important;
  text-decoration: none;
  text-transform: uppercase;
}
#top-nav .et_pb_menu__menu .button a:hover {
  background: var(--color-porcelain-mist);
  border: 1px solid var(--color-olive-deep);
  color: var(--color-olive-deep);
}

#top-nav .menu-item-home {
  display: block;
  flex: 0 0 auto;
  margin: 0 clamp(0.75rem, 2vw, 2.5rem) !important;
}
#top-nav .menu-item-home a {
  background: url("./assets/north shore cosmetic surgery logo.svg") no-repeat
    center center;
  background-size: contain;
  color: transparent;
  display: block;
  height: 96px;
  margin: 0;
  overflow: hidden;
  padding: 0 !important;
  position: relative !important;
  text-indent: 100%;
  white-space: nowrap;
  width: 160px;
}
#top-nav .menu-item-has-mega-menu {
  position: static;
}
#top-nav .et_pb_menu__menu .mega-menu-submenu {
  background: var(--color-cloud-white, #ecebe7);
  border-bottom: 1px solid rgba(77, 74, 69, 0.12);
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  box-shadow: 0 20px 20px rgba(43, 43, 43, 0.12);
  left: 50%;
  max-width: 100vw;
  min-width: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  right: auto;
  top: 100%;
  transform: translateX(-50%) translateY(0.25rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  visibility: hidden;
  width: 100vw;
  z-index: 50;
}
#top-nav .et_pb_menu__menu .mega-menu-submenu::before {
  content: "";
  height: 0.75rem;
  left: 0;
  position: absolute;
  right: 0;
  top: -0.75rem;
}
#top-nav .menu-item-has-mega-menu:hover > .mega-menu-submenu,
#top-nav .menu-item-has-mega-menu:focus-within > .mega-menu-submenu,
#top-nav .menu-item-has-mega-menu.is-mega-menu-open > .mega-menu-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}
#top-nav .et_pb_menu__menu .et_pb_menu__menu .mega-menu-submenu__inner {
  margin: 0 auto;
  max-width: min(80rem, calc(100vw - 2rem));
  padding: 1.5rem 1rem;
  text-transform: none;
}
#top-nav .et_pb_menu__menu .et_pb_menu__menu .mega-menu-submenu__inner a {
  text-transform: none;
}
@media (max-width: 980px) {
  #top-nav .et_pb_menu__menu .mega-menu-submenu {
    left: 0;
    max-width: 100%;
    transform: translateY(0.5rem);
    width: 100%;
  }

  #top-nav .menu-item-has-mega-menu:hover > .mega-menu-submenu,
  #top-nav .menu-item-has-mega-menu:focus-within > .mega-menu-submenu,
  #top-nav .menu-item-has-mega-menu.is-mega-menu-open > .mega-menu-submenu {
    transform: translateY(0);
  }
}
#top-nav .menu-item-has-children > a:first-child:after {
  top: 50%;
  transform: translateY(-50%);
}

#menu-top-nav-base .mega-menu-submenu h2 {
  font-family: var(--gvid-egm1ml5vuy); /* 'DM Serif Display' */
  font-size: var(--font-size-h4);
  font-weight: 100;
  text-align: left;
}
#menu-top-nav-base .mega-menu-submenu h4 {
  color: var(--color-terracotta-veil);
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  text-align: left;
  text-transform: uppercase;
}
.et_pb_menu__menu .mega-menu-submenu__inner > .et_pb_section {
  gap: 1rem;
  margin: auto;
  width: 95%;
  max-width: 1440px;
  padding: 0 0 2rem 0;
}
.et_pb_menu__menu .mega-menu-submenu__inner .et_pb_row {
  width: 100%;
}
.et_pb_menu__menu .heading-row .et_pb_column {
  gap: 1rem;
}
.et_pb_menu__menu .heading-row h2 {
  font-weight: bold;
}
.et_pb_menu__menu .links-row .et_pb_column a {
  padding: 0.5rem 0;
}
.et_pb_menu__menu .links-row .et_pb_column a:hover,
.menu-item-object-page a:hover {
  opacity: 1;
  text-decoration: underline;
}
.et_pb_menu__menu .links-row .et_pb_column {
  gap: 0.25rem;
}
.et_pb_menu__menu .links-row h4 {
  font-weight: normal;
  letter-spacing: 3%;
}
.et_pb_menu__menu .blog-loop {
  display: flex;
  flex-direction: row;
}
.et_pb_menu__menu .blog-loop .et_pb_image_wrap {
  border-radius: 8px;
  overflow: hidden;
}
.et_pb_menu__menu .blog-loop img {
  aspect-ratio: 1.4;
  object-fit: cover;
  transition: transform 0.5s ease;
  width: 100%;
}
.et_pb_menu__menu .blog-loop .et_pb_group {
  align-items: flex-start;
  gap: 0.25rem;
}
.et_pb_menu__menu .blog-loop .et_pb_group:hover .et_pb_text {
  text-decoration: underline;
}
.et_pb_menu__menu .blog-loop .et_pb_group:hover img {
  transform: scale(1.03);
}
#menu-top-nav-base .blog-loop .et_pb_text {
  font-size: var(--font-size-small);
  text-align: left;
}

#mobile_menu1 {
  inset: 0px;
  overflow: scroll;
  padding-top: 5rem;
  position: fixed;
  z-index: 1;
}
#nav-desktop .mobile_nav {
  background: none;
  padding: 0;
}
.et_pb_menu__logo-wrap img {
  height: 50px;
}
.et_pb_module .mobile_menu_bar:before {
  display: inline-block;
  font-size: 2em !important;
  top: 0;
  transition: transform 0.3s ease;
}
#nav-desktop .mobile_menu_bar {
  background: var(--color-olive-midtone);
  border-radius: 2px;
  padding: 0.15rem;
  z-index: 99;
}
#nav-desktop .mobile_nav.opened .mobile_menu_bar::before,
.et_pb_module.et_pb_menu
  .et_mobile_nav_menu
  .mobile_nav.opened
  .mobile_menu_bar::before {
  content: "\4d";
  transform: rotate(180deg);
}
#mobile_menu1 .menu-item-home {
  display: none;
}
#mobile_menu1 .heading-row {
  display: none;
}
#mobile_menu1 .links-row {
  display: block;
}
.et_mobile_menu .menu-item-has-children > a {
  background: none;
  font-weight: normal;
  position: relative;
}
.et_mobile_menu .menu-item-has-children > a:after {
  content: "3";
  font-family: ETmodules;
  font-size: 16px;
  font-weight: 800;
  position: absolute;
  right: 0;
  top: 0;
}
#mobile_menu1 .et_pb_module_header {
  color: var(--color-terracotta-veil);
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: normal;
  letter-spacing: 3%;
  text-transform: uppercase;
}
#mobile_menu1 .links-row .et_pb_column {
  gap: 0;
}
#mobile_menu1 .mega-menu-submenu__inner .et_pb_section {
  padding: 1rem 0 0;
}
#mobile_menu1 .mega-menu-submenu__inner .et_pb_link_inner {
  line-height: 1.3;
}

#mobile_menu1 .menu-item-has-children .sub-menu {
  display: none;
}
#mobile_menu1 .blog-loop {
  display: block;
}
#mobile_menu1 .blog-loop .et_pb_group {
  border-bottom: 1px solid rgb(0, 0, 0, 0.03);
  padding: 10px 5%;
}
#mobile_menu1 .blog-loop .et_pb_group:hover {
  background: rgb(0, 0, 0, 0.03);
}
#mobile_menu1 .blog-loop .et_pb_group:hover .et_pb_text {
  opacity: 0.8;
}
#mobile_menu1 .blog-loop .et_pb_image {
  display: none;
}

/* .pa-block {
  display: block !important;
  height: fit-content !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding: 5% !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.et_mobile_menu .menu-item-has-children .pa-submenu {
  display: block !important;
}

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db
  #et-boc
  .et-l
  ul.et_mobile_menu
  li.menu-item-has-children
  .mobile-toggle {
  text-align: right;
  width: 100%;
} */

/** -------------------------------------------------------------
  Footer
------------------------------------------------------- */
@media (min-width: 768px) {
  footer .et_pb_toggle_title {
    cursor: default !important;
  }
}

/** -------------------------------------------------------------
  Gravity Forms Styling
------------------------------------------------------- */
.gform_required_legend {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  /* this is for screenr readers only */
  position: absolute;
  width: 1px;
}

#main-content .gform-theme--foundation {
  --gf-form-gap-y: 0rem;
  --gf-local-font-family: var(--font-family-body);
  --gf-font-family-base: var(--font-family-body);
  --gf-form-footer-margin-y-start: 1rem;
  --gf-radius: 4px;
  --gf-ctrl-shadow: none;
  --gf-ctrl-font-family: var(--font-family-body);
  --gf-font-size-primary: var(--font-size-body);
  --gf-font-weight-secondary: 400;
}

#main-content input[type="text"],
#main-content input[type="email"],
#main-content input[type="tel"],
#main-content input[type="url"],
#main-content textarea,
#main-content select {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(95, 95, 95, 0.3);
}

#main-content .gform-theme--foundation input[type="submit"] {
  --gf-ctrl-btn-radius: 3rem;
  --gf-ctrl-btn-padding-x: 1.5rem;
  --gf-ctrl-btn-padding-y: 0.75rem;
  --gf-ctrl-btn-font-size: 1rem;
  --gf-ctrl-btn-font-weight: 400;
  --gf-ctrl-btn-line-height: 1.5;
  --gf-ctrl-btn-letter-spacing: 0.01em;
  --gf-ctrl-btn-text-transform: uppercase;
  --gf-ctrl-btn-text-decoration: none;
  border: 1px solid var(--color-olive-deep);
  box-shadow: none;
}

#main-content .gform-theme--foundation input[type="submit"]:hover {
  background-color: transparent;
  color: var(--color-olive-deep);
}

#main-content [id^="gform_wrapper_"][data-form-index="0"].gform-theme {
  --gf-color-primary: var(--color-olive-deep);
  --gf-color-primary-rgb: 66, 85, 66;
  --gf-color-primary-darker: #394739;
  --gf-color-primary-lighter: #667766;
  --gf-color-in-ctrl-contrast: rgba(57, 71, 57, 0.6);
  --gf-ctrl-label-color-primary: rgba(57, 71, 57, 0.6);
}

/* For inputs that are not submit buttons, we need to set the input color to olive deep
when the field container has .has-value class */
#main-content .gfield.has-value input[type="text"],
#main-content .gfield.has-value input[type="email"],
#main-content .gfield.has-value input[type="tel"],
#main-content .gfield.has-value input[type="url"],
#main-content .gfield.has-value textarea,
#main-content .gfield.has-value select {
  color: var(--color-olive-deep);
}

/* Floating labels: label acts as placeholder, moves above on focus/value.
   .gf-floating-label is added by JS so we override GF theme (orbital/foundation). */
.gform_wrapper.gform-theme .gfield.gf-floating-label,
.gform_wrapper.gform-theme .gfield--type-select {
  margin-top: 0.75rem;
  position: relative;
  transition: margin-top 0.2s ease;
}

.gform_wrapper.gform-theme
  .gfield.gf-floating-label.gf-floating-label--textarea
  .gfield_label,
.gform_wrapper.gform-theme
  .gfield.gf-floating-label.gf-floating-label--textarea
  .gform-field-label {
  top: 0.5rem !important;
}

.gform_wrapper.gform-theme .gfield.gf-floating-label .gfield_label,
.gform_wrapper.gform-theme .gfield.gf-floating-label .gform-field-label {
  font-size: var(--font-size-body, 1rem) !important;
  left: 1rem !important;
  margin: 0 !important;
  pointer-events: none;
  position: absolute !important;
  top: 0.5rem !important;
  transition:
    top 0.2s ease,
    font-size 0.2s ease,
    color 0.2s ease;
  z-index: 1;
}

.gform_wrapper.gform-theme .gfield.gf-floating-label.has-focus .gfield_label,
.gform_wrapper.gform-theme
  .gfield.gf-floating-label.has-focus
  .gform-field-label,
.gform_wrapper.gform-theme .gfield.gf-floating-label.has-value .gfield_label,
.gform_wrapper.gform-theme
  .gfield.gf-floating-label.has-value
  .gform-field-label {
  color: var(--color-olive-deep, #425542) !important;
  font-size: var(--font-size-small, 0.875rem) !important;
  left: 0 !important;
  top: -1.5rem !important;
}

.gform_wrapper.gform-theme .gfield.gf-floating-label.has-focus,
.gform_wrapper.gform-theme .gfield.gf-floating-label.has-value {
  margin-top: 2rem !important;
}

/* Select with placeholder option: label hidden until valid selection */
.gform_wrapper.gform-theme .gfield.gfield--type-select .gfield_label,
.gform_wrapper.gform-theme .gfield.gfield--type-select .gform-field-label {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  left: -9999px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  transition:
    clip 0.2s ease,
    top 0.2s ease,
    font-size 0.2s ease,
    color 0.2s ease;
  width: 1px !important;
}

.gform_wrapper.gform-theme
  .gfield.gfield--type-select.has-valid-selection
  .gfield_label,
.gform_wrapper.gform-theme
  .gfield.gfield--type-select.has-valid-selection
  .gform-field-label {
  clip: auto !important;
  color: var(--color-olive-deep, #425542) !important;
  font-size: var(--font-size-small, 0.875rem) !important;
  height: auto !important;
  left: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  position: absolute !important;
  top: -1.5rem !important;
  width: auto !important;
}

.gform_wrapper.gform-theme .gfield.gfield--type-select.has-valid-selection {
  margin-top: 2rem !important;
}

/* Contact Us Form Specific Styling */
#gform_wrapper_1 .gform-footer.gform_footer.top_label:after {
  color: var(--color-graphite-gray, #5f5f5f);
  content: "20,000+ surgeries performed";
  display: block;
  font-size: var(--font-size-small, 0.875rem);
  font-weight: 400;
  padding-top: 0.35rem;
  text-align: center;
  text-transform: uppercase;
}

#gform_wrapper_1 .gform_footer {
  display: inline-block;
}

/** -------------------------------------------------------------
  Splide
------------------------------------------------------- */
.ns-slider-progress {
  background: rgba(77, 74, 69, 0.2);
  cursor: pointer;
  margin: 4rem auto 0;
  touch-action: none;
  width: 75%;
}

.ns-slider-progress-bar {
  background: var(--color-terracotta-veil);
  height: 2px;
  transition: width 400ms ease;
  width: 0;
}

/** -------------------------------------------------------------
  Featured Reviews Shortcode
------------------------------------------------------- */
.featured-reviews-block {
  border: 1px solid #c6baa7;
  padding: 3rem;
}

.featured-reviews-block:nth-child(even) {
  margin-top: 3rem;
}

.fr-bg-color {
  background-color: var(--color-soft-clay, #ede6dc);
  border: 1px solid var(--color-soft-bone, #c6baa7);
  color: var(--color-olive-midtone, #394739);
}

.fr-grid {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .featured-reviews-block:nth-child(even) {
    margin-top: 0;
  }

  .fr-grid {
    grid-template-columns: 1fr;
  }
}

.fr-review-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.fr-stars-bg {
  fill: transparent;
}

.fr-stars-fill {
  fill: #d7a336;
}

.fr-bg-color .fr-stars-bg {
  fill: transparent;
}

.fr-review-text {
  border: none;
  font-size: var(--font-size-body, 1rem);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  text-wrap: pretty;
}

.fr-reviewer-name {
  font-family: var(--et_global_heading_font);
  font-size: var(--font-size-h6, 0.99rem);
  font-style: normal;
  font-weight: 400;
}

.fr-splide .splide__pagination {
  bottom: -1.5rem;
}

.fr-bg-color .fr-splide .splide__pagination__page.is-active {
  background: #fff;
}

/** -------------------------------------------------------------
  Reviews Slider Shortcode
------------------------------------------------------- */
/* Standard mode: natural container width, left-aligned */
.rs-slider-standard .rs-splide {
  max-width: 100%;
}

.rs-slider-standard .splide__slide {
  background: var(--color-soft-clay, #ede6dc);
  border: 1px solid var(--color-soft-bone, #c6baa7);
  cursor: grab;
  padding: 2rem;
}

/* Centered mode: full-width breakout, partial slides visible at both edges */
.rs-slider-centered {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.rs-slider-centered .splide__slide {
  background: var(--color-soft-clay, #ede6dc);
  border: 1px solid var(--color-soft-bone, #c6baa7);
  cursor: grab;
  padding: 3rem;
}

/* .rs-slider-centered .splide__slide.is-visible {
  opacity: 1;
} */

/* Scrollbar */
.rs-scrollbar {
  background: rgba(77, 74, 69, 0.2);
  cursor: pointer;
  height: 2px;
  margin: 1.75rem auto 0;
  position: relative;
  touch-action: none;
  width: calc(33.3333% - 1rem);
}

.rs-scrollbar-thumb {
  background: #c97c63;
  height: 3px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition:
    left 0.4s ease,
    width 0.4s ease;
}

@media (max-width: 640px) {
  .rs-slider-centered {
    margin-left: 0;
    margin-right: 0;
  }
  .rs-scrollbar {
    width: 100%;
  }
}

/** -------------------------------------------------------------
  Doctor Profile pages
------------------------------------------------------- */
.ns-video-embed {
  width: 100%;
}

.ns-video-embed iframe {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  width: 100%;
}

#portal.open {
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.5) !important;
  display: flex;
  height: 100vh;
  justify-content: center;
  left: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 1000;
}
#bg-video-embed {
  bottom: 0;
  display: block;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  user-select: none;
  z-index: -1;
}
#bg-video-embed:after {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.7)
  );
  bottom: 0;
  content: "";
  display: block;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
  z-index: 1;
}

/** -------------------------------------------------------------
  Before/After Gallery (ba-gallery)
------------------------------------------------------- */
.ba-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.ba-gallery__pair {
  align-items: stretch;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  width: 100%;
}

.ba-gallery__pair img {
  aspect-ratio: 1.35;
  background: var(--color-soft-bone, #dcd8d2);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(44, 44, 44, 0.07);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.ba-gallery__img {
  border-radius: 8px;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

/* First pair: full width */
.ba-gallery__pair--full {
  position: relative;
  width: 100%;
}

.ba-gallery__age-check {
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: var(--color-olive-midtone, #425542);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  inset: 0;
  justify-content: center;
  padding: 1.5rem;
  position: absolute;
  z-index: 2;
}

.ba-gallery__age-check-heading {
  color: inherit;
  font-size: var(--font-size-h6, 1rem);
  margin: 0;
}

.ba-gallery__age-check-text {
  margin: 0;
  max-width: 36rem;
  text-align: center;
}

.ba-gallery__age-check-button {
  appearance: none;
  background: var(--color-olive-midtone, #425542);
  border: 1px solid var(--color-olive-midtone, #425542);
  border-radius: 999px;
  color: var(--color-cloud-white, #ffffff);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  padding: 0.75rem 1.25rem;
}

.ba-gallery__age-check-button:hover,
.ba-gallery__age-check-button:focus-visible {
  background: var(--color-cloud-white, #ffffff);
  color: var(--color-olive-midtone, #425542);
}

.ba-gallery--age-gated .ba-gallery__pair img {
  transition:
    filter 0.25s ease,
    opacity 0.25s ease,
    transform 0.2s ease;
}

.ba-gallery--age-gated:not(.is-age-confirmed) .ba-gallery__pair img {
  filter: blur(10px);
  opacity: 0.8;
}

.ba-gallery--age-gated.is-age-confirmed .ba-gallery__age-check {
  display: none;
}

/* Row of next three pairs */
.ba-gallery__pair-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: 100%;
}

.ba-gallery__pair-row .ba-gallery__thumb {
  flex: 0 1 calc((100% - 1.5rem) / 3);
  min-width: 0;
}

.ba-gallery__thumb {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  text-align: left;
}

.ba-gallery__thumb .ba-gallery__pair {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.15rem;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.ba-gallery__thumb:hover .ba-gallery__pair,
.ba-gallery__thumb:focus-visible .ba-gallery__pair,
.ba-gallery__thumb.is-active .ba-gallery__pair {
  opacity: 1;
  transform: translateY(-2px);
}

.ba-gallery__thumb.is-active .ba-gallery__pair {
  border-color: var(--color-terracotta-veil, #c97c63);
}

.ba-gallery__thumb:not(.is-active) .ba-gallery__pair {
  opacity: 0.78;
}

.ba-gallery__thumb:focus-visible {
  border-radius: 8px;
  outline: 2px solid #425542;
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .ba-gallery {
    gap: 1.25rem;
  }

  .ba-gallery__pair-row {
    gap: 0.5rem;
  }

  .ba-gallery__pair-row .ba-gallery__thumb {
    flex-basis: calc((100% - 1rem) / 3);
  }
}

@media (max-width: 700px) {
  .ba-gallery {
    gap: 1rem;
  }

  .ba-gallery__pair,
  .ba-gallery__pair-row {
    gap: 0.35rem;
  }

  .ba-gallery__pair-row .ba-gallery__thumb {
    flex-basis: calc((100% - 0.7rem) / 3);
  }

  .ba-gallery__age-check {
    padding: 1rem;
  }
}

/** -------------------------------------------------------------
  Related Services Slider
------------------------------------------------------- */
.related-services-slider .splide__slide {
  height: auto;
}

.related-services-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem 0;
  height: 100%;
  overflow: hidden;
}

.related-services-card::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'%3E%3Crect width='46' height='46' x='1' y='1' stroke='%23ecebe7' stroke-width='2' rx='23'/%3E%3Cpath stroke='%23ecebe7' stroke-width='2' d='M23.424 13.494 33.929 24 23.424 34.506M33.123 24.002H13.728'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: block;
  height: 38px;
  position: absolute;
  right: 1rem;
  top: 1rem;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
  width: 38px;
  z-index: 2;
}
.related-services-card:hover::before {
  transform: rotate(0deg);
}
.related-services-card__media {
  display: block;
  overflow: hidden;
}

.related-services-card__image {
  aspect-ratio: 0.92105263;
  border-radius: 8px;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 0.25s ease;
  width: 100%;
}

.related-services-card__image--placeholder {
  background: var(--color-soft-bone, #dcd8d2);
  min-height: 14rem;
}

.related-services-card__media:hover .related-services-card__image,
.related-services-card__media:focus-visible .related-services-card__image {
  transform: scale(1.03);
}

.related-services-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem 0;
}
.related-services-card__title,
.et-db #et-boc .et-l .related-services-card__title,
.et-db #et-boc .et-l .related-services-card__title a {
  color: var(--color-olive-midtone, #425542);
  font-size: var(--font-size-h6, 1rem);
  font-weight: 300;
  line-height: 1.2;
  padding: 0;
}

/** -------------------------------------------------------------
  Patient Testimonial Slider
------------------------------------------------------- */
.testimonial-video-slider-wrap {
  position: relative;
}

.testimonial-video-slider .splide__slide {
  height: auto;
}

.testimonial-video-card {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.testimonial-video-card__image {
  aspect-ratio: 0.56239016;
  border-radius: 8px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.testimonial-video-card__image--placeholder {
  background: var(--color-soft-bone, #dcd8d2);
  min-height: 20rem;
}

.testimonial-video-card__overlay {
  background: linear-gradient(
    to bottom,
    rgba(43, 43, 43, 0) 0%,
    rgba(43, 43, 43, 1) 100%
  );
  border-radius: 8px;
  inset: 0;
  position: absolute;
}

.testimonial-video-card__cta {
  align-items: flex-start;
  bottom: 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  left: 2rem;
  position: absolute;
  right: 2rem;
  text-align: left;
  z-index: 2;
}

.testimonial-video-card__play {
  display: inline-flex;
  height: 75px;
  width: 75px;
}

.testimonial-video-card__play svg {
  display: block;
  height: 75px;
  width: 75px;
}

.testimonial-video-card__label {
  font-size: var(--font-size-body, 1rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.testimonial-modal-open {
  overflow: hidden;
}

.testimonial-video-modal {
  align-items: center;
  background: rgba(43, 43, 43, 0.5);
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 10000;
}

.testimonial-video-modal.is-open {
  display: flex;
}

.testimonial-video-modal__dialog {
  position: relative;
  width: min(92vw, calc(88vh * 1.7777778), 1500px);
}

.testimonial-video-modal.is-short .testimonial-video-modal__dialog {
  width: min(90vw, calc(88vh * 0.5625), 31rem);
}

.testimonial-video-modal__close {
  align-items: center;
  appearance: none;
  background: rgba(43, 43, 43, 0.8);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: "ETmodules";
  font-size: 2rem;
  height: 3rem;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  width: 3rem;
  z-index: 2;
}

.testimonial-video-modal__video {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.testimonial-video-modal__video iframe {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  max-height: 88vh;
  pointer-events: none;
  width: 100%;
}

.testimonial-video-modal.is-short .testimonial-video-modal__video iframe {
  aspect-ratio: 9 / 16;
}

@media (max-width: 640px) {
  .testimonial-video-card__cta {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .testimonial-video-card__label {
    font-size: var(--font-size-body, 1rem);
  }

  .testimonial-video-modal {
    padding: 0.75rem;
  }

  .testimonial-video-modal__close {
    right: 0.35rem;
    top: 0.35rem;
  }
}

/** -------------------------------------------------------------
  Repeatable Sections
------------------------------------------------------- */
#dr-previews .et_pb_column {
  flex-basis: 575px;
  flex-grow: 1;
  min-width: 575px;
}

.dr-card {
  margin: auto;
  max-width: 650px;
}

.arrow {
  transform: rotate(-45deg);
  transition: transform 0.5s ease;
}

.dr,
.dr .et_pb_image_wrap {
  height: 100% !important;
  width: 100% !important;
}

.dr .et_pb_image_wrap:before {
  background: linear-gradient(
    to bottom,
    rgba(236, 235, 231, 0.2),
    rgba(236, 235, 231, 0.9)
  );
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition: opacity 0.3s ease;
  width: 100%;
  z-index: 1;
}

#dr-previews .et_pb_column > .et_pb_group:hover .dr .et_pb_image_wrap:before {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#dr-previews .et_pb_column > .et_pb_group:hover .dr img {
  filter: saturate(100%) sepia(0%);
  transition: filter 0.3s ease;
}

.dr img {
  filter: saturate(23%) sepia(15%);
  height: 100% !important;
  object-fit: cover;
  transition: filter 0.3s ease;
  width: 100% !important;
}

#dr-previews .et_pb_column > .et_pb_group:hover .arrow {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
  #dr-previews {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  #dr-previews .et_pb_column {
    flex-basis: 100%;
    flex-grow: 1;
    min-width: 100%;
  }

  .dr-card {
    max-width: 350px;
  }

  .dr-card > .et_pb_group {
    flex-grow: 1;
    height: 100%;
  }

  .dr,
  .dr .et_pb_image_wrap,
  .dr img {
    aspect-ratio: 1 !important;
    height: auto !important;
    object-fit: cover !important;
    width: 100% !important;
  }

  .arrow {
    height: 34px !important;
    width: 34px !important;
  }
}

@media (max-width: 450px) {
  #dr-previews {
    grid-template-columns: 1fr;
  }
}

/* No hover device */
@media (hover: none) {
  .dr .et_pb_image_wrap:before {
    content: none !important;
  }

  .dr img {
    filter: unset !important;
  }

  .arrow {
    transform: rotate(0deg) !important;
  }
}

/** -------------------------------------------------------------
  Blog post grid shortcode
------------------------------------------------------- */
.ns-blog-grid {
  --ns-blog-grid-gap: 1.5rem;
  margin-bottom: 2rem;
}

.ns-blog-grid--ajax.is-loading .ns-blog-grid__results {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ns-blog-grid__form {
  margin-bottom: var(--ns-blog-grid-gap);
}

.ns-blog-grid__row--filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

.ns-blog-grid__filters-label {
  font-weight: 600;
}

.ns-blog-grid__filters-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.ns-blog-grid__select {
  min-width: 12rem;
  padding: 0.5rem 0.75rem;
}

.ns-blog-grid__row--tags {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--ns-blog-grid-gap);
}

.ns-blog-grid__topics-label {
  font-weight: 600;
  margin: 0 1rem 0 0;
  text-align: left;
}

@media (max-width: 715px) {
  .ns-blog-grid__filters-label,
  .ns-blog-grid__topics-label {
    margin-right: 0;
    text-align: center;
    width: 100%;
  }
}

.ns-blog-grid__tags-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.ns-blog-grid__tag.ns-blog-grid__tag--hidden {
  display: none;
}

.ns-blog-grid__row--tags.is-expanded
  .ns-blog-grid__tag.ns-blog-grid__tag--hidden {
  display: inline-block;
}

.ns-blog-grid__tags-toggle {
  background: transparent;
  border: 0;
  color: var(--color-olive-deep, #425542);
  cursor: pointer;
  font-size: var(--font-size-small, 0.875rem);
  margin-top: 0.25rem;
  padding: 0;
  text-decoration: underline;
}

.ns-blog-grid__tag {
  background: var(--color-soft-bone, #dcd8d2);
  border: 1px solid rgba(77, 74, 69, 0.2);
  border-radius: 3rem;
  color: var(--color-ink-smoke, #2b2b2b);
  display: inline-block;
  font-size: var(--font-size-small, 0.875rem);
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.ns-blog-grid__tag:hover,
.ns-blog-grid__tag:focus-visible {
  background: var(--color-porcelain-mist, #ecebe7);
  border-color: var(--color-olive-deep, #425542);
  outline: none;
}

.ns-blog-grid__tag.is-active {
  background: var(--color-olive-deep, #425542);
  border-color: var(--color-olive-deep, #425542);
  color: #fff;
}

.ns-blog-grid__tag.is-active::after {
  content: " \00D7";
  display: inline-block;
  font-weight: 700;
  margin-left: 0.25rem;
}

.ns-blog-grid__form--search {
  margin-bottom: 4rem;
}

.ns-blog-grid__search {
  align-items: stretch;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  max-width: 32rem;
  position: relative;
}

.ns-blog-grid__search-input {
  border: 1px solid rgba(95, 95, 95, 0.35);
  border-radius: 3rem 0 0 3rem;
  border-right: 0;
  flex: 1;
  font-size: var(--font-size-body, 1rem);
  min-width: 0;
  padding: 0.65rem 1rem;
}

.ns-blog-grid__search-submit {
  align-items: center;
  background: var(--color-olive-deep, #425542);
  border: 1px solid var(--color-olive-deep, #425542);
  border-radius: 0 3rem 3rem 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  padding: 0 1rem;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.ns-blog-grid__search-submit:hover,
.ns-blog-grid__search-submit:focus-visible {
  background: var(--color-olive-midtone, #394739);
  border-color: var(--color-olive-midtone, #394739);
  outline: none;
}

.ns-blog-grid__items {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

.ns-blog-grid__card {
  container-type: inline-size;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  margin: 0;
}

.ns-blog-grid__thumb {
  border-radius: 6px;
  display: block;
  overflow: hidden;
  position: relative;
}

.ns-blog-grid__thumb-img {
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
  width: 100%;
}

.ns-blog-grid__thumb-placeholder {
  background: var(--color-soft-bone, #dcd8d2);
  display: block;
  height: 100%;
  width: 100%;
}

.ns-blog-grid__thumb:hover .ns-blog-grid__thumb-img,
.ns-blog-grid__thumb:focus-visible .ns-blog-grid__thumb-img {
  filter: brightness(1.03);
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .ns-blog-grid__thumb-img {
    transition: none;
  }
}

@container (max-width: 400px) {
  .ns-blog-grid__thumb,
  .ns-blog-grid__body {
    grid-column: 1 / -1;
  }

  .ns-blog-grid__thumb {
    height: 250px;
  }
}

.ns-blog-grid__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.ns-blog-grid__title {
  font-size: var(--font-size-h5, 1.17rem);
  margin: 0;
  padding: 0;
  text-wrap: pretty;
}

.ns-blog-grid__title a {
  color: inherit;
  text-decoration: none;
}

.ns-blog-grid__title a:hover,
.ns-blog-grid__title a:focus-visible {
  text-decoration: underline;
}

.ns-blog-grid__meta {
  font-size: var(--font-size-small, 0.875rem);
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

.ns-blog-grid__category-link {
  color: var(--color-terracotta-veil, #c97c63);
  text-decoration: none;
}

.ns-blog-grid__category-link:hover,
.ns-blog-grid__category-link:focus-visible {
  text-decoration: underline;
}

.ns-blog-grid__excerpt {
  font-size: var(--font-size-small, 0.875rem);
  line-height: 1.5;
  margin: 0;
}

.ns-blog-grid__read-more {
  color: var(--color-olive-deep, #425542);
  margin-top: auto;
  text-decoration: none;
}

.ns-blog-grid__read-more--button {
  align-self: flex-start;
  background: var(--color-olive-deep, #425542);
  border: 1px solid var(--color-olive-deep, #425542);
  border-radius: 999px;
  color: #fff !important;
  font-size: var(--font-size-small, 0.875rem);
  line-height: 1;
  padding: 0.45rem 0.85rem;
  text-transform: uppercase;
}

.ns-blog-grid__read-more--button:hover,
.ns-blog-grid__read-more--button:focus-visible {
  background: transparent;
  color: var(--color-olive-deep, #425542) !important;
  text-decoration: none !important;
}

.ns-blog-grid__read-more:hover,
.ns-blog-grid__read-more:focus-visible {
  text-decoration: underline;
}

.ns-blog-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
}

.ns-blog-grid--related {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

/* Stack thumb above body — each card is too narrow for the side-by-side layout */
.ns-blog-grid--related .ns-blog-grid__card {
  grid-template-columns: 1fr;
}

.ns-blog-grid--related .ns-blog-grid__thumb {
  aspect-ratio: 16 / 9;
  height: auto;
  width: 100%;
}

@media (max-width: 768px) {
  .ns-blog-grid--related {
    grid-template-columns: 1fr;
  }
}

.ns-blog-categories a {
  color: var(--color-olive-midtone, #425542);
  text-decoration: underline;
  font-size: var(--font-size-body, 1rem);
}
.ns-blog-categories a:hover {
  text-decoration: none;
}
.divi_table_of_contents li {
    padding-bottom: .5rem !important;
}

/* ==========================================================================
   Shared pagination — blog grid + case-study grid
   ========================================================================== */

.ns-blog-grid__pagination,
.ns-cs-grid__pagination {
  margin-top: 2.5rem;
}

.ns-blog-grid__pagination ul,
.ns-cs-grid__pagination ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ns-blog-grid__pagination li,
.ns-cs-grid__pagination li {
  margin: 0;
}

/* Plain page number links */
.ns-blog-grid__pagination li .page-numbers:not(.prev):not(.next),
.ns-cs-grid__pagination li .page-numbers:not(.prev):not(.next) {
  color: var(--color-olive-midtone, #425542);
  line-height: 1;
  opacity: 0.6;
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}
.ns-blog-grid__pagination li .page-numbers:not(.prev):not(.next):hover,
.ns-cs-grid__pagination li .page-numbers:not(.prev):not(.next):hover {
  opacity: 1;
}

/* Current page */
.ns-blog-grid__pagination li .page-numbers.current:not(.prev):not(.next),
.ns-cs-grid__pagination li .page-numbers.current:not(.prev):not(.next) {
  color: var(--color-terracotta-veil, #c97c63);
  opacity: 1;
}

/* Dots */
.ns-blog-grid__pagination li .page-numbers.dots,
.ns-cs-grid__pagination li .page-numbers.dots {
  color: var(--color-olive-midtone, #425542);
}

/* Prev / next arrow circles */
.ns-blog-grid__pagination li .prev.page-numbers,
.ns-blog-grid__pagination li .next.page-numbers,
.ns-cs-grid__pagination li .prev.page-numbers,
.ns-cs-grid__pagination li .next.page-numbers {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  width: 3rem;
}

.ns-blog-grid__pagination li .prev.page-numbers,
.ns-blog-grid__pagination li .next.page-numbers,
.ns-cs-grid__pagination li .prev.page-numbers,
.ns-cs-grid__pagination li .next.page-numbers {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' fill='none'%3E%3Cpath stroke='%23394739' stroke-width='1.625' d='m9.629.574 9.63 9.63-9.63 9.63M18.52 10.208H.742'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 21px 21px;
  border: 1.5px solid var(--color-olive-deep, #425542);
  color: transparent;
  font-size: 0;
}

.ns-blog-grid__pagination li .prev.page-numbers,
.ns-cs-grid__pagination li .prev.page-numbers {
  transform: scaleX(-1);
}

.ns-blog-grid__pagination li .prev.page-numbers:hover,
.ns-blog-grid__pagination li .next.page-numbers:hover,
.ns-cs-grid__pagination li .prev.page-numbers:hover,
.ns-cs-grid__pagination .next.page-numbers:hover {
  background-color: var(--color-olive-deep, #425542);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' fill='none'%3E%3Cpath stroke='%23ffffff' stroke-width='1.625' d='m9.629.574 9.63 9.63-9.63 9.63M18.52 10.208H.742'/%3E%3C/svg%3E");
  border-color: var(--color-olive-deep, #425542);
  color: transparent;
}

@media (max-width: 768px) {
  .ns-blog-grid__items {
    grid-template-columns: 1fr;
  }

  .ns-blog-grid__card {
    grid-template-columns: 1fr;
  }

  .ns-blog-grid__thumb {
    height: 250px;
    max-width: 22rem;
  }
}

.screen-reader-text {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Blog post CTA block */
#main-content .cta-block {
  margin: 2rem 0;
  padding: 3rem;
}
#main-content .cta-block a {
  border: 1px solid var(--color-cloud-white) !important;
}
#main-content .cta-block a:hover {
  background-color: transparent !important;
  color: var(--color-cloud-white) !important;
}

/* ==========================================================================
   Case-study grid
   ========================================================================== */

/* ---- Filter bar ---- */
.ns-cs-grid__filter-bar {
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}
.ns-cs-grid__filter-label {
  align-self: center;
  color: var(--color-olive-midtone, #425542);
  font-size: var(--font-size-small, 0.875rem);
  letter-spacing: 3%;
  text-transform: uppercase;
  white-space: nowrap;
}
.ns-cs-grid__filter-selects {
  align-items: flex-end;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.ns-cs-grid__filter-group {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 130px;
}
.ns-cs-grid__filter-group-label {
  clip: rect(0, 0, 0, 0);
  font-size: 0.7rem;
  font-weight: 600;
  height: 1px;
  letter-spacing: 0.07em;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  /* hiding this label except for screen readers, since the select's purpose should be clear from context */
  position: absolute;
  text-transform: uppercase;
  white-space: nowrap;
  width: 1px;
}
.ns-cs-grid__filter-select {
  background: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  width: 100%;
}
.ns-cs-grid__filter-select option.is-unavailable,
.ns-cs-grid__filter-select option:disabled {
  color: #aaa;
}

.ns-cs-grid__reset {
  align-self: flex-end;
  background: var(--color-olive-deep, #425542);
  border: 1px solid var(--color-olive-deep, #425542);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-size: var(--font-size-small, 0.875rem);
  line-height: 1;
  padding: 0.45rem 0.85rem;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.ns-cs-grid__reset:hover,
.ns-cs-grid__reset:focus-visible {
  background: transparent;
  color: var(--color-olive-deep, #425542);
}

/* ---- Summary line ---- */
.ns-cs-grid__summary {
  color: var(--color-olive-midtone, #425542);
  font-style: italic;
  margin: 0;
  padding: 0.75rem 0;
  text-align: center;
}

/* ---- Results area ---- */
.ns-cs-grid__results[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s;
}

/* ---- Grid ---- */
.ns-cs-grid__items {
  display: grid;
  gap: 4rem 2rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.5rem;
}
@media (max-width: 1024px) {
  .ns-cs-grid__items {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .ns-cs-grid__items {
    grid-template-columns: 1fr;
  }
}

/* ---- Card ---- */
.ns-cs-grid__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ---- Before / After image pair ---- */
.ns-cs-grid__images-link {
  display: block;
  text-decoration: none;
}
.ns-cs-grid__images {
  display: flex;
  gap: 2px;
}
.ns-cs-grid__image-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ns-cs-grid__image-wrap img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
  width: 100%;
}

/* Hover either image → both images react, triggered from the shared link parent */
.ns-cs-grid__images-link:hover .ns-cs-grid__image-wrap img,
.ns-cs-grid__images-link:focus-visible .ns-cs-grid__image-wrap img {
  filter: brightness(1.03);
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .ns-cs-grid__image-wrap img {
    transition: none;
  }
}
/* Outer corners only — before = left corners, after = right corners */
.ns-cs-grid__image-wrap--before,
.ns-cs-grid__image-wrap--before img {
  border-radius: 6px 0 0 6px;
}
.ns-cs-grid__image-wrap--after,
.ns-cs-grid__image-wrap--after img {
  border-radius: 0 6px 6px 0;
}

/* ---- BEFORE / AFTER labels ---- */
.ns-cs-grid__img-label {
  background: var(--color-soft-bone, #dcd8d2);
  border-radius: 0 0 4px 0; /* lower-right corner only */
  color: var(--color-olive-midtone, #425542);
  font-size: var(--font-size-body, 1rem);
  left: 0;
  line-height: 1.4;
  padding: 2px 6px;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

/* ---- Card body ---- */
.ns-cs-grid__card .ns-cs-grid__title {
  color: var(--color-olive-midtone);
  flex-grow: 1;
  font-size: var(--font-size-h6);
  line-height: 1.2;
  margin: 0;
  padding: 0;
}
.ns-cs-grid__card .ns-cs-grid__title a {
  color: inherit;
  text-decoration: none;
}
.ns-cs-grid__patient {
  color: var(--color-olive-midtone, #425542);
  font-size: var(--font-size-body, 1rem);
  margin: 0;
}
.ns-cs-grid__doctor {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}
.ns-cs-grid__doctor-img-wrap {
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  height: 60px;
  overflow: hidden;
  position: relative;
  width: 60px;
}

.ns-cs-grid__doctor-img-wrap::after {
  background: linear-gradient(
    to bottom,
    rgba(236, 235, 231, 0.2) 0%,
    rgba(236, 235, 231, 0.9) 100%
  );
  border-radius: 50%;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.ns-cs-grid__doctor-img {
  display: block;
  filter: grayscale(100%);
  height: 60px;
  max-height: 60px;
  max-width: 60px;
  object-fit: cover;
  width: 60px;
}
.ns-cs-grid__doctor-name {
  font-size: var(--font-size-body, 1rem);
}
.ns-cs-grid__view-link {
  display: inline-block;
  margin-top: 0.25rem;
  text-decoration: underline;
  font-size: var(--font-size-body, 1rem);
}

/* ---- Pagination: spacing handled by .ns-cs-grid__pagination in the shared pagination block ---- */

/* ==========================================================================
   Case-study gallery shortcode (mode 1 + mode 2)
   ========================================================================== */

/* Shared: image wrap */
.ns-cs-gallery__pair,
.ns-cs-gallery-modal__pair {
  display: flex;
  gap: 3px;
}

.ns-cs-gallery__image-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ns-cs-gallery__image-wrap img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

/* Outer corners on paired views */
.ns-cs-gallery__image-wrap--before,
.ns-cs-gallery__image-wrap--before img {
  border-radius: 6px 0 0 6px;
}

.ns-cs-gallery__image-wrap--after,
.ns-cs-gallery__image-wrap--after img {
  border-radius: 0 6px 6px 0;
}

/* BEFORE / AFTER label */
.ns-cs-gallery__img-label {
  background: var(--color-soft-clay, #ede6dc);
  border-radius: 0 0 4px 0;
  color: var(--color-olive-deep, #425542);
  font-size: var(--font-size-body, 1rem);
  left: 0;
  line-height: 1.4;
  padding: 2px 6px;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

/* Mode 2 section label */
.ns-cs-gallery__section-label {
  color: var(--color-terracotta-veil, #c97c63);
  font-size: var(--font-size-body, 1rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.ns-cs-gallery__section + .ns-cs-gallery__section {
  margin-top: 1.25rem;
}

/* Mode 2 slide button */
.ns-cs-gallery__slide-btn {
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.ns-cs-gallery__slide-btn img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
  width: 100%;
}

.ns-cs-gallery__slide-btn:hover img,
.ns-cs-gallery__slide-btn:focus-visible img {
  filter: brightness(1.03);
  transform: scale(1.03);
}

.ns-cs-gallery__splide .splide__slide {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .ns-cs-gallery__slide-btn img {
    transition: none;
  }
}

/* Splide arrow overrides */
.ns-cs-gallery__splide .splide__arrow {
  background: #fff;
  border: 3px solid var(--color-olive-deep, #425542);
  height: 2.5rem;
  opacity: 1;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  width: 2.5rem;
}

.ns-cs-gallery__splide .splide__arrow svg {
  fill: var(--color-olive-deep, #425542);
  stroke: var(--color-olive-deep, #425542);
  stroke-width: 1.5;
}

.ns-cs-gallery__splide .splide__arrow:hover,
.ns-cs-gallery__splide .splide__arrow:focus-visible {
  background: var(--color-olive-deep, #425542);
}

.ns-cs-gallery__splide .splide__arrow:hover svg,
.ns-cs-gallery__splide .splide__arrow:focus-visible svg {
  stroke: #fff;
  fill: #fff;
}

.ns-cs-gallery__splide .splide__arrow:disabled {
  display: none;
}

/* Modal */
.ns-cs-gallery-modal {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 9999;
}

.ns-cs-gallery-modal.is-open {
  display: flex;
}

.ns-cs-gallery-modal__backdrop {
  background: rgba(0, 0, 0, 0.72);
  inset: 0;
  position: absolute;
}

.ns-cs-gallery-modal__dialog {
  max-height: calc(100dvh - 4rem);
  max-width: 1200px;
  overflow-y: auto;
  position: relative;
  width: calc(100% - 2rem);
  z-index: 1;
}

.ns-cs-gallery-modal__close {
  align-items: center;
  appearance: none;
  background: rgba(43, 43, 43, 0.8);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  width: 3rem;
  z-index: 2;
}

.ns-cs-gallery-modal__pair .ns-cs-gallery__image-wrap img {
  max-height: 80dvh;
}

body.ns-cs-gallery-modal-open {
  overflow: hidden;
}

/* =Gallery / Case-Study content gate modal
------------------------------------------------------- */
body.consent-modal-open {
  overflow: hidden;
}
html:not(.et-vb-app-ancestor) #consent-modal {
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100000;
}
html:not(.et-vb-app-ancestor) #consent-modal[hidden] {
  display: none;
}

/* YouTube Modal Shortcode Styles */
.ns-youtube-modal[hidden] {
  display: none !important;
}

.qualifications-title,
.education-training-title {
  color: var(--color-terracotta-veil, #c97c63);
  font-size: var(--font-size-small, 0.875rem);
  font-weight: normal;
  font-family: var(--font-family-body);
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
}

.education-training {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
}

.education-training img {
  max-height: 90px;
}