/* =====================================================
   HERO CAROUSEL
===================================================== */

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7; /* Adjust height dynamically to fit screen width */
  height: auto;
  overflow: hidden;
  user-select: none;
  background: #f4fbf8;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* Removed the dark gradient overlay to keep images vibrant */
.slide::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 750px;
  padding-top: 210px;
  padding-left: 80px;
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.6s ease 0.2s;
}

.slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-content h1 {
  font-size: 50px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #0F6B45;
  color: white !important;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 107, 69, 0.3);
}

.hero-btn:hover {
  background: #177245;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(15, 107, 69, 0.45);
}

/* Slider Arrow Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider-arrow:hover {
  background: #0F6B45;
  border-color: #0F6B45;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 24px;
}

.slider-next {
  right: 24px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  border-radius: 30px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  width: 28px;
  border-radius: 12px;
  background: #25D366;
}

@media (max-width:768px){

  .hero-slider{
      aspect-ratio: 16 / 7;
      height: auto;
      background: #f4fbf8;
  }

  .hero-content{
      padding: 95px 20px 0;
      max-width: 100%;
  }

  .hero-content h1{
      font-size: 26px;
      line-height: 1.3;
      margin-bottom: 12px;
  }

  .hero-content p{
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 20px;
  }

  .slider-arrow {
      width: 38px;
      height: 38px;
      font-size: 14px;
  }

  .slider-prev {
      left: 10px;
  }

  .slider-next {
      right: 10px;
  }

  .slider-dots {
      bottom: 16px;
  }
}
/* =========================================================
   SERVICES SECTION (ENHANCED, BULLETPROOF)
   ========================================================= */

.services {
  padding: 90px 40px;
  background: var(--white);
}

.services h2 {
  text-align: center;
  font-size: 34px;
  color: var(--green-dark);
  letter-spacing: 0.2px;
}

.services-subtitle {
  max-width: 780px;
  margin: 10px auto 55px;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.6;
}
/* ======================================
   VIEW ALL TREATMENTS BUTTON
====================================== */

.services-footer{

    text-align:center;

    margin-top:50px;
}

.view-all-treatments-btn{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:16px 34px;

    background:linear-gradient(
        135deg,
        #0f6b45,
        #1c8c5c
    );

    color:#fff;

    border-radius:50px;

    font-size:16px;

    font-weight:600;

    text-decoration:none;

    transition:.3s ease;
}

.view-all-treatments-btn:hover{

    transform:translateY(-3px);

    box-shadow:
    0 12px 30px rgba(15,107,69,.25);
}

.view-all-treatments-btn i{

    transition:.3s ease;
}

.view-all-treatments-btn:hover i{

    transform:translateX(4px);
}
/* ===============================
   GRID
================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ===============================
   SERVICE CARD
================================ */

.service-card {
  position: relative; /* REQUIRED for clickable overlay */
  background: #ffffff; border: 1.5px solid rgba(15, 107, 69, 0.25);
  padding: 34px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  cursor: pointer;
  overflow: hidden; /* prevents pseudo-element overflow */
}

/* Hover lift */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

/* Title */
.service-card h3 {
  color: var(--green-dark);
  margin-bottom: 10px;
  font-size: 18px;
  position: relative;
  z-index: 2;
}

/* Text */
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* ===============================
   FULL-CARD CLICKABLE LINK
   (SAFE OVERLAY METHOD)
================================ */

.service-card .service-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
}

/* Keyboard accessibility */
.service-card .service-link:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

/* ===============================
   VISUAL HINT (OPTIONAL ARROW)
================================ */

