/* ── Scoped Reset ── */
.pcoh-timeline, .pcoh-timeline * {
  box-sizing: border-box;
}
.pcoh-timeline {
  --pt-blue-dark: #00338C;
  --pt-blue-mid: #135D99;
  --pt-gold: #EAB830;
  --pt-gold-glow: rgba(234,184,48,0.15);
  --pt-white: #fff;
  --pt-gray-50: #f8fafc;
  --pt-gray-100: #f1f5f9;
  --pt-gray-200: #e2e8f0;
  --pt-gray-600: #475569;
  --pt-gray-800: #1e293b;

  font-family: 'mulish', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--pt-gray-50);
  color: var(--pt-gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 60px 24px 100px;
  position: relative;
  overflow: hidden;
}

/* ── Container ── */
.pcoh-timeline .pt-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Center Line ── */
.pcoh-timeline .pt-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--pt-blue-mid), var(--pt-blue-dark), var(--pt-gold), var(--pt-blue-dark), var(--pt-blue-mid));
  transform: translateX(-50%);
  border-radius: 3px;
}

/* ── Year Marker ── */
.pcoh-timeline .pt-year {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 40px 0 28px;
}
.pcoh-timeline .pt-year:first-of-type { margin-top: 0; }
.pcoh-timeline .pt-year span {
  background: var(--pt-blue-dark);
  color: var(--pt-white);
  padding: 6px 28px;
  border-radius: 50px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0,51,140,0.25);
  z-index: 2;
}

/* ── Timeline Item ── */
.pcoh-timeline .pt-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
}
.pcoh-timeline .pt-item.pt-left { flex-direction: row; }
.pcoh-timeline .pt-item.pt-right { flex-direction: row-reverse; }

/* ── Overlap Fix ──
   The JS packing (pcohLayout) pulls items up with negative-ish
   margin-top offsets, so these full-width row wrappers overlap each
   other vertically even though the cards themselves don't. Without
   this, a later item's empty half sits on top of an earlier card and
   swallows clicks on its links and images.

   Making the wrapper click-through and re-enabling the card + dot
   keeps :hover working — hover still propagates from the card up to
   .pt-item, so all the existing .pt-item:hover rules are unaffected. */
.pcoh-timeline .pt-item {
  pointer-events: none;
}
.pcoh-timeline .pt-item .pt-card,
.pcoh-timeline .pt-item .pt-dot {
  pointer-events: auto;
}
/* Lifted card on hover should never render under a neighbor.
   Must beat .pt-dot's z-index: 3. */
.pcoh-timeline .pt-item:hover { z-index: 4; }

/* ── Staggered Packing (desktop) ──
   Handled by JavaScript (pcohLayout below): each card is pulled up to
   sit just below the previous card ON THE SAME SIDE, giving a packed
   mosaic feel regardless of opposite-side card heights. --pt-gap is
   the vertical gap between same-side cards (keep in sync with JS). */
.pcoh-timeline { --pt-gap: 20px; }

/* ── Dot ── */
.pcoh-timeline .pt-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pt-white);
  border: 3px solid var(--pt-blue-mid);
  transform: translateX(-50%);
  z-index: 3;
  transition: all 0.3s ease;
}
.pcoh-timeline .pt-item:hover .pt-dot,
.pcoh-timeline .pt-item.pt-highlight .pt-dot {
  background: var(--pt-gold);
  border-color: var(--pt-gold);
  box-shadow: 0 0 0 6px var(--pt-gold-glow), 0 0 20px rgba(234,184,48,0.3);
  transform: translateX(-50%) scale(1.2);
}

/* ── Card ── */
.pcoh-timeline .pt-card {
  width: calc(50% - 48px);
  background: var(--pt-white);
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: 0 2px 8px rgba(0,51,140,0.06), 0 8px 32px rgba(0,0,0,0.04);
  border: 1px solid var(--pt-gray-200);
  transition: all 0.3s ease;
  position: relative;
}
.pcoh-timeline .pt-item:hover .pt-card {
  box-shadow: 0 8px 30px rgba(0,51,140,0.12), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-3px);
  border-color: var(--pt-blue-mid);
}
.pcoh-timeline .pt-item.pt-left .pt-card { margin-right: auto; }
.pcoh-timeline .pt-item.pt-right .pt-card { margin-left: auto; }

/* ── Connector ── */
.pcoh-timeline .pt-card::before {
  content: '';
  position: absolute;
  top: 28px;
  width: 36px;
  height: 2px;
}
.pcoh-timeline .pt-item.pt-left .pt-card::before {
  right: -37px;
  background: linear-gradient(90deg, var(--pt-blue-mid), var(--pt-gray-200));
}
.pcoh-timeline .pt-item.pt-right .pt-card::before {
  left: -37px;
  background: linear-gradient(90deg, var(--pt-gray-200), var(--pt-blue-mid));
}

