/* Base Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #ff6f61;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --success-color: #28a745;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
}

h1, h2, h3, h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Header Styles */
header {
  background: var(--primary-color);
  color: white;
  padding: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 2rem;
  margin: 0;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  color: #f0f0f0;
}

nav ul li a.active {
  font-weight: bold;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: white;
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hero Section with Blurred Background */
.hero-section {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Blurred Background Image */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/hospital-bg.jpg') no-repeat center center/cover;
  filter: blur(6px);
  transform: scale(1.1);
  z-index: -2;
}

/* Dark Overlay for Better Readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
color:white;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.cta-button {
  background: #ff6f61;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: 0.3s ease;
}

.cta-button:hover {
  background: #e65a50;
}

/* Appointment Methods */
.appointment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* Method Card with Gradient Border */
.method-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Creating a gradient border effect */
.method-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #1abc9c, #3498db);
  z-index: -1;
  border-radius: 12px;
}

.method-card::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: #fff;
  z-index: 1;
  border-radius: 8px;
}

.method-card:hover {
  transform: translateY(-10px);
}

.method-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.method-card i {
  font-size: 2rem;
  color: #3498db;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.method-card h3 {
  margin: 10px 0;
  font-size: 1.5rem;
  color: #2c3e50;
  position: relative;
  z-index: 2;
}

.method-card p {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Your Details Heading */
.your-details {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-top: 40px;
  color: #2c3e50;
}

/* Form Styles */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

form input, form textarea, form button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

form button {
  background: #3498db;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

form button:hover {
  background: #2980b9;
}

/* Map Section */
#map-section {
  background: #fff;
  padding: 40px 0;
}

#map-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

#map-section iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer Styles - Updated to match first example */
footer {
  background: #2c3e50;
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-column p, .footer-column a {
  color: #bbb;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #3498db;
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  nav ul li {
    display: block;
    margin: 10px 0;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .appointment-methods {
    grid-template-columns: 1fr;
  }

  .method-card {
    margin-bottom: 20px;
  }

  /* Updated responsive styles for new header/footer */
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 20px;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 10px 0;
  }
}

/* Doctor Selection Grid */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Doctor Card Styling */
.doctor-card {
  background: #dddddd;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Doctor Image */
.doctor-card img {
  width: 100%;
  max-width: 250px; /* Ensures uniform image sizing */
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Doctor Name */
.doctor-card h3 {
  margin: 15px 0 5px;
  font-size: 1.5rem;
  color: #2c3e50;
}

/* Doctor Details */
.doctor-card p {
  font-size: 1rem;
  color: #666;
}

/* Hover Effect */
.doctor-card:hover {
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .doctors-grid {
    grid-template-columns: 1fr; /* Single column layout on smaller screens */
  }
}

/* Social Icons */
.social-icons {
  text-align: center;
  margin-top: 10px;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.5rem;
  color: #ffffff; /* Default White */
  transition: color 0.3s ease-in-out;
}

/* Change Colors on Hover */
.social-icons a:hover {
  color: black; /* Light Red on Hover */
}

.hospital-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.hospital-card {
  width: 250px;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  background: #f9f9f9;
}

.hospital-card img {
  width: 100%;
  height: 150px;
  border-radius: 10px;
}

.hospital-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hospital-card.selected {
  border-color: #28a745;
  background-color: #e9ffe9;
}

.hospital-card h3 {
  margin: 10px 0;
  font-size: 18px;
  color: #333;
}

.hospital-card p {
  font-size: 14px;
  color: #666;
}

/* Search Bar Section */
.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #007BFF;
  border-radius: 25px 0 0 25px;
  outline: none;
}

.search-box button {
  background: #007BFF;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
}

.search-box button i {
  font-size: 21px;
}

/* Suggestions Dropdown */
#suggestions-list {
  max-width: 300px;
  margin: 10px auto;
  padding: 6px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  z-index: 100;
  display: none;
}

#suggestions-list li {
  padding: 15px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

#suggestions-list li:hover {
  background: #007BFF;
  color: white;
}
/* Add these styles to your existing CSS file */

/* Doctor Card Book Now Button Styles */
.doctor-card {
  position: relative;
  padding-bottom: 60px; /* Make space for button */
  margin-bottom: 20px;
}

.book-now-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  width: calc(100% - 40px); /* Responsive width */
  max-width: 200px; /* Maximum width */
}

.book-now-btn:hover {
  background: #2980b9;
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Enhanced Doctor Card Styling */
.doctor-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.doctor-card img {
  width: 100%;
  max-width: 350px;
  height: 550px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.doctor-card h3 {
  margin: 10px 0 5px;
  font-size: 1.3rem;
  color: #2c3e50;
}

.doctor-card p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .doctor-card {
    padding-bottom: 50px;
  }
  
  .book-now-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}