body{
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* =============================================== Hero Section =============================================== */

.gum-treatment-main-section{
    min-height: 90vh;
    width: 100%;
    margin-top: 1rem;
    background-color: #c0b9b2;
    overflow-x: hidden;
}
  
.gum-treatment-subsection{
    min-height: 90vh;
    width: 100%;
    /* background-color: transparent; */
    margin-top: 0;
    
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
  
.gum-treatment-subsection-text-part{
    width: 100%;
    max-width: 1200px;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    height: 100%;
}
  
.gum-treatment-subsection-text-part .gum-treatment-bg{
    width: 100%;
    max-width: 800px;
    padding: clamp(2rem, 5vw, 4rem);
    /* background: rgba(0,0,0,0.1); */
    border-radius: 15px;
    /* backdrop-filter: blur(5px); */
}
  
.gum-treatment-wrapper{
    width: 100%;
    height: 90vh;
    background:url(gum-treatment-bg.jpg) center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
  
.gum-treatment-subsection-text-part .gum-treatment-title{
    margin-bottom: clamp(1rem, 3vw, 2rem);
}
  
.gum-treatment-title h3{
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin: 0;
    color: white;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    letter-spacing: 0.1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
  
.gum-treatment-subsection-text-part .gum-treatment-sub-title{
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
  
.gum-treatment-sub-title p{
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-family: 'SangBleu Kingdom Light, Georgia', serif;
    letter-spacing: 0.05rem;
    color: white;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.gum-treatment-subsection-text-part .contact-btn{
 
  background-color: transparent;
  color: white;
  border: 2px solid white;
  height: 50px ;
  width: 160px;
  border-radius: 5px;
  margin-left: 30px;

}


/* .gum-treatment-subsection-text-part .contact-btn:hover{
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
  
.gum-treatment-subsection-text-part a:hover button{
    color: white;
} */

/* Mobile Adjustments for Hero Section */
@media (max-width: 768px) {
    .gum-treatment-wrapper {
        background-attachment: scroll;
    }
    
    .gum-treatment-subsection-text-part {
        padding: 0 1rem;
    }
} 
@media (min-width: 1286px){
  .gum-treatment-subsection-text-part .gum-treatment-bg{
    margin-left: 250px;
  }
}

/* =============================================== Procedure Section =============================================== */

.gum-treatment-procedure-img{
    min-height: auto;
    width: 100%;
    background-color: #ded4ca;
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 4vw, 3rem);
    overflow-x: hidden;
}

.gum-treatment-procedure-img .gum-img-cont {
    flex: 1;
    min-width: 300px;
}

.gum-img-cont {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gum-img-cont img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.gum-treatment-procedure-img .gum-treatment-procedure-content {
    flex: 1;
    min-width: 300px;
}

.gum-treatment-procedure-content h4{
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 600;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: left;
    margin: 0 0 clamp(1.5rem, 3vw, 2rem) 0;
    letter-spacing: 0.1rem;
    color: #333;
}

.gum-treatment-procedure-content p{
    margin: 0 0 clamp(1.5rem, 3vw, 2rem) 0;
    width: 100%;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    text-align: left;
    letter-spacing: 0.05rem;
    line-height: 1.7;
    color: #444;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.gum-treatment-procedure-content ol{
    margin: 0;
    padding-left: 1.5rem;
}

.gum-treatment-procedure-content ol li {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 400;
    text-align: left;
    letter-spacing: 0.05rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    color: #444;
}

/* Mobile Layout for Procedure Section */
@media (max-width: 768px) {
    .gum-treatment-procedure-img {
        flex-direction: column;
        text-align: center;
    }
    
    .gum-treatment-procedure-content h4 {
        text-align: center;
    }
    
    .gum-treatment-procedure-content p,
    .gum-treatment-procedure-content ol li {
        text-align: left;
    }
}

/* =============================================== Types Section =============================================== */

.gum-treatment-types-section{
    min-height: auto;
    width: 100%;
    background-color: #c0b9b2;
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 4vw, 3rem);
    overflow-x: hidden;
}

.gum-treatment-types-section .gum-type-img-cont {
    flex: 1;
    min-width: 300px;
    order: 2;
}

.gum-type-img-cont {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gum-type-img-cont img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.gum-treatment-types-section .gum-treatment-types-content {
    flex: 1;
    min-width: 300px;
    order: 1;
}

.gum-treatment-types-content h4{
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 600;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: left;
    margin: 0 0 clamp(1.5rem, 3vw, 2rem) 0;
    letter-spacing: 0.1rem;
    color: #333;
}

.gum-treatment-types-content p{
    margin: 0 0 clamp(1.5rem, 3vw, 2rem) 0;
    width: 100%;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    text-align: left;
    letter-spacing: 0.05rem;
    line-height: 1.7;
    color: #444;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.gum-treatment-types-content ol{
    margin: 0;
    padding-left: 1.5rem;
}

.gum-treatment-types-content ol li {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 400;
    text-align: left;
    letter-spacing: 0.05rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    color: #444;
}

/* Mobile Layout for Types Section */
@media (max-width: 768px) {
    .gum-treatment-types-section {
        flex-direction: column;
        text-align: center;
    }
    
    .gum-treatment-types-section .gum-type-img-cont {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .gum-treatment-types-content h4 {
        text-align: center;
    }
    
    .gum-treatment-types-content p,
    .gum-treatment-types-content ol li {
        text-align: left;
    }
}

/* =============================================== Before/After Images Section =============================================== */

.gum-bef-af-images{
    min-height: auto;
    width: 100%;
    background-color: #c8c2bd;
    padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 4vw, 3rem);
    overflow-x: hidden;
}

.gum-bef-cont, .gum-af-cont{
    flex: 1;
    max-width: 400px;
    min-width: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gum-bef-cont img, .gum-af-cont img{
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* Before/After Text Labels */
.bef-af-text-section{
    min-height: auto;
    width: 100%;
    background: #c8c2bd;
    padding: clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 4vw, 3rem);
}

.bef-af-text-section .bef-text,
.bef-af-text-section .af-text{
    flex: 1;
    text-align: center;
    max-width: 400px;
}

.bef-text h2, .af-text h2{
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    letter-spacing: 0.1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* Second Before/After Images */
.gum-bef-af-second-images{
    min-height: auto;
    width: 100%;
    background-color: #c8c2bd;
    padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 4vw, 3rem);
    overflow-x: hidden;
}

.gum-bef-second-cont, .gum-af-second-cont{
    flex: 1;
    max-width: 400px;
    min-width: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gum-bef-second-cont img, .gum-af-second-cont img{
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* Benefits Section */
.gum-treatment-benefits{
    min-height: auto;
    width: 100%;
    background-color: #dad3cd;
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
    overflow-x: hidden;
}

.gum-treatment-benefits h2{
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    letter-spacing: 0.1rem;
    font-weight: 600;
    margin: 0 0 clamp(2rem, 4vw, 3rem) 0;
    color: #333;
}

.gum-treatment-benefits ol{
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1.5rem;
}

.gum-treatment-benefits ol li{
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    letter-spacing: 0.05rem;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    color: #444;
}

/* Mobile Layout for Before/After Sections - Keep Side by Side */
@media (max-width: 768px) {
    .gum-bef-af-images,
    .gum-bef-af-second-images {
        flex-direction: row; /* Keep side by side even on mobile */
        text-align: center;
        gap: clamp(1rem, 2vw, 1.5rem); /* Reduce gap on mobile */
        padding: clamp(1rem, 3vw, 2rem) clamp(0.5rem, 2vw, 1rem); /* Reduce padding on mobile */
    }
    
    .gum-bef-cont, .gum-af-cont,
    .gum-bef-second-cont, .gum-af-second-cont {
        flex: 1;
        max-width: none; /* Remove max-width constraint on mobile */
        min-width: 150px; /* Reduce minimum width for mobile */
    }
    
    .bef-af-text-section {
        flex-direction: row; /* Keep side by side even on mobile */
        gap: clamp(1rem, 2vw, 1.5rem);
        padding: clamp(0.5rem, 2vw, 1rem);
    }
    
    .bef-text, .af-text {
        flex: 1;
        max-width: none;
    }
}

/* ============================================================================= Floating Elements & Mobile Optimizations =========================================================================== */

/* Ensure floating phone and WhatsApp buttons don't interfere with content */
#contact-btn .phn-no {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  padding: 10px 15px;
  background: linear-gradient(45deg, #8B4513, #A0522D);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: clamp(0.8rem, 2vw, 1rem);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#contact-btn .phn-no:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #A0522D, #8B4513);
}

.whatsapp-no {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-no a {
  display: block;
  font-size: clamp(3rem, 6vw, 5rem);
  color: #25D366;
  transition: all 0.3s ease;
}

.whatsapp-no a:hover {
  transform: scale(1.1);
}

/* Footer Responsive Adjustments */
footer {
  background: #333;
  color: white;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.last-container {
  max-width: 1200px;
  margin: 0 auto;
}

.first-footer-section {
  text-align: center;
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

.first-footer-section p {
  margin: 0.5rem 0;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.second-footer-section {
  text-align: center;
}

.second-footer-section p {
  margin: 1rem 0;
  line-height: 1.6;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
}

#add1 {
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  opacity: 0.8;
}

#address span {
  font-weight: bold;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

/* Tablet Specific Adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Adjust content for tablets */
  .gum-treatment-procedure-img,
  .gum-treatment-types-section {
    gap: 2rem;
  }
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
  /* Adjust floating buttons for mobile */
  #contact-btn .phn-no {
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
  }
  
  .whatsapp-no {
    bottom: 65px;
    right: 15px;
  }
  
  /* Hide background attachment on mobile for better performance */
  .gum-treatment-wrapper {
    background-attachment: scroll;
  }
  
  /* Ensure no horizontal scrolling */
  body {
    max-width: 100vw;
  }
  
  /* Footer adjustments */
  .first-footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Section spacing adjustments */
  .gum-treatment-procedure-img,
  .gum-treatment-types-section,
  .gum-bef-af-images,
  .gum-bef-af-second-images,
  .gum-treatment-benefits {
    padding: clamp(2rem, 4vw, 3rem) clamp(0.5rem, 2vw, 1rem);
  }
}

@media (max-width: 480px) {
  /* Further mobile optimizations */
  .gum-treatment-subsection-text-part {
    padding: 0 0.5rem;
  }
  
  /* Adjust floating buttons for very small screens */
  #contact-btn .phn-no {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
  
  /* Reduce spacing on very small screens */
  .gum-treatment-procedure-img,
  .gum-treatment-types-section,
  .gum-bef-af-images,
  .gum-bef-af-second-images,
  .gum-treatment-benefits {
    padding: 1.5rem 0.5rem;
  }
  
  /* Ensure before/after images stay side by side on very small screens */
  .gum-bef-af-images,
  .gum-bef-af-second-images {
    flex-direction: row;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    padding: clamp(0.5rem, 2vw, 1rem) clamp(0.3rem, 1.5vw, 0.5rem);
  }
  
  .gum-bef-cont, .gum-af-cont,
  .gum-bef-second-cont, .gum-af-second-cont {
    min-width: 120px;
  }
  
  .bef-af-text-section {
    flex-direction: row;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    padding: clamp(0.3rem, 1.5vw, 0.5rem);
  }
}

/* Extra small screens - ensure before/after images stay side by side */
@media (max-width: 360px) {
  .gum-bef-af-images,
  .gum-bef-af-second-images {
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem 0.3rem;
  }
  
  .gum-bef-cont, .gum-af-cont,
  .gum-bef-second-cont, .gum-af-second-cont {
    min-width: 100px;
  }
  
  .bef-af-text-section {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem 0.3rem;
  }
  
  .bef-text h2, .af-text h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
  }
}

/* Landscape phone adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .gum-treatment-wrapper {
    height: 100vh;
  }
  
  .gum-treatment-subsection {
    min-height: 100vh;
  }
}

/* Performance optimization - reduce animations on mobile */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gum-treatment-title h3,
  .gum-treatment-sub-title p {
    text-shadow: 2px 2px 0 #000;
  }
}

/* Print styles */
@media print {
  .whatsapp-no,
  #contact-btn {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .gum-treatment-wrapper {
    background: none !important;
  }
}

@media (max-width: 768px) {
    .gum-treatment-main-section {
        padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
    }
    
    .gum-treatment-before-after-container {
        flex-direction: row;
        gap: clamp(1rem, 2vw, 1.5rem);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gum-treatment-before-container,
    .gum-treatment-after-container {
        width: calc(50% - clamp(0.5rem, 1vw, 0.75rem));
        min-width: 250px;
        max-width: 300px;
    }
    
    .gum-treatment-before-images-content,
    .gum-treatment-after-images-content {
        height: clamp(200px, 35vh, 280px);
    }
    
    .gum-treatment-label {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        padding: clamp(0.4rem, 1.2vw, 0.8rem) clamp(0.8rem, 2vw, 1.5rem);
    }
}

@media (max-width: 480px) {
    .gum-treatment-main-section {
        padding: clamp(1rem, 3vw, 1.5rem) clamp(0.8rem, 2.5vw, 1rem);
    }
    
    .gum-treatment-before-after-container {
        gap: clamp(0.8rem, 1.5vw, 1rem);
    }
    
    .gum-treatment-before-container,
    .gum-treatment-after-container {
        width: calc(50% - clamp(0.4rem, 0.75vw, 0.5rem));
        min-width: 200px;
        max-width: 250px;
    }
    
    .gum-treatment-before-images-content,
    .gum-treatment-after-images-content {
        height: clamp(180px, 30vh, 250px);
    }
    
    .gum-treatment-label {
        font-size: clamp(0.8rem, 2vw, 1rem);
        padding: clamp(0.3rem, 1vw, 0.6rem) clamp(0.6rem, 1.5vw, 1.2rem);
    }
}