:root {
    --primary-color: #f77f00;
    /* Bright Orange for active elements */
    --primary-light: #fff0e6;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #888888;
    --bg-body: #ffffff;
    --radius-circle: 50%;
    --radius-card: 0;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --timeline-brown: #8b4513;
    --timeline-gray: #f5f5f5;
}
/* --- Timeline Header --- */
.timeline-nav {
    position: relative;
    padding: 2rem 0 2rem;
    margin-bottom: 0rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.timeline-nav::-webkit-scrollbar {
    display: none;
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    /* 8 Equal columns */
    position: relative;
    z-index: 1;
    min-width: 900px;
    padding: 0;
    /* No padding so grid fills width */
    gap: 80px;
    top: -20px;
}

/* The connecting line */
.timeline-line {
    position: absolute;
    top: 1.75rem;
    /* Vertically centered (Half of Halo's 3.5rem) */
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffe0cc;
    /* Very light orange/peach */
    z-index: 0;
}

/* Arrow at the end of the line */
.timeline-end-arrow {
    position: absolute;
    top: 16px;
    right: -4px;
    background-color: #fff;
}
.time-step {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
    opacity: 1;
    margin: 0 auto;
    background-color: #fff;
    /* Center in grid cell */
}

/* The Halo/Border Effect */
.time-step::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background: var(--timeline-gray);
    /* Light gray halo */
    border-radius: 50%;
    z-index: -1;
    transition: var(--transition);
}

/* The Number Circle */
.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--timeline-brown);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.time-step.active .step-circle {
    background:#f76e08;
}

.time-step.active::before {
    background: var(--primary-light);
}

.year-label {
    font-size: 25px;
    font-weight: 700;
    color: var(--timeline-brown);
    transition: var(--transition);
    margin-top: 0.5rem;
    background: #fff;
    padding: 0 5px;
}

.time-step.active .year-label {
    color:#f76e08;
}

/* --- Events Grid --- */
.events-container {
    padding: 1rem 0;
}

.events-grid {
    display: none;
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
    animation: fadeUp 0.6s ease-out;
}

.events-grid.active {
    display: grid;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.empty-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-gray);
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* --- Event Card --- */
.event-card {
    position: relative;
    height: 350px;
    border-radius: var(--radius-card);
    overflow: hidden;
    cursor: pointer;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.event-card:hover .card-bg {
    transform: scale(1.05);
}

/* Placeholder Images/Colors */
/* .bg-1 {
    background-image: url('http://pnp.local/wp-content/uploads/2026/01/da1.jpg');
}

.bg-2 {
    background-image: url('http://pnp.local/wp-content/uploads/2026/01/da1.jpg');
}

.bg-3 {
    background-image: url('http://pnp.local/wp-content/uploads/2026/01/da1.jpg');
}

.bg-4 {
    background-image: url('http://pnp.local/wp-content/uploads/2026/01/da1.jpg');
}

.bg-5 {
    background-image: url('http://pnp.local/wp-content/uploads/2026/01/da1.jpg');
}
.bg-6 {
    background-image: url('http://pnp.local/wp-content/uploads/2026/01/da1.jpg');
} */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #fff;
}

.card-text {
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.highlight-card .card-text {
    margin-bottom: 0;
}
.card-text p {
    margin-bottom: 0;
}
.card-btn {
    position: absolute;
    right: 40px;
    bottom: 45px;
}
.card-text h3 {
    font-size: 30px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color:#fff;
}

.card-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    /* /* line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; */
}
.card-text {
    max-width: 85%;
}
.card-btn {
    max-width: 10%;
    margin: 0;
}
.card-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: transparent;
    border: 0px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.event-card:hover .card-btn {
    background: transparent;
    color: var(--text-dark);
    transform: rotate(-45deg);
}

.highlight-card .card-btn {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    align-self: flex-start;
}

.highlight-card .card-btn:hover {
    transform: translateX(5px);
}
.timeline-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}
.time-step:nth-child(8) span.year-label {
    color: #f76e08;
}
.time-step:nth-child(8) span.step-circle {
    background-color: #f76e08;
}
.card-overlay {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: flex-end;
    justify-content: space-between;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}