/* Dental Implants page CSS - full clean rewrite */

/* =========================
   Variables
========================= */
:root {
  --secondary-color: #172951;
  --secondary-navy: #24375f;
  --theme-color: #e4a86e;
  --theme-color-dark: #d4985e;
  --light-cream: #f5e6d3;
  --text-dark: #172951;
  --text-muted: #666666;
  --white: #ffffff;
}

/* =========================
   General buttons
========================= */
.btn-primary {
  background-color: var(--theme-color) !important;
  border: 1px solid var(--theme-color) !important;
  color: var(--secondary-color) !important;
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  border-radius: 50px !important;
  line-height: 1.2 !important;
  transition: all 0.3s ease !important;
}

.btn-primary:hover {
  background-color: var(--theme-color-dark) !important;
  border-color: var(--theme-color-dark) !important;
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(228, 168, 110, 0.3);
}

.btn-outline-primary {
  background: transparent !important;
  border: 1px solid var(--theme-color) !important;
  color: var(--theme-color) !important;
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  border-radius: 50px !important;
  line-height: 1.2 !important;
  transition: all 0.3s ease !important;
}

.btn-outline-primary:hover {
  background-color: var(--theme-color) !important;
  border-color: var(--theme-color) !important;
  color: var(--secondary-color) !important;
}

/* =========================
   Hero banner
========================= */
#home.hero-section,
.hero-section {
  background: #172951 !important;
  color: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 105px 0 70px !important;
  min-height: 430px !important;
}

#home.hero-section::before,
#home.hero-section::after,
.hero-section::before,
.hero-section::after {
  display: none !important;
  content: none !important;
}

#home.hero-section .hero-overlay,
.hero-section .hero-overlay {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 1 !important;

  background-image:
    linear-gradient(
      90deg,
      rgba(23, 41, 81, 1) 0%,
      rgba(23, 41, 81, 0.98) 32%,
      rgba(23, 41, 81, 0.90) 50%,
      rgba(23, 41, 81, 0.70) 100%
    ),
    url("../../images/service/teeth3.png") !important;

  background-repeat: no-repeat, no-repeat !important;
  background-position: left top, right -40px center !important;
  background-size: cover, auto 125% !important;
}

#home.hero-section .auto-container,
#home.hero-section .container,
#home.hero-section .row,
#home.hero-section [class*="col-"],
.hero-section .auto-container,
.hero-section .container,
.hero-section .row,
.hero-section [class*="col-"] {
  position: relative !important;
  z-index: 2 !important;
}

#home.hero-section .row,
.hero-section .row {
  align-items: center !important;
}

#home.hero-section h1,
.hero-section h1 {
  color: #ffffff !important;
  font-size: 3rem !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  margin-bottom: 1.35rem !important;
  max-width: 820px !important;
}

#home.hero-section .tagline,
.hero-section .tagline {
  color: #e4a86e !important;
  font-size: 1.3rem !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  margin-bottom: 1.4rem !important;
  max-width: 760px !important;
}

#home.hero-section p,
.hero-section p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.08rem !important;
  line-height: 1.72 !important;
  margin-bottom: 1.75rem !important;
  max-width: 760px !important;
}

#home.hero-section .mt-4,
.hero-section .mt-4 {
  margin-top: 1.8rem !important;
  margin-bottom: 0 !important;
  position: relative !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

#home.hero-section .btn,
.hero-section .btn {
  position: relative !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 13px 32px !important;
  border-radius: 50px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

#home.hero-section .btn-primary,
.hero-section .btn-primary {
  background: #e4a86e !important;
  border: 1px solid #e4a86e !important;
  color: #172951 !important;
}

#home.hero-section .btn-outline-primary,
.hero-section .btn-outline-primary {
  background: transparent !important;
  border: 1px solid #e4a86e !important;
  color: #e4a86e !important;
}

/* Tablet */
@media (max-width: 991px) {
  #home.hero-section,
  .hero-section {
    padding: 95px 0 70px !important;
    min-height: 390px !important;
  }

  #home.hero-section .hero-overlay,
  .hero-section .hero-overlay {
    background-position: left top, right -120px center !important;
    background-size: cover, auto 110% !important;
  }

  #home.hero-section h1,
  .hero-section h1 {
    font-size: 2.4rem !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  #home.hero-section,
  .hero-section {
    padding: 85px 0 60px !important;
    min-height: auto !important;
  }

  #home.hero-section h1,
  .hero-section h1 {
    font-size: 2.05rem !important;
  }

  #home.hero-section p,
  .hero-section p {
    font-size: 1rem !important;
  }

  #home.hero-section .hero-overlay,
  .hero-section .hero-overlay {
    background-position: left top, right -180px bottom !important;
    background-size: cover, auto 95% !important;
  }
}


/* =========================
   Section bases
========================= */
.section-white {
  background: var(--white) !important;
  padding: 80px 0 !important;
  color: var(--text-dark) !important;
}

.section-blue {
  background: var(--secondary-color) !important;
  padding: 80px 0 !important;
  color: var(--white) !important;
}

.section-light-blue {
  background: #f8f9fc !important;
  padding: 80px 0 !important;
  color: var(--text-dark) !important;
}

.section-title {
  color: var(--secondary-color) !important;
  font-size: 2.5rem !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}

.section-blue .section-title {
  color: var(--white) !important;
}

.section-subtitle {
  color: var(--text-muted) !important;
  font-size: 1.2rem !important;
  line-height: 1.6 !important;
  margin-bottom: 3rem !important;
}

.section-blue .section-subtitle {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* =========================
   Benefits list
========================= */
.benefits-section {
  background: var(--white) !important;
}

.benefits-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 800px !important;
}

.benefit-item {
  background: var(--secondary-navy) !important;
  color: var(--white) !important;
  padding: 15px 20px !important;
  border-radius: 8px !important;
  margin-bottom: 15px !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.benefit-item::before {
  content: "✓" !important;
  color: var(--theme-color) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
/* =========================
   Process section
========================= */
#process.section-blue {
  background: #172951 !important;
  padding: 60px 0 65px !important;
  color: #ffffff !important;
}

#process .text-center.mb-5 {
  margin-bottom: 70px !important;
}

#process .section-title {
  color: #e4a86e !important;
  font-size: 36px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

#process .section-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 21px !important;
  line-height: 1.3 !important;
  margin-bottom: 0 !important;
}

/* 3 cards top row, 2 cards centered below */
#process .row.g-4,
#process .row {
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  column-gap: 22px !important;
  row-gap: 14px !important;
  align-items: stretch !important;
}

#process .col-md-6.col-lg-4,
#process [class*="col-md-6"][class*="col-lg-4"] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
  display: flex !important;
}

