    /*Hero Section*/
    #hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-carousel/hero-carousel-2.jpg');
        background-size: cover;
        background-position: center;
        min-height: 65vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        text-align: center;
    }

    #hero-section h1 {
        color: white;
        padding: 15px 30px;
        margin-bottom: 40px;
        border-radius: 5px;
        font-size: 2.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .action-btn {
        display: flex;
        gap: 30px;
        list-style: none;
        padding: 0;
        margin-bottom: 40px;
    }

    .action-btn li {
        color: rgba(255, 255, 255, 0.7);
        cursor: pointer;
        padding-bottom: 5px;
        transition: all 0.3s ease;
    }

    .action-btn li.active {
        color: white;
        border-bottom: 2px solid white;
    }

  #form-section form {
        position: relative;
        max-width: 1000px; /* Increased max-width */
        width: 100%;
    }

    #form-section input {
        width: 100%;
        padding: 18px 30px; /* Increased padding */
        border-radius: 30px;
        border: none;
        font-size: 1.1rem; /* Slightly larger font */
        padding-right: 60px; /* Space for icon on right */
    }

    #form-section button {
        position: absolute;
        right: 20px; /* Changed from left to right */
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        color: #666;
        font-size: 1.2rem;
        transition: color 0.3s ease;
    }

    #form-section button:hover {
        color: #333;
    }

    @media (max-width: 768px) {

         #hero-section{
            min-height: 45vh;
         }
        #hero-section h1 {
            font-size: 1.8rem;
            padding: 10px 20px;
        }
        
        .action-btn {
            gap: 15px;
            font-size: 0.9rem;
        }
        

          #form-section input {
            padding: 15px 20px;
            padding-right: 50px; /* Adjusted for mobile */
        }
        
        #form-section button {
            right: 15px;
            font-size: 1rem;
        }
    }


    /*Properties*/
      #properties{
        padding: 4rem 1rem;
        background-color: #f9f9f9;
    }

    #properties h2,#services h2,.blog-title,#Items h2{
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 3rem;
        color: #333;
    }

    #properties-items{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .single-item {
        background-size: cover;
        background-position: center;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        min-height: 300px;
        transition: transform 0.3s ease;
    }

    .single-item:hover {
        transform: translateY(-5px);
    }

    .single-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    }

    .properties-heading {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1.5rem;
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .property-title {
        font-size: 1.5rem;
        margin: 0;
        font-weight: bold;
    }

    .num-property {
        margin: 0;
        background: rgba(255,255,255,0.2);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
    }


.btn-items {
    background: linear-gradient(45deg, red, red);
    color: white !important;
    padding: 8px 15px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-items:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.properties-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

    @media (max-width: 768px) {
        #properties-items {
            grid-template-columns: 1fr;
        }

        #properties h2 {
            font-size: 2rem;
        }
    }



    /*Service*/
        #services {
        padding: 4rem 1rem;
        background-color: #ffffff;
        text-align: center;
    }



    #services-items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .service-item {
        padding: 2rem;
        background: #f8f9fa;
        border-radius: 8px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .service-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .service-item h3 {
        color: #2c3e50;
        font-size: 1.5rem;
        margin-bottom: 1rem;
        position: relative;
        padding-top: 2.5rem;
    }

       .service-item i {
        font-size: 2.5rem;
        color:red;
      /*  margin-bottom: 1.5rem;*/
        display: block;
    }

    .service-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

  

    .service-item p {
        color: #7f8c8d;
        line-height: 1.6;
        font-size: 1rem;
    }

    @media (max-width: 768px) {
        #services-items {
            grid-template-columns: 1fr;
        }
        
        #services h2 {
            font-size: 2rem;
        }
    }


    /*Articles*/

        #articles {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-carousel/hero-carousel-1.jpg');
        background-size: cover;
        background-position: center;
        padding: 8rem 2rem;
        text-align: center;
        color: white;
        position: relative;
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #articles::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.4) 100%);
        z-index: 1;
    }

    #articles * {
        position: relative;
        z-index: 2;
    }

    #articles .title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 300;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        color: #fff;
    }

    #articles p {
        font-size: 1.4rem;
        max-width: 800px;
        margin: 0 auto 2.5rem;
        line-height: 1.6;
        font-weight: 300;
        opacity: 0.9;
    }

    #articles button {
        background: transparent;
        border: 2px solid rgba(255,255,255,0.8);
        color: white;
        padding: 1rem 2.5rem;
        border-radius: 30px;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
        backdrop-filter: blur(2px);
    }

    #articles button:hover {
        background: rgba(255,255,255,0.1);
        border-color: white;
        transform: translateY(-2px);
    }

    @media (max-width: 768px) {
        #articles {
            padding: 4rem 1.5rem;
            min-height: 50vh;
        }
        
        #articles .title {
            font-size: 2rem;
        }
        
        #articles p {
            font-size: 1.1rem;
        }
        
        #articles button {
            padding: 0.8rem 2rem;
            font-size: 1rem;
        }
    }


    /*Blogs*/

         #blogs {
        padding: 4rem 1rem;
       margin-bottom: -20px;
    }

    .blog-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }


    .blog {
        position: relative;
        background: white;
        border-radius: 10px;
        overflow: hidden;
        transition: transform 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        cursor: pointer;
    }

    .blog:hover {
        transform: translateY(-5px);
    }

    .blog h2 {
        position: absolute;
        left: 0;
        top: 20px;
        background: red;
        color: white;
        padding: 8px 20px;
        font-size: 1.2rem;
        border-radius: 0 30px 30px 0;
        z-index: 2;
        margin: 0;
        transition: all 0.3s ease;
    }

    .blog:hover h2 {
        padding-left: 25px;
    }

    .blog img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .blog a {
        display: block;
        overflow: hidden;
        position: relative;
    }

    .blog:hover img {
        transform: scale(1.05);
    }

    .blog p {
        padding: 1.5rem;
        font-size: 1.2rem;
        color: #333;
        margin: 0;
        font-weight: 600;
    }

 

    @media (max-width: 768px) {
        .blog-container {
            grid-template-columns: 1fr;
            max-width: 500px;
        }
        
        .blog img {
            height: 200px;
        }
        
        .blog p {
            font-size: 1rem;
            padding: 1rem;
        }
    }


    /*Agents*/

    .agents {
    display: flex;
    gap: 4rem;
    align-items: center;
    padding: 4rem 2rem;
  
    max-width: 1200px;
    margin: 0 auto;
}

