/*GALLERY */
        div.gallery {
          border: 1px solid #ccc;
        }

        div.gallery:hover {
          border: 1px solid #777;
        }

        div.gallery img {
          width: 100%;
          height: auto;
        }

        div.desc {
          padding: 15px;
          text-align: center;
        }

        * {
          box-sizing: border-box;
        }

        .responsive {
          padding: 0 6px;
          float: left;
          width: 24.99999%;
        }

        @media only screen and (max-width: 700px) {
          .responsive {
            width: 49.99999%;
            margin: 6px 0;
          }
        }

        @media only screen and (max-width: 500px) {
          .responsive {
            width: 100%;
          }
        }

        .clearfix:after {
          content: "";
          display: table;
          clear: both;
        }

/* Adjusted styles for better responsiveness */
    .intro-img img {
      width: 100%;
      height: auto;
    }

    .gallery-image {
      height: 200px;
    }
    .btn-services,
    .btn-warning {
      font-size: 16px;
    }
    .gallery-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        justify-content: center;
    }
    .gallery-row {
        position: relative;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }
    .gallery-row:hover {
        transform: scale(1.05);
    }
    .gallery-image {
        width: 100%;
        height: 200px; /* Adjust the height as needed */
        position: relative;
        overflow: hidden;
        background-size: cover;
        border-radius: 8px 8px 0 0;
    }
    .gallery-title-container {
        padding: 16px;
        background-color: #fff;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
        transition: background-color 0.3s ease-in-out;
    }
    .gallery-row:hover .gallery-title-container {
        background-color: #f4f4f4;
    }

    .gallery-title {
        margin-bottom: 8px;
        font-weight: bold;
        font-size: 16px;
    }

    .gallery-link {
        text-decoration: none;
        color: #3498db;
        transition: color 0.3s ease-in-out;
    }

    .gallery-row:hover .gallery-link {
        color: #217dbb;
    }

        /* Loading Animation Styles */
            #loading-animation {
              display: flex;
              align-items: center;
              justify-content: center;
              position: fixed;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
              z-index: 9999; /* Higher z-index to overlay other elements */
              opacity: 1;
              transition: opacity 0.3s ease;
            }

            .spinner {
              border: 4px solid rgba(255, 255, 255, 0.3); /* Light border */
              border-top: 4px solid #3498db; /* Blue border for spinning effect */
              border-radius: 50%;
              width: 40px;
              height: 40px;
              animation: spin 1s linear infinite;
            }

            @keyframes spin {
              0% { transform: rotate(0deg); }
              100% { transform: rotate(360deg); }
            }

    /*BUTTONS*/
    .btn-custom {
        background-color: #ffc107; /* Yellow background color, you can adjust this */
        color: #212529; /* Text color, you can adjust this */
        transition: background-color 0.3s ease, transform 0.3s ease;
        border: none;
        outline: none;
        cursor: pointer;
    }
    .btn-custom:hover {
        background-color: #ba0202; /* Lighter yellow on hover, you can adjust this */
        color: #ffffff; /* Text color, you can adjust this */
        transform: scale(1.4); /* Scale the button on hover, you can adjust this */
    }
    .btn-custom2 {
        background-color: #ba0202; /* Yellow background color, you can adjust this */
        color: #ffffff; /* Text color, you can adjust this */
        transition: background-color 0.3s ease, transform 0.3s ease;
        border: none;
        outline: none;
        cursor: pointer;
    }

    .btn-custom2:hover {
        background-color: #ffc107; /* Lighter yellow on hover, you can adjust this */
        color: #212529; /* Text color, you can adjust this */
        transform: scale(1.1); /* Scale the button on hover, you can adjust this */
    }

    /* CSS for the 2x2 grid */
    .gallery-container2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    @media (max-width: 767px) {
        .gallery-container2 {
            grid-template-columns: 1fr;
        }

        .gallery-image2 {
            width: 100%; /* Set the width to 100% for mobile devices */
            max-width: 400px;
            max-height: 200px; /* Adjust the maximum width for mobile 
            devices */
        }
    }

    .gallery-row2 {
        overflow: hidden;
        position: relative;
        border-radius: 8px; /* Rounded corners */
        transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    }

    .gallery-row2:hover {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }

    .gallery-row2:active {
        transform: scale(1);
    }

    .gallery-image2 {
        background-size: cover;
        background-position: center;
        height: 300px;
        position: relative;
        border-radius: 8px; /* Rounded corners for images */
        transition: opacity 0.3s ease-out; /* Add transition for smooth opacity change */
    }

    .image-title2 {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        padding: 8px;
        text-align: center;
        opacity: 1; /* Always visible */
        transition: opacity 0.3s ease-out; /* Add transition for smooth opacity change */
        border-bottom-left-radius: 8px; /* Match the border-radius for a rounded appearance */
        border-bottom-right-radius: 8px;
    }
            .image-title {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.5);
            color: #fff;
            padding: 10px;
            text-align: center;
            font-size: 16px;
        }


        .footer-newsletter {
          text-align: left;
          margin-bottom: 0px;
        }
        .subscribe-container {
          display: flex;
          justify-content: flex-end; /* Align to the right */
          align-items: center;
          margin-left: 50px; /* Sesuaikan nilai margin sesuai kebutuhan */
        }
        .subscribe-btn {
          width: 150px;
          height: 150px;
          border-radius: 70%;
          background-color: #01438a;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
          box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
          border: none;
          overflow: hidden;
          position: relative;
        }

        .subscribe-btn:hover {
          box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8);
          transform: scale(1.1);
        }

        .subscribe-btn img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
        }

        .subscribe-btn::before {
          content: "";
          position: absolute;
          background: radial-gradient(circle, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          border-radius: 50%;
          z-index: -1;
          transition: opacity 0.3s ease;
          opacity: 0;
        }

        .subscribe-btn:hover::before {
          opacity: 1;
        }

        .whatsapp-button {
          display: inline-block;
          padding: 4px 28px;
          font-size: 14px;
          color: white;
          background-color: #01438a; /* WhatsApp green color */
          border: none;
          border-radius: 5px;
          cursor: pointer;
          transition: background-color 0.3s ease;
        }

        .whatsapp-button:hover {
          background-color: #25d366; /* Darker shade on hover */
        }

        .animated-button {
          animation: bounceIn 1s; /* Add a bounce animation from Animate.css */
        }

        /* Add your custom styles here */
        .col-lg-6 {
            position: relative;
            overflow: hidden;
        }

        .img-container {
            width: 100%;
        }

        .img-fluid {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.3s ease;
        }

        .img-fluid:hover {
            transform: scale(1.1);
        }

/*CAROUSEL ICON*/
/* Atur jarak antara ikon dan gambar pada carousel */
.carousel-control-prev,
.carousel-control-next {
    margin-top: 40%; /* Sesuaikan jarak vertikal sesuai kebutuhan */
    transform: translateY(-40%);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    margin-left: 35px; /* Sesuaikan jarak horizontal sesuai kebutuhan */
    margin-right: 35px; /* Sesuaikan jarak horizontal sesuai kebutuhan */
}

/* Atur jarak antara ikon dan gambar pada carousel pada layar kecil */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        margin-top: 0;
        transform: none;
    }
}