/* ── Highlight Card ── */
.pcoh-timeline .pt-item.pt-highlight .pt-card {
  background: linear-gradient(135deg, var(--pt-blue-dark), var(--pt-blue-mid));
  border: 2px solid var(--pt-gold);
}
.pcoh-timeline .pt-item.pt-left.pt-highlight .pt-card::before {
  background: linear-gradient(90deg, var(--pt-gold), var(--pt-blue-mid));
}
.pcoh-timeline .pt-item.pt-right.pt-highlight .pt-card::before {
  background: linear-gradient(90deg, var(--pt-blue-mid), var(--pt-gold));
}
.pcoh-timeline .pt-item.pt-highlight .pt-label,
.pcoh-timeline .pt-item.pt-highlight .pt-heading,
.pcoh-timeline .pt-item.pt-highlight .pt-text {
  color: var(--pt-white);
}
.pcoh-timeline .pt-item.pt-highlight .pt-heading {
  color: var(--pt-gold);
}
.pcoh-timeline .pt-item.pt-highlight .pt-link {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: var(--pt-white);
}
.pcoh-timeline .pt-item.pt-highlight .pt-link:hover {
  background: var(--pt-gold);
  border-color: var(--pt-gold);
  color: var(--pt-blue-dark);
}

/* ── Card Content ── */
.pcoh-timeline .pt-label {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pt-blue-mid);
  margin-bottom: 6px;
}
.pcoh-timeline .pt-heading {
  font-family: 'raleway', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pt-blue-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}
.pcoh-timeline .pt-text {
  font-size: 1.5rem;
  color: var(--pt-gray-600);
  line-height: 1.6;
}

/* ── Card Image (inline thumbnail) ── */
.pcoh-timeline .pt-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--pt-gray-200);
  display: block;
}
.pcoh-timeline .pt-image:hover {
  opacity: 0.88;
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(0,51,140,0.15);
}
/* Logo-style images: center and constrain */
.pcoh-timeline .pt-image.pt-logo {
  max-height: 140px;
  max-width: 200px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  padding: 12px;
  background: var(--pt-gray-50);
}
/* Larger variant for feature logos (e.g. 10-Year Anniversary) */
.pcoh-timeline .pt-image.pt-logo.pt-logo-lg {
  max-height: 260px;
  max-width: 340px;
  padding: 20px;
}
/* Images on highlight cards */
.pcoh-timeline .pt-item.pt-highlight .pt-image {
  border-color: rgba(234,184,48,0.3);
}
.pcoh-timeline .pt-item.pt-highlight .pt-image.pt-logo {
  background: rgba(255,255,255,0.1);
}

/* ── Media Row: image left, button(s) right ── */
.pcoh-timeline .pt-media-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}
.pcoh-timeline .pt-media-row .pt-image {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.pcoh-timeline .pt-media-row .pt-links {
  margin-top: 0;
  flex: 0 0 auto;
}

/* ── Media Links ── */
.pcoh-timeline .pt-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pcoh-timeline .pt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--pt-gray-100);
  border: 1px solid var(--pt-gray-200);
  color: var(--pt-blue-mid);
  transition: all 0.2s ease;
  cursor: pointer;
}
.pcoh-timeline .pt-link:hover {
  background: var(--pt-blue-mid);
  border-color: var(--pt-blue-mid);
  color: var(--pt-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(19,93,153,0.25);
}
.pcoh-timeline .pt-link svg {
  width: 13px; height: 13px; flex-shrink: 0; opacity: 0.7;
}
.pcoh-timeline .pt-link:hover svg { opacity: 1; }

/* ── Lightbox ── */
.pcoh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,51,140,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pcoh-lightbox.pt-open {
  opacity: 1;
  pointer-events: all;
}
.pcoh-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  object-fit: contain;
}
.pcoh-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: sans-serif;
}
.pcoh-lightbox-close:hover {
  background: var(--pt-gold);
  border-color: var(--pt-gold);
  color: var(--pt-blue-dark);
  transform: rotate(90deg);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .pcoh-timeline { padding: 40px 16px 60px; }
  .pcoh-timeline .pt-line { left: 20px; }
  .pcoh-timeline .pt-year { justify-content: flex-start; }
  .pcoh-timeline .pt-year span { font-size: 1.5rem; padding: 5px 18px; }
  .pcoh-timeline .pt-item,
  .pcoh-timeline .pt-item.pt-left,
  .pcoh-timeline .pt-item.pt-right {
    flex-direction: row;
    padding-left: 52px;
  }
  .pcoh-timeline .pt-dot { left: 20px; top: 20px; }
  .pcoh-timeline .pt-card,
  .pcoh-timeline .pt-item.pt-left .pt-card,
  .pcoh-timeline .pt-item.pt-right .pt-card {
    width: 100%;
    margin: 0;
  }
  .pcoh-timeline .pt-card::before { display: none; }
  .pcoh-timeline .pt-media-row { flex-direction: column; align-items: stretch; }
  .pcoh-timeline .pt-media-row .pt-links { justify-content: center; }
  .pcoh-timeline .pt-heading { font-size: 1.3rem; }
  .pcoh-timeline .pt-image { max-height: 160px; }
}
