@import url(reset.css);
@import url(global.css);
@import url(default.css);
@import url(layout.css);
@import url(module.css);
@import url(controller.css);

.slider {
    width: 100%;
    height: 100vh;
    background: url(../img/r-architecture-Cn87TISYij8-unsplash.png)no-repeat center center / cover;
}

/*--------------------Blog page--------------------*/

.blog-news {
    display: flex;
    flex-direction: column;
    flex: .66666;
}

.blog-title {
    color: var(--text-color1) !important;
    margin: 8px 0 14px;
    transition: all .3s ease;
}

.blog-side {
    display: flex;
    flex-direction: column;
    flex: .3333333;
    align-items: flex-end;
    color: #999;
}

.blog-sidebar {
    background: var(--bg-color3);
    padding: 30px;
    margin-bottom: 30px;
    width: 96.8%;
}

.blog-sidebar:last-child {
    margin-bottom: 0px;
}

.blog-search {
    width: 100%;
    padding: 12px 10px;
    background-color: var(--bg-color1);
    display: flex;
    justify-content: space-between;
}

.blog-search input {
    width: 93%;
    color: #999;
}

.blog-search-icon {
    color: var(--text-color2);
    cursor: pointer;
}

.blog-span {
    border-bottom: 1px solid #444;
    display: flex;
    width: 100%;
    font-size: 18px;
    color: var(--text-color3);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.blog-side-img {
    width: 90px;
}

.blog-sidebar li {
    display: flex;
    margin-top: 30px;
}

.blog-text {
    display: flex;
    padding: 0 0 0 15px;
    line-height: 25px;
    letter-spacing: .5px;
    cursor: pointer;
    transition: color .3s ease;
}

.blog-text:hover {
    color: var(--text-color1);
}

.blog-text.active{
     color: var(--text-color1);
}

.blog-tags {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
}

.blog-tags a {
    color: var(--text-color3);
    background-color: var(--text-color1);
    padding: 9.5px 16px;
    margin: 3px;
    letter-spacing: 1;
    cursor: pointer;
    transition: all .15s ease;
}

.blog-tags a:hover {
    background-color: var(--bg-color1);
}

@media screen and (max-width:768px) {

    .blog-news {
        margin-bottom: 40px;
    }

    .w-98p {
        width: 100% !important;
    }

    .blog-sidebar {
        width: 100%;
    }
}

/*--------------------sub-blog page--------------------*/

.subblog-img {
    width: 100%;
}

.subblog-text {
    width: 100%;
}

.subblog-title {
    font-weight: 600;
    font-size: 27px;
    margin: 30px 0 35px;
    line-height: 35px;
}

.subblog-p {
    /*display: flex;
    flex: .5;
    text-align: justify;*/
    column-count: 2;
    column-gap: 40px; /* فاصله بین ستون‌ها */
}

    .subblog-p p {
        break-inside: avoid;
    }

@media screen and (max-width:768px) {
    .subblog-text {
        border-top: 1px solid var(--text-color2);
        border-bottom: 1px solid var(--text-color2);
    }

    .subblog-title {
        font-size: 24px;
    }

    .subblog-p {
        flex-direction: column;
        column-count: 1;
    }

    .subblog-p div {
        width: 100%;
    }
}

@media screen and (max-width:768px) {
    .subblog-title {
        width: 80%;
    }
}

/*--------------------subproject page-------------------*/

.subproject-box {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.subproject-text {
    display: flex;
    flex-direction: column;
}

.subproject-text:first-child {
    flex: .63;
}

.subproject-text:last-child {
    flex: .31.5;
}

@media screen and (max-width:990px) {
    .subproject-text:first-child {
        flex: .62;
    }

    .subproject-text:last-child {
        flex: .34;
    }
}

@media screen and (max-width:770px) {
    
    .subproject-box{
        flex-direction: column;
    }
}


/*--------------------contact page--------------------*/

.contact-title::after {
    width: 116%;
}

.contact-text {
    width: 50%;
    padding-right: 35px;
    display: flex;
}

.contact-text .button{
    margin-top: 23px;
}

.contact-box {
    width: 42%;
    margin-left: 8%;
    display: flex;
    flex-direction: column;
}

.contact-inputs {
    display: flex;
    justify-content: space-between;
}

.contact-input {
    width: 47%;
}

.contact-input input,
.contact-textarea textarea {
    margin-bottom: 15px;
    padding: 18px 17px 10px;
    width: 100%;
    border: none;
    border-bottom: 1px solid #444;
}

.contact-input input:focus,
.contact-textarea textarea:focus {
    border-color: var(--text-color1);
}

.contact-input input:not(:placeholder-shown),
.contact-textarea textarea:not(:placeholder-shown) {
    color: var(--text-color1);
}

.contact-textarea {
    width: 100%;
}

.contact-button {
    cursor: pointer;
    padding: 12px 24px;
    border: 1px solid #7fb1c5;
    color: #808291;
    margin: 15px 0 0;
    transition: all .3s ease;
}

.contact-button:hover {
    color: var(--text-color3);
    background-color: #7fb1c5;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group {
    box-shadow: none !important;
    background: none; /* در صورت وجود پس‌زمینه */
    border: none; /* اگر میخوای مرز هم حذف بشه */
    border-radius: 0px;

}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button {
    width: 40px;
    height: 40px;
    font-size: 30px !important;
    background-color: #ffffff;
    border: 1px solid #ccc !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    transition: all .3s ease;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button:first-child{
    border-bottom: 0px !important;
    border-radius: 0px;

}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button:hover {
    background-color: #fff !important;
}

@media screen and (max-width:768px) {

    .contact-text {
        width: 100%;
        margin-bottom: 50px;
        padding-right: 10px;
    }

    .contact-title::after {
        width: 100%;
    }

    .contact-box {
        width: 100%;
        margin-left: 0;
    }
}

@media screen and (max-width:468px) {

    .contact-inputs {
        flex-direction: column;
    }

    .contact-input {
        width: 100%;
    }

    #map{
        height: 500px !important;
    }
}

/*--------------------reserve page -------------------*/

.reserve-box{
    display: flex;
    justify-content: space-between;
    margin: 60px auto;
}

.reserve-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    font-family: "Montserrat-Medium" , serif;
    padding-left: 70px;
}

.reserve-text div{
    font-size: 34px;
    font-weight: 600;
    line-height: 50px;
}

.reserve-text p{
    padding-top: 20px;
    font-weight: 400;
    font-size: 15px;
    line-height: 30px;
}

@media screen and (max-width:990px) {
    .reserve-box {
        width: 750px !important;
    }

    .reserve-text{
        margin-bottom: 40px;
    }

    .reserve-text div{
        font-size: 28px;
    }
}

@media screen and (max-width:770px) {
    .reserve-box {
        width: 480px !important;
        display: flex;
        flex-direction: column;
        margin: 0 auto;
    }

    .reserve-text {
        padding-left: 0px;
        margin-top: 20px;
    }
}

@media screen and (max-width:490px) {
    .reserve-box {
        width: 88% !important;
    }
}