/* ------ main ---------- */
.case-box{
    width: 90%;
    display: flex;
    flex-direction: row;
    margin-inline: auto;
    margin-top: 5%;
    margin-bottom: 3%;
}
.case-file{
    width: 17%;
    height: 18rem;
    border-radius: 30px;
    margin-right: 2%;
    overflow: hidden;
    position: relative;
}
.case-file img{
    width: 100%;
    height:100%;
    object-fit:cover;
}
.case-offer{
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 2%;
}

.case-offer h3{
    margin-top: 55%;
    color: var(--primary-color);
    font-size: 2rem;
}

.case-offer img{
    width: 40%;
    height:25%;
}
.case-detail-box{
    width: 100%;
    height: 37%;
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: var(--primary-color-opacity);
    bottom: 0;
}
.case-title-price{
    width: 100%;
    height:50px;
    display: flex;
    justify-content: center;
    padding-inline: 5%;
    margin-top: 3%;
    font-family: var(--primary-font-bold);
}

.case-title-price span{
    color: var(--white-color);
    font-size: 1rem;
    padding-left: 1%;
    width:50%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
    -webkit-box-orient: vertical;
}
.case-title-price p{
    color: var(--white-color);
    font-size: 1rem;
    padding-right: 3%;
    border-right: 3px solid var(--white-color);
    width:50%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
    -webkit-box-orient: vertical;
}
.case-detail-box a{
    width: 60%;
    margin-inline: auto;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: var(--white-color);
    color: var(--primary-color);
    font-size: 1rem;
    font-family: var(--primary-font-bold);
    border: none;
    margin-top: 3%;
    cursor: pointer;
    text-align: center;
}

.label-img{
    width:15%;
    height: auto;
    position: absolute;
    top: 0;
    right: 15%;
}
.label-img img{
    width: 100%;
    height: 100%;
}

.line-primary{
    width: 80%;
    height: 2px;
    margin-inline: auto;
    margin-bottom: 5%;
}

.line-primary img{
    width: 100%;
    height: 100%;
}


.menu-filter-box{
    width: 100%;
    height: 8rem;
    margin-inline: auto;
    position: relative;
}

.menu-filter-box img{
    width: 100%;
    height: 100%;
}

.menu-filter{
    width: 80%;
    height: 100%;
    margin-inline: auto;
    position: absolute;
    top: 0;
    right: 10%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.menu-filter a{
    width: 20%;
    display: flex;
    flex-direction: row;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white-color);
    font-family:var(--primary-font-bold);
}

.menu-filter img{
    width: 18%;
    height: 70%;
    margin-left: 5%;
}


.banner-page{
    width: 100%;
    height: 40rem;
}

.banner-page img{
    width: 100%;
    height: 100%;
}

.swiper {
    width: 100%;
    height: auto;
}

.pagination-banner-box{
    width: 100%;
    height: 7rem;
    margin-inline: auto;
    position: relative;
}

.pagination-banner-box img{
    width: 100%;
    height: 100%;
}

.mySwiper-banner .swiper-pagination-bullet {
    width: 20px !important;
    height: 20px !important;
}

.mySwiper-banner .swiper-pagination-bullet-active {
    background-color: var(--white-color) !important;
}

.mySwiper-banner .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: 3% !important;
}

.documents-box{
    width: 80%;
    display: flex;
    flex-direction: column;
    margin-inline: auto;
    margin-top: 5%;
}

.documents-box h3{
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
}

.documents-wrapper{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 3%;
}

.documents{
    width:30%;
    height: 15rem;
    background-color: var(--text-color);
    border-radius: 20px;
    overflow: hidden;
}

.documents img{
    width: 100%;
    height: 100%;
}

.about-realtor-box{
    width: 80%;
    height: 35rem;
    box-shadow: 0 0 10px 2px var(--text-color-shadow);
    margin-top: 5%;
    margin-inline: auto;
    border-radius: 60px;
    display: flex;
    flex-direction: row;
    padding-inline: 2%;
}

.description-about{
    width: 70%;
    display: flex;
    flex-direction: column;
    margin-top: 2%;
    padding-inline: 2%;
    justify-content: flex-start;
    align-items: flex-start;
}

