
/* --- Search & Filter Form Styles --- */
.search-form {
    margin-bottom: 30px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-form-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.search-form input[type="text"],
.search-form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    flex-grow: 1; /* Allow inputs to grow */
    min-width: 180px; /* Minimum width for inputs */
}

.search-form button {
    padding: 10px 25px;
    background-color: #007bff; /* Warna biru solid */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #0056b3; /* Biru lebih gelap saat hover */
}

/* --- Highlight Style --- */
.highlight {
    background-color: yellow;
    color: #000;
    padding: 0 2px;
    border-radius: 3px;
}

/* --- Unified Pagination & Filter Styles --- */
.pagination-container,
.page-navigation {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.pagination-container a,
.page-navigation a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #007bff;
    color: white !important; /* Use !important to ensure override */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination-container a:hover,
.page-navigation a:hover,
.pagination-container a.active,
.page-navigation a.active {
    background-color: #0056b3;
    text-decoration: none;
}

/* General Body and Container Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0; /* Menghilangkan padding dari body */
}

.container {
    padding: 20px;
}

.section-title {
    text-align: center;
    padding-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: #007bff;
    bottom: 0;
    left: calc(50% - 25px);
}

.section-title p {
    margin-bottom: 0;
    color: #6c757d;
}

/* BCA Button Styles */
.bca-button-container {
    text-align: center;
    margin-top: 20px; /* Adjust as needed for spacing from navbar */
    margin-bottom: 20px; /* Adjust as needed for spacing to content */
}

.bca-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff; /* Windows blue */
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bca-button:hover {
    background-color: yellow;
    color: black;
    cursor: pointer;
}

/* Gallery Styles */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items horizontally */
}

.gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px; /* Rounded corners for gallery items */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 16; /* Dimensi 9:16 (vertikal) */
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.gallery-img img {
    width: 100%; /* Kecilin lebar foto */
    height: 90%; /* Kecilin tinggi foto */
    object-fit: contain; /* Pastikan seluruh gambar terlihat, menciptakan border */
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.05);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h4 {
    font-size: 18px;
    margin: 0 0 5px 0;
}

.gallery-info .gallery-lightbox {
    color: #fff;
    font-size: 24px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Image Popup Styles */
.image-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.image-popup.active {
    display: flex;
}

.popup-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 15px; /* Rounded corners for popup image */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #dc3545;
}

/* Footer Styles */
.footer {
    width: 100%;
    /* background-color: #343a40; */ /* Menghilangkan background color */
    color: #000; /* Mengubah warna teks menjadi hitam */
    padding: 20px 0; /* Add some vertical padding */
    margin-top: 30px; /* Space above footer */
}

.footer .container {
    padding: 0; /* Remove horizontal padding */
    max-width: 100%; /* Ensure it takes full width */
}

/* Responsive adjustments */
@media (min-width: 992px) {
    .gallery-item {
        width: 33.333%; /* 3 columns on large screens */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .gallery-item {
        width: 50%; /* 2 columns on medium screens */
    }
}

@media (max-width: 767px) {
    .gallery-item {
        width: 100%; /* 1 column on small screens */
    }
    .search-form-filters {
        flex-direction: column;
    }
    .search-form input[type="text"],
    .search-form select,
    .search-form button {
        width: 100%;
        max-width: none;
    }
}
