/* ========================================= */
/* GOOGLE FONT */
/* ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========================================= */
/* ROOT COLORS */
/* ========================================= */

:root{

  --primary:#0ea5e9;
  --primary-dark:#0284c7;

  --secondary:#14b8a6;

  --bg:#f4fbff;
  --white:#ffffff;

  --text:#0f172a;
  --light-text:#475569;

  --border:#dbeafe;

  --card-shadow:
  0 10px 30px rgba(14,165,233,0.08);

  --hover-shadow:
  0 16px 40px rgba(14,165,233,0.18);

  --gradient:
  linear-gradient(135deg,#0ea5e9,#14b8a6);
}

/* ========================================= */
/* GLOBAL */
/* ========================================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{

  font-family:'Poppins',sans-serif;

  background:var(--bg);

  color:var(--text);

  overflow-x:hidden;
}

.container{

  max-width:1200px;

  margin:auto;

  padding:0 20px;
}

/* ========================================= */
/* HEADER */
/* ========================================= */

header{

  position:sticky;

  top:0;

  z-index:999;

  background:
  rgba(255,255,255,0.92);

  backdrop-filter:blur(14px);

  border-bottom:
  1px solid rgba(14,165,233,0.08);

  box-shadow:
  0 4px 20px rgba(0,0,0,0.04);
  
}

.nav-container{

  display:flex;

  justify-content:space-between;

  align-items:center;

  padding:18px 0;
}

.logo{
  
  font-size:28px;

  font-weight:700;

  color:var(--primary-dark);

  
}

nav ul{

  display:flex;

  gap:28px;

  list-style:none;
}

nav a{

  text-decoration:none;

  color:var(--text);

  font-weight:500;

  position:relative;

  transition:0.3s;
}

nav a:hover{

  color:var(--primary);
}

nav a::after{

  content:"";

  position:absolute;

  width:0;

  height:2px;

  left:0;

  bottom:-6px;

  background:var(--primary);

  transition:0.3s;
}

nav a:hover::after{

  width:100%;
}

/* ========================================= */
/* HERO */
/* ========================================= */

.hero{

  padding:46px 0 60px;

  background:
  linear-gradient(
    135deg,
    #f0f9ff,
    #ecfeff
  );
}

.hero-grid{

  display:grid;

  grid-template-columns:1fr 1fr;

  gap:60px;

  align-items:start;
}

.badge{

  display:inline-flex;

  align-items:center;

  gap:10px;

  background:#e0f2fe;

  color:var(--primary-dark);

  padding:12px 20px;

  border-radius:40px;

  font-weight:600;

  margin-bottom:24px;
}

.hero h2{

  font-size:2rem;

  line-height:1.2;

  margin-bottom:24px;

  color:#0f172a;
}

.hero p{

  font-size:1.05rem;

  line-height:1.9;

  color:var(--light-text);
}

/* ========================================= */
/* BUTTONS */
/* ========================================= */

.hero-buttons{

  display:flex;

  gap:15px;

  margin-top:28px;

  flex-wrap:wrap;
   
}

.btn{

  padding:15px 28px;

  border-radius:14px;

  background:var(--gradient);

  color:white;

  text-decoration:none;

  border:none;

  cursor:pointer;

  font-weight:600;

  transition:0.35s ease;

  box-shadow:
  0 10px 25px rgba(14,165,233,0.2);
}

.btn:hover{

  transform:
  translateY(-4px)
  scale(1.02);

  box-shadow:
  0 16px 35px rgba(14,165,233,0.28);
}

.btn.secondary{

  background:white;

  color:var(--primary-dark);

  border:2px solid #bae6fd;
  
}

/* ========================================= */
/* HERO RIGHT */
/* ========================================= */



.hero-image{

  position:relative;

  min-height:560px;

  border-radius:36px;

  overflow:hidden;

  background:
  linear-gradient(
    135deg,
    #0ea5e9,
    #14b8a6
  );

  box-shadow:
  0 25px 60px rgba(14,165,233,0.18);

  display:flex;

  flex-direction:column;

  justify-content:center;

  align-items:center;

  gap:28px;

  padding:40px;
  
}

/* Decorative Background Shapes */

.hero-image::before{

  content:"";

  position:absolute;

  width:280px;
  height:280px;

  border-radius:50%;

  background:
  rgba(255,255,255,0.16);

  top:-60px;
  right:-40px;
}

.hero-image::after{

  content:"";

  position:absolute;

  width:150px;
  height:150px;

  border-radius:50%;

  background:
  rgba(255,255,255,0.10);

  bottom:30px;
  left:30px;
}




/* ========================================= */
/* TIMING CARD */
/* ========================================= */

.floating-card{

  position:relative;

  z-index:2;

  width:100%;

  max-width:360px;

  background:
  rgba(255,255,255,0.96);

  padding:34px 30px;

  border-radius:28px;

  box-shadow:
  0 18px 40px rgba(0,0,0,0.12);

  animation:
  floatCard 4s ease-in-out infinite;
}

.time-icon{

  width:72px;
  height:72px;

  border-radius:22px;

  background:var(--gradient);

  display:flex;

  align-items:center;

  justify-content:center;

  margin-bottom:24px;

  box-shadow:
  0 12px 24px rgba(14,165,233,0.22);
}

.time-icon i{

  color:white;

  font-size:30px;
}

.floating-card h3{

  font-size:28px;
  

  margin-bottom:14px;

  color:#0f172a;
}

.days{

  color:#64748b;

  margin-bottom:12px;
}

.time{

  font-size:22px;

  font-weight:700;

  color:var(--primary-dark);
}

.divider{

  height:1px;

  background:#e2e8f0;

  margin:22px 0;
}

.status-badge{

  display:inline-flex;

  align-items:center;

  gap:10px;

  padding:12px 18px;

  border-radius:40px;

  background:#ecfdf5;

  color:#10b981;

  font-weight:600;
}

.dot{

  width:10px;
  height:10px;

  border-radius:50%;

  background:#10b981;

  animation:pulseDot 1.5s infinite;
}



/* ========================================= */
/* HERO STATS */
/* ========================================= */

.hero-stats{

  position:relative;

  z-index:2;

  width:100%;

  display:grid;

  grid-template-columns:
  repeat(3,1fr);

  gap:16px;
  
}

.stat-card{

  background:
  rgba(255,255,255,0.92);

  backdrop-filter:blur(10px);

  padding:24px 16px;

  border-radius:22px;

  text-align:center;

  box-shadow:
  0 10px 24px rgba(0,0,0,0.08);

  transition:0.35s ease;
}

.stat-card:hover{

  transform:
  translateY(-6px);
}

.stat-card h3{

  font-size:2rem;

  font-weight:700;

  color:#0284c7;

  margin-bottom:8px;
}

.stat-card p{

  color:#475569;

  font-size:14px;

  line-height:1.5;
}





/* Responsive */

@media(max-width:768px){

  .hero-image{

    min-height:auto;

    padding:30px 22px;
  }

  .hero-stats{

    grid-template-columns:1fr;

    margin-top:22px;
    
  }
}

/* ========================================= */
/* SECTIONS */
/* ========================================= */

section{

  padding:90px 0;
}

section h2{

  text-align:center;

  font-size:2.7rem;

  margin-bottom:50px;

  color:#0f172a;
}

/* ========================================= */
/* CARDS */
/* ========================================= */

.card,

.branch-card{

  background:white;

  padding:auto;
  

  border-radius:24px;

  box-shadow:var(--card-shadow);

  transition:0.35s ease;
}

.card:hover,

.branch-card:hover{

  transform:translateY(-8px);

  box-shadow:var(--hover-shadow);
}

.services-grid,
.review-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(260px,1fr));

  gap:28px;
}


.branch-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(300px,1fr));

  gap:28px;
}

.icon{

  font-size:3rem;

  margin-bottom:18px;
}

/* ========================================= */
/* APPOINTMENT */
/* ========================================= */

.appointment-wrapper{

  background:white;

  padding:40px;

  border-radius:28px;

  box-shadow:var(--card-shadow);
}

.appointment-form{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(240px,1fr));

  gap:20px;
}

.appointment-form input,
.appointment-form select{

  padding:16px;

  border-radius:14px;

  border:1px solid #cbd5e1;

  font-size:15px;

  outline:none;
}

.appointment-form input:focus,
.appointment-form select:focus{

  border-color:var(--primary);
}

.appointment-actions{

  margin-top:28px;

  display:flex;

  gap:18px;

  flex-wrap:wrap;
}

/* ========================================= */
/* TABLE */
/* ========================================= */

.table-container{

  overflow-x:auto;

  margin-top:30px;
}

table{

  width:100%;

  border-collapse:collapse;

  background:white;
}

th{

  background:#e0f2fe;

  color:#0f172a;
}

th,td{

  padding:16px;

  border-bottom:1px solid #e2e8f0;

  text-align:left;
}

