:root {
  --primary: #2a7fba;
  --secondary: #5cb3ff;
  --accent: #e3f2fd;
  --light: #f8f9fa;
  --dark: #343a40;
  --text: #495057;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: var(--text);
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--dark);
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.close-menu-btn {
    display: none;
    text-align: right;
    padding: 15px;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Show close button only when nav is active */
nav.active .close-menu-btn {
    display: block;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background-color: var(--primary);
  color: white;
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.emergency-contact {
  display: flex;
  align-items: center;
  gap: 15px;
}

.emergency-contact i {
  margin-right: 5px;
}

.social-links a {
  color: white;
  margin-left: 15px;
  font-size: 1rem;
}

.main-header {
  padding: 15px 0;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
}

.logo-text h1 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--text);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  position: relative;
  margin-left: 25px;
}

nav ul li a {
  color: var(--dark);
  font-weight: 600;
  padding: 10px 0;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li.active a {
  color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  width: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

nav ul li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: var(--text);
}

.dropdown-menu li a:hover {
  background-color: var(--accent);
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
  height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark);
}

/* About Section */
.about {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
}

.about-list {
  margin: 20px 0;
}

.about-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.about-list li i {
  color: var(--primary);
  margin-right: 10px;
}

/* Departments Section */
.departments {
  padding: 80px 0;
  background-color: var(--light);
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.department-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.department-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.department-img {
  height: 200px;
  overflow: hidden;
}

.department-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.department-card:hover .department-img img {
  transform: scale(1.1);
}

.department-info {
  padding: 25px;
}

.department-info h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.department-info p {
  margin-bottom: 20px;
  color: var(--text);
}

/* Doctors Section */
.doctors {
  padding: 80px 0;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.doctor-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.doctor-img {
  height: 250px;
  overflow: hidden;
}

.doctor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-info {
  padding: 20px;
}

.doctor-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.doctor-info p.specialization {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.doctor-info p.experience {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  color: var(--text);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary);
}

/* Appointment Section */
.appointment {
  padding: 80px 0;
  background-color: var(--light);
}

.appointment-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.appointment-image img {
  width: 100%;
  border-radius: 8px;
}

.appointment-form {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.appointment-form h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.testimonial-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
}

.testimonial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-user h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.testimonial-user p {
  color: var(--text);
  font-size: 0.9rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}

.rating {
  color: var(--warning);
  margin-top: 15px;
}

/* Blog Section */
.blog {
  padding: 80px 0;
  background-color: var(--light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-img {
  height: 200px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.1);
}

.blog-info {
  padding: 25px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text);
}

.blog-info h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.blog-info p {
  margin-bottom: 20px;
  color: var(--text);
}

/* Contact Section */
.contact {
  padding: 80px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.contact-info p {
  margin-bottom: 30px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.2rem;
  color: var(--primary);
  margin-right: 15px;
  margin-top: 5px;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.contact-text p {
  margin-bottom: 0;
}

.contact-map {
  height: 100%;
  width: 100%;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
}
.contact-img{
  width: 100%;
  height: 100%;
}


/* ---------------- */
.find-us-section {
  padding: 60px 0;
  background-color: #fff;
}

.find-us-section .section-title h1 {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
}

.find-us-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.find-us-content h2 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.address {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text);
}

.facility-features {
  list-style: none;
  margin-bottom: 30px;
}

.facility-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: var(--text);
}

.facility-features i {
  margin-right: 10px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.divider {
  height: 1px;
  background-color: #eee;
  margin: 30px 0;
}

.operating-hours h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.operating-hours h3 i {
  margin-right: 10px;
  color: var(--primary);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

.hours-table tr {
  border-bottom: 1px solid #eee;
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 12px 0;
  color: var(--text);
}

.hours-table td:first-child {
  font-weight: 600;
}

.hours-table td:last-child {
  text-align: right;
}

.emergency-notice {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.emergency-notice i {
  color: var(--danger);
  margin-right: 15px;
  font-size: 1.5rem;
}

.emergency-notice p {
  margin: 0;
  color: var(--text);
}

.emergency-notice strong {
  color: var(--dark);
}

@media (max-width: 768px) {
  .find-us-section .section-title h1 {
    font-size: 2rem;
  }

  .find-us-content h2 {
    font-size: 1.5rem;
  }

  .operating-hours h3 {
    font-size: 1.3rem;
  }
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-col p {
  margin-bottom: 20px;
  color: #bbb;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary);
  margin-top: 5px;
}

.footer-newsletter p {
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--secondary);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {

  .about-content,
  .appointment-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-image,
  .appointment-image,
  .contact-map {
    order: -1;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .emergency-contact {
    flex-direction: column;
    gap: 5px;
  }

  .mobile-menu-btn {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
  }

  nav ul li {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    padding-left: 20px;
  }

  nav ul li:hover .dropdown-menu {
    display: block;
  }

  .close-menu-btn {
    display: block;
    text-align: right;
    padding: 15px;
    font-size: 1.5rem;
    color: var(--dark);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }
}