/* History Page Template */
blockquote {
    padding: 0 !important;
    border: 0 !important;
    color: var(--global-color-blue);
    font-size: 100% !important;
    font-weight: 700;
}
blockquote p {
    font-weight: 700;
}
.one-container .general-content .container.flex {
	display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.group-two-sections .g2s-row > div {
    width: 50%;
    min-width: 0;
}


/* SPLIT HERO WRAPPER */
.general-hero-split {
  width: 100%;
  overflow: hidden;
}

/* Two columns, full-bleed */
.general-hero-split__inner {
  display: flex;
  min-height: unset;
  align-items: stretch;
  height: clamp(360px, 80vh, 660px);
}

/* LEFT blue panel */
.general-hero-split__left {
  flex: 0 0 70%;
  background: var(--global-color-blue);
  color: #fff;
  display: flex;
  align-items: center;
}

/* content padding + max width so text doesn't go too wide */
.general-hero-split__content {
  width: 100%;
  padding-left: clamp(18px, 5vw, 70px);
}

.general-hero-split__content h3 {
	color:#fff;
	font-size:4rem;
	font-weight: 600;
}

/* Breadcrumbs look like top small line */
.general-hero-split .single-news-breadcrumbs #breadcrumbs {
  margin: 0 0 16px;
  font-size: 1.2rem;
  line-height: 1.3;
  opacity: 0.9;
}

.general-hero-split .single-news-breadcrumbs #breadcrumbs a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.general-hero-split .single-news-breadcrumbs #breadcrumbs a:hover {
  text-decoration: underline;
}

/* Typical content styling (safe defaults) */
.general-hero-split .entry-content {
  color: rgba(255,255,255,0.95);
}

.general-hero-split .entry-content h1,
.general-hero-split .entry-content h2 {
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: 0.2px;
}

.general-hero-split .entry-content p {
  margin: 0 0 14px;
  max-width: 92ch;
  color: rgba(255,255,255,0.88);
}

/* Quote line style (if you have a quote paragraph) */
.general-hero-split .entry-content blockquote,
.general-hero-split .entry-content .hero-quote {
  margin-top: 22px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}

/* RIGHT image panel */
.general-hero-split__right {
  position: relative;
  flex: 0 0 30%;
  background: #111; /* fallback */
}

/* Make the WP <img> behave like a cover background */
.general-hero-split__right img.general-hero-split__image {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;

  /* optional: like your screenshot */
  filter: grayscale(100%) contrast(1.05);
}

/* optional subtle dark wash on image (helps text if you ever overlay) */
.general-hero-split__right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.10);
  pointer-events: none;
}

/* RESPONSIVE: stack */
@media (max-width: 900px) {
  .general-hero-split__inner {
    flex-direction: column;
  }

  .general-hero-split__left,
  .general-hero-split__right {
    flex: 0 0 auto;
  }

  .general-hero-split__right {
    min-height: 280px;
  }

  .general-hero-split__content {
    padding-left: clamp(18px, 4vw, 28px);
  }
}


/*
.one-container .general-content .container.flex .entry-content {
    max-width: 55%;
    margin-left: 5%;
}
.one-container .general-content .container.flex .entry-content {
    max-width: 55%;
    margin-top: 0;
}
.image-next-to-content {
    max-width: 40%;
}
*/
/* ========== HISTORY MAIN CONTAINER ========== */

.history-page {
  padding: 80px 0;
}


.one-container .general-content, .one-container .general-content .container {
	background-color:var(--global-color-blue);
	color:#fff;
}

.one-container .general-content h3 {
	color:#fff;
}

.one-container .general-hero {
    height: 70vh;
	background-position: center;
	position: relative;
	min-height: 200px; /* temporary test */
}	

.one-container .general-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* adjust darkness */
    z-index: 1;
}

/* Ensure hero content stays above overlay */
.one-container .general-hero > * {
    position: relative;
    z-index: 2;
}


.one-container #breadcrumbs a {
	color:#fff;
}

/* ========== INTRO SECTION (unchanged layout) ========== */

.history-intro {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 48px;
  margin-bottom: 120px;
}

.history-intro-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================= */
/* =================== TOP TIMELINE NAVIGATION ================= */
/* ============================================================= */

.history-timeline-nav {
  margin-top: 20px;
  margin-bottom: 60px;
  position: sticky;
  top: 50px;
  z-index: 9;
  background: #fff;
}

.history-decade-nav {
  display: flex;
  justify-content: center;
  gap: 10vw;
  padding-bottom: 40px;
  list-style: none;
}

.history-decade-nav-item {
  cursor: pointer;
  text-align: center;
  opacity: 1;
  position: relative;
  padding-top: 40px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 500;
}

