* {
    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;
}

/* Base styles for the header */
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;
    margin-bottom: 8px;
}

header .logo img {
    height: 40px;
}

/* Navigation menu for desktop */
nav ul {
    list-style: none;
    display: flex;
    align-items: center; /* Ensure text aligns with logo */
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px; /* Adjust spacing between nav items */
}

nav ul li:first-child {
    margin-left: 0; /* Remove left margin for the first item */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    line-height: 40px; /* Matches the height of the logo */
}

/* Hamburger Button for Mobile */
.navbar-toggler {
    background-color: #33333300;
    color: white;
    padding: 10px;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 2000;
    border-radius: 5px;
    display: none; /* hide hamburger button */
}
/* for image below haeder */
#hero {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.backgroundStyle {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex: 1 0 100%;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

#hero .hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    color: white;
    text-align: left;
    max-width: 600px;
    font-family: "montserrat", sans-serif;
    font-size: 18px;
}

/* Medium Screens (Tablets) */
@media (max-width: 1024px) {
    #hero {
        height: 500px; /* Adjust height for tablets */
    }

    #hero .hero-content {
        font-size: 16px; /* Adjust font size for tablets */
        max-width: 500px;
    }
}

/* Small Screens (Mobile) */
@media (max-width: 768px) {
    #hero {
        height: 400px; /* Adjust height for mobile */
    }

    #hero .hero-content {
        font-size: 14px; /* Smaller font size for mobile */
        max-width: 90%; /* Reduce width to fit mobile screens */
    }

    #hero .hero-content {
        left: 5%; /* Adjust left position on smaller screens */
        text-align: center; /* Center align text on smaller screens */
        transform: translateY(-50%);
    }
}

/* Extra Small Screens (Very Small Mobile) */
@media (max-width: 480px) {
    #hero {
        height: 300px; /* Adjust height for very small devices */
    }

    #hero .hero-content {
        font-size: 12px; /* Even smaller font size */
        max-width: 100%; /* Full width for small screens */
        left: 0;
        padding: 0 20px; /* Add padding to avoid touching the screen edges */
        text-align: center; /* Center text */
    }
}

/* Combined CSS for property listings section */
/* General styles for property listings */
.property-listings,
.property-listings1 {
    padding: 20px 0;
    margin-top: 50px;
}

.property-listings .container,
.property-listings1 .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.property-listings .card,
.property-listings1 .card {
    position: relative;
    width: 23%; /* Default width for larger screens */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.property-listings .card img,
.property-listings1 .card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.property-listings .card .overlay,
.property-listings1 .card .overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.property-listings .card:hover img,
.property-listings1 .card:hover img {
    transform: scale(1.05);
}

/* Responsive Styles */

/* For Tablets and smaller laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .property-listings .card,
    .property-listings1 .card {
        width: 45%; /* Two cards per row */
    }

    .property-listings .card .overlay,
    .property-listings1 .card .overlay {
        font-size: 16px;
        text-align: center;
    }

    .property-listings .card img {
        width: 100%;
        height: auto; /* Ensure the image height adjusts automatically */
        max-width: 90%; /* Slightly reduce width for padding */
        margin: 0 auto; /* Center the image */
    }
}

/* For Large Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .property-listings .card,
    .property-listings1 .card {
        width: 50%; /* Full width single card layout */
        height: auto; /* Ensure the image height adjusts automatically */
        max-width: 90%; /* Slightly reduce width for padding */
    }

    .property-listings .card .overlay,
    .property-listings1 .card .overlay {
        font-size: 14px;
        text-align: center;
    }

    .property-listings .card img,
    .property-listings1 .card img {
        width: 50%; /* Full width single card layout */
        height: auto; /* Ensure the image height adjusts automatically */
        max-width: 90%; /* Slightly reduce width for padding */
        margin: 0 auto; /* Center the image */
    }
}

/* For Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .property-listings .card,
    .property-listings1 .card {
        width: 100%; /* Full width for small devices */
        margin: 0 auto;
    }

    .property-listings .card img {
        width: 100%;
        height: auto; /* Ensure image scales properly */
        max-width: 100%; /* Full width of the container */
        margin: 0 auto;
    }

    .property-listings .card .overlay,
    .property-listings1 .card .overlay {
        font-size: 12px; /* Smaller font size */
        text-align: center;
    }
}

/*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 */
}

/* New styles for the added section */
#about-us .section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    padding: 0 10px; /* Adjust padding to ensure spacing around content */
}

#about-us .about-images,
#about-us .achievement-image {
    width: 25%; /* Adjusted width for closer alignment */
    margin-right: 90px;
    margin-left: 90px;
}

#about-us .about-text,
#about-us .achievement-text {
    width: 50%; /* Adjusted width for closer alignment */
    margin-left: 90px;
    margin-right: 90px;
    font-family: "montserrat", sans-serif;
}

#about-us h2 {
    color: #333;
    font-family: "montserrat", sans-serif;
}

#about-us p {
    color: #666;
    line-height: 1.6;
    font-family: "montserrat", sans-serif;
}

#about-us .btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #f4f4f4;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#about-us .btn:hover {
    background-color: #a76f35;
    color: #fff;
    border: 1px solid white;
}

/*Header Mobile styles */
@media (max-width: 1024px) {
    /* 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;
    }
}

/*Header Mobile styles */
@media (max-width: 860px) {
    /* 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;
    }
}

/*Header Mobile styles */
@media (max-width: 768px) {
    /* 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;
    }
}

/*Header Mobile styles */
@media (max-width: 560px) {
    /* 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;
    }
}

/*Footer Responsive styling for mobile */
@media (max-width: 1030px) {
    .footer-section {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .logos img {
        width: 30px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .hubungi-kami-icon {
        width: 20px;
        height: 20px;
    }
}

/*Footer Responsive styling for mobile */
@media (max-width: 768px) {
    .footer-section {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .logos img {
        width: 30px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .hubungi-kami-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .footer-section {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .logos img {
        width: 30px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .hubungi-kami-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 1024px) {
    #about-us .section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 40px;
    }

    #about-us .about-images,
    #about-us .achievement-image {
        width: 50%;
        margin: 20px 0;
    }

    #about-us .about-text,
    #about-us .achievement-text {
        width: 80%;
        margin: 0;
    }

    #about-us h2 {
        font-size: 1.8rem;
    }

    #about-us p {
        font-size: 1rem;
        line-height: 1.4;
    }

    #about-us .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    #about-us .section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }

    #about-us .about-images,
    #about-us .achievement-image {
        width: 70%;
        margin: 15px 0;
    }

    #about-us .about-text,
    #about-us .achievement-text {
        width: 90%;
        margin: 0;
    }

    #about-us h2 {
        font-size: 1.5rem;
    }

    #about-us p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    #about-us .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* For smaller mobile devices */
@media (max-width: 480px) {
    #about-us .about-images,
    #about-us .achievement-image {
        width: 80%;
    }

    #about-us .about-text,
    #about-us .achievement-text {
        width: 95%;
    }

    #about-us h2 {
        font-size: 1.3rem;
    }

    #about-us p {
        font-size: 0.8rem;
    }

    #about-us .btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}
