/* About Page Styles */

/* ══════════════════════════════════════════
   Richtext content
   ══════════════════════════════════════════ */

.ab-richtext {
  color: #1f2937;
  line-height: 1.8;
  font-size: 15px;
}
.ab-richtext p { margin-bottom: 14px; }
.ab-richtext p:last-child { margin-bottom: 0; }
.ab-richtext h2 { font-size: 22px; font-weight: 700; color: #1e8756; margin: 24px 0 8px; }
.ab-richtext h3 { font-size: 17px; font-weight: 600; margin: 18px 0 6px; }
.ab-richtext ul, .ab-richtext ol { margin-left: 22px; margin-bottom: 14px; }
.ab-richtext li { margin-bottom: 5px; }
.ab-richtext a { color: #1e8756; font-weight: 600; text-decoration: none; }
.ab-richtext a:hover { text-decoration: underline; }
.ab-richtext blockquote {
  border-left: 4px solid #1e8756;
  padding: 10px 18px;
  margin: 18px 0;
  background: #e6f4ea;
  border-radius: 0 10px 10px 0;
  color: #6b7280;
  font-style: italic;
  font-size: 14px;
}
.ab-richtext img { max-width: 100%; border-radius: 10px; margin: 16px 0; }

/* ══════════════════════════════════════════
   Sticky date-range pill bar
   ══════════════════════════════════════════ */

.tl-datebar {
  position: fixed;
  top: 105px;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0d3b22 0%, #1e8756 60%, #2d6a4f 100%);
  box-shadow: 0 4px 16px rgba(13, 59, 34, 0.3);
  overflow-x: auto;
  scrollbar-width: none;
}
.tl-datebar::-webkit-scrollbar { display: none; }

.tl-datebar ~ .page-title-header { padding-top: 66px; }
.tl-datebar ~ .gallery-page      { padding-top: 0; }

.tl-datebar-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}
.tl-datebar-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  transform: translateY(-1px);
}
.tl-datebar-pill.active {
  background: #fff;
  border-color: #fff;
  color: #1e8756;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   Timeline layout overrides
   ══════════════════════════════════════════ */

.timeline-page #aboutTimeline {
  max-width: 1600px;
}

.timeline-page .timeline-item {
  width: 50%;
  padding: 70px 12px 50px;
  overflow: visible;
}

/* Hide the generic ::before dot — replaced by tl-dot-date */
.timeline-page .timeline-item::before {
  display: none;
}

/* Date badge on the centre line */
.tl-dot-date {
  position: absolute;
  top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1e8756;
  color: #fff;
  border-radius: 10px;
  padding: 5px 9px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(30, 135, 86, 0.4);
  z-index: 3;
  min-width: 46px;
}
.tl-left  .tl-dot-date { right: 0; transform: translateX(50%); }
.tl-right .tl-dot-date { left: 0;  transform: translateX(-50%); }

.tl-dot-day { font-size: 17px; font-weight: 800; }
.tl-dot-mon { font-size: 9px;  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.tl-dot-yr  { font-size: 9px;  font-weight: 600; color: rgba(255, 255, 255, 0.75); }

/* ══════════════════════════════════════════
   About item card
   ══════════════════════════════════════════ */

.tl-item-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s;
}

.tl-item-card:hover {
  box-shadow: 0 16px 48px rgba(30, 135, 86, 0.16);
  transform: translateY(-4px);
}

/* Full-width image */
.tl-item-img-wrap {
  overflow: hidden;
}

.tl-item-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tl-item-card:hover .tl-item-img {
  transform: scale(1.04);
}

/* Card body */
.tl-item-body {
  padding: 22px 24px 24px;
  border-top: 4px solid #1e8756;
}

/* Title */
.tl-item-title {
  font-size: 20px;
  font-weight: 800;
  color: #0d3b22;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}

/* Content */
.tl-item-content {
  color: #374151;
  font-size: 14.5px;
  line-height: 1.75;
}

/* Empty state */
.abi-empty {
  text-align: center;
  color: #6b7280;
  padding: 60px 24px;
  font-size: 15px;
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */

@media (max-width: 700px) {
  .timeline-page .timeline-item {
    width: 100%;
    padding: 50px 16px 30px;
  }
  .tl-left  .tl-dot-date,
  .tl-right .tl-dot-date {
    left: 16px;
    right: auto;
    transform: none;
  }

}