.history-decade-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 18px;
  border: 2px solid #D1D5DC;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 9;
}
.history-decade-nav-item.is-active {
    color: var(--global-color-blue);
}

.history-decade-nav-item.is-active .history-decade-dot {
    width: 25px;
    height: 25px;
    top: 14px;
    border: 8px solid var(--global-color-blue);
    background: #fff;
}
.history-decade-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 26px;
  height: 2px;
  background: #D1D5DC;
}

.history-decade-track-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 100%;
  background: currentColor;
  transition: transform .3s ease;
  display: none;
}

/* ============================================================= */
/* =================== MAIN VERTICAL TIMELINE ================= */
/* ============================================================= */

.history-timeline-body {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 80px;
}

/* CENTER SPINE */
.history-timeline-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--global-color-blue);
  transform: translateX(-50%);
}

/* ============================================================= */
/* =================== DECADE TITLES ============================ */
/* ============================================================= */

.history-decade-block {
  position: relative;
  margin-bottom: 160px;
}
section#decade-1 .history-decade-heading {
    left: -120px;
}
.history-decade-heading {
  position: relative;
  width: fit-content;
  font-weight: 700;
  left: -70px;
  right: 0;
  margin: 0 auto 80px;
  text-align: left;
}

.history-decade-heading::after {
  content: "";
  width: 100%;
  height: 3px;
  background: var(--blue);
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================= */
/* =================== EVENT ITEMS (CORE FIX) ================== */
/* ============================================================= */

.history-event {
  position: relative;
  width: 100%;
  margin-bottom: 140px;
  min-height: 180px;
}

/* Event dot always sits on the spine */
.history-event-dot {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--global-color-blue);
  border-radius: 50%;
  box-shadow: 0 0 6px 7px rgba(0,0,0,0.15);
  transform: translateX(-50%);
  top: 50%;
  z-index: 3;
  outline: 5px solid #fff;
}

/* INTERNAL GRID – two virtual columns */
.history-event-inner {
  display: flex;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  align-items: center;
}

.history-event-meta {
  background: #fff;
  padding: 30px;
  border-radius: 6px;
}

/* ============================================================= */
/* =================== LEFT SIDE EVENT ========================= */
/* ============================================================= */

.history-event--left .history-event-inner {
  justify-items: center;
}

.history-event--left .history-event-meta {
  grid-column: 1;
  width: 420px;
  margin-right: 80px;
}

.history-event--left .history-event-image {
  grid-column: 2;
  width: 420px;
}
.history-event-year {
    font-size: 200%;
    font-weight: 700;
    color: var(--global-color-blue);
}

.history-event-text {
    font-size: 1.2rem;
    line-height: 1.3;
	color:#000;
}
/* ============================================================= */
/* =================== RIGHT SIDE EVENT ======================== */
/* ============================================================= */

.history-event--right .history-event-inner {
  justify-items: center;
  justify-content: center;
  flex-direction: row-reverse;
}

.history-event--right .history-event-meta {
  grid-column: 2;
  width: 420px;
  margin-left: 80px;
}

.history-event--right .history-event-image {
  grid-column: 1;
  width: 420px;
}

/* ============================================================= */
/* =================== IMAGES ================================ */
/* ============================================================= */

.history-event-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* ============================================================= */
/* =================== RESPONSIVE =============================== */
/* ============================================================= */

@media (max-width: 1024px) {

  .history-event-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .history-event--left .history-event-meta,
  .history-event--right .history-event-meta,
  .history-event--left .history-event-image,
  .history-event--right .history-event-image {
    transform: none;
    width: 90%;
  }

  .history-event-dot {
    left: 30px;
    transform: none;
  }

  .history-timeline-rail {
    left: 30px;
    transform: none;
  }
}

@media (max-width: 768px) {
	.one-container .general-content .container.flex {
		flex-direction: column;
	}
	.one-container .general-content .container.flex .entry-content {
		max-width: 100%;
		margin-left: 0;
	}
	.history-timeline-nav,
	.history-event-dot,
	.history-decade-track,
	.history-timeline-rail,
    .history-decade-nav {
		display:none;
	}
	.history-decade-heading,
	section#decade-1 .history-decade-heading {
		left: auto;
	}
	.history-event--right .history-event-inner,
	.history-event--left  .history-event-inner {
        flex-direction: column;
        align-items: center;
	}
	.history-event--right .history-event-meta,
	.history-event--left .history-event-meta{
		margin: 0 0 5px;
	}
	.history-decade-block,
	.history-event {
		margin-bottom: 7vh;
	}
	.history-decade-heading {
		margin: 0 auto 40px;
		text-align: center;
	}
}