/* ========================================= */
/* LOCATION BUTTON */
/* ========================================= */

.location-btn{

  display:inline-flex;

  align-items:center;

  gap:10px;

 

  margin-top:22px;

  padding:14px 22px;

  border-radius:14px;

  text-decoration:none;

  color:white;

  background:var(--gradient);

  font-weight:600;

  transition:0.3s ease;

  box-shadow:
  0 10px 24px rgba(14,165,233,0.18);
}

.location-btn:hover{

  transform:
  translateY(-4px)
  scale(1.03);
}

/* ========================================= */
/* FOOTER */
/* ========================================= */

footer{

  background:#e0f2fe;

  padding:10px 0 30px;
}

.footer-grid{

  display:flex;

  justify-content:space-between;

  gap:30px;

  flex-wrap:wrap;
}

footer h3,
footer h4{

  color:#0f172a;
}

footer p{

  color:#475569;

  line-height:1.8;
}

.copyright{

  text-align:center;

  margin-top:40px;

  color:#64748b;
}

/* ========================================= */
/* ANIMATIONS */
/* ========================================= */

@keyframes floatCard{

  0%{
    transform:translateY(0);
  }

  50%{
    transform:translateY(-10px);
  }

  100%{
    transform:translateY(0);
  }
}

@keyframes pulseDot{

  0%{
    transform:scale(1);
    opacity:1;
  }

  50%{
    transform:scale(1.4);
    opacity:0.5;
  }

  100%{
    transform:scale(1);
    opacity:1;
  }
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media(max-width:950px){

  .hero-grid{

    grid-template-columns:1fr;
  }

  .hero h2{

    font-size:2.6rem;
  }

  .hero-image{

    min-height:420px;
  }
}

@media(max-width:768px){

  .nav-container{

    flex-direction:column;

    gap:18px;
  }

  nav ul{

    flex-wrap:wrap;

    justify-content:center;

    gap:16px;
  }

  .hero-buttons{

    flex-direction:column;
  }

  .floating-card{

    width:90%;
  }

  section h2{

    font-size:2.2rem;
  }
}

@media(max-width:500px){

  .hero h2{

    font-size:2rem;
  }

  .appointment-wrapper{

    padding:24px;
  }
}

/* ========================================= */
/* DOCTOR SECTION (NEW - NON-INTRUSIVE) */
/* ========================================= */

/* Grid Layout */

#doctors .doctor-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(320px,1fr));

  gap:28px;

  margin-top:20px;
}

/* Card */

#doctors .doctor-card{

  display:flex;

  align-items:flex-start;

  gap:18px;
  width:fit-content;

  background:white;

  padding:24px;

  border-radius:22px;

  box-shadow:var(--card-shadow);

  transition:0.3s ease;
}

#doctors .doctor-card:hover{

  transform:translateY(-6px);

  box-shadow:var(--hover-shadow);
}

/* Image */

#doctors .doctor-image img{

  width:100px;
  height:100px;

  border-radius:16px;

  object-fit:cover;

  border:3px solid #e0f2fe;
}

/* Info */

#doctors .doctor-info{

  flex:1;
}

/* Name */

#doctors .doctor-info h3{

  font-size:20px;

  font-weight:700;

  color:#0f172a;
}

/* Degree */

#doctors .doctor-info h3 span{

  display:block;

  font-size:13px;

  font-weight:500;

  color:#64748b;

  margin-top:2px;
}

/* Role */

#doctors .doctor-role{

  margin-top:6px;

  font-weight:600;

  color:var(--primary-dark);

  font-size:14px;
}

/* Experience */

#doctors .doctor-exp{

  margin-top:4px;

  font-size:13px;

  color:#475569;
}

/* Description */

#doctors .doctor-desc{

  margin-top:10px;

  font-size:14px;

  line-height:1.6;

  color:#475569;
}

/* Button (Same style as location-btn for consistency) */

#doctors .doctor-btn{

  display:inline-flex;

  align-items:center;

  justify-content:center;

  gap:8px;

  margin-top:16px;

  padding:12px 20px;

  border-radius:12px;

  text-decoration:none;

  background:var(--gradient);

  color:white;

  font-weight:600;

  font-size:14px;

  transition:0.3s ease;

  box-shadow:
  0 10px 20px rgba(14,165,233,0.18);
}

#doctors .doctor-btn:hover{

  transform:
  translateY(-3px)
  scale(1.02);

  box-shadow:
  0 16px 30px rgba(14,165,233,0.28);
}

/* Responsive */

@media(max-width:600px){

  #doctors .doctor-card{

    flex-direction:column;

    align-items:center;

    text-align:center;
  }

  #doctors .doctor-image img{

    width:90px;
    height:90px;
  }

  #doctors .doctor-btn{

    width:100%;
  }
}


/* ========================================= */
/* REVIEW SECTION */
/* ========================================= */

.review-form{

  background:white;

  padding:24px;

  border-radius:20px;

  margin-bottom:30px;

  display:grid;

  gap:16px;

  box-shadow:var(--card-shadow);
}

.review-form input,
.review-form select,
.review-form textarea{

  padding:14px;

  border-radius:12px;

  border:1px solid #cbd5e1;

  font-family:'Poppins',sans-serif;
}

.review-form textarea{

  resize:none;

  height:100px;
}

/* Review Card */

.review-card{

  background:white;

  padding:22px;

  border-radius:20px;

  box-shadow:var(--card-shadow);

  transition:0.3s;
}

.review-card:hover{

  transform:translateY(-6px);

  box-shadow:var(--hover-shadow);
}

/* Stars */

.stars{

  color:#f59e0b;

  font-size:18px;

  margin-bottom:10px;
}

/* Name */

.review-name{

  margin-top:12px;

  font-weight:600;

  color:var(--primary-dark);
}

/* Review Action Buttons */



.review-actions button{

  padding:8px 14px;

  border:none;

  border-radius:10px;

  font-size:13px;

  cursor:pointer;

  font-weight:600;

  transition:0.3s ease;
}

.review-actions{

  margin-top:14px;
}

/* Edit Button */

.review-actions button{

  padding:8px 14px;

  border:none;

  border-radius:10px;

  font-size:13px;

  cursor:pointer;

  font-weight:600;

  background:#e0f2fe;

  color:#0284c7;

  transition:0.3s ease;
}

.review-actions button:hover{

  background:#bae6fd;

  transform:translateY(-2px);
}


#reviews .container{
  display:flex;
  flex-direction:column;
  gap:30px;
}


.status-badge{

    display:flex;

    align-items:center;

    gap:12px;

    padding:14px 18px;

    border-radius:16px;

    font-weight:600;

    line-height:1.4;
}

.status-badge strong{

    display:block;

    font-size:15px;
}

.status-badge small{

    font-size:13px;

    font-weight:500;
}

.status-badge.open{

    background:#ecfdf5;

    color:#059669;
}

.status-badge.closed{

    background:#fef2f2;

    color:#dc2626;
}

.status-badge .dot{

    width:12px;

    height:12px;

    border-radius:50%;

    flex-shrink:0;
}

.status-badge.open .dot{

    background:#10b981;
}

.status-badge.closed .dot{

    background:#ef4444;
}


.review-form.edit-mode{

    animation:
        reviewFormHighlight 1.5s ease;
}

@keyframes reviewFormHighlight{

    0%{
        box-shadow:
            0 0 0 rgba(14,165,233,0);
    }

    50%{
        box-shadow:
            0 0 35px rgba(14,165,233,0.35);
    }

    100%{
        box-shadow:
            0 0 0 rgba(14,165,233,0);
    }
}



.contact-card{

    background:#fff;

    padding:40px;

    border-radius:24px;

    box-shadow:var(--card-shadow);

    max-width:900px;

    margin:auto;
}

.contact-card h3{

    font-size:28px;

    margin-bottom:24px;

    color:var(--primary-dark);
}

.contact-card p{

    display:flex;

    align-items:flex-start;

    gap:12px;
    padding-top: 20px;

    margin-bottom:10px;

    color:#475569;

    line-height:1.7;
}

.contact-card p i{

    color:var(--primary);

    margin-top:4px;
}

.contact-actions{

    display:flex;

    gap:16px;

    flex-wrap:wrap;

    margin-top:30px;
}

.clinic-highlights{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:16px;

    margin-top:30px;
}

.highlight{

    background:#f0f9ff;

    padding:14px 18px;

    border-radius:14px;

    font-weight:500;

    color:#0f172a;
}



.about-content{

  max-width:1000px;

  margin:auto;

  color:#475569;

  line-height:1.9;
}

.about-content p{

  margin-bottom:20px;

  font-size:16px;
}

.about-content h3{

  margin-top:35px;

  margin-bottom:18px;

  color:#0284c7;

  font-size:24px;

  font-weight:700;
}

