/* Timeline Section Starts*/
.timeline-events {
  padding: 5px 10px;
  background-color: #ffffff;
}

.timeline-events h2 {
  font-family: "Amatic SC", cursive;
  font-size: clamp(24px, 5vw, 35px);
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
}

.timeline-month {
  margin-bottom: 0px;
}



/* .timeline-month h3 {
  font-family: "Amatic SC", cursive;
  font-size: clamp(24px, 5vw, 35px);
  font-weight: 700;
  color: #ff0000;
  margin-bottom: 5px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0px;
} */

.timeline-month h3 {
  font-family: "Amatic SC", cursive;
  font-size: clamp(24px, 5vw, 35px);
  font-weight: 700;
  color: #ff0000;

  display: flex;
  align-items: center;
  gap: 14px;
  margin: 5px 0 0px;
}

.timeline-month h3::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #d6d6d6;
}

.timeline-entry {
  margin-bottom: 4px;
  padding: 0px 10px 0px 10px;
  border-left: 4px solid #f44336;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* .timeline-entry h2 {
  font-family: "Amatic SC", cursive;
  font-size: clamp(24px, 5vw, 35px);
  font-weight: 700;
  color: #000000;
  text-align: left;
  margin-bottom: 0px;
} */

.timeline-entry h2 {
  font-family: "Amatic SC", cursive;
  /* font-size: clamp(26px, 4vw, 38px); */
  font-size: clamp(24px, 5vw, 35px);
  font-weight: 700;
  color: #b22222;

  text-align: left;
  line-height: 1;

  margin: 4px 0 6px 0;
  padding-bottom: 2px;

  border-bottom: 1px solid #d8d8d8;

  letter-spacing: 0.5px;
}

.timeline-entry h2 + .timeline-date{
  margin-top: -2px;
}

.timeline-date {
  font-family: "Amatic SC", cursive;
  font-size: clamp(20px, 2.5vw, 23px);
  line-height: 1.2;
  font-weight: 700;
  color: #000;
  margin-bottom: 0px;
}

.timeline-content {
  color: #333;
  text-align: justify;
  line-height: 1.5;
}

