/* Custom CSS for Methylene Blue WordPress Site - Fixed Version */

/* Typography Enhancements */
.section-title {
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Quote Cards */
.quote-card {
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0.25rem;
}

.quote-card p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.quote-card-sm {
  font-style: italic;
}

.blockquote-footer {
  color: #6c757d;
}

/* Table of Contents */
.toc-card {
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  padding: 1.25rem;
}

.toc-list {
  margin-bottom: 0;
}

.toc-link {
  display: block;
  padding: 0.25rem 0;
  color: #343a40;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.toc-link:hover, .toc-link.active {
  color: #007bff;
}

/* Research Cards */
.research-card {
  border: 1px solid rgba(0,0,0,.125);
  border-radius: .25rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background-color: #f8f9fa;
}

.research-authors {
  color: #6c757d;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.research-highlight {
  font-weight: 500;
  border-left: 3px solid #007bff;
  padding-left: 1rem;
  margin: 1rem 0;
}

/* Timeline Styling */
.timeline {
  position: relative;
  padding: 0;
  margin: 0;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: #e9ecef;
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
  padding-left: 60px;
}

.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #007bff;
  color: white;
  text-align: center;
  line-height: 40px;
  font-weight: 500;
  z-index: 1;
}

.timeline-content {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.timeline-content h5 {
  margin-top: 0;
  color: #495057;
}

/* Historical Figures */
.historical-figure {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.historical-figure:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Site Header */
.site-header {
  margin-bottom: 2rem;
}

/* Card Enhancements */
.card {
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Dosage Calculator */
.result-area {
  transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-year {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 0.85rem;
  }
  
  .quote-card {
    padding: 1rem;
  }
}

/* Print Optimization */
@media print {
  .toc-card, 
  .alert, 
  .btn,
  .card:not(.research-card) {
    display: none;
  }
  
  .col-lg-8 {
    width: 100%;
  }
  
  .timeline:before {
    display: none;
  }
  
  .timeline-item {
    page-break-inside: avoid;
    padding-left: 0;
  }
  
  .timeline-year {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
  }
}