/* Signature Project Section */
.container.my-4 h2 {
    color: navy;
    font-weight: bold;
    text-align: center;
    padding-top: 45px;
    padding-bottom: 15px;
    font-size: 40px;
}

/* Signature Project Section */
.signature-project {
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 20px;
}

/* Signature Project Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 projects per row */
    gap: 30px;
    margin-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
}

.project-card {
    background-color: #000061;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    height: 500px; /* Tinggi gambar lebih besar */
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-details {
    padding: 20px;
    flex-grow: 1;
}

.project-details h3 {
    margin-top: 0;
    font-size: 1.5rem; /* Judul lebih besar */
    color: #ffffff;
    font-weight: bold;
}

.project-info {
    margin-top: 10px;
    font-size: 1rem; /* Deskripsi lebih besar */
    color: #ffffff;
    text-align: justify; /* Teks justify */
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 1400px;
    max-height: 90vh; /* Batasi tinggi modal */
    width: 90%;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #000061;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1001; /* Pastikan tombol close di atas konten */
}

.close-modal:hover {
    background-color: #ff0000;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Gambar dan teks setengah-setengah */
    gap: 20px;
    align-items: flex-start; /* Pastikan konten di bagian atas */
}

.modal-image-container {
    width: 100%;
    height: 550px; /* Ukuran tetap untuk gambar */
    overflow: hidden;
    border-radius: 8px;
}

#modalImage {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar akan menutupi container tanpa merubah aspek rasio */
    border-radius: 8px;
}

.modal-text-container {
    padding: 0 20px;
    align-self: flex-start; /* Deskripsi mentok ke atas */
}

#modalTitle {
    color: #1d1f7a;
    font-weight: bold;
    margin-top: 0;
    font-size: 2rem; /* Judul lebih besar */
}

#modalInfo {
    color: #000000;
    font-size: 1.1rem; /* Teks lebih besar */
    text-align: justify; /* Teks justify */
    margin-top: 10px; /* Jarak antara judul dan deskripsi */
}

.read-more-btn {
    background-color: #ffffff;
    color: navy;
    border: none;
    padding: 10px 20px;
    border-radius: 25px; /* Radius diperbesar */
    cursor: pointer;
    margin-top: 10px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

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

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

.pagination {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap; /* Agar tombol tidak overflow di layar kecil */
    justify-content: center;
}

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

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

.pagination button:hover:not(.active) {
    background-color: #f1f1f1;
}

.pagination button:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* Mobile Styles */
@media (max-width: 767.98px) {
    /* Signature Project Section */
    .container.my-4 h2 {
        font-size: 30px; /* Ukuran judul lebih kecil */
        padding-top: 30px;
        padding-bottom: 10px;
        margin-top: -15px;
        margin-bottom: -10px;
        padding-left: 25px; /* Padding kiri lebih dekat ke layar */
        padding-right: 25px; /* Padding kanan lebih dekat ke layar */
    }

    /* Project Grid */
    .project-grid {
        grid-template-columns: 1fr; /* 1 project per row */
        gap: 25px;
        padding-left: 0px; /* Padding kiri lebih dekat ke layar */
        padding-right: 0px; /* Padding kanan lebih dekat ke layar */
    }

    .project-card {
        height: auto; /* Tinggi otomatis */
    }

    .project-image {
        height: 200px; /* Tinggi gambar lebih kecil */
    }

    .project-details h3 {
        font-size: 1.2rem; /* Judul lebih kecil */
    }

    .project-info {
        font-size: 0.9rem; /* Deskripsi lebih kecil */
    }

    /* Modal Styling for Mobile */
    .modal-content {
        max-width: 90%;
        max-height: 90vh;
        padding: 15px;
    }

    .modal-grid {
        grid-template-columns: 1fr; /* Gambar dan teks satu kolom */
        gap: 10px;
    }

    .modal-image-container {
        height: 450px; /* Tinggi gambar lebih kecil */
    }

    #modalTitle {
        font-size: 1.5rem; /* Judul lebih kecil */
        margin-top: 10px;
    }

    #modalInfo {
        font-size: 1rem; /* Teks lebih kecil */
    }

    .close-modal {
        top: 5px;
        right: 5px;
        width: 25px;
        height: 25px;
        font-size: 16px;
    }

    .read-more-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .pagination-container {
        padding: 15px 0; /* Padding lebih kecil */
    }

    .pagination {
        gap: 5px; /* Jarak antar tombol lebih kecil */
    }

    .pagination button {
        padding: 8px 12px; /* Ukuran tombol lebih kecil */
        font-size: 0.9rem; /* Ukuran font lebih kecil */
    }

    /* Tombol "Prev" dan "Next" diatur agar tidak terlalu lebar */
    .pagination button#prevBtn,
    .pagination button#nextBtn {
        padding: 8px 10px; /* Padding lebih kecil */
        font-size: 0.9rem; /* Ukuran font lebih kecil */
    }

    /* Tombol halaman (angka) diatur agar tidak terlalu lebar */
    .pagination .page-btn {
        min-width: 30px; /* Lebar minimal untuk tombol angka */
        padding: 8px 10px; /* Padding lebih kecil */
    }
}