.profile-header img {
  border: 1px solid #ddd;
  width: 200px;
  height: 200px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.navbar-underlined {
  border-bottom: 1px solid #ddd;
}

.container-section {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.container-section h4 {
  border-bottom: 2px solid #777777;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Styles for the profile header */
.profile-header img {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-header h2 {
  font-size: 2.5rem;
}

.navbar-expand {
  justify-content: center;
}

/* Section headers */
.section-container h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

/* Map styles */
.address-map-wrapper {
  position: relative;
  min-height: 300px;
  border-radius: 0.75rem;
  overflow: hidden;
}

.address-map-wrapper .static-map {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
  cursor: pointer;
}

.address-map-wrapper .interactive-map {
  width: 100%;
  height: 350px;
  border-radius: 0.75rem;
}

/* Experience list styling */
#experience ul {
  list-style: none;
  padding-left: 0;
}

#experience li {
  padding: 6px 0;
  border-bottom: 1px solid #e9ecef;
}

/* Opinions section grid layout */
#opinions .opinion-container {
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* Opinions grid layout - 3 per row */
.opinions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.opinions-grid .opinion-container {
  flex: 1;
  min-width: calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
}

:root {
  --bs-primary: #8ed9d9;
  /* Custom primary color */
}

html {
  scroll-padding-top: 120px;
  /* Fix for sticky navbar overlapping content */
}

.dl-profile-wrapper {
  display: flex;
  flex-direction: row;
  column-gap: 48px;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  margin-top: 10px;
}

.dl-profile-wrapper-gradient {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  /* background: linear-gradient(0deg, rgba(235, 235, 235, 0) 0%, rgb(233, 233, 233) 100%); */
}

.content-wrapper {
  flex: 2;
}

.profile-header {
  padding-bottom: 20px;
  max-width: 1200px;
  width: 100%;
}

.navbar-nav {
  width: 100%;
}

.appointment-container {
  background-color: rgba(255, 255, 255, 0.521);
  flex: 1;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.11);
  position: sticky;
  top: 80px;
  border-radius: 0.5rem;
  height: fit-content;
  max-height: calc(100vh - 160px);
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 50;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.appointment-container.highlighted {
  border: 2px solid var(--bs-primary, #386868) !important;
}

@keyframes pulse-highlight {
  0% {
    box-shadow: 0 0 0 4px rgba(67, 175, 175, 0.2), inset 0 0 20px rgba(67, 175, 175, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(67, 175, 175, 0.15), inset 0 0 20px rgba(67, 175, 175, 0.15);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(67, 175, 175, 0.2), inset 0 0 20px rgba(67, 175, 175, 0.1);
  }
}

.appointment-container h4 {
  font-size: 1.3rem;
  text-align: center;
  color: #000;
  padding-bottom: 10px;
  margin: 0;
}

.appointment-container .clinic-name {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--bs-primary);
  margin-bottom: 15px;
  display: block;
}

.services-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 550px;
  padding: 1rem;
}

.staff-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.staff-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dee2e6;
}

.staff-group-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.staff-group-icon {
  width: 40px;
  height: 40px;
  font-size: 2rem;
  color: var(--bs-primary);
  flex-shrink: 0;
}

.staff-group-header h5 {
  margin: 0;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #212529;
}

.studio-section {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--bs-primary);
}

.studio-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  background-color: #f0f8f8;
  border-radius: 0.5rem;
}

.studio-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
}

.staff-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.service-item:hover {
  background-color: white;
  border-color: var(--bs-primary);
  box-shadow: 0 2px 8px rgba(67, 175, 175, 0.15);
}

.service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
  line-height: 1.2;
}

