*:focus {
    outline: none;
    border: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Common fade-in styles */

.fade-in {
    opacity: 0; 
    transform: translateY(40px);
}

.fade-in-active {
    opacity: 1; 
    transform: translateY(0);
}


.section-heading {
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: left;
    font-family: "Austin-News-Headline-Light, sans-serif";
    opacity: 0;
    transform: translateY(20px);
}

.description {
    font-size: 1rem;
    font-weight: 500;
    font-family: "Euclid-Circular-A-Regular, sans-serif";
    color: #121212;
    opacity: 0;
    transform: translateY(20px);
}

@media (max-width: 767px) {
    .section-heading {
        font-size: 1.8rem;
        line-height: 35px;
        margin-bottom: 30px!important;
    }
}

.fade-in-up-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right-element {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}

.fade-in-right {
    opacity: 1;
    transform: translateX(0);
}

/* Banner Section */
.banner {
    height: 100vh;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0) 45%), url(../../../images/category-pages/residential/banner.webp) no-repeat center center / cover;
    position: relative;
    display: flex;
    flex-direction: column;
    color: white;
    overflow: hidden;
}

.banner .swiper {
    width: 100%;
    height: 100vh;
    background-color: #000;
}

.banner .swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner .swiper .swiper-slide .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.banner .swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0) 45%);
    z-index: 1;
    pointer-events: none;
}

.banner .swiper .swiper-slide .overlay-content { 
    animation: fadeIn 3s ease-in-out;
    position: relative;
    position: fixed;
    z-index: 1;
    left: 7.5%;
    top: 80%;
}

.banner .swiper .swiper-slide .overlay-content .slide-logo {
    width: auto;
    height: 70px; 
}

.banner .swiper .swiper-slide .overlay-content .slide-heading {
    font-size: 2.7rem;
    color: #fff;
    line-height: 54px;
    animation: fadeIn 2.3s ease-in-out forwards;
    font-family: "Austin-News-Headline-Light, sans-serif";
    margin-bottom: 0px;
}

/* Navigation Buttons */
.banner .custom-navigation {
    /* position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 1;
    left: 0px; */
    position: absolute;
    top: 45.9%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 1;
    left: 0px;
    height: 0px;
}

