/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: #666;
}

a {
  text-decoration: none;
  color: #3498db;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.btn-primary {
  background-color: #e74c3c;
  color: white;
}

.btn-primary:hover {
  background-color: #c0392b;
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: #e74c3c;
  border: 2px solid #e74c3c;
}

.btn-outline:hover {
  background-color: #e74c3c;
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
  display: block;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
  color: white;
}

/* Top Bar */
.top-bar {
  background-color: #2c3e50;
  color: white;
  padding: 10px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left span {
  margin-right: 20px;
}

.top-bar-left i {
  margin-right: 5px;
  color: #3498db;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.news-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-label {
  background-color: #e74c3c;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  width: 300px;
}

.ticker-item {
  display: inline-block;
  animation: ticker 15s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo span {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
}

/* Navigation */
nav {
  position: relative;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #2c3e50;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.main-menu li {
  position: relative;
}

.main-menu a {
  color: #2c3e50;
  font-weight: 500;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.main-menu a:hover,
.main-menu li.active a {
  color: #e74c3c;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  border-bottom: 1px solid #f8f9fa;
}

.dropdown li:last-child {
  border-bottom: none;
}

.dropdown a {
  padding: 12px 20px;
  display: block;
  color: #666;
}

.dropdown a:hover {
  background-color: #f8f9fa;
  color: #e74c3c;
}

/* Page Banner */
.page-banner {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  position: relative;
  color: white;
}

.page-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.banner-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 10px;
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
  color: white;
}

.breadcrumb-item.active {
  color: #3498db;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.6);
}

/* Info Boxes */
.info-boxes {
  background-color: #e74c3c;
  padding: 0;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.info-boxes .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
}

.info-box {
  background-color: #e74c3c;
  color: white;
  padding: 40px 30px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.info-box:last-child {
  border-right: none;
}

.info-box:hover {
  background-color: #c0392b;
}

.info-box h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.info-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  font-size: 14px;
}

.hours {
  text-align: left;
}

.hour-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  background-color: #f8f9fa;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.mission,
.vision {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission h4,
.vision h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #e74c3c;
}

.mission i,
.vision i {
  font-size: 1.5rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.service-card {
  background-color: white;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: #e74c3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: background-color 0.3s ease;
}

.service-card:hover .service-icon {
  background-color: #c0392b;
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.service-card p {
  margin-bottom: 25px;
  line-height: 1.6;
}

.services-cta {
  text-align: center;
}

/* Doctors Section */
.doctors-section {
  background-color: #f8f9fa;
}

.doctors-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.doctor-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-5px);
}

.doctor-image {
  height: 250px;
  overflow: hidden;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image img {
  transform: scale(1.05);
}

.doctor-info {
  padding: 25px;
  text-align: center;
}

.doctor-info h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.specialty {
  color: #e74c3c;
  font-weight: 600;
  margin-bottom: 5px;
}

.qualification {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.doctors-cta {
  text-align: center;
}

/* Appointment Section */
.appointment-section {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.appointment-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.appointment-text h2 {
  color: white;
  margin-bottom: 20px;
}

.appointment-text p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.appointment-features {
  list-style: none;
  margin-bottom: 30px;
}

.appointment-features li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.appointment-features i {
  color: #2ecc71;
  font-size: 1.2rem;
}

.appointment-form-container {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.appointment-form h3 {
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 3px;
  position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: #3498db;
  border-color: #3498db;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
}

/* Testimonials */
.testimonials-section {
  background-color: #f8f9fa;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto 50px;
}

.testimonial {
  display: none;
  text-align: center;
  padding: 40px;
}

.testimonial.active {
  display: block;
}

.testimonial-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  margin-bottom: 30px;
}

.testimonial-text i {
  font-size: 2rem;
  color: #3498db;
  margin-bottom: 20px;
}

.testimonial-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  color: #555;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 5px;
  color: #2c3e50;
}

.author-info p {
  color: #666;
  margin: 0;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.prev-testimonial,
.next-testimonial {
  background-color: #3498db;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.prev-testimonial:hover,
.next-testimonial:hover {
  background-color: #2980b9;
}

.testimonial-dots {
  display: flex;
  gap: 10px;
}

.testimonial-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonial-dots .dot.active {
  background-color: #3498db;
}

.testimonials-cta {
  text-align: center;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.blog-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #e74c3c;
  color: white;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
}

.blog-date .day {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.blog-date .month {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.blog-content {
  padding: 25px;
}

.blog-content h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  line-height: 1.4;
}

.blog-content p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-cta {
  text-align: center;
}

/* Contact CTA */
.contact-cta {
  background-color: #2c3e50;
  color: white;
  text-align: center;
}

.cta-content h2 {
  color: white;
  margin-bottom: 20px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
}

.footer-top {
  padding: 60px 0 40px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-widget h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-logo h3 {
  color: white;
  margin: 0;
  font-size: 1.5rem;
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: #34495e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: #3498db;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #3498db;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item i {
  color: #3498db;
  font-size: 1.2rem;
  margin-top: 2px;
}

.contact-item div p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  background-color: #1a252f;
  padding: 20px 0;
  border-top: 1px solid #34495e;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #3498db;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #c0392b;
  color: white;
  transform: translateY(-3px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header i {
  color: #27ae60;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-body {
  padding: 30px;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #eee;
  text-align: right;
}

.appointment-reference {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .menu-toggle {
    display: block;
  }

  .main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 20px;
    gap: 0;
  }

  .main-menu.active {
    display: flex;
  }

  .main-menu li {
    width: 100%;
    border-bottom: 1px solid #f8f9fa;
  }

  .main-menu li:last-child {
    border-bottom: none;
  }

  .main-menu a {
    padding: 15px 0;
    width: 100%;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #f8f9fa;
    margin-top: 10px;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .top-bar-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .news-ticker {
    display: none;
  }

  .banner-content h1 {
    font-size: 2rem;
  }

  .about-content,
  .appointment-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .doctors-slider,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .info-boxes .container {
    grid-template-columns: 1fr;
  }

  .info-box {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .info-box:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 18px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .banner-content h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px;
  }
}
