:root {
  --primary-color: #2c5282;
  --secondary-color: #4299e1;
  --accent-color: #48bb78;
  --text-color: #2d3748;
  --light-bg: #f7fafc;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 18px;
  color: var(--text-color);
  padding: 20px;
  overflow-x: hidden;
  background: #fff;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Header */
header {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* Mobile Nav Toggle (Add this) */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(44, 82, 130, 0.9), rgba(44, 82, 130, 0.9)),
              url('images/hospital-bg.jpg') center/cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #38a169;
}

/* Sections */
section {
  padding: 5rem 1rem;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* Page Titles */
.page-title,
.page-header h1 {
  font-size: 2.5rem;
  color: white;
  text-align: center;
  margin: 120px auto 2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #3498db, #2c3e50);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 1200px;
}

/* Grid Structures */
.service-grid,
.doctor-grid,
.contact-info,
.gallery-grid,
.testimonial-grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Default columns for wider screens */
.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.doctor-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-info {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Cards */
.service-card,
.doctor-card,
.info-item,
.gallery-card,
.testimonial-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  padding: 2rem;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.doctor-card img,
.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.form-group input,
.form-group select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

#appointment-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 1rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  background: none;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 10px;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    gap: 1rem;
    margin-top: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .page-header,
  .page-title {
    padding: 2rem 1rem;
    font-size: 2rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .form-container {
    padding: 1rem;
  }

  .gallery-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }
}
@media(max-width:600px){
    .container{
        width:100%;
    }
}