.about-list{

  list-style:none;

  padding:0;

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(280px,1fr));

  gap:14px;
}

.about-list li{

  background:#f8fbff;

  padding:14px 18px;

  border-radius:12px;

  border-left:4px solid #0ea5e9;
}

.about-highlights{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(260px,1fr));

  gap:16px;

  margin-top:15px;
}

.highlight-item{

  background:white;

  padding:16px;

  border-radius:14px;

  box-shadow:0 4px 12px rgba(0,0,0,0.06);

  font-weight:500;
}


.section-subtitle{

    max-width:850px;

    margin:0 auto 50px;

    padding-top: 0;
    direction: ltr;
    text-align: left;

    color:var(--light-text);

    font-size:17px;

    line-height:1.8;
}

.card{

    display:flex;

    flex-direction:column;
}

.card h3{

    margin-bottom:18px;

    color:var(--primary-dark);

    font-size:22px;
}

.card ul{

    list-style:none;

    padding:0;

    margin:0;
}

.card ul li{

    position:relative;

    padding-left:26px;

    margin-bottom:12px;

    color:var(--light-text);

    line-height:1.6;

    font-size:15px;
}

.card ul li::before{

    content:"✔";

    position:absolute;

    left:0;

    color:#10b981;

    font-weight:700;
}



/* ================= CLICKABLE CONTACT LINKS ================= */

.contact-link {

  color: inherit;

  text-decoration: none;

  transition:
    color 0.3s ease;

}


.contact-link:hover {

  color: #0b8f6a;

  text-decoration: underline;

}


/* ================= WHATSAPP BUTTON ================= */

.whatsapp-btn {

  background: #25d366;

  color: white;
  width: 200px;

}


.whatsapp-btn:hover {

  background: #1ebe5d;

  color: white;

}


.header-call-btn {

  margin-left: 35px;

}


/* =========================================
   HERO ACTION BUTTONS
   Compact width with increased height
========================================= */

.hero-buttons {

  display: flex;

  align-items: stretch;

  justify-content: flex-start;

  gap: 12px;

  margin-top: 28px;

  flex-wrap: nowrap;

}


/* Common size and alignment */

.hero-action-btn {

  width: 180px;

  min-height: 30px;

  margin-top: 0;

  padding: 12px 14px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  border-radius: 14px;

  font-weight: 600;

  text-decoration: none;

  text-align: start;

  line-height: 1.35;

  white-space: normal;

}


/* Text inside buttons */

.hero-action-btn span {

  display: inline-block;

}


/* Icons */

.hero-action-btn i {

  font-size: 20px;

  flex-shrink: 0;

}


/* WhatsApp */

.hero-action-btn.whatsapp-btn {

  background: #25d366;

  color: #ffffff;

}


.hero-action-btn.whatsapp-btn:hover {

  background: #1ebe5d;

  color: #ffffff;

}


/* Find Branch */

.hero-action-btn.secondary {

  background: #ffffff;

  color: var(--primary-dark);

  border: 2px solid #bae6fd;

}


/* Tablet */

@media (max-width: 950px) {

  .hero-action-btn {

    width: 140px;

  }

}


/* Mobile */

@media (max-width: 768px) {

  .hero-buttons {

    flex-direction: column;

    align-items: stretch;

    gap: 12px;

  }


  .hero-action-btn {

    width: 100%;

    min-height: 58px;

  }

}
/* ================= SERVICES ================= */

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-intro {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.service-card h4 {
  font-size: 0.95rem;
  margin: 5px 0 15px;
  color: #222;
}


/* Treatment list */

.treatment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.treatment-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 16px;
}

.treatment-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: 700;
}

.treatment-list strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.4;
  margin-bottom: 3px;
  color: #222;
}

.treatment-list span {
  display: block;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #666;
}


/* View details button */

.service-details-btn {
  margin-top: auto;
  align-self: flex-start;
  border: none;
  background: transparent;
  padding: 10px 0 0;
  font-size: 0.3rem;
  font-weight: 200;
  cursor: pointer;
  transition: 0.25s ease;
}

.service-details-btn:hover {
  transform: translateX(4px);
}


/* Mobile */

@media (max-width: 768px) {

  .service-card .icon {
    font-size: 36px;
  }

  .service-intro {
    font-size: 0.92rem;
  }

  .treatment-list li {
    margin-bottom: 14px;
  }

}

/* =========================================================
   SERVICES SECTION
   ========================================================= */

#services {
  padding: 80px 0;
}

#services .section-subtitle {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
  line-height: 1.7;
}


/* =========================================================
   SERVICES GRID

   2 cards per row on desktop gives each service category
   enough horizontal space.
   ========================================================= */

.services-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 28px;

  max-width: 1200px;

  margin: 0 auto;
}


/* =========================================================
   SERVICE CARD
   ========================================================= */

.service-card {
  display: flex;
  flex-direction: column;

  height: 100%;

  padding: 30px;

  border-radius: 18px;
}


/* =========================================================
   SERVICE ICON
   ========================================================= */

.service-card .icon {
  font-size: 42px;

  line-height: 1;

  margin-bottom: 16px;
}


/* =========================================================
   SERVICE TITLE
   ========================================================= */

.service-card h3 {
  margin: 0 0 12px;

  font-size: 1.35rem;

  line-height: 1.3;
}


/* =========================================================
   SERVICE INTRODUCTION
   ========================================================= */

.service-intro {
  margin: 0 0 22px;

  color: #666;

  font-size: 0.94rem;

  line-height: 1.6;
}


/* =========================================================
   TREATMENT HEADING
   ========================================================= */

.service-card h4 {
  margin: 0 0 15px;

  font-size: 0.92rem;

  font-weight: 700;
}


/* =========================================================
   TREATMENT LIST

   Two columns prevents the cards from becoming excessively tall.
   ========================================================= */

.treatment-list {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 8px 14px 3px ;

  list-style: none;

  padding: 0;

  margin: 0;
}


/* =========================================================
   TREATMENT ITEM
   ========================================================= */

.treatment-list li {
  position: relative;

  padding-left: 20px;

  color: #333;

  font-size: 0.91rem;

  line-height: 1.45;
}


/* Check icon */

.treatment-list li::before {
  content: "✓";

  position: absolute;

  left: 0;

  top: 0;

  font-weight: 700;
}


/* =========================================================
   VIEW DETAILS BUTTON
   ========================================================= */

.service-details-btn {
  align-self: flex-start;

  margin-top: auto;

  padding: 5px 0 0;

  border: none;

  background: transparent;
  color: darkcyan;

  font-size: 0.9rem;

  font-weight: 700;
 

  cursor: pointer;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.service-details-btn:hover {
  transform: translateX(5px);

  opacity: 0.8;
}


/* =========================================================
   SERVICE DETAILS MODAL
   ========================================================= */

.service-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;
}


/* Modal becomes visible */

.service-modal.active {
  display: flex;
}


/* =========================================================
   MODAL BACKGROUND
   ========================================================= */

.service-modal-overlay {
  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.65);

  backdrop-filter: blur(4px);
}


/* =========================================================
   MODAL CONTENT
   ========================================================= */

.service-modal-content {
  position: relative;

  z-index: 1;

  width: min(720px, 100%);

  max-height: 90vh;

  overflow-y: auto;

  padding: 35px;

  border-radius: 20px;

  background: #fff;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  animation: serviceModalIn 0.25s ease;
}


/* =========================================================
   MODAL ANIMATION
   ========================================================= */

@keyframes serviceModalIn {

  from {
    opacity: 0;

    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }

}


/* =========================================================
   MODAL CLOSE BUTTON
   ========================================================= */

.service-modal-close {
  position: absolute;

  top: 15px;

  right: 18px;

  width: 38px;

  height: 38px;

  border: none;

  border-radius: 50%;

  background: #f3f3f3;

  font-size: 25px;

  line-height: 1;

  cursor: pointer;

  transition: 0.2s ease;
}

.service-modal-close:hover {
  transform: rotate(90deg);
}


/* =========================================================
   MODAL ICON
   ========================================================= */

.service-modal-icon {
  font-size: 48px;

  margin-bottom: 12px;
}


/* =========================================================
   MODAL TITLE
   ========================================================= */

.service-modal-content h3 {
  margin: 0 50px 12px 0;

  font-size: 1.6rem;

  line-height: 1.3;
}


/* =========================================================
   MODAL INTRO
   ========================================================= */

.service-modal-intro {
  margin-bottom: 25px;

  color: #666;

  line-height: 1.7;
}


/* =========================================================
   MODAL TREATMENTS
   ========================================================= */

.service-modal-treatments {
  display: grid;

  gap: 18px;
}


/* Individual treatment */

.service-treatment-item {
  padding: 16px 18px;

  border-radius: 12px;

  background: #f7f9fa;
}


/* Treatment title */

