/* General Styling */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #343a40;
}

/* Headings use Poppins */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* Header */
.header {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 15px;
  text-align: center;
}

.header h1 {
  margin: 0;
}

/* Banner container positioning */
.banner {
  position: relative;
  text-align: center;
  color: white;
}

/* Image fills container */
.banner img {
  width: 100%;
  height: auto;
}

/* Overlay text styling */
.banner-text {
  position: absolute;
  top: 50%;                /* Centers vertically */
  left: 50%;               /* Centers horizontally */
  transform: translate(-50%, -50%);  /* Adjusts position after centering */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1.5em;
  font-weight: bold;
}

/* .header nav a {
  color: #ecf0f1;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

.header nav a:hover {
  text-decoration: underline;
} */

.header nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 10px;
}

.header nav a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 1.1em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.header nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #ecf0f1;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.header nav a:hover::after {
  width: 100%;
}
/* Active page link style */
.header nav a.active {
  font-weight: bold;  /* Makes the active page stand out */
  border-bottom: 2px solid #ecf0f1; /* Underline to indicate current page */
}

/* Hero Section */
/*.hospital-image {
  background-image: url('hospital.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 50px 0;
}

.hospital-image h2 {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 10px;
}*/

/* Hero section with background image */
.hospital-image {
  position: relative;
  background-image: url('hospital.jpg'); /* ✅ Make sure image name matches */
  background-size: cover;
  background-position: center;
  height: 250px; /* You can increase for taller banner */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay that centers the text and gives dark background */
.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5); /* Dark transparent overlay */
  padding: 20px 30px;
  border-radius: 12px;
}

/* Styled hero title */
.hospital-image h2 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
}

/* Treatments Section */
.treatments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  justify-items: center;   /* ⬅️ centers each treatment card */
  text-align: center;      /* ⬅️ text inside cards also centered */
}

.panchakarma h3 {
  text-align: center;      /* centers the “Our Treatments” heading */
}

/* .disease {
  background-color: #e67e22;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.disease:hover {
  background-color: #d35400;
} */
 /* Treatment card styling */
.disease {
  background-color: #f39c12; /* Softer, brighter orange */
  color: #ffffff;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effect for treatment cards */
.disease:hover {
  background-color: #e67e22; /* Darker orange on hover */
  transform: translateY(-3px); /* Slight lift on hover */
}

/* Contact Section Icons */
/* .contact a {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
} */

.contact {
  text-align: center;   /* centers all content inside contact section */
}

.contact h2 {
  text-align: center;   /* centers the “Contact Us” heading */
}

.contact {
  text-align: center;   /* ⬅️ centers all content inside */
}

/* CTA (Call-to-Action) Buttons in Contact Section */
.contact a {
  display: inline-block;
  margin: 10px;
  padding: 14px 28px;
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact a i {
  margin-right: 8px;
}

/* Smooth hover effect */
.contact a:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact a i {
  margin-right: 5px;
}

.contact a:hover {
  background-color: #2980b9;
}

.doctor-image {
  display: block;
  width: 120px;           /* Fixed width */
  height: 120px;          /* Fixed height */
  margin: 20px auto;
  border-radius: 50%;     /* Makes it circular */
  object-fit: cover;      /* Ensures image fills circle */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Optional: nice shadow */
}


/* Responsive */
@media (max-width: 768px) {
  .treatments {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header nav {
    flex-direction: column;
    gap: 10px;
    align-items: center; /* ✅ center links in column */
  }

  .header nav a {
    font-size: 1em;
    display: block;      /* ✅ ensures full tap area */
  }
}


@media (max-width: 768px) {
  .disease {
    margin-bottom: 15px;
  }
}


.gallery img {
  width: 100%;
  height: auto;
  max-width: 600px;  /* Optional: controls image width on large screens */
  display: block;
  margin: 0 auto;     /* Center the image */
  border-radius: 8px; /* Optional: rounded corners */
}

/* WhatsApp-like Chat Container */
.chat-container {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 5%;
  width: 90%;
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  font-family: 'Arial', sans-serif;
  background-color: #e5ddd5;
  overflow: hidden;
  z-index: 1000;
  border: 1px solid #ccc;
}

/* Chat Header */
.chat-header {
  background-color: #075e54;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

/* Chat Body */
.chat-body {
  height: 250px;
  overflow-y: auto;
  padding: 10px;
  background-color: #e5ddd5;
  display: flex;
  flex-direction: column;
}

/* User Message Style */
.user-message {
  align-self: flex-end;
  background-color: #dcf8c6;
  padding: 8px 12px;
  margin: 5px;
  border-radius: 8px;
  max-width: 80%;
  font-size: 14px;
}

/* Bot Message Style */
.bot-message {
  align-self: flex-start;
  background-color: white;
  padding: 8px 12px;
  margin: 5px;
  border-radius: 8px;
  max-width: 80%;
  font-size: 14px;
}

/* Chat Footer */
.chat-footer {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ccc;
  background-color: white;
}

.chat-footer input[type="text"] {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
}

.chat-footer button {
  background-color: #075e54;
  color: white;
  border: none;
  padding: 8px 12px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 14px;
}

/* Floating Chat Button */
/* .chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
}

.chat-btn:hover {
  background-color: #1ebe5d;
} */

/* Floating Chat Button — fixed to corner */
.chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;  /* WhatsApp green */
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  transition: background-color 0.3s ease;

  /* ✅ New fixes */
  max-width: calc(100% - 40px);  /* ensures button never overflows screen */
  white-space: nowrap;           /* text won’t break into 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 400px) {
  .chat-btn {
    font-size: 14px;
    padding: 10px 16px;
  }
}

.chat-btn:hover {
  background-color: #1ebe5d;
}

.suggested-questions p {
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: #075e54;
  margin: 0 0 8px;
}

/* Suggested Questions Styling */
.suggested-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px;
  background-color: #f4f4f4;
  border-top: 1px solid #ddd;
}

.suggested-questions button {
  background-color: #e0f7fa;
  border: none;
  color: #00796b;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.suggested-questions button:hover {
  background-color: #b2ebf2;
}

body {
  padding-bottom: 80px; /* adjust height same as button */
}

#contact {
  margin-bottom: 80px; /* equal to button height */
}

nav ul {
  list-style: none;   /* Removes the dots */
  margin: 0;          /* Removes extra space */
  padding: 0;         /* Removes left indentation */
  display: flex;      /* Keeps menu items side by side */
  gap: 20px;          /* Adds spacing between items */
}

.nav-list a.active {
  font-weight: bold;
  color: #007bff; /* highlight color */
  border-bottom: 2px solid #007bff;
}

/* Mobile responsive: stack treatments in one column */
@media (max-width: 600px) {
  .treatments {
    grid-template-columns: 1fr;  /* single column on mobile */
    padding: 10px;
    gap: 12px;
  }
}

/* Doctors Section */
.doctors {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.doctors h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #2c3e50;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.doctor-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.doctor-card:hover {
  transform: translateY(-5px);
}

.doctor-card h3 {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.3em;
  color: #34495e;
}

.doctor-card p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
}

.doctor-card img.doctor-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  margin-bottom: 10px;
}

/* Link to doctors page */
.see-more {
  display: inline-block;
  margin-top: 20px;
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
}

.see-more:hover {
  text-decoration: underline;
}

[data-aos] {
  transform-origin: bottom;
  transition-timing-function: ease-in-out;
}
