/* Event Timeline Styling */
.events-tabs .nav-pills {
    background: #f8f9fa;
    border-radius: 50px;
    padding: 5px;
    display: inline-flex;
}

.events-tabs .nav-link {
    border-radius: 50px;
    padding: 10px 30px;
    margin-left: 0;
    color: #6c757d;
    font-weight: 600;
}

.events-tabs .nav-link.active {
    background-color: white;
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.event-timeline {
    position: relative;
    padding-left: 60px;
}

.event-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #f4ece4;
}

.event-item {
    position: relative;
    margin-bottom: 40px;
}

.event-icon {
    position: absolute;
    left: -60px;
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #006b26;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #006b26;
    z-index: 1;
}

.event-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: none;
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.event-date {
    color: #006b26;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.event-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.event-meta {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.event-meta i {
    width: 20px;
}

.event-btn {
    border-radius: 8px;
    padding: 8px 30px;
    font-weight: 600;
}

.btn-register {
    border: 2px solid #006b26;
    color: #006b26;
}

.btn-register:hover {
    background-color: #006b26;
    color: white;
}

.btn-waitlist {
    border: 2px solid #6c757d;
    color: #6c757d;
}

@media (max-width: 768px) {
    .event-timeline {
        padding-left: 0;
    }

    .event-timeline::before {
        display: none;
    }

    .event-icon {
        position: relative;
        left: 0;
        margin-bottom: 15px;
    }

    .event-title {
        font-size: 1.4rem;
    }
}

/* Expandable Description */
.event-description {
    position: relative;
    max-height: 100px;
    /* Initial crop height */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.event-description.expanded {
    max-height: 2000px;
}

.event-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(transparent, white);
    transition: opacity 0.3s;
    pointer-events: none;
}

.event-description.expanded::after {
    opacity: 0;
}

.read-more-btn {
    color: #006b26;
    background: none;
    border: none;
    padding: 0;
    font-weight: 600;
    cursor: pointer;
    margin-top: -10px;
    margin-bottom: 20px;
    display: none;
    /* Hidden by default, shown via JS if needed */
}

.read-more-btn:hover {
    text-decoration: underline;
}