.association-history-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

.history-heading {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: #1a4c3d;
}

.history-timeline {
  position: relative;
  border-left: 3px solid #ccc;
  padding-left: 2rem;
}

.timeline-entry {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-date {
  position: absolute;
  left: -5.5rem;
  top: 0;
  background: #1a4c3d;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: bold;
  text-align: center;
  width: 4rem;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #f4f9f4;
  padding: 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.timeline-content h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #1a4c3d;
}

.timeline-content p {
  font-size: 1rem;
  margin: 0.5rem 0 1rem;
}

/* Main image */
.timeline-content > img {
  display: block;
  margin-top: 1rem;
  max-width: 180px;
  width: auto;
  height: auto;
  border-radius: 0.375rem;
}

/* Additional images inline */
.dual-img {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.dual-img img {
  display: block;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.375rem;
  background: #f4f9f4;
  padding: 0.25rem;
}

/* Stronger selectors to override portal CSS */
.association-history-page .timeline-content .btn-link {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #006699 !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  max-width: 180px;
}

.association-history-page .timeline-content .btn-link:visited {
  color: #fff !important;
}

.association-history-page .timeline-content .btn-link:hover {
  background-color: #004f73 !important;
  color: #fff !important;
}

@media (max-width: 600px) {
  .timeline-date {
    left: -4.5rem;
    width: 3.5rem;
    font-size: 0.75rem;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .timeline-content p {
    font-size: 0.95rem;
  }
}
