/* Search and Sort Section */
.search-sort-container {
    padding: 20px 0;
    background-color: transparent; /* Hilangkan background abu */
}

.search-bar {
    display: flex;
    gap: 10px;
    max-width: 1155px;
    margin: 0 auto;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #000061;
    border-radius: 5px;
    font-size: 1em;
    background-color: transparent; /* Hilangkan background abu */
}

.search-bar select {
    padding: 10px;
    border: 1px solid #000061;
    border-radius: 5px;
    font-size: 1em;
    background-color: transparent; /* Hilangkan background abu */
}

/* News Container */
.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    background-color: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.news-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-date {
    font-size: 0.9em;
    color: #000000;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.2em;
    color: #000061;
    margin: 0 0 10px;
    font-weight: bold;
}

.news-description {
    font-size: 0.9em;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #000061;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #FB0E06;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding-top: 60px;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border: none;
    width: 80%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-date {
    font-size: 15px;
    color: #666; /* Warna abu-abu untuk tanggal */
    text-align: left; /* Posisi teks di kiri */
}

.modal-content h2 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0;
}

.modal-content p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: -15px;
    padding-top: 20px;
    border-top: 1px solid #000061;
}

.modal-logo {
    width: 100px; /* Perbesar ukuran logo */
    height: auto;
}

.modal-contact {
    flex: 1;
}

.modal-contact p {
    line-height: 0.8;
    margin-top: 15px;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    font-weight: bold;
    color: white; /* Warna ikon putih */
    cursor: pointer;
    transition: color 0.3s ease;
    background-color: #000061; /* Latar belakang biru */
    border-radius: 50%; /* Bentuk bulat */
    width: 40px; /* Ukuran bulat */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 40px; /* Pusatkan ikon */
}

.close:hover {
    background-color: #FB0E06; /* Warna latar belakang saat hover */
    color: white;
}

/* Pagination Section */
.pagination-container {
    padding: 20px 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 10px;
}

.pagination button {
    padding: 10px 15px;
    border: 1px solid #000061;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination button.active {
    background-color: #1d1f7a;
    color: white;
}

.pagination button:hover {
    background-color: #f1f1f1;
}

@media (max-width: 767.98px) {
    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.8);
        padding-top: 20px; /* Padding atas dikurangi */
    }

    .modal-content {
        background-color: #ffffff;
        margin: 5% auto;
        padding: 20px; /* Padding dikurangi */
        border: none;
        width: 90%; /* Lebar modal diperbesar */
        max-width: 100%; /* Maksimum lebar 100% */
        border-radius: 12px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        position: relative;
    }

    .modal-date {
        font-size: 14px; /* Ukuran font diperkecil */
        color: #666;
        text-align: left;
        margin-bottom: 10px; /* Jarak bawah */
    }

    .modal-content h2 {
        font-size: 1.5em; /* Ukuran font diperkecil */
        font-weight: bold;
        margin-bottom: 15px; /* Jarak bawah */
        padding-right: 40px; /* Beri ruang untuk tombol close */
    }

    .modal-image {
        width: 100%;
        height: 200px; /* Tinggi gambar dikurangi */
        object-fit: cover;
        border-radius: 8px;
        margin: 15px 0; /* Jarak atas dan bawah */
    }

    .modal-content p {
        text-align: justify;
        line-height: 1.6; /* Line height disesuaikan */
        margin-bottom: 15px; /* Jarak bawah */
        font-size: 14px; /* Ukuran font diperkecil */
    }

    .modal-footer {
        display: flex;
        align-items: center; /* Tengahkan vertikal */
        gap: 10px; /* Jarak antara logo dan teks */
        margin-top: 15px; /* Jarak atas */
        padding-top: 15px; /* Padding atas */
        border-top: 1px solid #000061;
    }

    .modal-logo {
        width: 60px; /* Ukuran logo diperkecil */
        height: auto;
    }

    .modal-contact {
        flex: 1;
    }

    .modal-contact p {
        line-height: 1.4; /* Line height disesuaikan */
        margin: 0; /* Hilangkan margin */
        font-size: 12px; /* Ukuran font diperkecil */
    }

    .close {
        position: absolute;
        top: 15px; /* Posisi atas disesuaikan */
        right: 15px; /* Posisi kanan disesuaikan */
        font-size: 24px; /* Ukuran font diperkecil */
        font-weight: bold;
        color: white;
        cursor: pointer;
        transition: color 0.3s ease;
        background-color: #000061;
        border-radius: 50%;
        width: 30px; /* Ukuran diperkecil */
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 30px; /* Pusatkan ikon */
    }

    .close:hover {
        background-color: #FB0E06;
        color: white;
    }
}