/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
  }
  
  html {
    scroll-behavior: smooth;
  }
  body{
    background:#f3f7fb;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
  }
  .homecare-btn {
    background: #2e7d32;
    color: white !important;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 10px;
    display: inline-block;
    font-weight: 500;
    transition: 0.3s;
  }

  .logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
  }
  /* NAVBAR */
  .navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 60px;
    background:white;
  }

  nav {
    transition: all 0.3s ease;
  }
  
  nav.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  
  .logo{
    font-weight:700;
    font-size:35px;
  }
  .logo span{color:#2e7d32;}
  
  nav a {
    position: relative;
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
  }
  
  nav a:hover {
    color: #2e7d32;
  }
  
  nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #2e7d32;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
  }
  
  nav a:hover::after {
    width: 100%;
  }

  nav a.active {
    color: #2e7d32;
    font-weight: 600;
  }
  
  nav a.active::after {
    width: 100%;
  }
  
  .contact-btn{
    background:#2e7d32;
    color:white;
    padding:8px 15px;
    border:none;
    border-radius:6px;
  }
  
  /* HERO */
  .hero{
    position: relative;
    z-index: 1;
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;       /* center vertically */
  text-align: center;        /* center text */
  padding: 100px 20px;
  min-height: 450px;
  color: white;

  background: 
    linear-gradient(
      90deg,
      rgba(46,125,50,0.4) 0%,     /* LEFT = light */
      rgba(46,125,50,0.7) 40%,    /* middle */
      rgba(25,118,210,0.9) 100%   /* RIGHT = dark */
    ),
    url('https://img.freepik.com/free-photo/doctor-with-stethoscope-hands-hospital-background_1423-1.jpg');

  background-size: cover;
  background-position: center;
  }
  
  .hero-text{
    max-width:500px;
  }
  
  .hero h1{
    font-size:48px;
    font-weight: 700;
    margin-bottom:10px;
    white-space: nowrap;
  }
  
  .hero p{
    margin:10px 0;
  }
  
  .hero img{
    width:350px;
  }
  
  .btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    margin: 10px 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
  }
  
  .green {
    background: #2e7d32;
    color: white;
  }
  
  .blue {
    background: #0d47a1;
    color: white;
  }
  
  .green:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  
  .blue:hover {
    background: #08306b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  
  .btn:active {
    transform: scale(0.96);
  }

  .btn:hover {
    letter-spacing: 0.5px;
  }
  
  /* INFO BAR */
  .info-bar{
    position: relative;
  z-index: 10;   /* bring above hero */

  display: flex;
  justify-content: space-around;

  background: #fff;
  padding: 15px;
  margin: -40px 60px 20px;  /* overlap effect */

  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  }

  .icon {
    background: #2e7d32;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
  }
  
  /* SERVICES */
  .services{
    display:flex;
    justify-content:space-between;
    padding:20px 60px;
  }
  
  .service-card{
    background:white;
    padding:15px;
    width:150px;
    text-align:center;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
  }

  .service-card {
    transition: all 0.3s ease; /* smooth animation */
    cursor: pointer;
  }
  
  .service-card:hover {
    transform: translateY(-8px); /* lift effect */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* deeper shadow */
  }
  
  .service-card img {
    transition: 0.3s;
  }
  
  .service-card:hover img {
    transform: scale(1.2); /* icon zoom */
  } 

  .service-card p {
    transition: 0.3s;
  }
  
  .service-card:hover p {
    color: #2e7d32;
    font-weight: 600;
  }
  .service-card:hover {
    border-bottom: 4px solid #2e7d32;
  }

  .service-card img{
    width:40px;
    margin-bottom:10px;
  }
  
  .service-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }
  
  .form-box{
    background:white;
    padding:20px;
    border-radius:10px;
    width:300px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
  }
  
  .form-box input,select{
    width:100%;
    padding:10px;
    margin:10px 0;
  }
  
  /* DOCTORS */
  .doctors{
    padding:50px 60px;
  }

  .doctors h2 {
    margin-bottom: 20px;
  }
  
  
  .doctor-cards{
    display:flex;
    gap:25px;
  }
  
  .doc{
    flex: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
  }
  
  .doc img{
    width: 100%;
  height: 200px;
  object-fit: cover;
  }
  
  .doc-content{
    padding:15px;
  }
  
  .doc h4 {
    margin-bottom: 5px;
  }
  
  .doc p {
    color: #666;
    margin-bottom: 10px;
  }
  
  .doc button {
    background: #0d47a1;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
  }

  .doc:hover {
    transform: translateY(-8px);
  }
  /* WHY */
  .why {
    padding: 40px 60px 10px;
    margin-bottom: 10px;
  }
  
  .why-title {
    text-align: left; /* like screenshot */
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 1000;
  }

  .why-box {
   background: #e3f2fd;
  border-radius: 12px;
  display: flex;
  justify-content: space-around;
  padding: 50px;
  }
  
  .why-item {
    display: flex;
    align-items: center;
    gap: 1px;
  }  

  /* MEDICAL AUTHORITY */