.banner .custom-navigation button {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.banner .custom-navigation button span {
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.banner .custom-navigation button::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: rgba(255, 255, 255, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.banner .custom-navigation button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.banner .custom-navigation button:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.banner .custom-navigation button:hover span {
    color: #58be07;
}

.banner .banner-content {
    animation: fadeIn 3s ease-in-out;
    position: relative;
    position: fixed;
    z-index: 1;
    left: 7.5%;
    top: 80%;
}

.banner .banner-content .banner-heading {
    font-size: 2.7rem;
    line-height: 54px;
    animation: fadeIn 2.3s ease-in-out forwards;
    font-family: "Austin-News-Headline-Light, sans-serif";
    margin-bottom: 0px;
}

/* Animation Start */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation End */

/* Tablet Styles */
@media (max-width: 1024px) {
    .banner .banner-content {
        animation: fadeIn 3s ease-in-out; 
        position: absolute; 
        z-index: 1; 
        left: 7.5%;
        top: 80%; 
        width: 100%; 
    }

    .banner .banner-content .banner-heading {
        font-size: 3rem;
        line-height: 48px;
    }

    .banner .swiper .swiper-slide .overlay-content .slide-logo {
        width: auto;
        height: 70px;
        margin-bottom: 40px;
    }

    .banner .swiper .swiper-slide .overlay-content .slide-heading {
        font-size: 3rem;
        line-height: 48px;
        text-align: left;
    }
}

@media (min-width: 768px) {
    .banner .swiper .swiper-slide .altitude-img {
        background-image: url("../../../images/category-pages/residential/altitude-desktop-banner.jpg");
    }
    .banner .swiper .swiper-slide .mansion-img {
        background-image: url("../../../images/category-pages/residential/mansion-desktop-banner.jpg");
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .banner .swiper .swiper-slide .altitude-img {
        background-image: url("../../../images/category-pages/residential/altitude-mobile-banner.jpg");
    }
    .banner .swiper .swiper-slide .mansion-img {
        background-image: url("../../../images/category-pages/residential/mansion-mobile-banner.jpg");
    }
    .banner .banner-content {
        animation: fadeIn 3s ease-in-out;
        position: absolute;
        z-index: 1;
        left: 0;
        top: 80%;
        width: 100%;
    }

    .banner .banner-content .banner-heading {
        font-size: 1.8rem;
        line-height: 35px;
        margin-top: 0px;
        text-align: left;
    }

    .banner .swiper .swiper-slide .overlay-content .slide-logo {
        width: auto;
        height: 50px;
        margin-bottom: 30px;
    }

    .banner .swiper .swiper-slide .overlay-content .slide-heading {
        font-size: 1.8rem;
        line-height: 35px;
        margin-top: 0px;
        text-align: left;
    }
}

/* ////////////////////////////////// Banner Dropdown Start ////////////////////////////////////////// */

.category-section {
    padding-top: 70px;
    padding-bottom: 70px;
    background-color: #fff;
    z-index: 4;
    position: relative;
}

.category-section .fadeInUpSelect {
    animation: fadeInUpSelectOption 3s ease-in-out both;
}

.category-section .select-menu {
    background-color: transparent;
    border: 1px solid #000;
    position: relative;
    border-radius: 30px;
}

.select-menu .no-select-project {
    font-size: 1rem;
    font-family: "Euclid-Circular-A-Regular, sans-serif";
    color: #121212;
    margin-bottom: 0px;
}

.category-section .select-menu .select-btn {
    color: #000;
    display: flex;
    background: #fcfcfc00;
    padding: 14px 50px;
    font-size: 17px;
    font-weight: 500;
    border-radius: 30px;
    align-items: center;
    cursor: pointer;
    justify-content: space-between;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    font-family: 'Euclid-Circular-A-Regular, sans-serif';
}

.category-section .select-menu .select-btn i {
    font-size: 16px;
    transition: 0.3s;
    transform: rotate(90deg);
}

.category-section .select-menu.active .select-btn i {
    transform: rotate(270deg);
}

.category-section .select-menu .options {
    position: absolute;
    padding: 20px;
    width: 100%;
    left: 0;
    bottom: 100%;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    display: none;
}

.category-section .select-menu.active .options {
    display: block;
    animation: dropdownOpen 0.9s ease forwards;
}

@keyframes dropdownOpen {
    0% {
        opacity: 0;
        transform: translateY(-80px);
        visibility: visible;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropdownClose {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.category-section .select-menu .options .option {
    display: flex;
    height: 45px;
    cursor: pointer;
    padding: 0 16px;
    border-radius: 10px;
    align-items: center;
    background: #fff;
}

.category-section .select-menu .options .option:hover {
    background: #58be07;
    color: #fff;
}

.category-section .select-menu .options .option .option-text {
    font-size: 16px;
    color: #000000;
    font-family: 'Euclid-Circular-A-Regular, sans-serif';
}

.category-section .select-menu .options .option:hover .option-text {
    color: #fff;
}

.category-section .banner-form .banner-search-btn {
    padding: 10px 40px;
    color: #000;
    border-radius: 30px;
    font-family: "Euclid-Circular-A-Regular, sans-serif";
    height: 100%;
    width: 100%;
    background-color: #0b5a7e;
    color: #fff;
    font-size: 17px;
    text-transform: capitalize;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-section .banner-form .banner-search-btn:before {
    content: "";
    position: absolute;
    background-color: #58be07;
    height: 0;
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: -1;
    transition: height 0.4s ease;
}

.category-section .banner-form .banner-search-btn:hover:before {
    height: 100%;
}

.category-section .banner-form .banner-search-btn:hover {
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Keyframes for dropdown and container */
@keyframes fadeInUpSelectOption {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .category-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .category-section .select-menu .select-btn {
        padding: 10px 30px;
        font-size: 16px;
    }

    .category-section .banner-form .banner-search-btn {
        padding: 10px 30px;
        font-size: 16px;
        width: 40%;
    }

    .category-section .select-menu .select-btn i {
        font-size: 12px;
    }
}

/* ////////////////////////////////// Banner Dropdown End ////////////////////////////////////////// */

.category-section .project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.category-section .project {
    padding: 40px 20px 20px 20px;
    border: 1px solid #ddd;
    transition: 1s ease;
    position: relative;
    text-decoration: none;
    color: #121212;
}

.category-section .project .heading {
    font-size: 1.1rem;
    font-family: "Euclid-Circular-A-Semi-bold, sans-serif";
    color: #121212;
}

.category-section .project a {
    color: #000;
}

.category-section .project .location {
    font-size: 0.8rem;
    font-weight: 500;
    font-family: "Euclid-Circular-A-Regular, sans-serif";
    color: #121212;
}
.category-section .project .text {
    font-size: 0.8rem;
    font-weight: 500;
    height: 38px;
    font-family: "Euclid-Circular-A-Regular, sans-serif";
    color: #121212;
}

.category-section .project .image-section {
    height: 270px;
    overflow: hidden;
    position: relative;
}

.category-section .project .image-section img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.category-section .project:hover .image-section img {
    transform: scale(1.15);
}

.category-section #loadMoreBtn1, .category-section #loadMoreBtn2 {
    display: inline-block;
    font-family: "Euclid-Circular-A-Regular, sans-serif";
    padding: 10px 30px;
    font-size: 16px;
    background-color: #0b5a7e;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 30px;
    transition: background-color 0.3s;
}

#pre-button-loader i {
    color: #0b5a7e; /* Optional: Customize spinner color */
    font-size: 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .category-section .project-container {
        grid-template-columns: repeat(2, 1fr); 
    }
}
@media (max-width: 767px) {
    .category-section .project-container {
        grid-template-columns: 1fr; 
    }
}
