/* ============================================================
   EVENTS PAGE STYLES
   Matches the premium and consistent look of the services page
   ============================================================ */

/* --- Section Titles --- */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* --- Upcoming Events Grid --- */
.events-section {
    margin-bottom: 5rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* --- Premium Event Card --- */
.premium-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.event-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-card:hover .event-image {
    transform: scale(1.05);
}

/* --- Badges --- */
.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-badge.soon {
    background-color: var(--secondary-color, #f39c12);
}

/* --- Event Content --- */
.event-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.event-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* --- Meta List --- */
.event-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.event-meta li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.event-meta li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    margin-top: 3px;
}

/* --- Actions --- */
.event-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.event-actions .btn {
    flex-grow: 1;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* --- Previous Events Timeline --- */
.events-timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border-color);
    margin-top: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-surface);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-date .day {
    font-size: 1.5rem;
    line-height: 1;
}

.timeline-date .month,
.timeline-date .year {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.timeline-content .event-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .events-timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -2.05rem;
    }

    .event-actions {
        flex-direction: column;
    }
}

.event-actions .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.event-actions .btn-primary,
.event-actions .btn-primary:hover,
.event-actions .btn-primary:focus {
    color: #d4af37 !important ;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.event-actions .btn-outline,
.event-actions .btn-outline:hover,
.event-actions .btn-outline:focus {
    color: var(--primary-color) !important;
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
}