.service-treatment-item h4 {
  margin: 0 0 6px;

  font-size: 1rem;

  line-height: 1.4;
}


/* Treatment description */

.service-treatment-item p {
  margin: 0;

  color: #666;

  font-size: 0.91rem;

  line-height: 1.6;
}


/* =========================================================
   MODAL FOOTER
   ========================================================= */

.service-modal-footer {
  margin-top: 28px;

  padding-top: 22px;

  border-top: 1px solid #eee;
}


/* =========================================================
   BOOK APPOINTMENT BUTTON
   ========================================================= */

.service-modal-book-btn {
  display: inline-block;

  padding: 12px 22px;

  border-radius: 8px;

  text-decoration: none;

  font-weight: 600;

  transition: 0.25s ease;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .services-grid {
    gap: 22px;
  }

  .service-card {
    padding: 24px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  #services {
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .treatment-list {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .service-card {
    padding: 22px;
  }

  .service-card .icon {
    font-size: 36px;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-intro {
    font-size: 0.9rem;
  }

  .service-modal-content {
    padding: 28px 22px;

    max-height: 92vh;
  }

  .service-modal-content h3 {
    font-size: 1.35rem;
  }

  .service-modal-icon {
    font-size: 40px;
  }

}

/* Appointment Details */
.appointment-details-section {
    margin-top: 30px;
}

.section-header h2 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
}

.appointment-action {
    display: flex;
    align-items: center;
}

/* ========================================= */
/* VIEW APPOINTMENT DETAILS BUTTON */
/* Same styling as Book Appointment */
/* ========================================= */

.view-appointment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 15px 28px;

  border-radius: 14px;

  background: var(--gradient);

  color: white; 

  text-decoration: none;

  border: none;

  cursor: pointer;

  font-weight: 600;

  font-size: 15px;

  transition: 0.35s ease;

  box-shadow:
    0 10px 25px rgba(14,165,233,0.2);
}

.view-appointment-btn:hover {
  transform:
    translateY(-4px)
    scale(1.02);

  box-shadow:
    0 16px 35px rgba(14,165,233,0.28);
}

/* =========================================================
   BRANCH / LOCATION CARD
   ========================================================= */

.branch-card {
  position: relative;
  display: flex;
  flex-direction: column;

  width: 100%;
  min-height: 100%;

  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 20px;

  overflow: hidden;

  box-shadow:
    0 8px 25px rgba(15, 23, 42, 0.07);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}


/* =========================================================
   BRANCH IMAGE
   ========================================================= */

.branch-image {
  width: 100%;
  height: 220px;

  display: block;

  object-fit: cover;
  object-position: center;

  background: #eaf6ff;

  transition:
    transform 0.5s ease,
    filter 0.4s ease;
}


/* Image zoom on desktop */

.branch-card:hover .branch-image {
  transform: scale(1.04);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.branch-card h3 {
  margin: 22px 22px 10px;

  color: #0f172a;

  font-size: 1.2rem;
  line-height: 1.45;
  font-weight: 700;

  letter-spacing: -0.2px;
}


/* Address */

.branch-card > span {
  display: block;

  margin: 0 22px;

  color: #64748b;

  font-size: 0.94rem;
  line-height: 1.7;
}


/* =========================================================
   LOCATION BUTTON
   ========================================================= */

.branch-card .location-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  width: calc(100% - 44px);

  min-height: 48px;

  margin: 20px 22px 22px;

  padding: 12px 18px;

  border-radius: 12px;

  background: linear-gradient(
    135deg,
    #0ea5e9,
    #0284c7
  );

  color: #ffffff;

  font-size: 0.95rem;
  font-weight: 600;

  text-decoration: none;

  box-shadow:
    0 6px 16px rgba(14, 165, 233, 0.22);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}


/* Button icon */

.branch-card .location-btn i {
  font-size: 0.95rem;

  transition:
    transform 0.25s ease;
}


/* =========================================================
   DESKTOP HOVER
   ========================================================= */

@media (min-width: 769px) {

  .branch-card:hover {
    transform: translateY(-6px);

    border-color: #bae6fd;

    box-shadow:
      0 18px 40px rgba(15, 23, 42, 0.12);
  }

  .branch-card .location-btn:hover {
    transform: translateY(-2px);

    box-shadow:
      0 10px 22px rgba(14, 165, 233, 0.30);
  }

  .branch-card .location-btn:hover i {
    transform: translateX(2px);
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

  .branch-card {
    border-radius: 18px;

    box-shadow:
      0 6px 20px rgba(15, 23, 42, 0.07);
  }

  .branch-image {
    height: 200px;

    /* Disable zoom-like behavior on touch devices */
    transform: none !important;
  }

  .branch-card h3 {
    margin: 19px 18px 9px;

    font-size: 1.08rem;
    line-height: 1.45;
  }

  .branch-card > span {
    margin: 0 18px;

    font-size: 0.91rem;
    line-height: 1.65;
  }

  .branch-card .location-btn {
    width: calc(100% - 36px);

    min-height: 48px;

    margin: 18px 18px 18px;

    border-radius: 11px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .branch-card {
    border-radius: 16px;
  }

  .branch-image {
    height: 180px;
  }

  .branch-card h3 {
    margin: 17px 16px 8px;

    font-size: 1rem;
    line-height: 1.5;
  }

  .branch-card > span {
    margin: 0 16px;

    font-size: 0.88rem;
    line-height: 1.65;
  }

  .branch-card .location-btn {
    width: calc(100% - 32px);

    min-height: 50px;

    margin: 17px 16px 16px;

    padding: 12px 15px;

    font-size: 0.9rem;

    border-radius: 11px;
  }

  .branch-card .location-btn i {
    font-size: 0.9rem;
  }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

  .branch-image {
    height: 160px;
  }

  .branch-card h3 {
    font-size: 0.96rem;
  }

  .branch-card > span {
    font-size: 0.84rem;
  }

  .branch-card .location-btn {
    font-size: 0.86rem;
  }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.branch-card .location-btn:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .branch-card,
  .branch-image,
  .branch-card .location-btn,
  .branch-card .location-btn i {
    transition: none;
  }

  .branch-card:hover {
    transform: none;
  }

  .branch-card:hover .branch-image {
    transform: none;
  }
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;

  background: rgba(255, 255, 255, 0.96);

  border-bottom: 1px solid rgba(219, 234, 254, 0.9);

  box-shadow:
    0 4px 20px rgba(15, 23, 42, 0.06);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}


/* =========================================================
   NAV CONTAINER
========================================================= */

.nav-container {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 50px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
  display: inline-flex;
  align-items: center;

  gap: 11px;

  flex-shrink: 0;

  color: inherit;
  text-decoration: none;

  outline: none;
}


/* Logo container */

.brand-logo {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 14px;

  background: #ffffff;

  overflow: hidden;

  box-shadow:
    0 5px 15px rgba(14, 165, 233, 0.10);
}


/* Actual logo */

.brand-logo img {
  width: 110%;
  height: 110%;

  display: block;

  object-fit: contain;

  padding: 3px;
 
}


/* =========================================================
   BRAND TEXT
========================================================= */

.brand-text {
  display: flex;
  flex-direction: column;

  justify-content: center;

  

  line-height: 1;
}


/* Main name */

.brand-name {
  color: #05158d;

  font-size: 1.35rem;
  font-weight: 800;

  letter-spacing: -0.5px;

  white-space: nowrap;
}


/* "n" */

.brand-name strong {
  color: #15c848;

  font-weight: 800;
}


/* Tagline */

.brand-tagline {
  margin-top: 5px;

  color: #64748b;

  font-size: 0.62rem;
  font-weight: 600;

  letter-spacing: 0.5px;

  text-transform: uppercase;

  white-space: nowrap;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-navigation {
  margin-left: auto;
}


.main-navigation ul {
  display: flex;
  align-items: center;

  gap: 4px;

  margin: 0;
  padding: 0;
  
  list-style: none;
}


.main-navigation li {
  margin: 0;
  padding: 0;
}


/* Navigation links */

.main-navigation li > a:not(.header-call-btn) {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding: 8px 11px;

  color: #334155;

  font-size: 0.88rem;
  font-weight: 600;

  text-decoration: none;

  border-radius: 9px;

  transition:
    color 0.25s ease,
    background 0.25s ease;
}


/* Hover */

.main-navigation li > a:not(.header-call-btn):hover {
  color: #0284c7;

  background: #f0f9ff;

  
}


/* Active/hover underline */

.main-navigation li > a:not(.header-call-btn)::after {
  content: "";

  position: absolute;

  left: 11px;
  right: 11px;
  bottom: 4px;

  height: 2px;

  border-radius: 10px;

  background: #0ea5e9;

  transform: scaleX(0);

  transform-origin: center;

  transition:
    transform 0.25s ease;
}


.main-navigation li > a:not(.header-call-btn):hover::after {
  transform: scaleX(1);
}


/* =========================================================
   CALL NOW BUTTON
========================================================= */

.call-nav-item {
  margin-left: 20px !important;
  
}








/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-menu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 1px solid #dbeafe;

  border-radius: 11px;

  background: #f8fcff;

  cursor: pointer;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  gap: 5px;

  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}


.mobile-menu-toggle span {
  width: 20px;
  height: 2px;

  border-radius: 5px;

  background: #0f172a;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}


.mobile-menu-toggle:hover {
  background: #f0f9ff;

  border-color: #bae6fd;
}






/* ==========================================
   FACILITIES & EQUIPMENT
   Subsection inside Our Services
========================================== */

#services .facilities-subsection {
    margin-top: 65px;
    padding-top: 42px;
    border-top: 1px solid var(--border, #dfe7f0);
}

#services .facilities-heading {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

#services .facilities-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary, #2563eb);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

#services .facilities-heading h3 {
    margin: 0 0 14px;
    color: var(--text-main, #172033);
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.3;
}

#services .facilities-heading .section-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-secondary, #64748b);
    line-height: 1.8;
}

/* Responsive equipment grid */

#services .facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Reuse the existing card design and theme variables */

#services .facility-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    padding: 0;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #dfe7f0);
    border-radius: 16px;
    box-shadow: var(--shadow-sm, 0 4px 15px rgba(15, 23, 42, 0.06));
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

#services .facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md, 0 12px 35px rgba(15, 23, 42, 0.10));
    border-color: var(--primary, #2563eb);
}

/* Consistent image area */

#services .facility-image {
    width: 100%;
    height: 190px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-alt, #eef3f9);
}

#services .facility-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#services .facility-card:hover .facility-image img {
    transform: scale(1.035);
}

/* Card text */

#services .facility-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

#services .facility-content h4 {
    margin: 0 0 10px;
    color: var(--text-main, #172033);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
}

#services .facility-content p {
    margin: 0;
    color: var(--text-secondary, #64748b);
    font-size: 0.94rem;
    line-height: 1.75;
}

/* Friendly information note */

#services .facilities-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 30px auto 0;
    padding: 16px 20px;
    color: var(--text-secondary, #64748b);
    background: var(--bg-alt, #eef3f9);
    border: 1px solid var(--border, #dfe7f0);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.7;
}

#services .facilities-note i {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--primary, #2563eb);
}

/* Tablet */

@media (max-width: 900px) {
    #services .facilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    #services .facility-image {
        height: 180px;
    }

    #services .facility-content {
        padding: 18px;
    }
}