.service-details {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.service-staff {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
  align-items: center;
}

.staff-member {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.staff-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.staff-icon {
  color: var(--bs-primary, #43afaf);
  font-size: 20px;
}

.staff-member:hover .staff-icon {
  color: var(--bs-darker, #347c7c);
  transform: scale(1.1);
}

.staff-name {
  font-size: 0.8rem;
  color: var(--bs-primary, #43afaf);
  font-weight: 500;
  white-space: nowrap;
}

/* Navigation and layout styling */
.dl-profile-nav {
  display: flex;
  position: sticky;
  top: 80px;
  z-index: 100;
  background-color: rgb(248, 249, 250);
  margin-bottom: 20px;
}

/* When sidebar is visible (user authenticated), adjust the navbar positioning */
.admin-layout .dl-profile-nav {
  position: sticky;
  top: 80px;
}

.navbar-collapse {
  display: flex !important;
}

.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-item {
  display: flex;
  align-items: center;
}

/* Clinic contact info styling */
.clinic-contact-info {
  line-height: 1.4;
}

.clinic-contact-info p {
  font-size: 0.85rem;
  font-style: italic;
}

/* Button group - connected buttons */
/* Contact modal styling */
.modal-header {
  border-bottom: 2px solid var(--bs-primary, #43afaf);
  background-color: var(--bs-primary-bg, #dcebebda);
}

.modal-title {
  color: var(--bs-primary, #43afaf);
  font-weight: 600;
}

.btn-close {
  filter: invert(1) hue-rotate(180deg) saturate(0.5);
}

.contact-detail h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-primary, #43afaf);
}

.contact-detail p {
  margin: 0;
  color: #212529;
}

.contact-detail a {
  color: var(--bs-primary, #43afaf);
  text-decoration: none;
  font-weight: 500;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
}

.nav-item .nav-link {
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border-bottom: 4px solid transparent;
  will-change: color, border-bottom-color;
}

.nav-item .nav-link:hover {
  color: var(--bs-primary);
}

.nav-item .nav-link.active {
  font-weight: bold;
  color: var(--bs-primary) !important;
  border-bottom: 4px solid var(--bs-primary) !important;
}

.section-container {
  margin-bottom: 30px;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.0); */
  border-radius: 0.5rem;
  border: 1px solid #e9ecef;
  background-color: white;
}

.section-container h4 {
  padding: 20px;
  margin: 0;
  color: #000;
  font-weight: 600;
}

.services-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.service-card {
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.service-card:hover {
  border-color: var(--bs-primary);
  background-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 175, 175, 0.2);
}

/* Clickable service card links */
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.service-card .service-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.3;
}

.service-card .service-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #6c757d;
}

.service-card .service-duration {
  font-weight: 500;
}

.service-card .service-price {
  font-weight: 600;
  color: var(--bs-primary);
}

@media (max-width: 992px) {
  .dl-profile-wrapper {
    flex-direction: column;
  }

  .admin-layout .dl-profile-nav {
    position: sticky;
    top: 70px;
  }
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card .service-name {
    font-size: 1rem;
  }

  .service-card .service-details {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .dl-profile-wrapper {
    flex-direction: column;
  }

  .appointment-container {
    position: static;
    width: 100%;
    margin-top: 0;
    max-height: none;
  }

  .dl-profile-nav {
    top: 50px;
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  .nav-item .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    padding-bottom: 0.25rem;
  }

  .nav-item .nav-link.active {
    border-bottom-width: 3px;
  }

  /* Mobile header layout */
  .profile-header .row {
    flex-direction: row;
  }

  .profile-image-col {
    flex: 0 0 auto;
  }

  .profile-image {
    border-radius: 50%;
    object-fit: cover;
  }

  .profile-info-col {
    flex: 1;
  }

  .profile-info-col h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .clinic-contact-info {
    font-size: 0.75rem;
  }

  .btn-group {
    margin-top: 1rem;
  }

  .btn-group .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  .profile-header img {
    width: 150px;
    height: 150px;
  }

  .section-container {
    border-radius: 0.4rem;
  }

  .section-container h4 {
    font-size: 1.2rem;
    padding: 15px;
  }
}

/* Addresses Tabs Styling */
.addresses-tabs-container {
  padding: 0;
}

.addresses-nav-tabs {
  border-bottom: 2px solid #e9ecef;
  padding: 0 20px;
  background-color: transparent;
}

.addresses-nav-tabs .nav-item {
  margin-bottom: -2px;
}

.addresses-nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  padding: 1rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background-color: transparent;
}

.addresses-nav-tabs .nav-link:hover {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
  background-color: transparent;
}

.addresses-nav-tabs .nav-link.active {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
  background-color: white;
  font-weight: 600;
}

.addresses-tab-content {
  padding: 30px 10px;
}

.address-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.address-info {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  border: 1px solid #e9ecef;
}

.address-icon {
  font-size: 2rem;
  color: var(--bs-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.address-details {
  flex: 1;
}

.address-phone ion-icon {
  vertical-align: middle;
}

.address-text {
  margin: 0;
  font-size: 1rem;
  color: #212529;
  line-height: 1.6;
}

.address-map {
  min-height: 300px;
  background-color: #e9ecef;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .addresses-nav-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .profile-image-col {
    margin-bottom: 0.8rem !important;
  }

  .addresses-tab-content {
    padding: 20px 15px;
  }

  .address-info {
    padding: 15px;
  }

  .address-icon {
    font-size: 1.5rem;
  }

  .address-text {
    font-size: 0.9rem;
  }
}

/* Staff Tabs Styling */
.staff-tabs-container {
  padding: 0;
}

.staff-nav-tabs {
  border-bottom: 2px solid #e9ecef;
  padding: 0 20px;
  background-color: transparent;
  display: flex;
  flex-wrap: wrap;
}

.staff-nav-tabs .nav-item {
  margin-bottom: -2px;
}

.staff-nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  padding: 1rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background-color: transparent;
}

.staff-nav-tabs .nav-link:hover {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
  background-color: transparent;
}

.staff-nav-tabs .nav-link.active {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
  background-color: white;
  font-weight: 600;
}

.staff-tab-content {
  padding: 30px 10px;
}

.staff-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.staff-photo {
  flex-shrink: 0;
}

.staff-photo img {
  width: 150px;
  height: 150px;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(67, 175, 175, 0.2);
}

.staff-description {
  font-size: 1rem;
  color: #495057;
  line-height: 1.8;
  text-align: justify;
  max-width: 800px;
}

.staff-description p {
  margin-bottom: 1rem;
}

/* Staff Information Sections */
.staff-info-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.staff-info-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.staff-info-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.staff-info-section p {
  margin-bottom: 0;
  color: #495057;
  line-height: 1.8;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .staff-nav-tabs {
    padding: 0 10px;
  }

  .staff-nav-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .staff-tab-content {
    padding: 20px 5px;
  }

  .staff-content {
    gap: 20px;
  }

  .staff-photo img {
    width: 120px;
    height: 120px;
  }

  .staff-description {
    font-size: 0.95rem;
    text-align: left;
  }
}

/* Clickable address info links */
.address-info-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.address-info-link:hover {
  text-decoration: none;
  color: inherit;
}

.address-info-link .address-text,
.address-info-link .address-phone {
  color: #212529;
}

.address-info-link .address-icon {
  color: var(--bs-primary);
}

.address-info-link .address-info {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.address-info-link:hover .address-info {
  border-color: var(--bs-primary);
  box-shadow: 0 2px 8px rgba(67, 175, 175, 0.15);
}

.address-book-hint {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bs-primary, #43afaf);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, margin-top 0.2s ease;
  margin-top: 0;
}

.address-info-link:hover .address-book-hint {
  max-height: 2em;
  margin-top: 8px;
}

/* Single-staff layout */
.staff-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 15px;
}

.staff-single-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(67, 175, 175, 0.2);
}

.staff-single-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #212529;
  text-align: center;
}

.staff-single .staff-description {
  max-width: 800px;
  width: 100%;
}

@media (max-width: 768px) {
  .staff-single-photo img {
    width: 140px;
    height: 140px;
  }

  .staff-single-name {
    font-size: 1.2rem;
  }
}

body {
  background-color: #dddddd;
}
