/* Global Styles for Doctor Website */
:root {
  /* Updated to use green theme from config */
  --primary-color: #2bb906;
  --primary-dark: #1a5a02;
  --primary-gradient: linear-gradient(to right, #2bb906, #1a5a02);
  --secondary-color: #00a651;
  --secondary-dark: #008040;
  --accent-color: #e8f5e9;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --text-muted: #999999;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

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

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Fixed Header */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Added logo image styling */
.logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.logo-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Menu Button */
.menu-btn {

  /* Updated to use green gradient */
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(43, 185, 6, 0.3);
}

.menu-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 185, 6, 0.4);
}

/* Updated menu modal styles for better view, scrollable content, and smaller fonts */
.menu-modal-content {
  background: linear-gradient(135deg, #1a5a02 0%, #2bb906 100%);
  display: flex;
  flex-direction: column;
  max-height: 100vh;
}

.menu-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.25rem 1.5rem;
  flex-shrink: 0;
}

.menu-modal-header .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.menu-modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-modal-body::-webkit-scrollbar {
  width: 8px;
}

.menu-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.menu-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.menu-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.menu-nav {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.menu-list {
  margin: 0;
  padding: 0;
  flex: 1;
}

.menu-item {
  margin-bottom: 0.75rem;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(8px);
  color: var(--white);
}

.menu-link i {
  font-size: 1.3rem;
  width: 30px;
  text-align: center;
}

.menu-link span {
  flex: 1;
}

.menu-emergency {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.emergency-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.emergency-number {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.emergency-number i {
  font-size: 1.3rem;
}

.emergency-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Main Content Area */
.main-content {
  /* Removed min-height that was causing gap above slider */
  margin-top: 0;
  /* Updated margin-bottom to account for both fixed footer bar and footer section */
  margin-bottom: 60px;
}

/* Footer Section - Full Details Section above fixed bar */
.footer-section {
  background: linear-gradient(135deg, #1a5a02 0%, #2bb906 100%);
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

.footer-section-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

/* Added logo column styling */
.footer-logo-column {
  grid-column: span 1;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.footer-logo-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 400;
}

.footer-column h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-column p,
.footer-column a {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-column a {
  display: block;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--white);
  padding-left: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item i {
  color: var(--white);
  font-size: 1.2rem;
  width: 30px;
  margin-top: 0.2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Added copyright section styling */
.footer-copyright {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer-copyright p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.95rem;
}

/* Fixed Footer Bar - Icons Only with 60px height */
.footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, #2bb906, #1a5a02);
  color: var(--white);
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  z-index: 999;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
}

/* Centered footer container */
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-link {
  color: var(--white);
  font-size: 1.3rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-link:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

.social-links {
  display: flex;
  gap: 1.3rem;
  align-items: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Section Styles */
.section {
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Container */
.container {
  max-width: 98%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  /* Made logo smaller on mobile */
  .logo-image {
    height: 40px;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  /* Mobile responsive for footer section */
  .footer-section {
    padding: 2rem 1rem 1rem;
  }

  .footer-section-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-logo-column {
    grid-column: span 1;
  }

  .footer-container {
    padding: 0 1rem;
    justify-content: space-around;
  }

  .footer-links {
    gap: 1rem;
  }

  .footer-link {
    font-size: 1.1rem;
  }

  .social-links {
    gap: 1.3rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  /* Mobile responsive for menu */
  .menu-modal-header {
    padding: 1rem 1.25rem;
  }

  .menu-modal-header .modal-title {
    font-size: 1.3rem;
  }

  .menu-modal-body {
    padding: 1.5rem 1rem;
  }

  .menu-link {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }

  .menu-link i {
    font-size: 1.2rem;
    width: 28px;
  }

  .emergency-number {
    font-size: 1.3rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .emergency-title {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-primary {
  color: var(--primary-color);
}
.text-secondary {
  color: var(--secondary-color);
}
.bg-light {
  background-color: var(--light-bg);
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
