:root {
  --primary-color: #c5a059;
  /* Gold from Logo */
  --primary-light: #e0c28d;
  --primary-dark: #91723a;
  --secondary-color: #111111;
  /* Black from Logo */
  --accent-color: #c5a059;
  --text-dark: #212121;
  --text-muted: #666666;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 4px 6px rgba(197, 160, 89, 0.1);
  --shadow-hover: 0 10px 20px rgba(197, 160, 89, 0.15);
}

* {
  text-decoration: none !important;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Outfit", sans-serif;
}

/* Medical Preloader Redesign */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.medical-loader {
  position: relative;
  width: 60px;
  height: 60px;
  animation: rotate-loader 4s linear infinite;
}

.plus-v, .plus-h {
  position: absolute;
  background-color: var(--primary-color);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

.plus-v {
  width: 12px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  animation: pulse-v 1.5s ease-in-out infinite;
}

.plus-h {
  width: 100%;
  height: 12px;
  top: 50%;
  transform: translateY(-50%);
  animation: pulse-h 1.5s ease-in-out infinite;
}

@keyframes rotate-loader {
  100% { transform: rotate(360deg); }
}

@keyframes pulse-v {
  0%, 100% { height: 70%; opacity: 0.7; }
  50% { height: 100%; opacity: 1; }
}

@keyframes pulse-h {
  0%, 100% { width: 70%; opacity: 0.7; }
  50% { width: 100%; opacity: 1; }
}

/* Navbar Enhancement */
.navbar {
  transition: var(--transition);
  padding: 1rem 0;
  background-color: var(--white) !important ;
}

.brand_logo, .footer_logo {
  height: 80px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  position: relative;
  margin: 0 10px;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.btn-book {
  background-color: var(--primary-color) !important;
  border: none;
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  color: white !important;
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: inline-block;
  text-decoration: none !important;
}

.btn-book:hover {
  background-color: var(--primary-dark) !important;
  color: white !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-book:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-book:focus {
  outline: none;
}

@media (max-width: 991px) {
  .navbar {
    background-color: var(--secondary-color) !important;
  }
  .nav-link {
    color: var(--white) !important;
  }
  .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2) !important;
  }
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }
  .navbar .btn-book {
    margin-top: 15px;
    margin-bottom: 20px;
  }
}

/* Hero Slider Styles */
.hero-wrapper {
  overflow: hidden;
  position: relative;
}

.hero-item {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.slide-1::before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
    url("../images/hero-section.webp");
}

.slide-2::before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),
    url("../images/banner2.webp");
  transform: scaleX(-1); /* Flips the image to bring doctor to the right */
}

.min-vh-85 {
  min-height: 85vh;
}

