* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "montserrat", sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.5s ease;
    font-family: "montserrat", sans-serif;
    height: 71.19px;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 71.19px;
}

.sticky.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

header .container {
    display: flex;
    align-items: center;
    width: 100%;
}

header .logo {
    display: flex;
    align-items: center;
    margin-right: 70px;
}

header .logo img {
    height: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 60px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
}
/* Hero section */
#hero {
    position: relative;
    height: 50vh; /* Responsif, tinggi menyesuaikan dengan viewport */
    background-image: url("../images/pexels_ekaterina_bolovtsova_6077123.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    color: white;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(
        0,
        0,
        0,
        0.5
    ); /* Overlay gelap untuk teks terlihat jelas */
}
/* Contact Section Styles */
#contact {
    padding: 30px 0;
}

#contact h1 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 10px;
}

#contact hr {
    border: 1px solid #333;
    width: 50px;
    margin: 0 auto 20px auto;
}

/* Main Location Section */
.location-section {
    display: flex;
    justify-content: center; /* Center the content */
    flex-wrap: wrap;
    gap: 20px; /* Add some space between the location sections */
}

/* Location Card */
.location {
    margin-top: 50px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    border: 1px solid #ccc; /* Add border */
    padding: 20px; /* More padding */
    border-radius: 20px; /* Add rounded corners */
    background-color: #fff; /* Background color */
    max-width: 100%; /* Adjust max width to ensure it's not too close to the edge */
    flex-direction: row;
}

/* Iframe for the map */
.location iframe {
    width: 300px;
    height: 200px;
    border: none;
    margin-right: 30px; /* Adjusted margin to shift the map to the right */
}

/* Location details */
.location-details {
    max-width: 400px;
}

.location-details h2 {
    font-size: 1.2em; /* Reduced font size */
    margin-bottom: 10px;
}

.location-details p {
    margin: 5px 0;
    font-size: 0.9rem; /* Reduced font size */
}

.location-details a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.location-details a:hover {
    text-decoration: underline;
}

/* footer */

footer {
    background: #f0ede0;
    padding: 5px 20px; /* Adjust padding to make background smaller */
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}

.footer-section {
    width: 23%;
    padding: 0px; /* Reduce padding */
    margin-bottom: 8px; /* Reduce margin-bottom */
    position: relative;
}

.footer-section.hubungi-kami {
    margin-right: 10px; /* Mengurangi margin di antara mereka */
}

.footer-section h2 {
    font-family: "roboto", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    margin-bottom: 8px; /* Reduce margin-bottom */
    position: relative;
}

.footer-section p,
.footer-section a {
    /* font-weight: 500; */
    font-size: 14px;
    line-height: 20px; /* Reduce line-height */
    color: #000000;
    margin: 0 0 8px 0; /* Reduce margin */
}

.footer-section a {
    text-decoration: none;
    color: #000000;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section .social-media {
    display: flex;
    justify-content: flex-start;
    gap: 5px; /* Reduce gap */
}

.social-icon {
    width: 24px;
    height: 24px;
    background-size: cover;
}

.hubungi-kami-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 11px; /* Reduce margin-right */
}
.footer-underline {
    border-bottom: 2px solid #000000;
    width: 100%;
    margin: 10px 0; /* Reduce margin */
}

.footer-underline-short {
    border-bottom: 2px solid #000000;
    width: 100%;
    margin: 10px 0; /* Reduce margin */
}

.logos {
    display: flex;
    gap: 10px; /* Reduce gap */
    justify-content: right;
    align-items: center;
    width: 100%;
}

.logos img {
    width: 40px; /* Default size for other logos */
    height: auto;
    display: inline-block;
}

.logos img.peradi {
    width: 80px; /* Larger size for PERADI logo */
}

.footer-section img.logo {
    display: block;
    margin-top: 20px;
    width: 180px; /* Adjust size as needed */
}

/* Hero mobile */

@media (max-width: 425px) {
    /* Show the hamburger button */
    .navbar-toggler {
        display: block;
        background-color: #33333300;
        color: white;
        border-radius: 5px;
    }

    /* Hide the navbar menu initially on mobile */
    #navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95); /* Covers the full page */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Ensures it covers the whole height */
        padding: 20px;
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active ul {
        display: flex;
    }

    /* Hide the hamburger button when menu is active */
    .navbar-toggler.hidden {
        display: none;
    }

    /* Style the menu items for mobile */
    #navbar-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    #navbar-menu ul li a {
        font-size: 20px;
        color: white;
        text-align: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active {
        display: flex;
    }
}

@media (max-width: 768px) {
    #hero {
        height: 60vh; /* Kurangi tinggi untuk layar yang lebih kecil */
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 14px;
    }

    #hero .hero-content {
        margin-left: 10px;
        max-width: 280px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #hero {
        height: 50vh; /* Kurangi lebih lanjut untuk layar kecil */
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 12px;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px; /* Padding responsif */
}

.hero-content h1 {
    font-size: 38px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .location {
        flex-direction: column; /* Stack content vertically on smaller screens */
        padding: 20px;
        align-items: center;
        text-align: center;
    }

    .location iframe {
        width: 100%; /* Make the map take the full width on smaller screens */
        margin-right: 0;
        margin-bottom: 20px;
    }

    .location-details {
        max-width: 100%; /* Ensure text takes the full width */
        text-align: left;
    }

    .location-details h2 {
        font-size: 1.5em; /* Adjust font size for smaller screens */
    }

    .location-details p {
        font-size: 1rem; /* Increase readability */
    }
}

@media (max-width: 768px) {
    #contact h1 {
        font-size: 1.3em;
    }

    .location-details h2 {
        font-size: 1.3em;
    }

    .location-details p {
        font-size: 0.9em;
    }

    .location iframe {
        height: 180px;
    }

    .location {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #contact {
        padding: 20px 10px;
    }

    .location {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .location iframe {
        width: 100%;
        height: 160px;
        margin-bottom: 20px;
    }

    .location-details h2 {
        font-size: 1.1em;
    }

    .location-details p {
        font-size: 0.85rem;
    }

    .location-details {
        text-align: center;
    }
}
