/* Image Collage */
.image-collage {
  position: relative;
  padding-bottom: 40px;
  padding-left: 40px;
}

.collage-main img {
  width: 100%;
  display: block;
}

.collage-overlay {
  position: absolute;
  width: 45%;
  border-radius: 12px;
  overflow: hidden;
}

.collage-overlay img {
  width: 100%;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.collage-overlay-top {
  top: -20px;
  left: 0;
}

.collage-overlay-bottom {
  bottom: 0;
  right: -5%;
}

@media (max-width: 991px) {
  .image-collage {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Asterisk Superscript */
.sup-asterisk {
  font-size: 0.45em !important;
  vertical-align: super;
  line-height: 0;
}

/* Two Column List */
.two-col-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 767px) {
  .two-col-list {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-left {
  text-align: left;
}

.justify-text {
  text-align: justify;
}

.text-white {
  color: var(--color-white) !important;
}

.text-dark-purple {
  color: var(--color-purple);
}

.text-blue {
  color: var(--color-primary);
}

.text-500 {
  font-weight: 500;
}

.py {
  padding-block: var(--spacing-section);
}

.pt {
  padding-top: var(--spacing-section);
}

.bg-beige {
  background-color: var(--bg-beige);
}

.bg-blue {
  background-color: var(--color-primary);
}

.bg-white {
  background: var(--color-white);
}

.bg-light-gray {
  background: #f3f3f3;
}

.bg-light-blue {
  background-color: var(--bg-light-blue-5);
}

.bg-iridescent {
  background: linear-gradient(135deg, #ffffff 0%, #faf9fc 25%, #fcfaf9 75%, #ffffff 100%);
}

.rounded-md {
  border-radius: 20px;
}

.rounded-lg {
  border-radius: 30px;
}

.object-fit-cover {
  object-fit: cover;
}

.highlight {
  padding: 5px;
  background: var(--color-yellow);
}

hr {
  opacity: .1;
}

/* Top Bar and Learn More */
.top-learn-more {
  background: var(--color-accent);
  padding-top: 10px;
  padding-bottom: 10px;
}

.top-bar {
  background: var(--color-white);
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-gray-light);
}

.top-bar a,
.top-bar a i {
  color: var(--color-primary);
}

.top-bar .btn {
  font-size: 14px;
}

@media (max-width: 768px) {
  .top-bar .btn {
    font-size: 12px;
  }
}

@media (max-width: 375px) {
  .top-bar .btn {
    font-size: 10px;
  }
}

/* Navbar Styles */
.navbar > .container {
  max-width: 1350px;
}

/* Override Bootstrap navbar-expand-lg breakpoint to 1097px */
@media (max-width: 1096px) {
  .navbar-expand-lg > .container,
  .navbar-expand-lg > .container-fluid {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-right: 15px;
    padding-left: 0;
  }

  .navbar-expand-lg .navbar-brand {
    order: 1;
  }

  .navbar-expand-lg .navbar-toggler {
    display: block;
    order: 2;
  }

  .navbar-expand-lg .navbar-collapse {
    display: none !important;
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }

  .navbar-expand-lg .navbar-collapse.show,
  .navbar-expand-lg .navbar-collapse.collapsing {
    display: block !important;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: column;
  }
}

@media (min-width: 1097px) {
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
}

nav.navbar ul.navbar-nav li a {
  color: var(--color-primary);
  text-transform: capitalize;
  font-weight: 500;
  font-size: 14px;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

nav.navbar ul.navbar-nav li .dropdown-menu a {
  border-bottom: 1px solid var(--color-primary);
}

nav.navbar ul.navbar-nav li .dropdown-menu a:last-child {
  border-bottom: 0px;
}

nav.navbar ul.navbar-nav li .dropdown-menu a:hover,
nav.navbar ul.navbar-nav li a.active,
li.nav-item.dropdown.active > a {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Custom Dropdown Styles */
.has-dropdown {
  position: relative;
}

.dropdown-icon,
.subdropdown-icon {
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.custom-dropdown {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 220px;
  max-height: 400px;
  overflow: visible;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.custom-dropdown li {
  position: relative;
}

.custom-dropdown li a {
  display: block;
  padding: 8px 20px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px !important;
  border-bottom: 1px solid var(--color-border-light);
  transition: all 0.3s ease;
}

.custom-dropdown li:last-child a {
  border-bottom: none;
}

.custom-dropdown li a:hover {
  background: #f5f5f5;
  color: var(--color-primary);
}

/* Subdropdown Styles */
.has-subdropdown {
  position: relative;
}

.custom-subdropdown {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  right: 100%;
  margin-right: 0;
  background: var(--color-white);
  min-width: 220px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  z-index: 10001;
}

.has-subdropdown:hover > .custom-subdropdown,
.has-subdropdown.active > .custom-subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.custom-subdropdown li a {
  display: block;
  padding: 8px 20px 8px 40px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border-light);
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.custom-subdropdown li:last-child a {
  border-bottom: 1px solid var(--color-border-light);
}

.custom-subdropdown li a:hover {
  background: #eeeeee;
  color: var(--color-primary);
}

/* Show dropdowns on hover/active (desktop) */
.has-dropdown:hover > .custom-dropdown,
.has-dropdown.active > .custom-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Locations Mega Menu Styles (Desktop) */
.locations-megamenu {
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.has-megamenu:hover > .locations-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu-inner {
  display: flex;
  padding: 30px 0;
}

.megamenu-tabs {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  padding-right: 30px;
  gap: 5px;
}

.megamenu-tab {
  display: block;
  padding: 12px 20px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.megamenu-tab:hover,
.megamenu-tab.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.megamenu-content {
  flex: 1;
  padding-left: 30px;
  border-left: 1px solid var(--color-border-light);
}

.megamenu-locations {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: column;
  grid-template-rows: repeat(8, auto);
  gap: 8px;
}

.megamenu-locations.active {
  display: grid;
}

.megamenu-locations a {
  display: block;
  padding: 8px 12px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.megamenu-locations a:hover {
  background: #f5f5f5;
  color: var(--color-primary);
}

/* Adjust mega menu position when navbar is sticky */
.sticky .locations-megamenu {
  top: 76px;
}

/* Hide mobile dropdown on desktop for mega menu */
@media only screen and (min-width: 1097px) {
  .has-megamenu > .mobile-locations-dropdown {
    display: none !important;
  }
}

/* Hide mega menu on mobile, show regular dropdown */
@media only screen and (max-width: 1096px) {
  .locations-megamenu {
    display: none !important;
  }

  .has-megamenu > .mobile-locations-dropdown {
    display: block;
  }

  /* Make mobile locations subdropdown scrollable */
  .has-megamenu .mobile-locations-dropdown .has-subdropdown.active > .custom-subdropdown {
    max-height: 50vh;
    overflow-y: auto;
  }
}

/* Rotate chevron when dropdown is active */
.has-dropdown.active > a .dropdown-icon,
.has-subdropdown.active > a .subdropdown-icon {
  transform: rotate(90deg);
}

@media only screen and (min-width: 1097px) {
  .has-subdropdown:hover > a .subdropdown-icon {
    transform: rotate(90deg);
  }
}

.dropdown-toggle::after {
  display: none;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: var(--color-white);
}

.check-wait-times-btn {
  text-transform: capitalize;
  background-color: var(--color-white);
  border-radius: 8px;
  border: 2px solid var(--color-primary);
}

.check-wait-times-btn a {
  color: var(--color-primary);
}

/* Banner and Breadcrumb */
.banner-sec {
  display: flex;
  align-items: center;
  min-height: 320px;
  background-size: cover !important;
  background-position: center !important;
}

ol.breadcrumb li a {
  text-decoration: none;
  color: var(--color-white);
}

.breadcrumb-item.active {
  color: var(--color-white);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--color-white);
  content: "\f054";
  font-family: "Font Awesome 5 Pro";
  font-size: 12px;
  float: none;
}

/* Common Text Styles */
h6.small-text {
  color: var(--color-primary);
  font-size: 20px;
}

.main-title-text {
  font-weight: 700;
  line-height: normal;
}

h6.small-text span {
  background: var(--color-primary);
  width: 60px;
  height: 2px;
  display: inline-block;
  position: relative;
  top: -5px;
  right: -10px;
}

.main-title-text span {
  color: var(--color-primary);
}

.main-title-text small {
  font-size: 20px;
}

.underline-heading {
  position: relative;
}

.underline-heading::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  height: 2px;
  bottom: 0;
  width: 100px;
  left: 0;
}

.disclaimer-text {
  font-size: 10px;
  color: var(--color-text-light) !important;
}

.disclaimer-text-footer {
  font-size: 12px;
  font-style: italic;
  color: var(--color-text-light);
}

/* Common Buttons */
.btn-info {
  border: none;
  background-color: var(--color-primary);
}

.btn-info:hover {
  background-color: var(--color-primary);
}

button.btn-primary {
  background: var(--color-teal);
}

.btn {
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  padding: 5px 15px;
  /* display: inline-block; */
  border-radius: var(--border-radius-pill);
  /* text-transform: uppercase; */
  /* font-weight: 600; */
}

/* Hover Effects */
.accept-patients-sec a {
  overflow: hidden;
}

a.hovereffect:before,
a.hovereffect:after,
button.btn.btn-default:before,
button.btn.btn-default:after {
  background: var(--color-teal-light);
  content: "";
  position: absolute;
  z-index: -1;
}

a.hovereffect::after,
button.btn.btn-default::after {
  height: 100%;
  left: 0;
  top: 0;
  width: 0;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

a.hovereffect:hover:after,
button.btn.btn-default:hover:after {
  width: 100%;
}

a.hovereffect,
button.btn.btn-default {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

a.hovereffect:hover,
button.btn.btn-default:hover {
  color: var(--color-white);
}

/* Map Section */
.map-section {
  height: 500px;
}

/* Modal */
.modal-dialog {
  width: 100%;
}

/* Dynamic Popup */
#dynamicPopup {
  box-shadow: 0px 0px 14px -4px rgba(0, 0, 0, 0.75);
  z-index: 999999;
}

/* Portrait Image Container */
.portrait-image-container {
  width: 100%;
  height: 400px;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 0.375rem;
}

/* Nav Pills and Tabs */
.nav-tabs .nav-link.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.nav-link {
  color: var(--color-text-dark);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-pills .nav-link {
  text-align: left;
}

.nav-pills .nav-link.active {
  background-color: var(--color-primary);
}

/* Form Select */
.form-select.decorated {
  color: red;
}

.decorated option {
  color: black;
  background-color: var(--color-white);
}

/* Icons */
.icon-large {
  font-size: 50px;
  margin-bottom: 30px;
}

/* Responsive styles for icon-large */
@media only screen and (max-width: 767px) {
  .icon-large {
    font-size: 36px;
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 575px) {
  .icon-large {
    font-size: 28px;
    margin-bottom: 16px;
  }
}

/* Responsive Media Queries */
@media only screen and (max-width: 575px) {
  section.top-bar .container,
  section.top-learn-more .container {
    max-width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .banner-sec {
    min-height: 220px;
  }
  
  section.top-bar .container,
  section.top-learn-more .container {
    max-width: 100%;
  }
}

@media only screen and (max-width: 1096px) {
  nav.navbar {
    padding-top: 0px;
    padding-bottom: 0px;
  }

  nav.navbar .container {
    padding-left: 0px;
    padding-right: 0;
    max-width: 100%;
  }

  div#collapsibleNavbar {
    background: var(--color-white);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  nav.navbar ul.navbar-nav li a {
    color: var(--color-primary);
  }

  /* Mobile custom dropdown styles */
  .custom-dropdown {
    position: static;
    background: var(--color-white);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-dropdown.active > .custom-dropdown {
    max-height: 500px;
  }

  .custom-dropdown li a {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border-light);
    padding-left: 30px;
  }

  .custom-dropdown li a:hover {
    background: #f5f5f5;
  }

  /* Mobile subdropdown styles */
  .custom-subdropdown {
    position: static;
    background: var(--color-white);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-subdropdown.active > .custom-subdropdown {
    max-height: 500px;
  }

  .custom-subdropdown li a {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border-light);
    padding-left: 50px;
    font-size: 14px;
    background-color: #f9f9f9;
  }

  .custom-subdropdown li a:hover {
    background: #eeeeee;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .dropdown-icon,
  .subdropdown-icon {
    float: right;
  }

  .top-learn-more {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .top-learn-more p,
  .top-bar p,
  .top-bar a {
    font-size: 12px;
  }

  .navbar-brand {
    padding-left: 10px;
  }
}

@media only screen and (min-width: 1097px) {
  .dropdown:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    top: 42px;
    right: 0;
  }

  .dropdown .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
  }
}

/* Clinic Services Tabs */
.clinic-services-tabs {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.clinic-services-tabs .nav-item {
  flex: 1;
}

.nav-link.clinic-services-tab {
  border: 1px solid var(--color-border-light);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

.nav-link.clinic-services-tab:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
}

.nav-link.clinic-services-tab.active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.clinic-services-tab-content {
  position: relative;
}

.clinic-services-tab-card {
  background: linear-gradient(to top right, rgba(223, 235, 243, 0.1) 0%, rgba(255, 255, 255, 0.9) 40%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  padding: 40px;
}

.clinic-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clinic-services-list li {
  padding: 10px 16px;
  border-radius: 0;
  font-size: 15px;
  color: var(--color-text);
  transition: background 0.2s ease;
  position: relative;
  padding-left: 28px;
}

.clinic-services-list li::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.clinic-services-list li {
  border-bottom: 1px solid var(--color-border-light);
}

.clinic-services-list li:last-child {
  border-bottom: none;
}

.clinic-services-list li:hover {
  background: rgba(42, 124, 174, 0.05);
}

.clinic-services-list-multi {
  columns: 2;
  column-gap: 32px;
}

.clinic-services-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--color-text);
  width: 100%;
}

.clinic-services-link:hover {
  color: var(--color-primary);
}

.clinic-services-link i {
  font-size: 18px;
  color: var(--color-primary);
}

.clinic-services-lang-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(42, 124, 174, 0.15);
}

@media (max-width: 767px) {
  .clinic-services-tabs {
    gap: 6px;
  }

  .clinic-services-tab {
    font-size: 13px;
    padding: 8px 16px;
  }

  .clinic-services-tab-card {
    padding: 24px;
  }

  .clinic-services-list-multi {
    columns: 1;
  }
}