#process .col-md-6.col-lg-4:nth-child(1),
#process .col-md-6.col-lg-4:nth-child(2),
#process .col-md-6.col-lg-4:nth-child(3) {
  grid-column: span 2 !important;
}

#process .col-md-6.col-lg-4:nth-child(4) {
  grid-column: 2 / span 2 !important;
}

#process .col-md-6.col-lg-4:nth-child(5) {
  grid-column: 4 / span 2 !important;
}

#process .process-step {
  width: 100% !important;
  min-height: 185px !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  border: none !important;
  box-shadow: none !important;
padding: 34px 26px 30px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
}

#process .process-step .step-number {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  margin: 0 0 8px 0 !important;
  border-radius: 50% !important;
  background: #e4a86e !important;
  color: #172951 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 19px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

#process .process-step h4 {
  color: #172951 !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  margin: 0 0 6px 0 !important;
  font-weight: 700 !important;
}

#process .process-step p {
  color: #666666 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

#process .mt-5 {
  margin-top: 24px !important;
}

#process .btn-primary {
  min-width: 250px !important;
  padding: 13px 30px !important;
  font-size: 16px !important;
  border-radius: 50px !important;
}

@media (max-width: 991px) {
  #process .row.g-4,
  #process .row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  #process .col-md-6.col-lg-4:nth-child(1),
  #process .col-md-6.col-lg-4:nth-child(2),
  #process .col-md-6.col-lg-4:nth-child(3),
  #process .col-md-6.col-lg-4:nth-child(4),
  #process .col-md-6.col-lg-4:nth-child(5) {
    grid-column: auto !important;
  }
}
#process .col-md-6.col-lg-4:nth-child(4),
#process .col-md-6.col-lg-4:nth-child(5) {
  margin-top: -40px !important;
}

@media (max-width: 767px) {
  #process.section-blue {
    padding: 55px 0 60px !important;
  }

  #process .row.g-4,
  #process .row {
    grid-template-columns: 1fr !important;
    max-width: 92% !important;
    row-gap: 14px !important;
  }

  #process .process-step {
    min-height: 115px !important;
  }
}

/* =========================
   Why choose section
========================= */
.why-choose-section {
  background: #f8f9fa !important;
  padding: 80px 0 !important;
}

.why-choose-title {
  color: var(--secondary-color) !important;
  font-size: 3rem !important;
  font-weight: 700 !important;
  margin-bottom: 3rem !important;
  text-align: center !important;
}

.why-choose-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.why-choose-list li {
  color: #374151 !important;
  padding: 1rem 0 !important;
  font-size: 1.1rem !important;
  border-bottom: 1px solid #e5e7eb !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 1rem !important;
}

.why-choose-list li:last-child {
  border-bottom: none !important;
}

.why-choose-list li::before {
  content: "✓" !important;
  color: var(--theme-color) !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  flex-shrink: 0 !important;
  margin-top: -2px !important;
}

.why-choose-item {
  display: flex !important;
  align-items: flex-start !important;
  margin-bottom: 1.5rem !important;
}

.why-choose-item i {
  font-size: 1.5rem !important;
  color: var(--theme-color) !important;
  margin-right: 1rem !important;
  margin-top: 0.25rem !important;
}

.why-choose-item p {
  margin: 0 !important;
  font-size: 1.1rem !important;
  color: #333333 !important;
}

.doctor-image-container {
  position: relative !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 40px rgba(23, 41, 81, 0.15) !important;
}

