body {
    background-color: white;
}

/* Home Section Layout */
#home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-top: 5px;
    background-color: white;
}

.home-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: content-box; /* Ensure padding doesn't cause overflow */
}

.home-text {
    flex: 1;
    padding-right: 20px;
    margin-left: 10%;  /* Adjust to keep the text centered */
    margin-right: 10%; /* Optional: Fine-tune centering */
}

.home-text h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.home-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
    text-align: justify; /* Justifies the text */
}

.home-image {
    flex: 1.4;
    text-align: center; /* Center the text below the image */
}

.home-img {
    width: 100%; /* Ensures the image fits within the container */
    height: max-content;
    border-radius: 10px;
    margin-left: 0; /* Removes negative margin */
}

.home-image h1 {
    font-size: 1rem;
    margin-top: 1px; /* Space between the image and text */
    color: #333;
    margin-left: -39px;
}

/* Bantu Section - Styling */
.bantu-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: white;
    padding: 60px 20px;
}

.bantu-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.bantu-box {
    background: white;
    padding: 30px 20px;
    flex: 1;
    min-width: 280px;
    max-width: 32%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px; /* Increased height for consistent look */
    position: relative;
    margin-top: -30px;
}

.bantu-box h3 {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.bantu-box p,
.bantu-box ul {
    font-size: 0.95rem;
    color: #333;
    margin: 0 0 20px 0;
    padding-left: 20px; /* Increased padding for bullet visibility */
    padding-right: 20px;
    text-align: justify;
    list-style-type: disc; /* Explicitly enable bullet points */
}

.bantu-box li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #333;
    text-align: justify;
    width: 100%; /* Maintain full width */
    word-wrap: break-word;
    white-space: normal;
}

/* Ensure button alignment */
.bantu-btn {
    margin-top: auto; /* Push button to the bottom */
    margin-bottom: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #444;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.wa-icon {
    width: 40px;
    height: 20px;
    margin-right: 10px;
}

/* Pemaju & Subsale Section */
#pemaju-subsale {
    text-align: center;
    padding: 40px 0px;
    margin-top: -70px;
}

/* Property Card Styling */
.property-card {
    background-color: white;
    padding: 20px;
    width: 100%; /* Matches #home's full-width behavior */
    box-sizing: border-box; /* Ensures padding doesn't cause overflow */
    margin: 0 auto; /* Centers the card */
}

/* Property Card Heading */
.property-card h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: -40px;
}

/* Property Container */
.property-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Property Item Styling (for Pemaju and Subsale) */
.property-item {
    width: 45%; /* Each item takes roughly half the container width */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.property-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: -65px;
}

.property-item a {
    margin-top: -3px;
    font-size: 1.1rem;
    color: #444;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.property-item a:hover {
    color: #007BFF; /* Change color on hover */
}

/* Description text styling */
.property-item .description {
    margin-top: 10px;
    font-size: 1rem;
    color: #666;
    padding: 0 10px;
}

/* Testimonials Section */
#testimonials {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    margin-top: -50px;
}

#testimonials h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: white;
    font-weight: bold;
}

.testimonials-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -60px;
}

.testimonial-item {
    width: 30%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 400px; /* Fixed height to align items */
    box-sizing: border-box;
    justify-content: flex-end; /* Push content to the bottom */
}

.testimonial-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin-bottom: 20px;
    align-self: center; /* Center image horizontally */
    order: -1; /* Move image to the top of the flex container */
}

.testimonial-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1; /* Allow text to fill available space */
    justify-content: flex-start; /* Align text content to the top */
}

.testimonial-item h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.testimonial-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.testimonial-item p:nth-child(2) {
    font-weight: bold;
}

.testimonial-item p:nth-child(3) {
    font-style: italic;
}

/* Image Gallery Section */
#image-gallery.page-section {
    padding: 20px 40px;
    margin-top: -40px;
    position: relative;
    background-color: white;
   
}

