.single-service .hero-section {
    height: 600px;
}

.hero-left p{
    margin-right:80px;
}

.hero-right-image img{
    max-width: 900px;
    width:880px;
    margin-right:220px;
}

.container{
    padding:0 20px;
}

.insurance-content-section .section-tag{
    color:#fff;
}

.before-after-gallery-section {
    margin-top: -230px;
    text-align: center;
}

.before-after-gallery-section .gallery-description{
    margin-bottom:30px;
}

.before-after-gallery-section .slick-slide img{
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.appointment-section .wpcf7-form-control{
    margin-top:0;
}

.appointment-section .wpcf7-form-control {
    margin-top: 10px;
}

.slick-dots{
    display:none;
}

.package-card__body .cta-btn{
    padding:12px 25px;
}

.process-section .section-tag{
    margin-bottom:10px;
}

/* =================================
   Feature Section - Badge Image Layout
================================= */

.feature-wrap{
    gap:75px;
}

.feature-content {
    max-width: 600px;
}

.feature-images--badge {
  position: relative;
}

.image-with-badge {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}

.image-with-badge .main-image {
  width: 100%;
  height: 530px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.image-with-badge .badge-image {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 155px;
  height: 155px;
  border-radius: 20px;
  object-fit: cover;
}

/* =================================
   Feature Checklist (Icon List)
================================= */

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 50px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  flex: 0 0 calc(50% - 8px);
}

.feature-checklist .check-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-checklist .check-icon svg {
  width: 20px;
  height: 20px;
}

/* =================================
   Responsive
================================= */

@media (max-width: 768px) {
  .image-with-badge .badge-image {
    width: 120px;
    height: 120px;
    bottom: -15px;
    right: -15px;
    border-width: 4px;
  }

  .feature-checklist li {
    flex: 0 0 100%;
    font-size: 16px;
  }

  .feature-checklist .check-icon {
    width: 35px;
    height: 35px;
    min-width: 35px;
  }
}

@media (max-width: 480px) {
  .image-with-badge .badge-image {
    width: 100px;
    height: 100px;
    bottom: -10px;
    right: -10px;
  }
}

/* =================================
   Process Steps Section
================================= */

.process-section {
  padding: 80px 0 60px;
  background: #F8F9FA;
}

.process-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

/* Process Steps Grid */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto 50px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.step-icon {
  width: 70px;
  height: 70px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 20px;
}

.step-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.step-connector {
  flex: 1;
  height: 1px;
  border-top: 1px dashed #E0E0E0;
  right: -20px;
  position: relative;
}

.step-content {
  text-align: left;
}

.step-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 12px;
  line-height: 1.4;
}

.step-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #000;
  margin: 0;
}

/* CTA Button */
.process-cta {
  text-align: center;
  margin-top: 40px;
}

/* =================================
   Benefits Section (Blue Box)
================================= */

.benefits-section {
  padding: 0 0 80px;
  background: #F8F9FA;
  margin-bottom: -340px;
}


.benefits-wrap {
  background: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
  border-radius: 40px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  padding: 60px;
  align-items: center;
  overflow: visible;
  position: relative;
}

/* =================================
   Tooth Mask Effect
================================= */

.packages-section{
    padding-top: 320px;
}

.packages-section.second-packages-section{
    padding-top: 0px;
    padding-bottom:80px;
}

.before-after-gallery-section .cta-wrap {
  display: flex;
  width: 100%;
  justify-content: center;
}

