/* Timeline Page Styles */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--nav-bg) 0%, var(--nav-bg-strong) 100%);
  color: white;
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.breadcrumb span {
  opacity: 0.7;
}

.page-header h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

/* Timeline Section */
.timeline-section {
  padding: 3rem 0;
  background: #f8fafc;
  display: flex;
  justify-content: center;
}

.timeline-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  justify-content: center;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #5a87a8, #2f4f6f);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 20px;
  height: 20px;
  background: #5a87a8;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.timeline-card {
  width: calc(50% - 30px);
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-card {
  margin-right: 30px;
}

.timeline-item:nth-child(even) .timeline-card {
  margin-left: 30px;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-card::before {
  right: -20px;
  border-left-color: white;
  transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-card::before {
  left: -20px;
  border-right-color: white;
  transform: translateY(-50%);
}

.timeline-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5a87a8, #2f4f6f);
  border-radius: 12px 12px 0 0;
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5a87a8;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(90, 135, 168, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
}

.timeline-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2f4f6f;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.timeline-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #5a87a8, #2f4f6f);
  border-radius: 1px;
}

.timeline-card p {
  color: #000000;
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
  text-align: left;
}

/* Timeline Summary */
.timeline-summary {
  background: white;
  padding: 3rem 0;
}

.summary-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: #f8fafc;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.summary-card h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2f4f6f;
  margin-bottom: 1.5rem;
}

.summary-card p {
  color: #000000;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.summary-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #5a87a8;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #000000;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .timeline-section .container {
    padding: 0 2rem;
  }
  
  .timeline {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .timeline-section .container {
    padding: 0 1rem;
  }
  
  .timeline {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 60px;
  }
  
  .timeline-marker {
    left: 30px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
  }
  
  .timeline-card {
    width: 100%;
    margin: 0 !important;
    padding: 1.5rem;
  }
  
  .timeline-card::before {
    display: none;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .summary-stats {
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 2rem 0 1.5rem;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .timeline-content {
    padding: 1.25rem;
  }
  
  .timeline-content h3 {
    font-size: 1.25rem;
  }
  
  .timeline-content p {
    font-size: 0.95rem;
  }
  
  .summary-card {
    padding: 1.5rem;
  }
  
  .summary-card h2 {
    font-size: 1.5rem;
  }
  
  .summary-card p {
    font-size: 1rem;
  }
  
  .summary-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
}

/* Animation for timeline items */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-item:nth-child(odd) {
  animation: slideInLeft 0.6s ease forwards;
}

.timeline-item:nth-child(even) {
  animation: slideInRight 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }
.timeline-item:nth-child(9) { animation-delay: 0.9s; }
.timeline-item:nth-child(10) { animation-delay: 1.0s; }
.timeline-item:nth-child(11) { animation-delay: 1.1s; }
.timeline-item:nth-child(12) { animation-delay: 1.2s; }
.timeline-item:nth-child(13) { animation-delay: 1.3s; }
.timeline-item:nth-child(14) { animation-delay: 1.4s; }
.timeline-item:nth-child(15) { animation-delay: 1.5s; }
.timeline-item:nth-child(16) { animation-delay: 1.6s; }
.timeline-item:nth-child(17) { animation-delay: 1.7s; }
.timeline-item:nth-child(18) { animation-delay: 1.8s; }
.timeline-item:nth-child(19) { animation-delay: 1.9s; }
.timeline-item:nth-child(20) { animation-delay: 2.0s; }
.timeline-item:nth-child(21) { animation-delay: 2.1s; }

/* Print styles */
@media print {
  .page-header {
    background: white;
    color: black;
  }
  
  .timeline-card {
    background: white;
  }
  
  .timeline::before {
    background: #ccc;
  }
  
  .timeline-marker {
    background: white;
    border-color: #ccc;
  }
  
  .timeline-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .summary-card {
    background: white;
    border: 1px solid #ccc;
  }
}