.medical-authority {
  padding: 50px 60px;
  text-align: center;
}

.medical-authority h2 {
  margin-bottom: 20px;
}

.authority-box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.authority-item {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.authority-item:hover {
  transform: translateY(-8px);
}

.authority-item i {
  font-size: 28px;
  color: #2e7d32;
  margin-bottom: 10px;
}

.authority-item h4 {
  margin-bottom: 5px;
}

.authority-item p {
  font-size: 14px;
  color: #666;
}
  


/* TESTIMONIAL EXACT STYLE */
.testimonials {
    padding: 40px 60px;
    padding-top: 10px;
  }
  
  .testimonials h3 {
    margin-bottom: 10px;
  }
  
  .test-wrap {
    display: flex;
    gap: 20px;
  }
  
  .test {
    flex: 1;
    background: #f5f7fb;
    padding: 20px;
    border-radius: 12px;
    color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  }
  
  .quote {
    font-size: 30px;
    color: #2e7d32;
  }
  
  /* BLOG */
  .blog{
    padding:40px 60px;
  }
  
  .blog-cards{
    display:flex;
    gap:20px;
  }
  
  .blog-card{
    flex:1;
    background:white;
    border-radius:10px;
    overflow:hidden;
  }
  
  .blog-card img{
    width:100%;
    height:150px;
    object-fit:cover;
  }
  
  .blog-card p{
    padding:10px;
  }

  /* MOBILE RESPONSIVE */
@media (max-width: 768px) {

  /* NAVBAR */
  .navbar {
    flex-direction: column;
    padding: 15px 20px;
    text-align: center;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    display: inline-block;
    margin: 5px;
  }

  /* HERO */
  .hero {
    padding: 60px 20px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 28px;   /* smaller for mobile */
    line-height: 1.3;
    white-space: normal; /* allow wrapping */
  }

  .hero p {
    font-size: 14px;
  }

  .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }

  /* INFO BAR */
  .info-bar {
    flex-direction: column;
    gap: 10px;
    margin: -20px 20px 20px;
    text-align: center;
  }

  /* SERVICES */
  .services {
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    justify-content: center;
  }

  .service-card {
    width: 45%; /* 2 per row */
  }

  /* ABOUT */
  .about {
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
  }

  .about img {
    width: 100%;
  }

  .form-box {
    width: 100%;
  }

  /* DOCTORS */
  .doctor-cards {
    flex-direction: column;
  }

  /* WHY */
  .why {
    padding: 30px 20px;
  }

  .why-box {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .authority-box {
    flex-direction: column;
  }
  
  .authority-item {
    width: 100%;
  }

  /* TESTIMONIALS */
  .test-wrap {
    flex-direction: column;
  }

}

/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* NAV ANIMATION */
nav a {
  transition: 0.3s;
}

nav a:hover {
  color: #2e7d32;
}

.homecare-btn:hover {
  background: #1b5e20;
  color: white !important;
}

.homecare-btn:visited {
  color: white !important;
  text-decoration: none;
}
/* BUTTON HOVER */
.btn {
  transition: 0.3s;
}

.btn.green:hover {
  background: #1b5e20;
}

.btn.blue:hover {
  background: #08306b;
}

/* MOBILE */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    right: 20px;
    z-index: 1000;
    width: 200px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    /* ANIMATION */
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.3s;
  }

  nav.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  nav a {
    padding: 10px;
    border-bottom: 1px solid #eee;
  }

  nav a:last-child {
    border-bottom: none;
  }

}
/* ===== FOOTER (UPDATED FOR YOUR THEME) ===== */
.footer {
  background: linear-gradient(135deg, #0d47a1, #2e7d32);
  color: #fff;
  padding: 50px 60px 20px;
  margin-top: 40px;
}

/* CONTAINER */
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

/* BOX */
.footer-box {
  flex: 1;
  min-width: 200px;
}

/* HEADINGS */
.footer-box h3,
.footer-box h4 {
  margin-bottom: 12px;
  font-weight: 700;
  color: #fff;
  border-left: 4px solid #4caf50;
  padding-left: 10px;
}

/* TEXT */
.footer-box p {
  font-size: 13.9px;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 8px;
}

/* LIST */
.footer-box ul {
  list-style: none;
  padding: 0;
}

.footer-box ul li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #ddd;
  transition: 0.3s;
}