.agent-img {
    flex: 1;
    min-height: 500px;
}

.agent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.agent-content {
    flex: 1;
    padding: 2rem;
}

.agent-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.note {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.agent-content a {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: red;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.agent-content a:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

@media (max-width: 768px) {
    .agents {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .agent-img {
        width: 100%;
        min-height: 300px;
    }
    
    .agent-title {
        font-size: 2rem;
    }
}


/*Footer*/
.footer {
    background: #000;
    color: #8a8a8a;
    font-size: 14px;
    padding: 60px 20px 20px;
    margin-top: 20px;
}

.footer h3 {
    color: #fff;
    margin-bottom: 20px;
}

.footer p {
    color: #8a8a8a;
}

.footer img {
    max-width: 100%;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-col-1, .footer-col-2, .footer-col-3, .footer-col-4 {
    flex: 1;
    min-width: 200px;
}

.footer-col-2 {
    text-align: center;
}

.footer-col-3 ul, .footer-col-4 ul {
    list-style-type: none;
    padding: 0;
}

.footer-col-3 ul li, .footer-col-4 ul li {
    margin: 10px 0;
}

.footer-col-3 ul li a, .footer-col-4 ul li a {
    color: #8a8a8a;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col-3 ul li a:hover, .footer-col-4 ul li a:hover {
    color: #fff;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-media li {
    list-style: none;
}

.social-media li a {
    font-size: 20px;
    color: #8a8a8a;
    transition: color 0.3s, transform 0.3s;
}

.social-media li a:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        align-items: center;
    }

    .footer-col-2, .footer-col-3, .footer-col-4 {
        text-align: center;
    }

    .social-media{
        text-align: center;
        justify-content: center;
    }
}

/*Items*/

#featured-listings {
    padding: 4rem 1rem;
    background-color: #fff;
}

#featured-listings h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.listings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.listing-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.price-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.3rem;
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: red;
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.no-listings {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    width: 100%;
    padding: 2rem;
}

@media (max-width: 768px) {
    .listings-container {
        grid-template-columns: 1fr;
    }
    
    #featured-listings h2 {
        font-size: 2rem;
    }
    
    .card-image {
        height: 200px;
    }
}