.service-card::after {
  content: "→";
  position: absolute;
  bottom: 18px;
  right: 20px;
  font-size: 18px;
  color: var(--green-dark);
  opacity: 0.35;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.service-card:hover::after {
  transform: translateX(4px);
  opacity: 0.6;
}

/* ===============================
   REDUCED MOTION SUPPORT
================================ */

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card::after {
    transition: none;
  }
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services {
    padding: 70px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   DOCTORS SECTION
   ========================================================= */


.doctors {
  padding: 80px 40px;
  background: #f4fbf8;
  text-align: center;
}

.doctors h2 {
  font-size: 34px;
  color: #0f6b45;
  margin-bottom: 50px;
}

/* GRID CENTER FIX */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 320px));
  justify-content: center;   
  gap: 40px;
}

.doctor-card {
  background: #ffffff;
  padding: 35px 25px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  text-align: center;       
}

.doctor-card:hover {
  transform: translateY(-6px);
}

.doctor-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;      
  display: block;
  border: 4px solid #e6f3ee;
}

.doctor-card h3 {
  font-size: 20px;
  color: #0f6b45;
  margin-bottom: 6px;
}

.doctor-qualification {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.doctor-exp {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.doctor-reg {
  font-size: 13px;
  color: #777;
}

/* ======================================
   TESTIMONIAL SHOWCASE
====================================== */

.testimonials-showcase{
    padding:90px 0;
    background:#faf8f5;
}

.testimonial-heading{
    max-width:900px;
    margin:auto;
    text-align:center;
    padding:0 20px;
}

.section-tag{
    display:inline-block;
    color:var(--green-main);
    font-weight:600;
    margin-bottom:12px;
}

.testimonial-heading h2{
    font-size:48px;
    color:#1f1f1f;
    margin-bottom:20px;
}

.testimonial-heading p{
    font-size:18px;
    line-height:1.8;
    color:#666;
    max-width:850px;
    margin:auto;
}

/* Toggle */

.testimonial-toggle{

    display:flex;

    width:max-content;

    margin:40px auto;

    background:#e8f3ed;

    border-radius:999px;

    padding:6px;
}

.toggle-btn{

    border:none;

    background:transparent;

    color:var(--green-dark);

    padding:14px 34px;

    border-radius:999px;

    cursor:pointer;

    font-weight:700;

    transition:
    background .3s ease,
    color .3s ease,
    transform .2s ease;
}

.toggle-btn:hover{

    transform:translateY(-2px);
}

.toggle-btn.active{

    background:var(--green-dark);

    color:#fff;
}

.patient-videos{
    display:flex;
}

.hidden{
    display:none !important;
}


/* ======================================
   VIDEO SCROLLER
====================================== */

.video-slider{
    display:flex;
    gap:22px;

    overflow-x:auto;

    scroll-behavior:smooth;

    padding:60px 40px;

    scrollbar-width:none;
}

.video-slider::-webkit-scrollbar{
    display:none;
}

/* ======================================
   VIDEO CARD
====================================== */

.video-card{
    min-width:280px;
    width:280px;
    flex-shrink:0;
    border-radius:24px;
    overflow:hidden;
    background:rgba(255, 255, 255, 0.75);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition:all .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.doctor-video-card{
    min-width:420px;
    width:420px;
}
.doctor-thumb{
    position:relative;
    height:240px;
}
.video-card:hover{
    transform:translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(15,107,69,0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.video-thumbnail{
    position:relative;
    height:420px;
}

.video-thumbnail img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.play-btn{
    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    width:80px;
    height:80px;

    border-radius:50%;

    background:rgba(255,255,255,.9);

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:28px;

    color:#0f6b45;
}

.video-content{
    padding:20px;
}

.video-content h3{
    color:#222;
    margin-bottom:8px;
}

.video-content p{
    color:#666;
    font-size:15px;
}
.video-modal{
    display:none;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.85);

    z-index:99999;

    justify-content:center;
    align-items:center;
}

.video-modal.active{
    display:flex;
}

.video-modal-content{
    width:90%;
    max-width:900px;

    position:relative;
}

.close-video{
    position:absolute;

    top:-50px;
    right:0;

    color:white;

    font-size:40px;

    cursor:pointer;
}
@media(max-width:768px){

    .doctor-video-card{

        min-width:320px;

        width:320px;
    }

    .doctor-thumb{

        height:190px;
    }

    .testimonial-heading h2{

        font-size:34px;
    }
}
/* ======================================
   VIEW ALL
====================================== */

.testimonial-footer{
    text-align:center;
    padding:0 20px;
}

.view-all-btn{
    display:inline-flex;

    align-items:center;
    gap:10px;

    padding:14px 30px;

    border-radius:50px;

    background:linear-gradient(
      135deg,
      #0f6b45,
      #1c8c5c
    );

    color:white;

    font-weight:600;

    transition:.3s;
}

.view-all-btn:hover{
    transform:translateY(-3px);
}

.testimonial-message{
    margin-top:30px;

    color:#666;

    font-size:17px;

    max-width:650px;

    margin-left:auto;
    margin-right:auto;
}
/* =========================================
   HOME PAGE RESPONSIVE
========================================= */

@media (max-width:1000px){

  .services-grid,
  .testimonial-grid,
  .doctors-grid{
    grid-template-columns:repeat(2,1fr);
  }

}

@media (max-width:900px){

  .doctors-grid{
    grid-template-columns:repeat(2,1fr);
    justify-content:center;
  }

}

@media (max-width:700px){

  .services-grid,
  .testimonial-grid,
  .doctors-grid{
    grid-template-columns:1fr;
  }

}

@media (max-width:600px){

  .doctors-grid{
    grid-template-columns:1fr;
  }

}
.play-btn i {
    width:72px; height:72px; border-radius:50%;
    background:rgba(255,255,255,.94); color:var(--green-dark);
    display:flex; align-items:center; justify-content:center;
    font-size:24px; box-shadow:0 10px 30px rgba(0,0,0,.20);
    transition:.35s ease; position:relative; z-index:2;
}
.play-btn::before {
    content:""; position:absolute; width:88px; height:88px;
    border-radius:50%; background:rgba(255,255,255,.22);
    animation:playRipple 2.2s infinite;
}
@keyframes playRipple {
    0% { transform:scale(.9); opacity:.9; }
    100% { transform:scale(1.35); opacity:0; }
}
.video-card:hover .play-btn i { transform:scale(1.12); }

.doctor-card { position: relative; }
.doctor-link { position: absolute; inset: 0; z-index: 10; }

/* =====================================================
   APPOINTMENT FORM SECTION (HOME PAGE)
   ===================================================== */
.contact {
  padding: 90px 40px;
  background: linear-gradient(135deg, #f7faf8 0%, #edf5f0 100%);
  text-align: center;
}

.contact h2 {
  font-size: 36px;
  color: #0f6b45;
  margin-bottom: 12px;
  font-weight: 700;
}

.contact-subtitle {
  max-width: 650px;
  margin: 0 auto 40px;
  color: #555555;
  font-size: 16px;
  line-height: 1.6;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 45px 50px;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(15, 107, 69, 0.08);
  border: 1px solid rgba(15, 107, 69, 0.15);
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form .form-group.full-width,
.contact-form .form-group.consent,
.contact-form button[type="submit"] {
  grid-column: span 2;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="number"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fdfdfd;
  color: #333333;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0f6b45;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 107, 69, 0.12);
}

.contact-form .form-group.consent {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 10px 0 5px;
}

.contact-form .form-group.consent label {
  font-size: 13.5px;
  font-weight: 400;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.contact-form .form-group.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0f6b45;
  cursor: pointer;
}

.contact-form button[type="submit"] {
  background: linear-gradient(135deg, #0f6b45, #177245);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(15, 107, 69, 0.25);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #177245, #0b5e3c);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 107, 69, 0.35);
}

@media (max-width: 768px) {
  .contact {
    padding: 60px 20px;
  }
  .contact-form {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }
  .contact-form .form-group.full-width,
  .contact-form .form-group.consent,
  .contact-form button[type="submit"] {
    grid-column: span 1;
  }
}

