/* Events Page Styles */
.events-page {
    padding: 80px 20px 50px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: #008751;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.events-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

/* Sidebar Styles */
.events-sidebar {
    flex: 0 0 300px;
}

.events-filter {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.events-filter h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
}

.filter-form .form-group {
    margin-bottom: 1.25rem;
}

.filter-form input[type="text"],
.filter-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.filter-form input[type="text"]:focus,
.filter-form select:focus {
    outline: none;
    border-color: #008751;
}

.filter-form .btn {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background-color: #008751;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-form .btn:hover {
    background-color: #006e42;
}

.btn-outline {
    background: white !important;
    border: 1px solid #008751 !important;
    color: #008751 !important;
    margin-top: 0.75rem !important;
}

/* Events List Styles */
.events-list {
    flex: 1;
}

.no-events {
    text-align: center;
    padding: 3rem 0;
    background: #f9f9f9;
    border-radius: 8px;
}

.no-events p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Event Card Styles */
.event-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.event-image {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 135, 81, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-details {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

.event-date {
    flex: 0 0 70px;
    text-align: center;
    background: #f8f9fa;
    padding: 1rem 0.5rem;
    border-radius: 6px;
}

.event-date .day {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #008751;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.event-info {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.event-info h3 {
    margin: 0 0 0.75rem;
    color: #333;
    font-size: 1.5rem;
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.95rem;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-meta i {
    color: #008751;
    width: 18px;
    text-align: center;
}

.event-info p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.event-actions {
    display: flex;
    gap: 1rem;
}

.event-actions .btn {
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.event-actions .btn-outline {
    background: transparent;
    border: 2px solid #008751;
    color: #008751;
}

.event-actions .btn-outline:hover {
    background: #008751;
    color: white;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .events-container {
        flex-direction: column;
    }
    
    .events-sidebar {
        flex: 0 0 auto;
        margin-bottom: 2rem;
    }
    
    .events-filter {
        position: static;
    }
}

@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }
    
    .event-image {
        flex: 0 0 250px;
    }
    
    .event-details {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .event-date {
        align-self: flex-start;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .event-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .events-page {
        padding: 70px 10px 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
        padding: 0 10px;
    }
    
    .page-header p {
        padding: 0 10px;
    }
    
    .event-card {
        margin-bottom: 1.5rem;
        border-radius: 0;
    }
    
    .event-image {
        flex: 0 0 200px;
    }
    
    .event-details {
        padding: 1.25rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .event-card {
        margin-bottom: 1.5rem;
    }
    
    .event-image {
        flex: 0 0 200px;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.events-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/events-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.events-filter {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.filter-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 200px;
}

.events-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    position: relative;
    height: 200px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.event-details {
    padding: 1.5rem;
}

.event-details h3 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.event-info {
    margin-bottom: 1rem;
}

.event-info p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.event-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.event-description {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

.rsvp-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.rsvp-btn:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .events-hero {
        height: 250px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .filter-container {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .events-container {
        grid-template-columns: 1fr;
    }
}
