@import url(reset.css);
@import url(global.css);
@import url(default.css);
@import url(layout.css);
@import url(module.css);
@import url(controller.css);

body {
    font-family: "Yekan Bakh FaNum ExtraCondensed";
}

/*---------------------------------home-about item------------------------*/

.home-about {
    width: 100%;
    height: 856px;
    background-image: url(../img/about-bg-1.jpg);
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
}

.home-about-right {
    width: 50%;
    border: 15px solid var(--text-color2);
}

.home-about-right img {
    height: 100%;
    object-fit: cover;
}

.home-about-left {
    width: 48%;
    padding-right: 2%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: justify;
}

.home-about-left button {
    margin: 20px 0 0;
}

@media screen and (max-width:990px) {
    .home-about {
        height: 1050px;
    }

    .home-about .container {
        flex-direction: column;
    }

    .home-about-right {
        width: 100%;
    }

    .home-about-left {
        width: 100%;
        margin-top: 20px;
    }
}

/*------------------------------home-gallery item-------------------------*/

.home-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.home-gallery-box {
    grid-row: span 1;
    grid-column: span 1;
    height: 220px;
    transition: all .2s ease;
    overflow: hidden;
}

.home-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all .2s linear;

}

.home-gallery-box:nth-child(3) {
    grid-column: span 2;
    grid-row: span 2;
    height: 470px;
}

.home-gallery-box:nth-child(5) {
    grid-row: span 2;
    height: 470px;
}

.home-gallery-hover {
    transition: all .3s ease;
}

.home-gallery-box:hover .home-gallery-hover {
    margin-top: -100px;
    transition: all .3s ease;
}

.home-gallery-text {
    width: 100%;
    height: 100px;
    padding-left: 9%;
    padding-right: 9%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all .2s ease;
}

.home-gallery-text h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--main-color);

}

@media screen and (max-width:1200px) {

    .home-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-gallery-box:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
        height: 220px;
    }

    .home-gallery-box:nth-child(4) {
        grid-column: span 2;
        grid-row: span 2;
        height: 470px;
    }

    .home-gallery-box:nth-child(5) {
        grid-row: span 2;
    }
}

@media screen and (max-width:990px) {

    .home-gallery-box {
        height: 233px;
    }

    .home-gallery-box:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
        height: 233px;
    }

    .home-gallery-box:nth-child(4) {
        grid-column: span 2;
        grid-row: span 2;
        height: 433px;
    }

    .home-gallery-box:nth-child(5) {
        height: 433px;
    }

    .home-gallery-box:hover .home-gallery-hover,
    .home-gallery-hover {
        transition: none;
        margin-top: -80px;
    }

    .home-gallery-text {
        height: 80px;
    }

    .home-gallery-text h3 {
        margin-bottom: 5px;
        font-size: 15px;
    }
}

@media screen and (max-width:768px) {
    .home-gallery-box {
        height: 257px;
    }

    .home-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-gallery-box:nth-child(3) {
        grid-column: span 2;
        grid-row: span 2;
        height: 482px;
    }

    .home-gallery-box:nth-child(5) {
        grid-column: span 1;
        grid-row: span 2;
        height: 544px;
    }

    .home-gallery-box:nth-child(4) {
        grid-row: span 1;
        grid-column: span 1;
        height: 257px;
    }
}

@media screen and (max-width:498px) {

    .home-gallery-box {
        height: 284px;
    }

    .home-gallery {
        grid-template-columns: repeat(1, 1fr);
    }

    .home-gallery-box:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
        height: 284px;
    }

    .home-gallery-box:nth-child(5) {
        grid-column: span 1;
        grid-row: span 2;
        height: 470px;
    }

    .home-gallery-box:nth-child(4) {
        grid-row: span 1;
        grid-column: span 1;
    }
}

/*------------------------------home-project-step item-------------------------*/

.home-project-step {
    width: 100%;
    height: 500px;
    background-color: #eee;
}

/*--------------------Blog page--------------------*/

.blog-news {
    display: flex;
    flex-direction: column;
    width: 66.666%;
}

.blog-title {
    color: var(--text-color1) !important;
    margin: 8px 0 14px;
}

.blog-side {
    display: flex;
    flex-direction: column;
    width: 33.333%;
    align-items: flex-end;
    color: var(--text-color3);
}

.blog-sidebar {
    background: var(--bg-color1);
    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(--text-color2);
    display: flex;
    justify-content: space-between;
}

.blog-search input {
    width: 93%;
    color: #999;
}

.blog-search-icon {
    color: var(--text-color1);
    cursor: pointer;
}

