.main-container {
    padding-top: 50px;
    background: white;
    margin-top: -20px;
}/* Timeline style placeholder */

.timeline-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
	margin-top: -20px;
    gap: 0.5rem;
}

.timeline-wrapper {
    position: relative;
    overflow: hidden !important;
    padding-bottom: 2rem;
    margin-top: -40px;
}

.timeline-main {
    padding-top: 20px;
}

.timeline-scroll {
    display: flex;
    scroll-behavior: smooth;
    gap: 2rem;
    scroll-snap-type: x mandatory;
    overflow-x: auto;         /* Still allows horizontal scroll */
    overflow-y: visible !important; /* Allows upward elements to show */
    white-space: nowrap;
    padding-bottom: 1rem;
    -ms-overflow-style: none;   /* IE/Edge */
    scrollbar-width: none;      /* Firefox */
    position: relative;
}


.timeline-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.event-marker {
    flex-shrink: 0;
    width: 200px;
    text-align: center;
    scroll-snap-align: start;
    position: relative;
}

.event-date-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    background: rgb(244 239 226);
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.event-card {
    border: 1px solid #79715a;
    background: rgb(244 239 226);
    margin-top: 60px !important;
    overflow: hidden;
    padding: 0px 0px 20px 0px;
    border-radius: 10px;
    box-shadow: inset 0px 0px 11px rgb(64 64 64 / 34%);
    margin-top: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    min-height: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.event-card a {
    background-color: transparent;
    color: #1a74ce;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.event-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
    padding-left: 10px;
    padding-right: 10px;
}

.main-container {
  position: relative; /* so arrows can be positioned relative to this */
}

.timeline-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff00;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 5px;
  transition: transform 0.3s ease; /* add transition */
}

.timeline-nav:hover, .timeline-nav:focus {
  transform: translateY(-50%) scale(1.1); /* keep centered while scaling */
  background: #ffffff00;
}

.timeline-nav.left {
  left: -50px; /* push outside box */
  border-radius: 50% 0 0 50%!important;
}

.timeline-nav.right {
  right: -50px; /* push outside box */
  border-radius: 0 50% 50% 0!important;
}

.timeline-wrapper {
  overflow-x: auto;
  padding: 20px;
}



.line  hr {
    border: none!important;
    height: 4px!important;
}

.event-image {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.event-image img {
  width: 100%;       /* make image fill full width of card */
  height: auto;      /* keep aspect ratio */
  object-fit: cover; /* if image is smaller, fill gracefully */
  border-radius: 8px;
}
.testament-header {
    position: sticky;
    top: 0;
    z-index: 999;
    text-align: center;
    padding: 0.5rem 1rem;
    font-weight: bold;
    font-size: 24px;
    color: #ffffff;
    padding: 4px;
}.testament-header-wrapper {
    padding:10px;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    border-radius: 20px 20px 0 0;
}

.testament-header {
    color: rgb(255,255,255,0.31);  /* gray by default */
    user-select: none;
    transition: color 0.3s ease;
}

.testament-header.active {
    color: #fff; /* highlight color */
    cursor: default;
}

.testament-header:hover:not(.active) {
    color: #fff; /* darker gray on hover */
}
/* Hide timeline navigation arrows on small screens */
@media (max-width: 480px) {
    .timeline-nav {
        display: none !important;
    }
    .timeline-scroll {
    gap: 1rem;
    }
    .event-marker{
        width: 170px;
    }.testament-header-wrapper {
    border-radius: 10px;
    }
    .event-name {
    font-size: 18px;
    }
}