.timeline-content p {
  margin: 0 0 5px 0;
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

/* FORMATTING BARBAROSSA START */

.header-agnorth,
.header-agcentre,
.header-agsouth,
.header-other{
  font-family: Arial;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.header-agnorth{ color: #2F5BD4; }
.header-agcentre{ color: #1F8A4C; }
.header-agsouth{ color: #C76A00; }
.header-other{ color: #6B7280; }

.left-border-agnorth,
.left-border-agcentre,
.left-border-agsouth,
.left-border-other{
  padding-left: 5px;
  margin-bottom: 3px;
}

.left-border-agnorth{border-left: 2px solid #2F5BD4}
.left-border-agcentre{border-left: 2px solid #1F8A4C}
.left-border-agsouth{border-left: 2px solid #C76A00}
.left-border-other{border-left: 2px solid #6B7280}

.left-border-agnorth p,
.left-border-agcentre p,
.left-border-agsouth p,
.left-border-other p { margin: 0 0 6px; }

.left-border-agnorth p:last-child,
.left-border-agcentre p:last-child,
.left-border-agsouth p:last-child,
.left-border-other p:last-child { margin-bottom: 0; }

/* FORMATTING BARBAROSSA END */

.timeline-content ul {
  margin: 10px 0 10px 15px;   /* left indent for bullets */
  padding-left: 20px;         /* spacing before the bullet */
  list-style-type: disc;      /* standard filled bullet */
}
.timeline-content li {
  margin-bottom: 5px;         /* small gap between list items */
  line-height: 1.6;           /* matches your paragraph spacing */
}

/* Timeline Section Ends*/

/* Timeline Map or Photograph Starts*/

.timeline-media {
  background-color: #ffffff;
  padding: 5px 10px;
}

.timeline-media-wrapper {
  max-width: 768px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.timeline-media-image {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
}

.timeline-media-caption {
  font-size: clamp(11px, 1.1vw, 13px);
  margin-top: -7px;
  text-align: center;
  line-height: 1.4;
  font-variant: small-caps;
  letter-spacing: 0.5px;
  color: #555;
  font-style: normal;
  font-weight: 400;
}


/* Timeline Map or Photograph Ends*/



/* Timeline YouTube Video Embed Start */

.timeline-video {
  background-color: #ffffff;
  padding: 5px 10px;
}

.timeline-video-wrapper {
  max-width: 768px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-video-wrapper h3 {
  text-align: left;
}

.video-wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.timeline-video-caption {
  font-size: clamp(11px, 1.1vw, 13px);
  margin-top: 2px;
  text-align: center;
  line-height: 1.4;
  font-variant: small-caps;
  letter-spacing: 0.5px;
  color: #555;
  font-style: normal;
  font-weight: 400;
}
/* Timeline YouTube Video Embed Ends*/



/* Timeline Single Sub-Timeline Section Start */
.single-sub-timeline {
  padding: 5px 10px;
  background-color: #ffffff;
}

.single-sub-container h2 {
  font-family: "Amatic SC", cursive;
  font-size: clamp(24px, 5vw, 35px);
  font-weight: 700;
  color: #000;
  text-align: center;
}

.single-sub-wrapper {
  display: flex;
  justify-content: center;   /* centres the card horizontally */
  margin-top: 0px;
}

.single-sub-card {
  background-color: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px;
  width: min(500px, 90%);      /* naturally centres and keeps layout tight */
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.single-sub-card h3 {
  font-family: "Amatic SC", cursive;
  font-size: clamp(20px, 2.5vw, 23px);
  font-weight: 700;
  margin: 0;
  color: #111;
  text-align: left;
  line-height: 1.2;
}

.single-sub-card p {
  margin: 0;
  text-align: justify;
  font-size: clamp(12px, 1.2vw, 15px);
}

.single-sub-btn {
  display: inline-block;
  text-align: center;
  padding: 4px 8px;
  margin-top: 4px;

  font-family: "Amatic SC", cursive;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;

  background-color: #f44336;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid #000;

  transition: transform 0.15s ease, background-color 0.15s ease;
}

.single-sub-btn:hover {
  background-color: #d63228;
  transform: scale(1.02);
}
/* Timeline Sub-Timeline Section End */


/* --------------- YouTube Thumbnail Fallback Start ---------------- */


/* ==========================================================================
   Newsreel Thumbnail Card Component
   ========================================================================== */

/* Outer Section & Heading */
.newsreel-section {
  padding: 20px 0;
}

.newsreel-heading {
  margin-top: 0;
  margin-bottom: 0px;
}

.newsreel-figure {
  margin: 0;
  padding: 0;
}

/* Centered Outer Box */
.newsreel-container {
  max-width: 768px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  height: auto;
}

/* Interactive Card Link */
.newsreel-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  /* border-radius: 8px; */
  overflow: hidden;
  text-decoration: none;
}

/* Image Cropping & Hover */
.newsreel-crop {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.newsreel-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops 4:3 black bars automatically */
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.newsreel-card:hover .newsreel-crop img {
  transform: scale(1.04);
  opacity: 1;
}

/* Red Play Button Overlay */
.newsreel-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 0, 0, 0.9);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 24px;
  font-weight: bold;
  font-family: sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.newsreel-card:hover .newsreel-badge {
  background-color: #ff0000;
  transform: translate(-50%, -50%) scale(1.05);
}

.newsreel-badge-icon,
.newsreel-badge-text {
  font-size: 14px;
}

/* Caption Underneath */
/* .newsreel-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
} */

.newsreel-caption {
  font-size: clamp(11px, 1.1vw, 13px);
  margin-top: 0px;
  text-align: center;
  line-height: 1.4;
  font-variant: small-caps;
  letter-spacing: 0.5px;
  color: #555;
  font-style: normal;
  font-weight: 400;
}

/* --------------- YouTube Thumbnail Fallback End ---------------- */