.blog-span {
    border-bottom: 1px solid var(--main-color);
    display: flex;
    width: 100%;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.blog-side-img {
    width: 90px;
}

.blog-sidebar li {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.blog-text {
    display: flex;
    padding: 0 15px 0 0px;
    line-height: 25px;
    letter-spacing: .5px;
    cursor: pointer;
    transition: color .3s ease;
    font-size: 15px;
}

.blog-text:hover {
    color: var(--main-color);
}

.blog-tags {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
}

.blog-tags a {
    color: var(--text-color2);
    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(--main-color);
}

@media screen and (max-width:768px) {

    .blog-news {
        width: 100%;
        margin-bottom: 40px;
    }

    .w-98p {
        width: 100% !important;
    }

    .blog-side,
    .blog-sidebar {
        width: 100% !important;
    }
}

/*------------------------------sub-blog page-------------------------*/

.subblog {
    width: 100% !important;
}

.slider-height{
    height: 60vh;
}

.subblog-info {
    width: 86%;
    margin-top: -100px;
    z-index: 1;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.subblog-info li {
    margin-right: 10px;
}

.subblog-box {
    width: 86%;
    height: 100px;
    background: #fff;
    box-shadow: 0 0 24px rgba(0, 0, 0, .1);
    text-transform: capitalize;
    z-index: 1;
    -moz-box-shadow: 0 0 24px rgba(0, 0, 0, .1);
    -webkit-box-shadow: 0 0 24px rgba(0, 0, 0, .1);
}

.subblog-box h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 20px;
    margin: 0;
    padding: 40px
}

.subblog-text {
    width: 86%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.subblog-text p {
    padding: 40px;
    text-align: justify;
}

.subblog-text div {
    width: 100%;
    background-color: #eee;
}

.subblog-admin {
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    padding: 65px 0;
    width: 79%;
    display: flex;
    justify-content: space-between;
}

.subblog-admin div {
    display: flex;
    align-items: center;
}

.subblog-admin svg {
    margin-left: 10px;
}

.subblog-like {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--bg-color);
}

.subblog-recent {
    display: flex;
    width: 100%;
    flex-direction: column;
    margin-top: 50px;
}

@media screen and (max-width:1200px) {
    .slider-height {
        height: 683px;
    }
}

@media screen and (max-width:990px) {
    .slider-height {
        height: 485px;
    }
}

@media screen and (max-width:768px) {
    .slider-height {
        height: 350px;
    }

    .subblog-info {
        margin-top: -88px;
    }

    .subblog-box {
        height: 70px;
        display: flex;
        align-items: anchor-center;
        justify-content: center;
    }

    .subblog-box h2 {
        font-size: 25px;
    }

    .subblog-text,
    .subblog-admin {
        width: 100%;
    }

    .subblog-text p {
        padding: 40px 0;
    }

    .subblog-text div p {
        padding: 30px;
    }

}

@media screen and (max-width:768px) {
    .subblog-admin {
        padding: 28px 15px;
    }

    .subblog-admin svg {
        width: 16px;
    }
}

/*--------------------about page--------------------*/

.about {
    width: 100%;
    background-color: var(--text-color2);
}

.about .home-about-right{
    border-color: #f8f5f5;
}

.about-work {
    width: 100%;
    background: url(../img/meric-dagli-uVdOLNJpxA0-unsplash-scaled-1.jpg) no-repeat center center / cover fixed;
    position: relative;
}

.about-work::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: #303849;
    opacity: .7;
    position: absolute;
    top: 0;
}

.about-itemwork {
    width: 25%;
    border-left: 1px solid var(--text-color1);
    text-align: center;
    z-index: 3;
}

.about-itemwork:last-child {
    border-left: none;
}


.about-itemwork span {
    margin-bottom: 0px;
    color: var(--main-color);
}

.client {
    width: 100%;
    background-color: #FAFAFA;
}

.client .container {
    overflow: hidden;
    flex-direction: column;
}

@media screen and (max-width:768px) {
    .about-work .container {
        flex-direction: column;
    }

    .about-itemwork {
        width: 100%;
        border-left: none;
        margin-bottom: 30px;
    }
}

/*--------------------subproduct page--------------------*/

.subproduct {
    justify-content: space-between;
}

.subproduct-text {
    display: flex;
    flex-direction: column;
    width: 40%;
    align-items: start;
}

.subproduct-text .button {
    margin: 35px 0 0;
}

.subproduct-detail {
    display: flex;
    flex-direction: column;
    width: 58%;
}

.subproduct-slider {
    width: 100%;
    height: 450px;
}

.subproduct-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mySwiper2 {
    height: 100px;
    margin-top: 10px;
}

.mySwiper2 .subproduct-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
}

.mySwiper2 .swiper-slide-thumb-active {
    opacity: 1;
}

.subproduct-table {
    width: 100%;
    margin-top: 130px;
    border: 0.1px solid var(--main-color);
}

.subproduct-table tr {
    display: flex;
    border: none;
}

.subproduct-table td {
    border: 0.1px solid var(--main-color);
    padding: 20px;
    color: var(--text-color1);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.subproduct-table td:first-child {
    width: 36%;
}

.subproduct-table td:last-child {
    width: 64%;
}

@media screen and (max-width:990px) {
    .subproduct {
        flex-direction: column-reverse;
    }

    .subproduct-text,
    .subproduct-detail {
        width: 100%;
        margin-bottom: 20px;
    }

    .subproduct-slider {
        height: auto;
    }

    .subproduct-table {
        margin-top: 20px;
    }
}

/*--------------------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: .69;
}

.subproject-text:last-child {
    flex: .25;
}

@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;
    }

    .subproject-text:first-child {
        margin-bottom: 30px;
    }
}