/* Mobile */

@media (max-width: 560px) {
    #services .facilities-subsection {
        margin-top: 45px;
        padding-top: 32px;
    }

    #services .facilities-heading {
        margin-bottom: 24px;
    }

    #services .facilities-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #services .facility-card {
        max-width: 440px;
        width: 100%;
        margin-inline: auto;
    }

    #services .facility-image {
        height: 200px;
    }

    #services .facility-content {
        padding: 18px;
    }

    #services .facilities-note {
        padding: 14px;
        font-size: 0.86rem;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    #services .facility-card,
    #services .facility-image img {
        transition: none;
    }

    #services .facility-card:hover,
    #services .facility-card:hover .facility-image img {
        transform: none;
    }
}





/* =========================================
   GOOGLE REVIEWS CAROUSEL
========================================= */

.google-reviews-section {
  margin: 28px 0 52px;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid #e5eaf0;
  border-radius: 24px;
  background: linear-gradient(145deg, #f8fbff, #ffffff 65%);
  box-shadow: 0 12px 38px rgba(22, 54, 88, 0.07);
  overflow: hidden;
}

.google-reviews-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 30px;
}

.google-reviews-intro {
  flex: 1;
  min-width: 0;
}

.google-reviews-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #16816f;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.google-reviews-intro h2 {
  margin: 0 0 10px;
  color: #18334a;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.25;
}

.google-reviews-intro p {
  margin: 0;
  color: #657487;
  line-height: 1.7;
}

.google-rating-summary {
  flex: 0 0 245px;
  padding: 20px;
  border: 1px solid #e8edf3;
  border-radius: 17px;
  background: #fff;
}

.google-brand,
.google-rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.google-brand {
  color: #536274;
  font-size: 0.88rem;
  font-weight: 600;
}

.google-g {
  font-size: 1.8rem;
  font-weight: 800;
  color: #4285f4;
  font-family: Arial, sans-serif;
}

.google-rating-line {
  margin-top: 8px;
}

.google-rating-line strong {
  color: #1c3449;
  font-size: 2rem;
}

.google-stars {
  color: #f4b400;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.google-rating-summary p {
  margin: 4px 0 12px;
  color: #6b7785;
  font-size: 0.85rem;
}

.google-rating-summary a {
  color: #1769aa;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.google-rating-summary a:hover {
  text-decoration: underline;
}

.google-carousel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
}

.google-carousel-window {
  min-width: 0;
  overflow: hidden;
  padding: 4px 2px 14px;
}

.google-carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 550ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.google-review-card {
  flex: 0 0 33.333333%;
  min-width: 0;
  padding: 0 9px;
  box-sizing: border-box;
}

.google-review-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 245px;
  padding: 22px;
  box-sizing: border-box;
  border: 1px solid #e6ebf1;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(20, 50, 75, 0.045);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.google-review-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(20, 50, 75, 0.09);
}

.google-review-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.google-review-avatar {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e7f0fa;
  color: #245d8c;
  font-size: 1.05rem;
  font-weight: 800;
  overflow: hidden;
}

.google-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.google-review-author {
  min-width: 0;
}

.google-review-author strong {
  display: block;
  overflow-wrap: anywhere;
  color: #21394d;
  font-size: 0.94rem;
}

.google-review-date {
  display: block;
  margin-top: 4px;
  color: #7c8997;
  font-size: 0.76rem;
}

.google-review-rating {
  margin-bottom: 12px;
  color: #f4b400;
  font-size: 1rem;
  letter-spacing: 2px;
}

.google-review-text {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  color: #526273;
  font-size: 0.9rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.google-review-text.is-empty {
  color: #7c8997;
  font-style: italic;
}

.google-review-source {
  margin-top: auto;
  color: #788695;
  font-size: 0.75rem;
  font-weight: 600;
}

.google-carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dce5ee;
  border-radius: 50%;
  background: #fff;
  color: #24445e;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.google-carousel-arrow:hover {
  background: #183d58;
  color: #fff;
}

.google-carousel-arrow:focus-visible,
.google-carousel-dots button:focus-visible {
  outline: 3px solid #77b8ed;
  outline-offset: 3px;
}

.google-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 5px;
}

.google-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.google-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5df;
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.google-carousel-dots button.active {
  width: 23px;
  border-radius: 8px;
  background: #16816f;
}

.google-attribution {
  color: #788695;
  font-size: 0.75rem;
  text-align: right;
}

.google-review-message {
  width: 100%;
  padding: 35px 15px;
  color: #667789;
  text-align: center;
  line-height: 1.7;
}

.google-review-status {
  margin: 12px 0 0;
  color: #68798a;
  font-size: 0.82rem;
  text-align: center;
}

/* Tablet */
@media (max-width: 900px) {
  .google-reviews-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .google-rating-summary {
    flex-basis: auto;
  }

  .google-review-card {
    flex-basis: 50%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .google-reviews-section {
    margin: 22px 0 35px;
    padding: 20px 12px;
    border-radius: 17px;
  }

  .google-reviews-heading {
    gap: 20px;
    margin-bottom: 18px;
  }

  .google-carousel {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 5px;
  }

  .google-carousel-arrow {
    width: 30px;
    height: 36px;
    border-radius: 10px;
  }

  .google-review-card {
    flex-basis: 100%;
    padding: 0 3px;
  }

  .google-review-card-inner {
    min-height: 225px;
    padding: 18px;
  }

  .google-carousel-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .google-attribution {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .google-carousel-track,
  .google-review-card-inner,
  .google-carousel-arrow,
  .google-carousel-dots button {
    transition: none;
  }
}



/* Google review action buttons */

.google-review-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.google-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.google-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

.google-view-btn {
  color: #1769aa;
  background: #edf5fc;
  border: 1px solid #d7e8f7;
}

.google-rate-btn {
  color: #fff;
  background: #edf5fc;
  border: 1px solid #d7e8f7;
}

.google-rate-btn:hover {
  background: #edf5fc;
}

@media (max-width: 600px) {
  .google-review-actions {
    align-items: stretch;
  }

  .google-action-btn {
    width: 100%;
    box-sizing: border-box;
  }
}



/* =========================================================
   MOBILE MENU OPEN STATE
========================================================= */

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}


.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}


