/* VOLUNTEERING - MINIMAL HORIZONTAL TIMELINE */

.volunteering {
    padding: clamp(3rem, 6vw, 6rem) 0;
    scroll-margin-top: 72px;
}

.volunteering h2 {
    text-align: center;
    color: var(--brand);
    margin-bottom: 2rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
}
.volunteering p {
    text-align: center;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0 var(--space-2);
}

.filter-chip {
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary);
    background: transparent;
    color: var(--text);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-chip:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.filter-chip .count {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 0.25rem;
}

/* Timeline Container */
.volunteer-timeline {
    display: flex;
    gap: 2rem;
    padding: 4rem var(--space-2);
    overflow-x: auto;
    scroll-behavior: smooth;
    position: relative;
}


/* Timeline Items */
.timeline-item {
    flex-shrink: 0;
    width: 300px;
    background: var(--card);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
}

/* Dot */
.timeline-item::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent);
    border: 3px solid var(--card);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--bg);
    transition: all 0.3s ease;
}


/* Subtle hover  */
.timeline-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}


/* Expanded state - click to expand */
.timeline-item.expanded {
    box-shadow: 0 8px 20px rgba(253, 56, 102, 0.15);
    border-color: var(--accent);
}

.timeline-item.expanded::before {
    background: var(--brand);
    width: 16px;
    height: 16px;
}

/* Content */
.timeline-item h3 {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.timeline-item .date {
    text-align: center;
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}


/* Description - hidden by default, show on click */
.timeline-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.timeline-item.expanded p {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.75rem;
}

.timeline-item a {
    color: var(--accent);
    text-decoration: underline;
}

.timeline-item em {
    color: var(--brand);
    font-style: italic;
    font-weight: 600;
}

/* Visual indicator for clickability */
.timeline-item::after {
    content: '▼';
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 0.7rem;
    color: var(--muted);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.timeline-item.expanded::after {
    content: '▲';
    opacity: 1;
    color: var(--accent);
}

/* Hidden items (filtered) */
.timeline-item.hidden {
    display: none;
}

/* Scrollbar */
.volunteer-timeline::-webkit-scrollbar {
    height: 6px;
}

.volunteer-timeline::-webkit-scrollbar-track {
    background: var(--secondary);
    border-radius: 3px;
}

.volunteer-timeline::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* Timeline Container */
.volunteer-timeline {
    display: flex;
    gap: 2rem;
    padding: 4rem var(--space-2);
    overflow-x: auto;
    scroll-behavior: smooth;
    position: relative;
    justify-content: flex-start; /* Default: start for scrolling */
    transition: justify-content 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
    .timeline-item {
        width: 260px;
    }

    .timeline-item h3 {
        font-size: 0.9rem;
    }

    .filter-bar {
        gap: 0.5rem;
    }

    .filter-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}