.slider{
    max-height: 10px;
}

.wrapper-judul h1 {
    font-family: "Chakra Petch", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600; 
}
.wrapper-judul .text-biasa{
    max-height: 3px;
    min-width: 50px;
}
.wrapper-judul p {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-size: 20px;
    color: grey;
}

.wrapper-isi{
    margin-top: 50px;
}

.garis{
    width: 100%;
    margin: 0 auto;
}

.custom-hr {
    width: 100%; 
    border: 0,3px solid rgb(0, 0, 0.5); 
    margin-left: 0;
}

/*layanan ajah*/

.layanan .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusts to available space */
    gap: 20px;
    justify-content: center; /* Centers the grid items */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Centers the grid within its container */
}

.layanan .box {
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.layanan .box-img {
    width: 100%;
    height: auto;
    max-height: 100px;
}

.layanan .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.layanan .box-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-size: 20px;
    z-index: 2;
}

.layanan .box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}



/*layanan-negara*/

.layanan-negara .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two items per row */
    justify-content: center; /* Center the grid items */
    gap: 15px; /* Space between grid items */
    padding: 0 15px; /* Padding on the sides */
  }
  
.layanan-negara .box {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease;
  }
  
.layanan-negara .box img {
    width: 100%;
    height: 150px; /* Fixed height to keep items small */
    object-fit: cover;
    border-radius: 8px;
  }
  
.layanan-negara .box .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
.layanan-negara .box .box-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    z-index: 2;
  }
  

.layanan-negara .box:hover {
    transform: scale(1.05); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
    z-index: 1;
}

.layanan-negara .box:hover .overlay{
    background-color: rgba(0, 0, 0, 1); 
}

.layanan-negara .box:hover .box-text{
    font-size: 40px;
    z-index: 1;
}
