
:root {
    --primary-color: #00853f;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.events-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

.events {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.event-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.event-image-container {
    position: relative;
}

.event-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.event-date-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.event-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.event-category,
.event-year {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.event-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.profile-btn:hover {
    background: #006e33;
}

.profile-btn i {
    transition: transform 0.3s ease;
}

.profile-btn:hover i {
    transform: translateX(5px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.pagination a.active,
.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .events {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .events {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .events {
        grid-template-columns: 1fr;
    }
}