.description-about h3{
    color: var(--primary-color);
    font-size: 3rem;
}

.description-about p{
    color: var(--text-color);
    font-size: 1.3rem;
    font-family: var(--primary-font-bold);
    margin-top: 2%;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 11;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.mySwiper-about{
    width: 30%;
    height: 100%;
    margin-top: 10%;
    overflow: hidden;
}

.mySwiper-about .swiper-wrapper{
    width: 100%;
    height: 100% !important;
}

.mySwiper-about .swiper-slide img{
    width: 100%;
    height: 60%;
    border-radius: 20px;
    object-fit: cover;
}

.mySwiper-about .swiper-pagination-bullets.swiper-pagination-horizontal{
    bottom: 30% !important;
}
.mySwiper-about .swiper-pagination-bullet {
    width: 18px;
    height: 18px;
}
.mySwiper-about .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}
.customer-box{
    width: 80%;
    margin-top: 5%;
    display: flex;
    flex-direction: column;
    margin-inline: auto;
}

.customer-box h3{
    text-align: center;
    color: var(--primary-color);
    font-size: 3rem;
}

.customer{
    width: 100%;
    height: 25rem;
    box-shadow: 0 0 10px 2px var(--text-color-shadow);
    border-radius: 60px;
    margin-top: 2%;
    display: flex;
    flex-direction: row;
}

.customer-circle-box{
    width: 25%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-circle{
    /*width: 70%;*/
    /*height: 13rem;*/
    border-radius: 100%;
    overflow: hidden;
}

.customer-circle img{
    width: 100%;
    height: 100%;
}

.customer-description{
    width: 40%;
    padding: 3% 3%;
}
.customer-circle img{
    width:100% !important;
    height:100% !important;
    object-fit: cover;
}
.customer-description p{
    color: var(--text-color);
    font-size: 1.2rem;
    font-family: var(--primary-font-bold);
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.mySwiper-customer{
    width: 95%;
    height: 100%;
    padding: 3% 0 0 2%;
    overflow: hidden;
}

.mySwiper-customer .swiper-wrapper{
    width: 100%;
    height: 100% !important;
}
.mySwiper-customer .swiper-slide{
    display:flex;
    align-items: center;
    justify-content: space-between;
}
.mySwiper-customer .swiper-slide img:nth-of-type(1){
    width: 36%;
    height: 85%;
    border-radius: 30px;
}

.mySwiper-customer .swiper-pagination-bullets.swiper-pagination-horizontal{
    bottom: 0% !important;
}

.mySwiper-customer .swiper-pagination-bullet {
    width: 18px;
    height: 18px;
}
.mySwiper-customer .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    width: 23px;
    height: 23px;
}

.counseling-box{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-top: 10%;
    margin-bottom: 10%;
    position:relative;
    z-index: 8;
}

.counseling-box-next{
    margin-bottom: 45%;
}


.counseling-box img{
    width: 9%;
    height: 4.5rem;
}

.counseling{
    width: 30%;
    height: 4.5rem;
    background-color: var(--primary-color);
    border-radius: 40px;
    margin-inline: 1%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;

}

.counseling button{
    background-color: unset;
    font-size: 1.4rem;
    font-family:var(--primary-font-bold) ;
    border: none;
    color: var(--white-color);
    cursor: pointer;
    z-index: 10;
}

.counseling-specs{
    width: 100%;
    height:auto;
    background-color: var(--primary-color);
    position: absolute;
    top: 55%;
    z-index: 5;
    border-radius: 0 0 40px 40px;
    display: none;
}

.counseling-specs-next{
    display: block;
}

.counseling-specs form{
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-inline: auto;
    margin-top: 5%;
    margin-bottom: 10%;
}

.counseling-specs input{
    width: 100%;
    height: 2.5rem;
    border-radius: 40px;
    margin-top:5%;
    border: none;
    outline: none;
    padding-inline: 6%;
    font-size: 1rem;
    font-family: var(--primary-font);
    color: var(--primary-color);
}

.counseling-specs textarea{
    margin-top: 5%;
    width: 100%;
    height: 13rem;
    border-radius: 20px;
    padding: 4%;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--primary-color);
    font-family: var(--primary-font);
}