.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 1050px) {

  .nav-container {
    min-height: 70px;

    gap: 16px;
  }


  .brand-logo {
    width: 47px;
    height: 47px;
  }


  .brand-name {
    font-size: 1.18rem;
  }


  .brand-tagline {
    font-size: 0.56rem;
  }


  .main-navigation ul {
    gap: 1px;
  }


  .main-navigation li > a:not(.header-call-btn) {
    padding-left: 8px;
    padding-right: 8px;

    font-size: 0.82rem;
  }


  .header-call-btn {
    padding: 9px 12px !important;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

  .site-header {
    position: sticky;
  }


  .nav-container {
    min-height: 68px;

    padding-top: 8px;
    padding-bottom: 8px;
  }


  /* Show hamburger */

  .mobile-menu-toggle {
    display: flex;

    flex-shrink: 0;
  }


  /* Navigation becomes dropdown */

  .main-navigation {
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    width: 100%;

    margin: 0;

    background: rgba(255, 255, 255, 0.98);

    border-top: 1px solid #e0f2fe;

    box-shadow:
      0 15px 30px rgba(15, 23, 42, 0.10);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }


  /* Open */

  .main-navigation.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
  }


  .main-navigation ul {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 3px;

    padding: 12px 16px 16px;
  }


  .main-navigation li {
    width: 100%;
  }


  .main-navigation li > a:not(.header-call-btn) {
    width: 100%;

    min-height: 46px;

    justify-content: flex-start;

    padding: 11px 14px;

    font-size: 0.92rem;

    border-radius: 9px;
  }


  .main-navigation li > a:not(.header-call-btn)::after {
    display: none;
  }


  .main-navigation li > a:not(.header-call-btn):hover {
    background: #f0f9ff;
  }


  /* Call button */

  .call-nav-item {
    margin: 7px 0 0 !important;
  }


  .header-call-btn {
    width: 100%;

    min-height: 50px;

    font-size: 0.94rem !important;

    border-radius: 11px;
  }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  .nav-container {
    min-height: 64px;

    padding-left: 14px;
    padding-right: 14px;
  }


  .brand {
    gap: 8px;
  }


  .brand-logo {
    width: 43px;
    height: 43px;

    border-radius: 11px;
  }


  .brand-name {
    font-size: 1.08rem;

    letter-spacing: -0.35px;
  }


  .brand-tagline {
    max-width: 190px;

    overflow: hidden;

    text-overflow: ellipsis;

    font-size: 0.52rem;
  }


  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
  }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 360px) {

  .brand-logo {
    width: 40px;
    height: 40px;
  }


  .brand-name {
    font-size: 1rem;
  }


  .brand-tagline {
    display: none;
  }


  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.brand:focus-visible,
.mobile-menu-toggle:focus-visible,
.main-navigation a:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.30);
  outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .site-header *,
  .site-header *::before,
  .site-header *::after {
    transition: none !important;
  }
}




/* =========================================================
   CALL NOW - RECTANGULAR BUTTON
========================================================= */

.header-call-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  flex-direction: row;
  flex-wrap: nowrap;

  gap: 8px;

  width: auto;
  min-width: 112px;
  min-height: 42px;

  padding: 10px 18px !important;

  color: #ffffff !important;

  background: linear-gradient(
    135deg,
    #0ea5e9,
    #0284c7
  );

  border-radius: 9px;

  font-size: 0.87rem !important;
  font-weight: 700 !important;

  line-height: 1;
  white-space: nowrap;

  text-decoration: none;

  box-shadow:
    0 5px 14px rgba(14, 165, 233, 0.22);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.header-call-btn i {
  flex-shrink: 0;

  font-size: 0.82rem;

  transition:
    transform 0.25s ease;
}

.header-call-btn span {
  white-space: nowrap;
}


/* Hover */

.header-call-btn:hover {
  color: #ffffff !important;

  transform: translateY(-2px);

  background: linear-gradient(
    135deg,
    #0284c7,
    #0369a1
  );

  box-shadow:
    0 8px 20px rgba(14, 165, 233, 0.30);
}

.header-call-btn:hover i {
  transform: rotate(-8deg) scale(1.08);
}



/* =========================================================
   KEEP BOOK APPOINTMENT ON ONE LINE
========================================================= */

.main-navigation li > a[href="#appointments"] {
  white-space: nowrap;
  min-width: max-content;
}

/* Doctor Cards */
.doctor-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Doctor Description */
.doctor-card .doctor-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--light-text);

    /* Keep all cards visually balanced */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Keep card content aligned */
.doctor-card .doctor-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Optional: keep the experience/title section consistent */
.doctor-card .doctor-content h3 {
    margin-bottom: 6px;
}

.doctor-card .doctor-role {
    margin-bottom: 4px;
}

.doctor-card .doctor-experience {
    margin-bottom: 12px;
}

/* =========================================================
   CONTACT BRAND - LOGO + TEXT IN SAME LINE
========================================================= */

.contact-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}

/* Logo */
.contact-brand .brand-logo {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.10);
}

/* Logo image */
.contact-brand .brand-logo img {
    width: 110%;
    height: 110%;
    display: block;
    object-fit: contain;
    padding: 3px;
}

/* Text container */
.contact-brand .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

/* Main name */
.contact-brand .brand-name {
    color: #05158d;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* Green "n" */
.contact-brand .brand-name strong {
    color: #15c848;
    font-weight: 800;
}

/* Tagline */
.contact-brand .brand-tagline {
    margin-top: 5px;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.doctor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-placeholder {
    display: none;
    font-size: 70px;
    color: #94a3b8;
    align-items: center;
    justify-content: center;
}

.whatsapp-consent {
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.6;
}

.whatsapp-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.whatsapp-consent input {
  margin-top: 4px;
  flex-shrink: 0;
}

#googleReviews .google-rate-btn {
    color: #fff;
    background: #4285f4;
    border: 1px solid #4285f4;
}

#googleReviews .google-rate-btn:hover {
    background: #3367d6;
    border-color: #3367d6;
}

/* Google Review Buttons - Horizontal Layout */
.google-review-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.google-review-actions .google-action-btn {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-height: 46px;
    padding: 12px 20px;
    white-space: nowrap;
}

/* Mobile responsive layout */
@media (max-width: 600px) {
    .google-review-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .google-review-actions .google-action-btn {
        flex: 1 1 145px;
        width: auto;
        padding: 11px 12px;
        font-size: 0.8rem;
    }
}