#image-gallery .gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

#image-gallery .gallery-container img {
    width: calc(33.333% - 3.33px); /* 3 images per row with gap */
    height: 250px !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top !important;
    display: block !important;
}

#image-gallery .gallery-container .text-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    text-align: center;
    padding: 20px;
    margin: 0 auto;
    margin-bottom: -50px;
    animation: fadeIn 1s ease-in-out;
}

#image-gallery .gallery-container .text-container p {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.5;
    color: #333;
    font-family: 'poppins', serif;
    width: 100%;
}

/* Fade-in animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.text-container p {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.5;
    color: #333;
    font-family: 'poppins', serif;
    width: 100%;
}

/* Social Media Section */
#social-media {
    padding: 60px 20px;
    margin-top: -50px;
    background-color: #fff;
}

.social-media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.social-media-left {
    flex: 1;
    text-align: center;
}

.person-image {
    width: 1200px;
    height: auto;
    object-fit: contain;
    margin-left: -500px;
    margin-bottom: -60px;
}

.social-media-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-left: -300px;
}

.social-logo {
    width: 500px;
    margin-left: -200px;
    margin-bottom: -70px;
    height: auto;
}

.social-text-container {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Small gap between text lines */
    width: 100%; /* Ensure consistent width for alignment */
}

.social-text, .social-location, .phone-link {
    font-size: 1.5rem;
    color: #333; 
    text-align: left; /* Align all text to the left for synchronization */
    margin: 0; /* Remove default margins to ensure alignment */
    line-height: 1.5;
}

.social-text {
    font-weight: bold;
}

.social-location {
    font-size: 1.2rem;
}

.phone-link {
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
}

.phone-link:hover {
    color: #007BFF;
}

.social-icons {
    display: flex;
    margin-left: -80px;
}

.social-icon {
    margin-right: -90px; /* Negative margin to reduce the gap between icons */
}

.social-icon img {
    width: 180px;
    margin-top: -30px;
    height: auto;
    object-fit: contain;
    display: block; /* Ensure no inline spacing from images */
}

.social-icon:hover img {
    opacity: 0.8;
}