#counseling-submit{
    width: 40%;
    height: 2.5rem;
    background-color: var(--white-color);
    font-family: var(--primary-font-bold);
    font-size: 1.5rem;
    cursor: pointer;
}


/* -----media query----- */
@media screen and (max-width:1400px) {
    .case-file {
        height: 18rem;
    }
}
@media screen and (max-width:1300px) {
    .case-file {
        height: 17rem;
    }
    .counseling-box-next{
        margin-bottom: 50%;
    }
}
@media screen and (max-width:1200px) {
    .case-file {
        height: 16rem;
    }

    .case-title-price span {
        font-size: .9rem;
    }

    .case-title-price p {
        font-size: .9rem;
    }

    .case-box {
        margin-inline: 0;
        margin-right: 6%;
    }

    .customer-description p {
        font-size: 1.2rem;
    }

    .customer-circle {
        height: 11rem;
    }
}
@media screen and (max-width:1100px) {
    .menu-filter a {
        font-size: 1.5rem;
    }
    .case-offer {
        padding-right: 2%;
    }

    .case-offer h3 {
        font-size: 1.5rem;
    }

    .description-about p {
        font-size: 1.2rem;
    }

    .mySwiper-about .swiper-slide img {
        height: 55%;
    }

    .mySwiper-about .swiper-pagination-bullets.swiper-pagination-horizontal {
        bottom: 35% !important;
    }
}
@media screen and (max-width:1000px) {
    .case-box {
        margin-right: 1%;
    }

    .case-offer {
        width: 35%;
        padding-right: 0;
    }

    .case-file {
        width: 20%;
    }

    .case-offer h3 {
        margin-top: 65%;
    }

    .case-title-price p {
        font-size: .7rem;
    }
    .case-title-price span {
        font-size: .7rem;
    }
    .description-about {
        width: 60%;
    }
    .description-about p {
        font-size: 1.1rem;
    }
    .mySwiper-about {
        width: 40%;
        margin-top: 15%;
    }
    .customer-description p {
        font-size: 1.1rem;
    }
    .customer-circle {
        height: 9rem;
    }
    .counseling-box-next {
        margin-bottom: 70%;
    }
    .counseling {
        width: 40%;
    }
    .case-title-price {
        height: 42px;
    }
}
@media screen and (max-width:900px) {
    .case-file {
        width: 30%;
    }

    .case-offer img {
        width: 60%;
    }

    .description-about h3 {
        font-size: 2.5rem;
    }

    .description-about p {
        font-size: 1rem;
    }

    .about-realtor-box {
        height: 30rem;

    }

    .customer-box h3 {
        font-size: 2rem;
    }

    .customer-description p {
        font-size: 1rem;
    }
}
@media screen and (max-width: 800px) {
    .menu-filter a {
        font-size: 1.2rem;
    }

    .customer-circle {
        width: 80%;
        height: 8rem;
    }

    .customer-description p {
        font-size: 1rem;
    }

    .mySwiper-customer .swiper-slide img {
        height: 75%;
    }
}
@media screen and (max-width: 768px) {
    .case-box {
        width: 90%;
        display: grid;
        flex-direction: row;
        margin-inline: auto;
        margin-bottom: 10%;
        grid-template-columns: auto auto;
        justify-items: center;
        column-gap: 35%;
        row-gap: 10%;
    }
    .case-file {
        width: 80%;
    }
    .case-offer {
        display: none;
    }
    .case-title-price span {
        font-size: .8rem;
    }
    .case-title-price p {
        font-size: .8rem;
    }
    .banner-page {
        height: 30rem;
    }
    .pagination-banner-box {
        height: 6rem;
    }
    .documents-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .documents {
        width: 50%;
        height: 12rem;
        margin-top: 5%;
    }
    .description-about p {
        font-size: .9rem;
    }
    .customer-description p {
        font-size: .9rem;
    }
    .counseling-box-next {
        margin-bottom: 80%;
    }
    .counseling-box img {
        width: 15%;
        height: 3.5rem;
    }
    #counseling-submit {
        font-size: 1rem;
    }
}
@media screen and (max-width: 700px) {
    .menu-filter a {
        font-size: 1rem;
    }

    .about-realtor-box {
        display: flex;
        flex-direction: column;
        height: auto;

    }

    .description-about {
        width: 100%;
    }

    .mySwiper-about {
        width: 90%;
        height: 15rem;
        margin-top: 5%;
    }

    .mySwiper-about .swiper-slide img {
        height: 80%;
    }

    .mySwiper-about .swiper-pagination-bullets.swiper-pagination-horizontal {
        bottom: 0 !important;
    }
    .customer {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 5%;
    }
    .customer-description {
        width: 60%;
    }
    .customer-circle-box {
        width: 25%;
    }
    .mySwiper-customer {
        width: 85%;
        height: 20rem;
    }
    .mySwiper-customer .swiper-slide img:nth-of-type(1) {
        width: 30%;
        height: 60%;
        object-fit:cover;
    }
    .customer-circle {
        width: 100%;
        height: 6rem;
    }
}
@media screen and (max-width: 600px) {
    .case-file {
        width: 100%;
        margin-right: 0;
    }

    .case-box {
        column-gap: 40%;
    }
    .menu-filter a {
        font-size: .9rem;
    }

    .menu-filter-box {
        height: 6rem;
    }

    .pagination-banner-box {
        height: 5rem;
    }

    .banner-page {
        height: 24rem;
    }

    .documents {
        width: 60%;
    }
    .counseling {
        width: 50%;
    }

    .counseling-box-next {
        margin-bottom: 36rem;
    }
    .mySwiper-customer {
        height: auto;
    }
    .mySwiper-customer .swiper-slide {
        flex-direction: column;
        justify-content: space-between;
    }
    .customer-description {
        width: 100%;
    }
    .mySwiper-customer .swiper-slide img:nth-of-type(1) {
        width: 90%;
        height: 100%;
        margin-bottom: 4rem;
        object-fit: cover;
    }
    .customer-circle-box {
        width: 30%;
        height:7rem;
    }
}
@media screen and (max-width: 500px) {
    .case-box {
        grid-template-columns: auto;
        margin-top: 40%;
        row-gap: 5%;
    }

    .case-file {
        width: 50%;
    }

    .case-detail-box button {
        width: 50%;
    }

    .line-primary {
        margin-top: 50%;
    }

    .menu-filter a {
        font-size: .7rem;
    }

    .menu-filter-box {
        height: 5rem;
    }

    .pagination-banner-box {
        height: 4rem !important;
    }

    .documents {
        width: 70%;
        height: 10rem;
    }

    .documents-box h3 {
        font-size: 1.5rem;
    }

    .description-about p {
        font-size: .8rem;
    }

    .description-about h3 {
        font-size: 2rem;
    }

    .customer-box h3 {
        font-size: 1.5rem;
    }

    .customer-circle {
        width: 90%;
    }
    .customer-description p {
        font-size: .8rem;
    }
    .counseling {
        width: 70%;
    }
    .counseling button {
        font-size: 1rem;
    }
    .banner-page {
        height: 17rem;
    }
}
@media screen and (max-width: 400px) {
    .description-about p {
        font-size: .7rem;
    }

    .description-about h3 {
        font-size: 1.5rem;
        margin-top: 5%;
    }

    .customer-circle {
        width: 100%;
        height: 6rem;
    }

    .customer-description p {
        font-size: .7rem;
    }
    .counseling-box img {
        display: none;
    }
    .counseling {
        width: 95%;
    }
}
@media screen and (max-width: 370px) {
    .case-file {
        width: 60%;
    }
    .menu-filter a {
        font-size: .5rem;
    }
    .documents {
        width: 80%;
    }
    .counseling-box-next {
        /*margin-bottom:25rem;*/
    }
}
@media screen and (max-width: 350px) {
    .case-box {
        margin-top: 10%;
    }
}
/* ------end of  main ---------- */