/* Hero Google Rating */
.google-rating-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.google-rating-brand .fa-google {
    font-size: 1.1rem;
    background: conic-gradient(
        from -45deg,
        #4285F4 0deg 90deg,
        #34A853 90deg 180deg,
        #FBBC05 180deg 270deg,
        #EA4335 270deg 360deg
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.google-hero-rating h3 {
    margin-bottom: 5px;
}

.google-hero-stars {
    color: #fbbc04;
    font-size: 1.15rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.google-hero-rate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 9px;
    background: #4285f4;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.google-hero-rate-btn:hover {
    background: #2873df;
    transform: translateY(-2px);
}

.google-hero-rate > p {
    margin-top: 8px;
}


/* =========================================
   GOOGLE HERO STAT CARDS
========================================= */

.google-hero-rating,
.google-hero-rate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 7px;
}

/* Google branding */
.google-rating-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.google-rating-brand .fa-google {
    font-size: 1.15rem;
    background: conic-gradient(
        from -45deg,
        #4285F4 0deg 90deg,
        #34A853 90deg 180deg,
        #FBBC05 180deg 270deg,
        #EA4335 270deg 360deg
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Rating number */
.google-hero-rating h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
}

.rating-star {
    color: #fbbc04;
    font-size: 1.5rem;
    margin-left: 3px;
}

/* Google stars */
.google-hero-stars {
    color: #fbbc04;
    font-size: 1.15rem;
    letter-spacing: 3px;
    line-height: 1;
}

/* Supporting text */
.google-hero-rating p,
.google-hero-rate p {
    margin: 2px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Rate button */
.google-hero-rate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 15px;
    max-width: 100%;
    border-radius: 9px;
    background: #4285f4;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.25s ease;
}

.google-hero-rate-btn:hover {
    background: #2873df;
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile layout */
@media (max-width: 600px) {
    .google-hero-rating h3 {
        font-size: 1.7rem;
    }

    .google-hero-rate-btn {
        padding: 10px 11px;
        font-size: 0.76rem;
        gap: 6px;
    }

    .google-hero-rating p,
    .google-hero-rate p {
        font-size: 0.76rem;
    }
}





/* =========================================
   HERO STATS – RESPONSIVE CARD LAYOUT
========================================= */

/* Desktop and laptop */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    align-items: stretch;
}

.hero-stats .stat-card {
    width: 100%;
    min-width: 0;
    min-height: 190px;
    box-sizing: border-box;
    padding: 22px 16px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Rating card */
.google-hero-rating h3 {
    font-size: 2.3rem;
    line-height: 1.2;
    margin: 8px 0;
}

.google-hero-rating p,
.google-hero-rate p {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Feedback card */
.google-hero-rate-btn {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
}

/* =========================================
   TABLETS
========================================= */
@media (max-width: 900px) {
    .hero-stats {
        gap: 10px;
    }

    .hero-stats .stat-card {
        min-height: 175px;
        padding: 18px 12px;
    }

    .google-hero-rating h3 {
        font-size: 2rem;
    }
}

/* =========================================
   MOBILE – FULL-WIDTH HORIZONTAL CARDS
========================================= */
@media (max-width: 600px) {
    .hero-stats {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
    }

    .hero-stats .stat-card {
        min-height: 105px;
        height: auto;
        padding: 16px 20px;
        border-radius: 20px;
        display: grid;
        grid-template-columns: 1fr;
        align-content: center;
        justify-items: center;
        gap: 5px;
        text-align: center;
    }

    .google-rating-brand {
        margin-bottom: 2px;
    }

    .google-hero-rating h3 {
        font-size: 2rem;
        margin: 2px 0;
    }

    .google-hero-stars {
        font-size: 1rem;
    }

    .google-hero-rating p,
    .google-hero-rate p {
        margin: 2px 0 0;
        font-size: 0.85rem;
    }

    .google-hero-rate-btn {
        width: auto;
        min-height: 44px;
        padding: 10px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}



/* =========================================
   HERO STATS – IMPROVED DIMENSIONS
========================================= */

/* Parent container */
.hero-stats {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 8px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 0.9fr 1fr 1.35fr;
    gap: 16px;
    align-items: stretch;
}

/* Individual cards */
.hero-stats .stat-card {
    width: 100%;
    min-width: 0;
    min-height: 155px;
    padding: 18px 14px;
    box-sizing: border-box;
    border-radius: 22px;
    overflow: hidden;
}

/* Rating */
.google-hero-rating h3 {
    font-size: 2.2rem;
    margin: 5px 0;
}

.google-hero-rating p,
.google-hero-rate p {
    line-height: 1.35;
    margin: 3px 0 0;
}

/* Feedback button */
.google-hero-rate-btn {
    padding: 11px 15px;
    max-width: 100%;
    white-space: nowrap;
}

/* =========================================
   TABLET
========================================= */
@media (max-width: 900px) {
    .hero-stats {
        max-width: 100%;
        grid-template-columns: 0.9fr 1fr 1.25fr;
        gap: 10px;
        padding: 0 5px;
    }

    .hero-stats .stat-card {
        min-height: 135px;
        padding: 14px 10px;
    }

    .google-hero-rating h3 {
        font-size: 1.9rem;
    }

    .google-hero-rate-btn {
        padding: 10px 11px;
        font-size: 0.78rem;
    }
}

/* =========================================
   MOBILE – WIDER, SHORTER HORIZONTAL CARDS
========================================= */
@media (max-width: 600px) {
    .hero-stats {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        box-sizing: border-box;
    }

    .hero-stats .stat-card {
        width: 100%;
        min-width: 0;
        min-height: 88px;
        height: auto;
        padding: 12px 18px;
        border-radius: 18px;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        text-align: left;
    }

    /* Rating card content */
    .google-hero-rating .google-rating-brand {
        justify-content: flex-start;
        margin: 0;
        flex: 1;
    }

    .google-hero-rating h3 {
        font-size: 1.85rem;
        margin: 0;
        white-space: nowrap;
    }

    .google-hero-stars {
        font-size: 0.95rem;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .google-hero-rating p {
        margin: 0;
        font-size: 0.82rem;
        text-align: right;
        max-width: 115px;
    }

    /* Feedback card */
    .google-hero-rate .google-rating-brand {
        margin: 0;
        justify-content: flex-start;
    }

    .google-hero-rate-btn {
        width: auto;
        max-width: 65%;
        min-height: 42px;
        padding: 9px 12px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .google-hero-rate p {
        display: none;
    }
}

/* Extra-small phones */
@media (max-width: 380px) {
    .hero-stats {
        padding: 0 6px;
    }

    .hero-stats .stat-card {
        padding: 10px 12px;
        gap: 7px;
    }

    .google-hero-rating h3 {
        font-size: 1.6rem;
    }

    .google-hero-rating p {
        font-size: 0.74rem;
        max-width: 95px;
    }

    .google-hero-rate-btn {
        font-size: 0.7rem;
        padding: 8px;
    }
}

/* =========================================================
   MOBILE USABILITY LAYER
   Appended overrides only: preserves existing HTML,
   JavaScript functionality, section order, and desktop UI.
========================================================= */

/* Prevent accidental horizontal overflow and improve anchors
   when navigating beneath the sticky header. */
html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
}

img,
video,
iframe {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.55);
  outline-offset: 3px;
}

section[id],
footer #contact {
  scroll-margin-top: 88px;
}

/* Keep the desktop design untouched; improve tablet layout. */
@media (max-width: 850px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 999;
  }

  /* Keep brand and menu toggle in one row. */
  .site-header .nav-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 66px;
    padding: 8px 16px;
  }

  .site-header .brand {
    min-width: 0;
    max-width: calc(100% - 58px);
    gap: 9px;
  }

  .site-header .brand-text {
    min-width: 0;
  }

  .site-header .brand-name {
    font-size: clamp(1rem, 3.5vw, 1.18rem);
  }

  .site-header .brand-tagline {
    max-width: 100%;
    font-size: clamp(0.48rem, 1.7vw, 0.56rem);
    letter-spacing: 0.25px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header .mobile-menu-toggle {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Use a predictable, scrollable dropdown on smaller screens. */
  .site-header .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, 0.99);
    border-top: 1px solid #e0f2fe;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
    z-index: 1000;
  }

  .site-header .main-navigation ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
  }

  .site-header .main-navigation li {
    width: 100%;
  }

  .site-header .main-navigation li > a:not(.header-call-btn) {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    justify-content: flex-start;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .site-header .main-navigation li > a:not(.header-call-btn)::after {
    display: none;
  }

  .site-header .call-nav-item {
    margin: 6px 0 0 !important;
  }

  .site-header .header-call-btn {
    display: flex !important;
    width: 100%;
    min-height: 48px;
    justify-content: center;
    margin-left: 0;
    padding: 12px 16px !important;
  }

  /* Hero content: readable text and compact actions. */
  .hero {
    padding: 32px 0 40px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-content,
  .hero-image {
    min-width: 0;
  }

  .hero .badge {
    max-width: 100%;
    padding: 9px 14px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: normal;
  }

  .hero h2 {
    font-size: clamp(1.8rem, 5.5vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
  }

  .hero p,
  .about-content p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-action-btn {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    height: auto;
    padding: 10px 8px;
    justify-content: center;
    gap: 7px;
    font-size: 0.84rem;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .hero-action-btn i {
    flex-shrink: 0;
  }

  .hero-image {
    min-height: auto;
    padding: 24px 18px;
    gap: 18px;
    border-radius: 24px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .stat-card {
    min-width: 0;
    padding: 16px 8px;
    border-radius: 16px;
  }

  .stat-card h3 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .stat-card p {
    font-size: 0.75rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .floating-card {
    width: 100%;
    max-width: none;
    padding: 22px 20px;
    border-radius: 20px;
    animation: none;
  }

  .time-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 16px;
  }

  .time-icon i {
    font-size: 24px;
  }

  .floating-card h3 {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .time {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    overflow-wrap: anywhere;
  }

  /* Consistent section spacing and responsive headings. */
  section {
    padding: 56px 0;
  }

  section h2 {
    font-size: clamp(1.65rem, 5vw, 2.2rem);
    line-height: 1.25;
    margin: 0 auto 28px;
    padding: 0 4px;
    overflow-wrap: anywhere;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-subtitle {
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Cards stay within the viewport and have usable spacing. */
  .services-grid,
  .review-grid,
  .branch-grid,
  #doctors .doctor-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .card,
  .branch-card,
  .review-card {
    min-width: 0;
    padding: 22px;
    border-radius: 18px;
  }

  .card h3 {
    font-size: 1.2rem;
    line-height: 1.35;
  }

  .card h4 {
    line-height: 1.4;
  }

  .card ul li {
    padding-left: 24px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .service-details-btn,
  .service-modal-book-btn,
  .doctor-btn,
  .location-btn,
  .view-appointment-btn {
    min-height: 46px;
    justify-content: center;
    text-align: center;
  }

  .service-details-btn {
    max-width: 100%;
    padding: 12px 14px;
    line-height: 1.35;
  }

  /* Doctor cards: preserve content order, avoid fixed-width overflow. */
  #doctors .doctor-card {
    width: 100%;
    min-width: 0;
    padding: 20px;
    gap: 14px;
    border-radius: 18px;
  }

  #doctors .doctor-info {
    min-width: 0;
    width: 100%;
  }

  #doctors .doctor-info h3 {
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  #doctors .doctor-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  /* Appointment form: one field per row for easier mobile entry. */
  .appointment-wrapper {
    padding: 22px;
    border-radius: 20px;
  }

  .appointment-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .appointment-form input,
  .appointment-form select,
  .review-form input,
  .review-form select,
  .review-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 13px 14px;
    font-size: 16px;
    border-radius: 12px;
  }

  .appointment-form button,
  .review-form .btn,
  #appointmentDetails .view-appointment-btn {
    width: 100%;
    min-height: 48px;
    padding: 13px 16px;
    line-height: 1.35;
  }

  .review-form {
    padding: 18px;
    border-radius: 18px;
    gap: 12px;
  }

  .review-form textarea {
    min-height: 120px;
    resize: vertical;
  }

  /* Branch images and address text adapt to small screens. */
  .branch-card img,
  .branch-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
  }

  .branch-card h3,
  .branch-card span {
    overflow-wrap: anywhere;
    line-height: 1.55;
  }

  .branch-card .location-btn {
    display: flex;
    width: 100%;
    margin-top: 16px;
    padding: 12px 14px;
  }

  /* Contact section: readable address, tappable contact methods. */
  .contact-card {
    padding: 22px;
    border-radius: 20px;
  }

  .contact-card p {
    gap: 10px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .contact-card p i {
    flex: 0 0 18px;
  }

  .contact-link {
    overflow-wrap: anywhere;
  }

  .contact-brand {
    max-width: 100%;
    gap: 10px;
  }

  .contact-brand .brand-name {
    font-size: clamp(1.05rem, 4vw, 1.25rem);
  }

  .contact-brand .brand-tagline {
    white-space: normal;
    line-height: 1.35;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .contact-actions > a,
  .contact-actions .location-btn,
  .contact-actions .whatsapp-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 0;
  }

  /* Keep treatment dialog inside the viewport and allow scrolling. */
  .service-modal {
    padding: 12px;
  }

  .service-modal-content {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .service-modal-close {
    position: sticky;
    top: 0;
    z-index: 2;
    min-width: 44px;
    min-height: 44px;
  }

  .service-modal-content h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .service-modal-footer {
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: #fff;
  }

  .service-modal-book-btn {
    display: flex;
    width: 100%;
    padding: 12px 14px;
  }

  /* Tables can scroll without forcing the entire page wider. */
  .table-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 560px;
  }

  /* Reduce hover-only movement on touch-first devices. */
  .card:hover,
  .branch-card:hover,
  #doctors .doctor-card:hover,
  .review-card:hover,
  .stat-card:hover,
  .btn:hover,
  .location-btn:hover,
  #doctors .doctor-btn:hover {
    transform: none;
  }
}

/* Small phones */
@media (max-width: 480px) {
  html {
    scroll-padding-top: 76px;
  }

  section[id],
  footer #contact {
    scroll-margin-top: 76px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header .nav-container {
    min-height: 62px;
    padding: 7px 12px;
    gap: 8px;
  }

  .site-header .brand {
    gap: 7px;
    max-width: calc(100% - 50px);
  }

  .site-header .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .site-header .brand-name {
    font-size: 1rem;
    letter-spacing: -0.3px;
  }

  .site-header .brand-tagline {
    font-size: 0.46rem;
    letter-spacing: 0.1px;
  }

  .site-header .mobile-menu-toggle {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .hero {
    padding: 26px 0 32px;
  }

  .hero h2 {
    font-size: clamp(1.65rem, 7vw, 2rem);
  }

  .hero-buttons {
    gap: 8px;
  }

  .hero-action-btn {
    min-height: 58px;
    padding: 9px 5px;
    font-size: 0.76rem;
  }

  .hero-image {
    padding: 18px 12px;
    border-radius: 20px;
  }

  .hero-stats {
    gap: 6px;
  }

  .stat-card {
    padding: 13px 5px;
    border-radius: 13px;
  }

  .stat-card p {
    font-size: 0.68rem;
  }

  .floating-card {
    padding: 19px 16px;
  }

  section {
    padding: 44px 0;
  }

  section h2 {
    margin-bottom: 24px;
  }

  .card,
  .branch-card,
  .review-card,
  #doctors .doctor-card {
    padding: 18px;
  }

  .appointment-wrapper,
  .contact-card {
    padding: 16px;
  }

  .review-form {
    padding: 14px;
  }

  #doctors .doctor-image {
    width: 92px;
    height: 92px;
  }

  .service-modal-content {
    padding: 20px 14px;
  }
}

/* Very narrow phones */
@media (max-width: 360px) {
  .site-header .brand-tagline {
    display: none;
  }

  .hero-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-action-btn {
    font-size: 0.7rem;
    padding: 8px 3px;
  }

  .stat-card h3 {
    font-size: 1.15rem;
  }

  .stat-card p {
    font-size: 0.63rem;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Respect device motion preferences across the whole page. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================
   CARE N CURE - FULL-WIDTH PHOTO GALLERY
========================================= */

#gallery.gallery-section {
  padding: 50px 0 50px;
  overflow: hidden;
  background: #f7fbff;
}

.gallery-heading {
  max-width: 760px;
  margin: 0 auto 35px;
  padding: 0 15px;
  text-align: center;
}

.gallery-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #087f8c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.gallery-heading h2 {
  margin: 0 0 14px;
  color: #123047;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
   font-weight:700;
}

.gallery-heading p {
  max-width: 650px;
  margin: 0 auto;
  color: #617181;
  font-size: 16px;
  line-height: 1.8;
}

/* Full-width slider */
.gallery-slider {
  position: relative;
  width: 100%;
  height: clamp(300px, 52vw, 650px);
  overflow: hidden;
  background: #dce7ed;
  isolation: isolate;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease-in-out;
  will-change: transform;
}

.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Subtle overlay improves control visibility */
.gallery-slider::after {
  position: absolute;
  z-index: 1;
  inset: 45% 0 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, 0.35)
  );
  content: "";
  pointer-events: none;
}

/* Previous / next buttons */
.gallery-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #123047;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  transition: background 0.25s, color 0.25s;
}

.gallery-prev {
  left: 25px;
}

.gallery-next {
  right: 25px;
}

.gallery-arrow:hover {
  background: #087f8c;
  color: #fff;
}

.gallery-arrow:focus-visible,
.gallery-dot:focus-visible {
  outline: 3px solid #087f8c;
  outline-offset: 4px;
}

/* Navigation dots */
.gallery-dots {
  position: absolute;
  z-index: 3;
  bottom: 25px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
}

.gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.gallery-dot.is-active {
  width: 28px;
  border-radius: 10px;
  background: #fff;
}

/* Image counter */
.gallery-counter {
  position: absolute;
  z-index: 3;
  right: 25px;
  bottom: 22px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.gallery-counter-divider {
  opacity: 0.65;
}

/* Tablet */
@media (max-width: 768px) {
  #gallery.gallery-section {
    padding-top: 55px;
  }

  .gallery-heading {
    margin-bottom: 25px;
  }

  .gallery-slider {
    height: 390px;
  }

  .gallery-arrow {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .gallery-prev {
    left: 15px;
  }

  .gallery-next {
    right: 15px;
  }

  .gallery-dots {
    bottom: 20px;
    gap: 8px;
  }

  .gallery-counter {
    right: 15px;
    bottom: 17px;
    font-size: 12px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .gallery-heading h2 {
    font-size: 28px;

  }

  .gallery-heading p {
    font-size: 14px;
  }

  .gallery-slider {
    height: 280px;
  }

  .gallery-slide img {
    object-position: center;
  }

  .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .gallery-dots {
    bottom: 17px;
    gap: 7px;
  }

  .gallery-dot {
    width: 8px;
    height: 8px;
  }

  .gallery-dot.is-active {
    width: 22px;
  }

  .gallery-counter {
    right: 10px;
    bottom: 13px;
    font-size: 11px;
  }
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gallery-track,
  .gallery-arrow,
  .gallery-dot {
    transition: none;
  }
}



/* Gallery: prevent images from occupying the full desktop width */
.gallery-section {
    width: 100%;
    padding: 60px 24px;
    box-sizing: border-box;
}

.gallery-slider {
    width: 100%;
    max-width: 1050px; /* Limits gallery width on desktop */
    margin: 0 auto;
    height: clamp(300px, 45vw, 560px);
    overflow: hidden;
    position: relative;
    border-radius: 18px;
}

.gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Medium screens */
@media (max-width: 768px) {
    .gallery-section {
        padding: 40px 18px;
    }

    .gallery-slider {
        max-width: 100%;
        height: 380px;
        border-radius: 14px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .gallery-section {
        padding: 32px 14px;
    }

    .gallery-slider {
        height: 260px;
        border-radius: 12px;
    }
}
