/* KONTENER UTAMA KEGIATAN DESA */
/* KONTENER UTAMA */
.kegiatandesa-container {
    padding: 40px 40px 60px;
    background: linear-gradient(180deg, #f9fbfc, #eef5f7);
}

/* BAGIAN ATAS */
.top-bar {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

/* PENCARIAN */
.search-box {
    position: relative;
    width: 100%;
    max-width: 350px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border-radius: 30px;
    border: 2px solid #f0c400;
    outline: none;

    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ICON PENCARIAN */
.search-box::after {
    content: "🔍";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

/* GRID KEGIATAN DESA */
.grid-kegiatandesa {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* KARTU */
.card-info {
    position: relative;

    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);

    border-radius: 20px;
    padding: 15px;

    border: 2px solid rgba(255,255,255,0.4);

    box-shadow: 
        0 15px 35px rgba(0,0,0,0.15),
        0 0 20px rgba(44,110,127,0.1);

    transition: all 0.4s ease;

    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;

    cursor: pointer;
}

/* LABEL */
.card-info::before {
    content: "INFO";
    position: absolute;
    top: 10px;
    left: 10px;

    background: #f0c400;
    color: black;
    font-size: 12px;
    font-weight: bold;

    padding: 4px 10px;
    border-radius: 20px;
}

/* HOVER */
.card-info:hover {
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.25),
        0 0 30px rgba(44,110,127,0.2);
}

/* GAMBAR */
.card-info img {
    width: 100%;
    border-radius: 15px;
    transition: 0.4s;
}

/* HOVER GAMBAR */
.card-info:hover img {
    transform: scale(1.08);
}

/* TEKS */
.info-text {
    text-align: center;
    margin-top: 12px;
}

.info-text h5 {
    font-weight: 700;
    margin: 8px 0;
}

.info-text small {
    color: #777;
}

/* EMPTY */
.empty-data {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    color: #777;
    padding: 40px 0;
}

/* ANIMASI */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;

    transform: scale(0.8);
    opacity: 0;
    animation: zoomIn 0.3s forwards;
}

/* ANIMASI MODAL */
@keyframes zoomIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* SCROLL */
html {
    scroll-behavior: smooth;
}

/* GAMBAR MODAL */
.modal img {
    width: 100%;
    border-radius: 10px;
}

/* TOMBOL TUTUP */
.close {
    float: right;
    cursor: pointer;
    font-size: 20px;
}
.filter-kegiatan{
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn{
    padding: 8px 18px;
    border-radius: 20px;
    background: #2c6e7f;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.filter-btn:hover{
    background: #1f5563;
    color: white;
}

/* YANG AKTIF */
.active-filter{
    background: #f0c400;
    color: black !important;
    font-weight: 600;
}

/* TABLET */
@media (max-width: 992px) {
    .grid-kegiatandesa {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 576px) {

    .grid-kegiatandesa {
        grid-template-columns: 1fr;
    }

    .search-box input {
        width: 100%;
    }

    .kegiatandesa-container {
        padding: 80px 20px 40px;
    }
    .kegiatandesa-container {
        padding: 20px 15px 40px;
    }

    .top-bar {
        margin-bottom: 20px;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
    }

    .search-box input {
        width: 100%;
        font-size: 15px;
    }
}