/* Unified Custom Owl Dots */
.owl-theme .owl-nav.disabled+.owl-dots {
    margin-top: 20px;
}
.hero-carousel .owl-dots,
.testimonials-carousel .owl-dots {
  position: absolute;
  bottom: 40px;
  width: 100%;
  text-align: center;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonials-carousel .owl-dots {
  position: relative;
  bottom: 0;
  margin-top: 30px;
}

.hero-carousel .owl-dot,
.testimonials-carousel .owl-dot {
  outline: none !important;
}

.hero-carousel .owl-dot span,
.testimonials-carousel .owl-dot span {
  width: 12px !important;
  height: 12px !important;
  background: rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin: 0 8px !important;
  display: block;
  transition: all 0.4s ease !important;
  border-radius: 50%;
}

.testimonials-carousel .owl-dot span {
  background: rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-carousel .owl-dot.active span,
.testimonials-carousel .owl-dot.active span {
  background: var(--primary-color) !important;
  width: 35px !important;
  border-radius: 10px !important;
  border-color: var(--primary-color);
}

/* Hero Button Refinement */
.btn_primary {
  background-color: var(--primary-color);
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  color: white !important;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn_primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cstm_btn {
  border: 2px solid white;
  color: white !important;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
}

.cstm_btn:hover {
  background: white;
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

/* Hero Slide Animation Classes should be here if needed */

.hero-heading {
  font-size: 3.5rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.hero-subheading {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeInUp 1s ease;
}

/* Premium Section Headings */
.section-title {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-title p:first-of-type {
  color: var(--primary-color) !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: block;
}

.section-title h2 {
  font-size: 40px;
  font-weight: 600;
  color: #333; /* Pure professional dark grey */
  margin-bottom: 25px;
  position: relative;
  display: block;
  letter-spacing: -1px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: var(--primary-color);
  border-radius: 5px;
}

.section-title.text-start {
  text-align: left;
  border-left: none;
  padding-left: 0;
}

.section-title.text-start h2 {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.section-title.text-start h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  transform: none;
  width: 120px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 3px;
}

.section-title.text-start p {
  color: var(--primary-color) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 35px; /* Space for the underline bar */
  display: block;
}

@media (max-width: 768px) {
  .section-title.text-start h2,.section-title h2 {
    font-size: 30px;
  }
  .section-title.text-start h2::after {
    width: 80px;
  }
}

/* Cards & Components */
.treatment-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(197, 160, 89, 0.1);
  height: 100%;
  box-shadow: var(--shadow);
}

.treatment-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.treatment-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* About Preview Section */

.cstm_about {
  max-height: 450px;
}

.cstm_about_text {
  max-width: 800px;
  font-size: 1.2rem;
}

/* Before / After Gallery */
.gallery-item {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-image {
  transition: var(--transition);
  width: 100%;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* cts section */
.cstm_cta {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/vactor.webp);
  background-size: cover;
  background-position: right;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Footer Premium Styling */
.footer {
  background: #0a0a0a;
  color: #eeeeee;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  padding: 60px 0px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(197, 160, 89, 0.05),
    transparent 40%
  );
  pointer-events: none;
}

.brand-footer {
  color: var(--primary-color);
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.footer-links h6 {
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 30px;
  position: relative;
}

.footer-links h6::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 15px;
  transition: all 0.4s ease;
  position: relative;
  padding-left: 0;
}

.footer-links a:hover {
  color: var(--primary-color) !important;
  padding-left: 10px;
  letter-spacing: 0.5px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 50%;
  margin-right: 15px;
  color: #fff !important;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a:hover {
  background: var(--primary-color);
  color: #0a0a0a !important;
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.contact-icon-box {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.contact-icon-box:hover {
  color: #fff;
}

.contact-icon-box i {
  color: var(--primary-color);
  width: 35px;
  font-size: 1.1rem;
}

.cstm_banner {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/doctor-bg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* WhatsApp Button Styling (See .whatsapp-submit-btn) */

/* Contact Page Icon Styling */
.contact-item-group {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none !important;
}

.contact-icon-wrapper {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--primary-color);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(197, 160, 89, 0.2);
  flex-shrink: 0;
}

.contact-icon-wrapper i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

/* Sync icon and text hover - only when cursor is on the items */
.contact-item-group:hover .contact-icon-wrapper {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
  border-color: var(--primary-color);
}

.contact-item-group:hover .contact-text {
  color: var(--primary-color) !important;
}

.contact-text {
  transition: color 0.3s ease;
}

/* Floating Buttons Styling */
.floating-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none !important;
}

.floating-btn:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp {
  background: #25d366;
  animation: pulse-wa 2s infinite;
}

.btn-back-to-top {
  background: var(--primary-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.btn-back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-soft {
  background-color: var(--bg-light);
}

/* Testimonials Equal Height Fix */
.testimonials-carousel {
  display: block;
  overflow: visible !important;
}

.testimonials-carousel .owl-stage-outer {
  padding: 40px 10px !important;
  margin: -40px -10px !important;
}

.testimonials-carousel .owl-stage {
  display: flex;
}

.testimonials-carousel .owl-item {
  display: flex !important;
}

.testimonial-card {
  padding: 50px 40px;
  border-radius: 24px;
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(197, 160, 89, 0.2);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(197, 160, 89, 0.12);
  border-color: var(--primary-color);
  z-index: 10;
}

.quote_icon_left {
  position: absolute;
  top: 25px;
  left: 25px;
  font-size: 24px;
  color: var(--primary-color);
  opacity: 0.5;
}

.quote_icon_right {
  position: absolute;
  bottom: 25px;
  right: 25px;
  font-size: 24px;
  color: var(--primary-color);
  opacity: 0.5;
}

.testimonial-text {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
  padding: 0 10px;
  flex-grow: 1;
}

.avatar-placeholder {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 6px 15px rgba(197, 160, 89, 0.3);
}

/* Why Choose Us Premium Cards */
.why_choose_bg {
    background-color: #0a0a0a;
}
.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: 20px;
  height: 100%;
  transition: var(--transition);
}

.feature-card:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-7px);
}

.feature-icon {
  background: rgba(197, 160, 89, 0.15);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary-color);
  color: white !important;
  transform: rotateY(360deg);
}

.feature-card:hover .feature-icon i {
  color: white !important;
}


.ls-2 {
  letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-heading {
    font-size: 2.5rem;
  }

  .hero-subheading {
    font-size: 1.2rem;
  }
}
/* all sapces */
.about-preview,
.gallery-section,
.why-us {
  margin: 60px 0px 60px 0px;
  overflow: hidden;
}

.testimonials {
  margin: 60px 0px 60px 0px;
  padding: 60px 0; /* Plenty of room for cards */
}
.services {
  padding: 40px 0px;
}

.why-us {
  padding: 40px 0px;
}
.cstm_more {
  margin-bottom: 60px;
  padding: 40px 0px;
}

/* Appointment Page Redesign */
.appointment-section {
  background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
  min-height: 600px;
}

.appointment-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.appointment-info-panel {
  background:
    linear-gradient(rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.9)),
    url("../images/vactor.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating > .form-select {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-control,
.form-select {
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.1);
}

.whatsapp-submit-btn {
  background: #25d366;
  border: none;
  border-radius: 12px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.whatsapp-submit-btn:hover {
  background: #128c7e;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.form-floating > label {
  color: var(--text-muted);
}

@media (max-width: 767.98px) {
  .appointment-info-panel {
    padding: 30px !important;
  }
}
@media (max-width: 1025px) {
  .cstm_map {
    max-height: 300px;
  }
}
