/* === FONT & ROOT VARIABLES === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #102A70; /* Biru Tua */
    --accent-color: #f5c401; /* Kuning */
    --background-white: #ffffff;
    --background-light-grey: #f8fafc;
    --text-dark: #212529;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --border-light: #e0e0e0;
    --card-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    --card-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
}

/* General Body & HTML Reset */
html { scroll-behavior: smooth; box-sizing: border-box; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: inherit; }
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--background-light-grey);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; transition: all 0.3s ease; }
h2, h3, h4 { color: var(--primary-color); }

/* Header / Breadcrumb Section */
.section-breadcrum {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3.5rem 0;
    border-bottom: 4px solid var(--accent-color);
}
.section-breadcrum .container { text-align: left; }
.section-breadcrum h2 { font-weight: 700; font-size: 2.5rem; color: var(--text-light); margin: 0; }
.section-breadcrum p { margin-top: 0.5rem; font-size: 1rem; opacity: 0.8; }
.section-breadcrum p a { color: var(--text-light); }

/* Galeri Grid Styling */
.gallery-section { padding: 80px 0; background-color: var(--background-light-grey); }
.gallery-title { text-align: center; margin-bottom: 60px; }
.gallery-title h2 { font-size: 2.5rem; font-weight: 800; color: var(--primary-color); margin-bottom: 0.5rem; }
.gallery-title p { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

/* Style untuk item galeri dengan animasi */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}
.gallery-item.is-visible { opacity: 1; transform: translateY(0); }
.gallery-item:hover { transform: translateY(-8px); box-shadow: var(--card-shadow-hover); }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* Popup / Modal Styling */
.img-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.img-modal.active { opacity: 1; visibility: visible; }
.img-modal-content { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: var(--border-radius); box-shadow: 0 10px 40px rgba(0,0,0,0.6); transform: scale(0.8); transition: transform 0.3s ease; }
.img-modal.active .img-modal-content { transform: scale(1); }
.modal-close-btn { position: absolute; top: 20px; right: 20px; color: var(--text-light); font-size: 2.5rem; cursor: pointer; z-index: 10000; transition: transform 0.3s ease; }
.modal-close-btn:hover { transform: rotate(90deg); color: var(--accent-color); }

/* [BARU] Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    padding: 10px;
}
.pagination-link {
    color: var(--primary-color);
    background-color: var(--background-white);
    border: 1px solid var(--border-light);
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.pagination-link:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}
.pagination-link.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    cursor: default;
}
.pagination-link.disabled {
    color: var(--text-muted);
    background-color: #e9ecef;
    border-color: #dee2e6;
    pointer-events: none;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-breadcrum h2 { font-size: 2rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
    .gallery-item img { height: 200px; }
    .gallery-title h2 { font-size: 2rem; }
    .modal-close-btn { font-size: 2rem; }
    .pagination-link { padding: 8px 14px; margin: 0 3px; font-size: 0.9rem; }
}