.footer-box ul li:hover {
  color: #4caf50;
  transform: translateX(5px);
}

/* FORM */
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-form input,
.footer-form select,
.footer-form textarea {
  padding: 10px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 13px;
}

.footer-form textarea {
  resize: none;
  min-height: 70px;
}

/* BUTTON */
.footer-form button {
  padding: 10px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.footer-form button:hover {
  background: #1b5e20;
  transform: translateY(-2px);
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  background: #fff;
  color: #0d47a1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #4caf50;
  color: #fff;
  transform: translateY(-5px) scale(1.1);
}

/* BOTTOM */
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 12px;
  color: #ccc;
}
.appointment-box h4 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;   /* center */
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
#appointment:target {
  animation: highlight 1s ease;
}

@keyframes highlight {
  0% { box-shadow: 0 0 0px rgba(0,0,0,0); }
  50% { box-shadow: 0 0 20px rgba(46,125,50,0.7); }
  100% { box-shadow: 0 0 0px rgba(0,0,0,0); }
}
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icons a {
  width: 35px;
  height: 35px;
  background: white;
  color: #0d47a1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s;
}

/* Hover animation */
.social-icons a:hover {
  transform: translateY(-5px) scale(1.1);
  background: #4caf50;
  color: white;
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-size: 22px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* CALL FLOAT */
.call-float {
  position: fixed;
  bottom: 80px; /* 👈 above WhatsApp */
  right: 20px;
  background: #0d47a1;
  color: white;
  font-size: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);

  animation: pulse 2s infinite; /* same animation */
}

.call-float:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.whatsapp-float {
  animation: pulse 2s infinite;
}

.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 60px;
  gap: 10px;
}

/* TEXT SIDE */
.about-text {
  flex: 1;
  max-width: 600px;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.about-text h3 {
  font-size: 20px;
  color: #2e7d32;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #555;
}

.about-points li {
  margin-bottom: 10px;
}

.about-slider {
  position: relative;
  width: 100vh;
  max-width: 500vh;
  height: 550px;
  overflow: hidden;
  border-radius: 12px;
}

/* images stacked */
.about-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transform: scale(1); /* base */
  
  transition: opacity 1.2s ease-in-out, transform 6s ease-in-out;
}

/* active slide */
.about-slider img.active {
  opacity: 1;
  transform: scale(1.08); /* slow zoom */
}

.about-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.15),
    transparent
  );
}
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 220px;
    background: white;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 10px;
    z-index: 1000;
  }

  nav a {
    padding: 12px;
    border-bottom: 1px solid #eee;
  }

  nav a:last-child {
    border-bottom: none;
  }
}
