:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --accent-hover: #c0392b;
    --text-color: #333;
    --text-light: #ecf0f1;
    --bg-light: #f5f5f5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    --transition: 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.logo img {
    height: 70px;
    margin-right: 1rem;
    order: 1;
}


/* Pastikan header tidak menutupi konten */

.events-page {
    padding: 2rem 0;
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Filter dan Search Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.filter-buttons button {
    padding: 0.6rem 1.2rem;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-buttons button:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.filter-buttons button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.search-container {
    position: relative;
    width: 250px;
}

.search-container input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
}

.search-container input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.search-container .fa-search {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #aaa;
}

/* Grid Kartu Kegiatan */
.events-grid {
    display: grid;
    /* Membuat kolom responsif: minimal 320px, dan akan mengisi ruang yang tersedia */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.event-card img {
    width: 100%;
    height: 200px; /* Menyamakan tinggi gambar */
    object-fit: cover; /* Memastikan gambar tidak gepeng */
    display: block;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: #343a40;
}

.card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 1rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

.footer-section p {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p i {
    margin-right: 10px;
    color: #3498db;
}

.footer-section address {
    font-style: normal;
}

.footer-section address a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-section address a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #34495e;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: #3498db;
    transform: translateY(-5px);
}

.copyright {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    width: 100%;
    color: #bdc3c7;
}
/* Penyesuaian untuk layar kecil (Mobile) */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .search-container {
        width: 100%;
    }
}