/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding: 120px 0 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::before {
    content: "";
    background: color-mix(in srgb, var(--background-color), transparent 70%);
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 40px;
    text-align: center;
    color: #fff;
}

.hero h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 65px;
    text-align: center;
    color: #fff;
}

.hero h2 span {
    color: var(--accent-color);
}

.hero p {
    margin: 10px 0 0 0;
    font-size: 24px;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/* Adjust icon-box size */
.hero .icon-box {
    width: 150px;
    height: 150px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease-in-out;
    border: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
    background-color: color-mix(in srgb, var(--default-color), transparent 100%);
    cursor: pointer; /* Tambahkan pointer untuk hover */
}

/* Ikon default */
.hero .icon-box i {
    font-size: 32px;
    line-height: 1;
    transition: color 0.3s ease-in-out;
    margin-bottom: 10px;
}

/* Teks default */
.hero .icon-box h3 {
    font-weight: 700;
    margin: 10px 0 0 0;
    padding: 0;
    line-height: 1.5;
    font-size: 13px;
    color: var(--default-color);
    transition: color 0.3s ease-in-out;
    text-align: center;
}

/* Warna untuk Layanan atas */
.hero .icon-box.atas i {
    color: green !important;
}

.hero .icon-box.atas:hover i {
    color: #fff !important;
}

/* Warna untuk Layanan bawah */
.hero .icon-box.bawah i {
    color: red !important;
}

.hero .icon-box.bawah:hover i {
    color: #fff !important;
}

/* Hover efek untuk icon-box */
.hero .icon-box:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
}

.hero .icon-box:hover h3 {
    color: #fff;
}

.hero .icon-box:hover h3 a {
    color: #fff;
}

/* Center the image and give it proper styling */
.image-wrapper {
    text-align: center;
    margin-bottom: 20px;
}
  
.center-image {
    display: inline-block;
    width: 50%;
    max-width: 300px;
    height: auto;
}

.modal .icon-box {
    width: 150px;
    padding: 20px;
    text-align: center;
    background-color: #f1f1f1;
    margin: 10px;
    border-radius: 10px;
}
  
.modal .icon-box h3 {
    font-size: 18px;
}

.icon-img {
    width: 100%;
    max-width: 50px;
    height: auto;
    margin-bottom: 10px;
}

/* Style the Close button */
.btn-close-custom {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}
  
.btn-close-custom:hover {
    background-color: #0056b3;
}
  
/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }

    .hero h2 {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero .icon-box {
        width: 120px;
        height: 120px;
        padding: 20px 10px;
    }

    .hero .icon-box h3 {
        font-size: 14px;
        line-height: 20px;
    }

    .hero .icon-box i {
        font-size: 28px;
    }

    .modal .icon-box {
        width: 100px;
        padding: 10px;
    }
    
    .modal .icon-box i {
        font-size: 30px;
    }
    
    .modal .icon-box h3 {
        font-size: 14px;
    }

    .icon-img {
        width: 40px;
        height: auto;
    }
}