.benefits-image.tooth-mask {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.masked-image {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image: url('http://dentaldemo2.devbuildpro.com/wp-content/uploads/2026/01/Vector.webp');
  mask-image: url('http://dentaldemo2.devbuildpro.com/wp-content/uploads/2026/01/Vector.webp');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  object-fit: cover;
}

.tooth-icon {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
}

.tooth-icon svg {
  width: 45px;
  height: 45px;
  fill: white;
}

/* Left Image (Fallback) */
.benefits-image {
  position: relative;
}

.benefits-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Right Content */
.benefits-content {
  color: #fff;
}

.benefits-tag {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 15px;
  text-transform: capitalize;
}

.benefits-subtitle {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 40px;
  line-height: 1.4;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefits-list li {
  font-size: 16px;
  line-height: 1.7;
  color: #fff;
  font-weight:400;
  padding-left: 20px;
  position: relative;
}

.benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

/* =================================
   Responsive
================================= */

@media (max-width: 1200px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-wrap {
    grid-template-columns: 350px 1fr;
    gap: 40px;
    padding: 50px;
  }

  .benefits-image.tooth-mask {
    max-width: 380px;
  }
}

@media (max-width: 1024px) {
.before-after-gallery-section{
    margin-top:-200px;
}
}

@media (max-width: 980px) {
 .benefits-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 50px;
  }
  .feature-content{
      max-width:100%;
  }
}

@media (max-width: 824px) {
    .before-after-gallery-section {
        margin-top: -150px;
    }
}

@media (max-width: 768px) {
  .process-section {
    padding: 60px 0 40px;
  }

  .process-header .section-title {
    font-size: 32px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .step-connector {
    display: none;
  }

  .benefits-wrap {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    gap: 40px;
  }

  .benefits-image img {
    max-width: 300px;
  }

  .benefits-image.tooth-mask {
    max-width: 320px;
  }

  .tooth-icon {
    width: 40px;
    height: 70px;
    bottom: 0%;
  }

  .tooth-icon svg {
    width: 38px;
    height: 38px;
  }

  .benefits-subtitle {
    font-size: 32px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 824px) {
    .before-after-gallery-section {
        margin-top: -200px;
    }
}

@media (max-width: 480px) {
  .process-header .section-title {
    font-size: 26px;
  }

  .step-icon {
    width: 70px;
    height: 70px;
    padding: 18px;
  }

  .step-icon img {
    width: 35px;
    height: 35px;
  }

  .step-title {
    font-size: 18px;
  }

  .benefits-wrap {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .benefits-image.tooth-mask {
    max-width: 260px;
  }

  .tooth-icon {
    width: 40px;
        height: 40px;
        bottom: 9%;
  }

  .tooth-icon svg {
    width: 32px;
    height: 32px;
  }

  .benefits-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
  }
}


.packages-slider .slick-dots li button:before{
    color: #d9d9d9;
    opacity: 1;
    font-size: 14px;
    margin-top: -3px;
    margin-left: -4px;
}

.packages-slider .slick-dots li.slick-active button:before{
    color: var(--secondary-color);
    opacity: 1;
    font-size: 14px;
}

/* Before/After Gallery Section */

.before-after-gallery-section {
  padding: 00px 20px 70px;
}

.before-after-gallery-section .gallery-item {
  background: #FFF6FC;
  border-radius: 12px;
  padding: 48px 40px;
  margin-bottom: 40px;
  box-shadow: 0 0 9.2px 0 rgba(0, 0, 0, 0.11);;
}

.before-after-gallery-section .gallery-item:last-child {
  margin-bottom: 0;
}

.before-after-gallery-section .gallery-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 20px;
}

.before-after-gallery-section .gallery-description {
  font-size: 16px;
  line-height: 1.7;
  color: #000;
  margin-bottom: 16px;
  width:85%;
  margin-inline:auto;
}

.before-after-gallery-section .gallery-description p {
  margin: 0 0 12px;
}

.before-after-gallery-section .gallery-description p a {
  color: #000;
  font-size: 16px;
  text-decoration: underline;
}

.before-after-gallery-section .learn-more-text {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 32px;
}

/* Slick Carousel */
.before-after-gallery-section .slick-carousel {
  margin-bottom: 24px;
  opacity: 1;
  transition: opacity 0.3s;
  display:flex;
  flex-direction: row;
  gap: 20px;
}

/*.before-after-gallery-section .slick-carousel.slick-initialized {*/
/*  visibility: visible;*/
/*  opacity: 1;*/
/*}*/
.before-after-gallery-section .slick-slide{
    border-radius:20px;
}
.before-after-gallery-section .slick-slide img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*Hide all slides except first until carousel loads */
.before-after-gallery-section
  .slick-carousel:not(.slick-initialized)
  .slick-slide {
  display: block;
  width:50%;
}

/*.before-after-gallery-section*/
  .slick-carousel:not(.slick-initialized)
  .slick-slide:first-child {
  display: block;
}

.before-after-gallery-section .slick-initialized .slick-slide {
  display: block !important;
  visibility: visible !important;
  margin:0 5px;
}

/* Custom Carousel Dots */
.before-after-gallery-section .carousel-dots {
  text-align: center;
  margin-top: -30px;
  margin-bottom: 45px;
}

.before-after-gallery-section .carousel-dots ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  position: relative;
  justify-content: center;
  gap: 8px;
}

.before-after-gallery-section .carousel-dots li {
  margin: 0;
}

.before-after-gallery-section .carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0;
  transition: all 0.3s;
}
.before-after-gallery-section .carousel-dots .slick-dots li button:before {
  color: #d9d9d9;
  opacity: 1;
  font-size: 14px;
  margin-top: -3px;
  margin-left: -4px;
}
.before-after-gallery-section
  .carousel-dots
  .slick-dots
  li.slick-active
  button:before {
  color: var(--secondary-color);
  opacity: 1;
  font-size: 14px;
}

.before-after-gallery-section .carousel-dots li.slick-active button {
  background: transparent;
}

/* CTA Button */
.before-after-gallery-section .cta-wrap {
  text-align: center;
}

.before-after-gallery-section .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: linear-gradient(135deg, #b15092, #a03e7c);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.2s;
}

.before-after-gallery-section .cta-btn:hover {
  transform: translateY(-2px);
}