/* Fix: Bantu boxes layout for mobile */
@media screen and (max-width: 768px) {
    #home {
        display: flex;
        flex-direction: column; /* Stack text and image vertically */
        align-items: center; /* Center content */
        padding: 20px;
        margin-top: 5px;
        background-color: white;
        box-sizing: border-box;
        margin-bottom: -17px;
    }

    .home-content {
        display: flex;
        flex-direction: column; /* Ensure vertical stacking */
        align-items: center;
        width: 100%;
    }

    .home-text {
        padding-right: 0;
        text-align: justify;
        margin-left: 0;
        margin-right: 0;
        width: 100%; /* Full width for text */
    }

    .home-image {
        text-align: center;
        margin-top: 20px;
        width: 100%; /* Full width for image container */
        max-width: 100%;
        margin-right: -20px;
    }

    .home-img {
        width: 100%; /* Fill container width */
        max-width: 500px; /* Cap width for larger image */
        height: auto; /* Maintain aspect ratio */
        max-height: 300px; /* Prevent excessive height */
        object-fit: contain; /* Scale without distortion */
        margin: 0 auto; /* Center image */
        border-radius: 10px;
        margin-left: 10px;
        box-sizing: border-box;
    }

    .home-image h1 {
        font-size: 1rem;
        margin-top: 10px; /* More space below image */
        margin-left: -13px; /* Remove negative margin */
    }

    .bantu-container {
        flex-direction: column;
        align-items: stretch;
        display: flex;
        margin-bottom: -95px;
    }

    .bantu-box {
        max-width: 100%;
        margin-bottom: 20px;
        min-height: 300px; /* Ensure uniform height */
        height: auto; 
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-top: -30px;
    }

    .bantu-box p,
    .bantu-box ul {
        padding-left: 25px; /* Consistent with desktop */
        padding-right: 20px;
        margin: 0 0 20px 0;
        font-size: 0.95rem;
        color: #333;
        text-align: justify;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        white-space: normal; /* Ensure proper text wrapping */
        word-wrap: break-word;
    }

    .bantu-box ul {
        list-style-type: disc; /* Explicitly enable bullets */
    }

    .bantu-box li {
        font-size: 0.95rem;
        color: #333;
        text-align: justify;
        margin-bottom: 10px;
        width: 100%;
        word-wrap: break-word;
        white-space: normal;
        display: list-item; /* Restore bullet rendering */
    }

    .wa-icon {
        width: 40px; /* Larger for mobile touch targets */
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        object-fit: contain;
        margin-right: 10px;
    }

    .bantu-btn {
        padding: 12px 16px; /* Adjust padding for mobile */
        font-size: 0.9rem; /* Slightly smaller text if needed */
    }

    #pemaju-subsale {
        text-align: center;
        padding: 40px 20px;
        background-color: white;
        margin-top: 0px; /* adjusted */
    }

    .property-card {
        padding: 15px;
    }

    .property-card h2 {
        font-size: 1.5rem;
        margin-bottom: 20px; /* give space between title and image */
    }

    .property-container {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* consistent vertical spacing */
    }

    .property-item {
        width: 100%;
        max-width: 1000px;
        margin-bottom: 30px; /* add bottom spacing between items */
    }

    .property-item img {
        width: 100%;
        max-height: 400px;
        object-fit: cover;
        margin-top: 20px; /* spacing from heading/title */
        margin-bottom: 10px;
    }

    .property-item a {
        margin-top: 10px;
        font-size: 1rem;
    }

    .property-item .description {
        margin-top: 5px;
        font-size: 0.95rem;
    }
    
    .testimonials-container {
        flex-direction: column;
        align-items: center;
        margin-top: -70px;
    }

    .testimonial-item {
        width: 100%;
        margin-bottom: -28px;
        min-height: 350px; /* Adjusted height for mobile */
        justify-content: flex-end; /* Align content to bottom */
    }

    .testimonial-item img {
        width: 120px;
        height: 120px;
    }

    #image-gallery .gallery-container {
        flex-direction: column;
        gap: 5px;
    }

    #image-gallery .gallery-container img {
        width: 100%; /* 1 image per row */
        height: 200px;
        margin: 0;
        padding: 0;
        display: block;
    }

    #image-gallery .gallery-container .text-container {
        width: 100%;
        margin: 0 auto;
        padding: 20px;
    }

    #image-gallery .gallery-container .text-container p {
        font-size: 1.2rem;
        text-align: center;
    }

  #social-media {
        padding: 40px 10px;
        margin-top: 0;
    }

    .social-media-container {
        flex-direction: column-reverse; /* Puts profile image below */
        align-items: center;
        text-align: center;
        gap: 30px;
        max-width: 100%;
    }

    .social-media-left {
        text-align: center;
        width: 100%;
        margin: 0;
    }

 .person-image {
  width: 600px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  margin-bottom: -60px;
  max-width: 100%; /* Prevents overflow on small screens */
}


    .social-media-right {
        margin-left: 0;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .social-logo {
        width: 80%;
        max-width: 300px;
        margin: 0 auto -40px;
        height: auto;
    }

    .social-text-container {
        align-items: center;
        width: 100%;
    }

    .social-text, .social-location, .phone-link {
        font-size: 1.2rem;
        color: #333;
        margin: 0;
        margin-bottom: 10px;
        text-align: center;
        line-height: 1.4;
        padding: 0 15px;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
        margin: 10px 0;
    }

    .social-icon {
        margin: 0;
    }

    .social-icon img {
        width: 70px;
        margin-top: 0;
    }


/* Hover effects */
#image-gallery .gallery-container img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

}


