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

:root {
  --primary-color: #3498db;
  --secondary-color: #2980b9;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-text: #666;
  --lighter-text: #999;
  --bg-color: #fff;
  --light-bg: #f5f8fa;
  --border-color: #e1e8ed;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
}

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

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* Header */
header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: var(--text-color);
  font-weight: 500;
}

nav a:hover {
  background-color: var(--light-bg);
}

nav a[aria-current='page'] {
  background-color: var(--primary-color);
  color: white;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1581093458791-9d15482442f5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 5rem 1rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0.5rem auto;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Featured Articles */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.article-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.article-content {
  padding: 1.5rem;
}

.article-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  color: var(--lighter-text);
  font-size: 0.9rem;
  margin: 1rem 0;
}

.read-more {
  display: inline-block;
  font-weight: 500;
  margin-top: 0.5rem;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

/* Topics Section */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.topic-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.topic-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.topic-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Clinics Section */
.clinics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.clinic-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.clinic-logo {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.clinic-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Newsletter Section */
.newsletter {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  margin-bottom: 1rem;
}

.newsletter h2::after {
  background-color: white;
}

.newsletter p {
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.footer-section h3::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  margin-top: 0.5rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ecf0f1;
}

.footer-section a:hover {
  color: var(--primary-color);
}

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

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #bdc3c7;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-bottom a {
  color: #ecf0f1;
}

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Articles Page */
.articles-container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
}

.sidebar {
  background-color: var(--bg-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
  height: fit-content;
}

.search-box {
  display: flex;
  margin-bottom: 1.5rem;
}

.search-box input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
  font-size: 0.9rem;
}

.search-box button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 1rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.category-filter h3,
.recent-posts h3,
.tags h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.category-filter ul li {
  margin-bottom: 0.5rem;
}

.category-filter ul li a {
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
}

.category-filter ul li a:hover,
.category-filter ul li a.active {
  background-color: var(--light-bg);
}

.category-filter ul li a.active {
  color: var(--primary-color);
  font-weight: 500;
}

.recent-posts {
  margin-top: 2rem;
}

.recent-posts ul li {
  margin-bottom: 1rem;
}

.recent-posts ul li a {
  display: block;
  font-weight: 500;
}

.recent-posts ul li span {
  font-size: 0.8rem;
  color: var(--lighter-text);
}

.tags {
  margin-top: 2rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  background-color: var(--light-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: var(--bg-color);
  color: var(--text-color);
  box-shadow: var(--shadow);
}

.pagination a.active {
  background-color: var(--primary-color);
  color: white;
}

.pagination a.next {
  width: auto;
  padding: 0 1rem;
}

/* Article Page Styles */
.article-header {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.article-meta-header span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.article-content {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.article-content img {
  width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1.8rem;
  text-align: left;
}

.article-content h2::after {
  margin-left: 0;
  margin-right: auto;
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-size: 1.4rem;
}

.article-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.article-content ul, 
.article-content ol {
  margin: 1rem 0 1rem 1.5rem;
  line-height: 1.7;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--light-text);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.article-tag {
  background-color: var(--light-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h3 {
  margin-bottom: 0.25rem;
}

.author-info p {
  color: var(--light-text);
  font-size: 0.9rem;
}

.related-articles {
  margin-top: 3rem;
}

.related-articles h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.article-toc {
  background-color: var(--light-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.article-toc h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.article-toc ul {
  margin-left: 1rem;
}

.article-toc li {
  margin-bottom: 0.5rem;
}

.article-toc a {
  text-decoration: none;
  color: var(--primary-color);
}

.article-toc a:hover {
  text-decoration: underline;
}

/* About Page */
.about-section {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.about-section h2 {
  text-align: left;
}

.about-section h2::after {
  margin-left: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--light-bg);
  border-radius: 8px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::after {
  right: -10px;
}

.right::after {
  left: -10px;
}

.timeline-content {
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.timeline-year {
  font-weight: bold;
  color: var(--primary-color);
}

/* Contact Page */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form-container {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.contact-method-details h3 {
  margin-bottom: 0.5rem;
}

.faq-section {
  margin-top: 3rem;
}

.faq-item {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.faq-question {
  font-weight: 600;
  margin-bottom: 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  transition: var(--transition);
}

.faq-answer {
  display: none;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  display: block;
}

.map-container {
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .articles-container {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 21px;
  }
  
  .left::after, .right::after {
    left: 21px;
  }
  
  .right {
    left: 0;
  }
  
  .article-meta-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .article-content {
    padding: 1.5rem;
  }
  
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
  }
  
  .clinics-grid {
    grid-template-columns: 1fr;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}