/* Latest Events Page Styles */

/* Hero Section */
.events-hero {
    position: relative;
    height: 400px;
    background: url('../img/latest_events_backgraound.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero-content p {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Events Section */
.events-section {
    background-color: rgba(255, 241, 242, 1);
    padding: 60px 0;
    /*min-height: 100vh;*/
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.events-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.filters {
    display: flex;
    gap: 15px;
}

.filter-dropdown {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: rgba(126, 126, 126, 1);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.filter-dropdown:hover {
    border-color: #A6625F;
}

.filter-dropdown:focus {
    border-color: #A6625F;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Event Card */
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.event-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: white;
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-content {
    padding: 25px;
}

.event-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #A6625F;
    margin-bottom: 12px;
}

.event-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(126, 126, 126, 1);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .events-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .events-header h2 {
        font-size: 28px;
    }

    .filters {
        width: 100%;
        flex-direction: column;
    }

    .filter-dropdown {
        width: 100%;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-content {
        padding: 20px;
    }

    .event-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .events-hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .events-section {
        padding: 40px 0;
    }

    .events-header h2 {
        font-size: 24px;
    }

    .event-image {
        height: 200px;
    }
}