.doctor-image-container img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 15px !important;
}

.image-badge {
  position: absolute !important;
  bottom: 20px !important;
  left: 20px !important;
  background: var(--theme-color) !important;
  color: var(--white) !important;
  padding: 15px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* =========================
   FAQ and CTA
========================= */
.faq-section {
  background: var(--secondary-color) !important;
  padding: 80px 0 !important;
  color: var(--white) !important;
}

.faq-section .section-title {
  color: var(--white) !important;
}

.accordion-item {
  border: none !important;
  margin-bottom: 1rem !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.accordion-button {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.14) !important;
  color: var(--theme-color) !important;
}

.accordion-body {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

.cta-section {
  background: #f8f9fa !important;
  padding: 80px 0 !important;
}

.cta-card {
  background: linear-gradient(135deg, #172951 0%, #24375f 100%) !important;
  color: var(--white) !important;
  border-radius: 18px !important;
  padding: 60px 40px !important;
  text-align: center !important;
  box-shadow: 0 20px 45px rgba(23, 41, 81, 0.18) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* =========================
   Stats / testimonials
========================= */
.stats-box {
  text-align: center !important;
  padding: 2rem !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 15px !important;
  backdrop-filter: blur(10px) !important;
}

.stats-box h3 {
  font-size: 2.5rem !important;
  color: var(--theme-color) !important;
  margin-bottom: 0.5rem !important;
  font-weight: 700 !important;
}

.stats-box p {
  color: #e0e0e0 !important;
  margin: 0 !important;
  font-size: 1.1rem !important;
}

.testimonials-section {
  background: #f8f9fa !important;
  padding: 4rem 0 !important;
}

.carousel-container {
  overflow: hidden !important;
  width: 100% !important;
}

.carousel-track {
  display: flex !important;
  transition: transform 0.8s ease-in-out !important;
}

.carousel-slide {
  flex: 0 0 50% !important;
  padding: 10px !important;
}

.before-after-card {
  border-radius: 10px !important;
  overflow: hidden !important;
  position: relative !important;
}

.before-after-image img {
  width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
  display: block !important;
}

/* =========================
   Tablet
========================= */
@media (max-width: 991px) {
  #home.hero-section,
  .hero-section {
    padding: 9rem 0 70px !important;
  }

  #home.hero-section .hero-overlay,
  .hero-section .hero-overlay {
    background-image:
      linear-gradient(
        90deg,
        rgba(23, 41, 81, 0.99) 0%,
        rgba(23, 41, 81, 0.94) 52%,
        rgba(23, 41, 81, 0.78) 100%
      ),
      url("../../images/service/dental-implantss.png") !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: center center, right -120px center !important;
    background-size: cover, auto 105% !important;
  }

  #process .col-md-6.col-lg-4,
  #process [class*="col-md-6"][class*="col-lg-4"] {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    width: 45% !important;
  }
}

/* =========================
   Mobile
========================= */
@media (max-width: 767px) {
  #home.hero-section,
  .hero-section {
    padding: 90px 0 60px !important;
    min-height: auto !important;
  }

  #home.hero-section .hero-overlay,
  .hero-section .hero-overlay {
    background-image:
      linear-gradient(
        90deg,
        rgba(23, 41, 81, 0.99) 0%,
        rgba(23, 41, 81, 0.95) 100%
      ),
      url("../../images/service/dental-implantss.png") !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: center center, right -120px bottom !important;
    background-size: cover, 95% auto !important;
  }

  #home.hero-section h1,
  .hero-section h1 {
    font-size: 2rem !important;
  }

  #home.hero-section .tagline,
  .hero-section .tagline {
    font-size: 1rem !important;
  }

  #home.hero-section p,
  .hero-section p {
    font-size: 0.95rem !important;
  }

  .section-white,
  .section-blue,
  .section-light-blue,
  #process.section-blue,
  .why-choose-section,
  .faq-section,
  .cta-section {
    padding: 60px 0 !important;
  }

  .section-title,
  .why-choose-title {
    font-size: 2rem !important;
  }

  #process .row.g-4,
  #process .row {
    max-width: 340px !important;
    column-gap: 0 !important;
    row-gap: 22px !important;
  }

  #process .col-md-6.col-lg-4,
  #process [class*="col-md-6"][class*="col-lg-4"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #process .process-step {
    max-width: 330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .carousel-slide {
    flex: 0 0 100% !important;
  }
}


/* Final mobile/tablet process safety */
@media (max-width: 991px) {
  #process .col-md-6.col-lg-4,
  #process [class*="col-md-6"][class*="col-lg-4"] {
    flex: 0 0 280px !important;
    max-width: 280px !important;
    width: 280px !important;
  }
}

@media (max-width: 767px) {
  #home.hero-section .hero-overlay,
  .hero-section .hero-overlay {
    background-position: center center, right -150px bottom !important;
    background-size: cover, 90% auto !important;
  }

  #process .col-md-6.col-lg-4,
  #process [class*="col-md-6"][class*="col-lg-4"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #process .process-step {
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
