/* =========================================
   Banner & Header Styles
   ========================================= */

/* Fix for anchor link scrolling with fixed header */
html {
  scroll-padding-top: 120px; /* Adjust this value based on your header height */
}

.btn12 {
  left: 50%;
  margin-top: 80px;
  color: #ffffff !important;
}

.btn.btn-knowmore {
  color: #efc377 !important;
}

.button-85.call {
  background-color: #632963;
  border-radius: 50%;
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-85.call:hover {
  background-color: #eec277;
  transform: scale(1.05);
}

.bookBtn {
  color: #632963;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bookBtn:hover {
  color: #eec277;
}

.locat i {
  color: #632963;
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }

  .Lp_header {
    text-align: center;
    gap: 15px;
  }

  .button-85.call {
    width: 40px !important;
    height: 40px !important;
  }
}

.explore-link {
  color: #632963;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.explore-link:hover {
  color: #eec277;
  text-decoration: none;
  transform: translateX(5px);
}

.explore-link i {
  transition: transform 0.3s ease;
}

.explore-link:hover i {
  transform: translateX(3px);
}

.banner-credentials {
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  color: #4a4a4a;
  font-weight: 600;
}

.credential-item {
  display: inline-flex;
  align-items: center;
  margin-bottom: 5px;
}

.credential-item i {
  color: #632963;
  font-size: 16px;
}

.credential-separator {
  color: #ccc;
}

@media (max-width: 768px) {
  .banner-credentials {
    font-size: 13px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .credential-separator {
    display: none;
  }

  .explore-link {
    margin-top: 15px;
    display: block;
  }
}

/* =========================================
   Know Your Dermatologist Section
   ========================================= */
.know-dermatologist-section {
  background-color: #fff;
  padding: 80px 0;
  position: relative;
}

.doctor-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(99, 41, 99, 0.15);
  border: 5px solid #fff;
}

.doctor-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.doctor-image-wrapper:hover .doctor-image {
  transform: scale(1.03);
}

.doctor-info {
  padding-left: 40px;
}

.section-subtitle {
  color: #eec277;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 2px solid #eec277;
  padding-bottom: 5px;
}

.doctor-name {
  color: #632963;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
  line-height: 1.2;
}

.doctor-credentials {
  color: #555;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 25px;
  font-style: italic;
}

.doctor-credentials strong {
  color: #632963;
  font-style: normal;
  font-weight: 600;
  display: block;
  margin-top: 5px;
}

.doctor-description {
  color: #444;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 20px;
}

