.image-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Responsive grid */
    justify-items: center;
    max-height: 600px; /* Fixed height for 2 rows of images */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 0px 280px 60px 280px; /* Default padding for large screens */
}

/* Responsive Padding Adjustments */
@media (max-width: 1440px) {
    .image-grid {
        padding: 0px 200px 60px 200px; /* Adjust padding for medium-large screens */
    }
}

@media (max-width: 1200px) {
    .image-grid {
        padding: 0px 150px 60px 150px; /* Adjust padding for medium screens */
    }
}

@media (max-width: 992px) {
    .image-grid {
        padding: 0px 100px 60px 100px; /* Adjust padding for tablets */
    }
}

@media (max-width: 768px) {
    .image-grid {
        padding: 0px 50px 60px 50px; /* Adjust padding for small tablets */
    }
}

@media (max-width: 576px) {
    .image-grid {
        padding: 0px 20px 60px 20px; /* Adjust padding for mobile devices */
    }
}
.image-grid img {
    width: 100%; /* Adjust width to fit the container */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.image-grid img:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Black overlay */
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover {
    color: red;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-button:hover {
    background: rgba(255, 255, 255, 0.5);
    color: black;
}

.partner-item {
    width: 400px !important;
}

.swiper-wrapper {
    gap: 40px !important;
}




.real-estate-section {
    background-color: #151C2A;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 40px;
}

.real-estate-title {
    font-size: 24px;
    font-weight: bold;
}

.real-estate-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
}

.real-estate-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-height: 600px; /* Fixed height for 2 rows of cards */
    overflow-y: auto; /* Enable vertical scrolling */
    justify-content: center;
}

.real-estate-card {
    background-color: #1F2937;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.real-estate-card img {
    width: 100%;
    border-radius: 10px;
}

.real-estate-card h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #fff;
}

.real-estate-price {
    font-size: 20px;
    font-weight: bold;
    color: #4ade80;
}

.real-estate-features {
    text-align: left;
    font-size: 14px;
    flex-grow: 1;
}

.real-estate-features ul {
    list-style: none;
    padding: 0;
}

.real-estate-features ul li::before {
    content: "\2022";
    color: #4ade80;
    font-weight: bold;
    display: inline-block;
    width: 1em;
}

.real-estate-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px;
    background-color: #4ade80;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}