.btn-read-more {
  display: inline-block;
  background-color: #632963;
  color: #ffffff !important;
  padding: 12px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(99, 41, 99, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 40px;
  line-height: normal;
}

.btn-read-more:hover {
  background-color: #eec277;
  color: #632963 !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(238, 194, 119, 0.4);
  text-decoration: none;
}

.doctor-stats {
  border-top: 1px solid rgba(99, 41, 99, 0.1);
  padding-top: 40px;
}

.stat-item {
  padding: 10px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: #632963;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(99, 41, 99, 0.2);
  transition: transform 0.3s ease;
}

.stat-item:hover .icon-wrapper {
  transform: scale(1.1);
}

.icon-wrapper i {
  font-size: 24px;
  color: #eec277;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: #632963;
  margin: 0 0 5px;
  text-align: center;
}

.stat-item span {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  text-align: center;
}

@media (max-width: 991px) {
  .doctor-info {
    padding-left: 0;
    margin-top: 40px;
  }

  .doctor-name {
    font-size: 36px;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .doctor-name {
    font-size: 28px;
  }

  .doctor-credentials {
    font-size: 16px;
  }

  .doctor-description {
    text-align: left;
    font-size: 15px;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 22px;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-item span {
    font-size: 11px;
  }

  .doctor-stats {
    margin-top: 20px;
    padding-top: 30px;
  }
}

/* =========================================
   Before & After Section
   ========================================= */
.before-after-section {
  background-color: #f9f9f9;
}

.comparison-card {
  background: #fff;
  padding: 10px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.comparison-slider {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  border-radius: 10px;
  cursor: col-resize;
}

.c-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.c-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-image-wrapper.before {
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.c-image-wrapper.after {
  z-index: 1;
}

.c-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.before-label {
  left: -10px;
}

.after-label {
  right: -10px;
}

.c-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 40px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.c-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.c-circle {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  font-size: 10px;
  color: #555;
  gap: 2px;
  border: 2px solid #eec277;
}

.drag-text {
  font-size: 8px;
  text-transform: uppercase;
  font-weight: bold;
  color: #eec277;
}

.c-circle i {
  color: #555;
  font-size: 12px;
}

@media (max-width: 768px) {
  .comparison-slider {
    height: 300px;
  }
}

/* =========================================
   Owl Carousel Custom Styling
   ========================================= */
.treatments-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: calc(100% + 120px);
  left: -60px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.treatments-carousel .owl-nav button {
  pointer-events: all;
  background: #632963 !important;
  color: #fff !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0;
  border: none;
  outline: none;
}

.treatments-carousel .owl-nav button.owl-prev {
  margin-left: 0;
}

.treatments-carousel .owl-nav button.owl-next {
  margin-right: 0;
}

.treatments-carousel .owl-nav button:hover {
  background: #eec277 !important;
  transform: scale(1.1);
}

.treatments-carousel .owl-dots {
  text-align: center;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.treatments-carousel .owl-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #ddd !important;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  padding: 0;
}

.treatments-carousel .owl-dot span {
  display: none;
}

.treatments-carousel .owl-dot.active {
  background: #632963 !important;
  width: 30px;
  border-radius: 6px;
}

.treatments-carousel .treatment-list {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  height: 420px !important;
  display: flex !important;
  flex-direction: column;
}

.treatments-carousel .treatment-list .tl_box {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 25px;
}

.treatments-carousel .treatment-list .t_para {
  flex: 1;
  overflow: hidden;
  margin: 15px 0;
}

.treatments-carousel .treatment-list .t_para p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}

.owl-carousel .col-md-6 {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 15px;
  padding-right: 15px;
}

.services-sec-04 {
  position: relative;
  scroll-margin-top: 120px; /* Offset for fixed header */
}

.treatments-carousel {
  position: relative;
  padding: 0 60px;
}

@media (max-width: 991px) {
  .treatments-carousel {
    padding: 0 50px;
  }

  .treatments-carousel .owl-nav {
    width: calc(100% + 100px);
    left: -50px;
  }

  .treatments-carousel .treatment-list {
    height: auto !important;
    min-height: 380px;
  }
}

@media (max-width: 767px) {
  .treatments-carousel {
    padding: 0 40px;
  }

  .treatments-carousel .owl-nav {
    width: calc(100% + 80px);
    left: -40px;
  }

  .treatments-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* =========================================
   Floating Sidebar Styles
   ========================================= */
.floating-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.sidebar-item {
  background-color: #eadcd5;
  padding: 8px 8px 8px 12px;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  width: fit-content;
  margin-left: auto;
}

.sidebar-item:hover {
  transform: translateX(-5px);
}

.icon-circle {
  width: 45px;
  height: 45px;
  background-color: #632963;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}

.icon-circle:hover {
  color: #eec277 !important;
}

.top-footer a,
.sub-footer a {
  color: #fff;
}

@media (max-width: 768px) {
  .floating-sidebar {
    gap: 10px;
  }

  .sidebar-item {
    padding: 6px 6px 6px 10px;
  }

  .icon-circle {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

.client-logo {
  max-height: 80px;
  width: auto !important;
  margin: 0 auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.client-logo:hover {
  opacity: 1;
}

/* =========================================
   Responsive Banner Styles
   ========================================= */
@media (max-width: 768px) {
  .banerCont {
    /* padding-top: 60px !important; */
    /* Adjust for fixed header */
    margin-top: 0 !important;
  }

  .Bannercontent {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    padding: 0;
    text-align: center;
  }

  .Bannercontent h1 {
    font-size: 40px !important;
    line-height: 1.3;
    color: #632963;
  }

  .Bannercontent h4 {
    font-size: 16px !important;
    margin-bottom: 25px;
    line-height: 1.5;
    font-weight: 600;
  }

  /* Stack buttons */
  .Bannercontent .row.d-flex {
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px;
    margin: 0 !important;
  }

  .ctabtn.skinCta.rounded.mr-3 {
    margin-right: 0 !important;
    width: 100%;
    text-align: center;
    display: block;
  }

  .explore-link.ml-3 {
    margin-left: 0 !important;
    margin-top: 10px;
  }

  /* Credentials */
  .banner-credentials {
    flex-direction: column;
    align-items: center !important;
    gap: 8px;
    margin-top: 20px;
  }

  .credential-separator {
    display: none !important;
  }

  .credential-item {
    margin: 0;
    font-size: 14px;
  }
}
