@use '../utils' as *;

/*----------------------------------------*/
/*  06. blog css start
/*----------------------------------------*/
.it-blog {
    &-item {
        padding: 30px;
        transition: .3s;
        padding-bottom: 35px;
        border-radius: 20px;
        background-color: var(--it-common-white);
        border: 1px solid rgba(26, 182, 157, 0.1);
        box-shadow: 0 20px 30px 0 rgba(1, 6, 20, 0.1);
        @media #{$xl,$lg,$md,$xs}{
            padding: 25px;
            padding-bottom: 30px;
        }
        & .it-blog-btn {
            & .it-btn-yellow {
                padding: 0;
                background-color: transparent;
                & span {
                    font-size: 16px;
                    letter-spacing: 0.01em;
                    color: var(--it-text-body);
                    font-family: var(--it-ff-spartan-semibold);
                }
                & i {
                    color: var(--it-text-body);
                }
            }
        }
        &:hover {
            border-color: rgba($color: #1AB69D, $alpha: .5);
            & .it-blog-thumb {
                & img {
                    transform: scale(1.2);
                }
            }
            & .it-btn-yellow {
                & span,i {
                    color: var(--it-theme-1);
                }
            }
        }
    }
    &-thumb {
        overflow: hidden;
        & img {
            transition: 1.3s all ease;
        }
    }
    &-title {
        @media #{$xl,$lg,$md,$xs}{
            font-size: 18px;
        }
    }
    &-tag {
        position: absolute;
        left: 20px;
        top: 20px;
        border-radius: 5px;
        padding: 6.5px 20px;
        padding-bottom: 8px;
        color: var(--it-common-white);
        background-color: var(--it-theme-1);
        border: 1px solid rgba(3, 89, 78, 0.3);
    }
    &-meta {
        & span {
            position: relative;
            padding-left: 28px;
            @media #{$xl,$lg,$md,$xs}{
                font-size: 14px;
            }
            & svg {
                position: absolute;
                top: 0;
                left: 0;
                color: var(--it-theme-1);
            }
            &:not(:last-child) {
                padding-right: 20px;
                margin-right: 20px;
                border-right: 1px solid var(--it-theme-1);
            }
        }
    }
    &-shape {
        &-1 {
            position: absolute;
            top: -7%;
            left: 0;
            z-index: -1;
        }
        &-2 {
            position: absolute;
            top: 9%;
            right: 16%;
            z-index: -1;
            @media #{$xl,$lg}{
                right: 1%;
                transform: scale(.4);
            }
        }
        &-3 {
            position: absolute;
            top: 46%;
            right: 0;
            z-index: -1;
        }
        &-4 {
            position: absolute;
            z-index: -1;
            top: 35%;
            left: 5%;
            animation: itrotate2 3s ease-in-out 3s infinite alternate forwards;
        }
        &-5 {
            position: absolute;
            z-index: -1;
            right: 41%;
            top: 17%;
            animation: ittranslateX2 2s forwards infinite alternate;
            @media #{$lg,$md,$xs}{
                top: 5%;
                transform: scale(.6);
            }
        }
        &-6 {
            position: absolute;
            z-index: -1;
            top: 19%;
            right: 39%;
            animation: itrotate2 3s ease-in-out 3s infinite alternate forwards;
            @media #{$xs}{
                display: none;
            }
        }
        &-7 {
            position: absolute;
            z-index: -1;
            top: 3.5%;
            right: 6.5%;
            animation: itswing 1s forwards infinite alternate;
            transform-origin: bottom center;
            @media #{$lg}{
                right: 4%;
            }
            @media #{$xs}{
                display: none;
            }
            & img {
                @media #{$xl,$lg,$md}{
                    transform: scale(.7);
                }
            }
        }
        &-8 {
            position: absolute;
            z-index: -1;
            top: 0;
            left: 0;
        }
        &-9 {
            position: absolute;
            z-index: -1;
            top: -10%;
            right: 0;
            animation: flap 0.4s infinite alternate ease-in-out;
            @media #{$xl}{
                right: -10%;
            }
            @media #{$lg}{
                right: -18%;
                transform: scale(.8);
            }
        }
        &-10 {
            position: absolute;
            bottom: -20%;
            right: -5%;
            z-index: -1;
        }
    }
    &-btn {
        @media #{$md,$xs}{
            margin-top: 30px;
        }
    }
    &-style-2 {
        & .it-blog-shape-2 {
            top: -8%;
        }
        & .it-blog-btn {
            @media #{$md,$xs}{
                margin-top: 40px;
            }
        }
    }
    &-style-3 {
        & .it-blog-shape-2 {
            top: -10%;
            right: 7%;
            @media #{$lg,$md,$xs}{
                top: 1%;
                transform: scale(.6);
            }
        }
        & .it-blog-tag {
            border-radius: 100px;
            padding: 8px 20px;
            padding-bottom: 8px;
            color: var(--it-common-black);
            background-color: var(--it-theme-2);
        }
        & .it-blog-item {
            &:hover {
                border-color: rgba($color: #03594E, $alpha: .5);
            }
        }
    }
    &-style-4 {
        & .it-blog-shape-2 {
            top: -10%;
            right: 7%;
        }
        & .it-blog-tag {
            border: none;
            border-radius: 5px;
            padding: 8px 20px;
            padding-bottom: 8px;
            color: var(--it-common-white);
            background-color: var(--it-theme-4);
        }
        & .it-blog-title {
            font-size: 24px;
            line-height: 1.3;
            text-transform: uppercase;
            font-family: var(--it-ff-edensor-regular);
            @media #{$xs}{
                font-size: 19px;
            }
        }
        & .it-blog-item {
            &:hover {
                border-color: rgba($color: #618269, $alpha: .5);
                & .it-btn-yellow {
                    & span,i,svg {
                        color: var(--it-theme-4);
                    }
                }
            }
        }
        & .it-blog-meta span svg {
            color: var(--it-theme-4);
        }
    }
    &-style-5 {
        & .it-blog-tag {
            color: var(--it-common-white);
            background-color: var(--it-theme-1);
        }
        & .it-blog-title {
            font-weight: 700;
            font-size: 20px;
            line-height: 1.5;
            text-transform: capitalize;
            font-family: var(--it-ff-cinzel-decorative);
            @media #{$xl,$lg,$md,$xs}{
                font-size: 18px;
            }
        }
        & .it-blog-item {
            @media #{$xl,$xs}{
                padding: 25px 15px;
                padding-bottom: 30px;
            }
            @media #{$sm}{
                padding: 25px 30px;
                padding-bottom: 30px;
            }
            &:hover {
                border-color: rgba($color: #1AB69D, $alpha: .5);
                & .it-btn-yellow {
                    & span,i,svg {
                        color: var(--it-theme-1);
                    }
                }
            }
        }
        & .it-blog-meta span svg {
            color: var(--it-theme-1);
        }
        & .it-blog-shape-7 {
            top: 14.5%;
            right: 7.5%;
        }
    }
    &-inner-style {
        & .it-blog-title {
            @media #{$md}{
                font-size: 17px;
            }
        }
    }

}
.it-blog-2 {
    &-area {
        & .it-blog-thumb {
            border-radius: 20px 20px 0 0;
            & img {
                border-radius: 20px 20px 0 0;
            }
        }
        & .it-blog-btn {
            & .it-btn-yellow {
                padding: 0;
                background-color: transparent;
                & span {
                    font-size: 16px;
                    letter-spacing: 0.01em;
                    color: var(--it-text-body);
                    font-family: var(--it-ff-spartan-semibold);
                }
                & i {
                    color: var(--it-text-body);
                }
            }
        }
        & .it-blog-meta span svg {
            color: var(--it-theme-1);
        }
        & .it-blog-tag {
            position: absolute;
            left: 30px;
            top: -20px;
            z-index: 3;
        }
        & .it-blog-shape-2{
            @media #{$lg}{
                transform: scale(.5);
            }
        }
    }
    &-content {
        padding: 40px 30px;
        padding-bottom: 36px;
        margin-top: -15px;
        border-radius: 20px;
        background-color: var(--it-common-white);
        border: 1px solid rgba(26, 182, 157, 0.1);
        box-shadow: 0 20px 30px 0 rgba(1, 6, 20, 0.1);
        @media #{$md,$xs}{
            padding: 35px 20px;
        }
    }
    &-item {
        &:hover {
            & .it-blog-thumb {
                & img {
                    transform: scale(1.2);
                }
            }
        }
    }
}

.it-pagination {
    & ul {
        & li {
            display: inline-block;
            list-style-type: none;
            margin: 0 4px;
            & a {
                width: 60px;
                height: 60px;
                line-height: 61px;
                font-weight: 400;
                font-size: 18px;
                transition: .3s;
                display: inline-block;
                text-align: center;
                border-radius: 10px;
                border: 1px solid rgba(121, 121, 121, 0.2);
                @media #{$lg,$md}{
                    width: 50px;
                    height: 50px;
                    line-height: 50px;
                }
                @media #{$xs}{
                    width: 40px;
                    height: 40px;
                    line-height: 40px;
                }
                & i {
                    font-size: 20px;
                }
            }
            &.current {
                & a {
                    color: var(--it-common-white);
                    background-color: var(--it-theme-1);
                    border: 1px solid var(--it-theme-1);
                }
            }
            &:hover {
                & a {
                    color: var(--it-common-white);
                    background-color: var(--it-theme-1);
                    border: 1px solid var(--it-theme-1);
                }
            }
        }
    }
    &.theme-4-style {
        & ul {
            & li {
                & a {
                    border: 1px solid rgba($color: #797979, $alpha: .2);
                }
                &.current {
                    & a {
                        background-color: var(--it-theme-4);
                        border: 1px solid var(--it-theme-4);
                    }
                }
                &:hover {
                    & a {
                        background-color: var(--it-theme-4);
                        border: 1px solid var(--it-theme-4);
                    }
                }
            }
        }
    }
    &.theme-5-style {
        & ul {
            & li {
                &.current {
                    & a {
                        background-color: var(--it-theme-5);
                        border: 1px solid var(--it-theme-5);
                    }
                }
                &:hover {
                    & a {
                        background-color: var(--it-theme-5);
                        border: 1px solid var(--it-theme-5);
                    }
                }
            }
        }
    }
}

/*  blog-details css here  */
.it-blog-details {
    &-area {
        &.blog-details-left-sidebar {
            & .it-shop-sidebar {
                @media #{$md,$xs}{
                    margin-top: 0;
                    margin-bottom: 70px;
                }
            }
        }
        &.blog-sidebar-style {
            & .it-section-title {
                @media #{$sm}{
                    font-size: 28px;
                }
            }
        }
    }
}

.postbox {
    &-details-wrapper {
        & .it-blog-meta {
            & span {
                & svg {
                    top: 3px;
                }
                &:not(:last-child) {
                    margin-right: 35px;
                    padding-right: 0;
                    border: none;
                    @media #{$xs}{
                        margin-bottom: 15px;
                    }
                }
                @media #{$xs}{
                    display: block;
                }
                @media #{$sm}{
                    display: inline-block;
                }
            }
            &-wrap {
                margin-bottom: 30px;
                border-bottom: 1px solid rgba($color: #625E58, $alpha: .15);
                 @media #{$xs}{
                    flex-wrap: wrap;
                }
            }
        }
        & .it-section-title {
            margin-bottom: 12px; 
            font-family: var(--it-ff-spartan-semibold);
            @media #{$lg,$md} {
                font-size: 28px;
            }           
        }
        





        // & .it-sv-details-list {
        //     margin-right: 75px;
        //     @media #{$xl}{
        //         margin-right: 30px;
        //     }
        //     @media #{$lg,$md}{
        //         margin-right: 0;
        //     }
        //     @media #{$xs}{
        //         margin-right: 0;
        //         margin-bottom: 20px;
        //     }
        //     & ul {
        //         & li {
        //             font-weight: 500;
        //             font-size: 20px;
        //             line-height: 1.4;
        //             color: var(--it-common-black);
        //             @media #{$xl,$lg,$md,$xs}{
        //                 font-size: 17px;
        //             }
        //             &:not(:last-child){
        //                 margin-bottom: 12px;
        //             }
        //         }
        //     }
        // }
        // & .it-contact-inner-style .it-contact-2-form-box {
        //     margin-left: 0;
        //     padding: 50px 45px;
        //     @media #{$xs}{
        //         padding: 30px 20px;
        //     }
        // }
        // &.postbox-style-2 {
        //     & .postbox-dsc p {
        //         margin-right: 60px;
        //     }
        //     & .postbox-blockquote p {
        //         text-transform: uppercase;
        //         @media #{$xs} {
        //             font-size: 15px;
        //         }
        //         @media #{$sm} {
        //             font-size: 18px;
        //         }
        //     }
        //     & .it-contact-inner-style .it-contact-2-form-box {
        //         padding: 60px 75px;
        //     }
        //     & .postbox-user-info p {
        //         font-size: 16px;
        //         @media #{$xl,$lg} {
        //             & br {
        //                 display: none;
        //             }
        //         }
        //         @media #{$md,$xs} {
        //             font-size: 14px;
        //             & br {
        //                 display: none;
        //             }
        //         }
        //     }
        //     & .postbox-comment-content ul li.children {
        //         margin-left: 115px;
        //         @media #{$md,$xs} {
        //             margin-left: 0;
        //         }
        //     }
        //     & .postbox-dsc p {
        //         @media #{$lg,$md,$xs} {
        //             margin-right: 0;
        //         }
        //     }
        //     & .postbox-blockquote p {
        //         @media #{$md,$xs} {
        //             & br {
        //                 display: none;
        //             }
        //         }
        //     }
        //     & .it-contact-inner-style .it-contact-2-form-box {
        //         @media #{$md} {
        //             padding: 55px 45px;
        //         }
        //         @media #{$xs} {
        //             padding: 30px 20px;
        //         }
        //     }
        // }
        // & .it-contact-inner-style .contact__select .nice-select {
        //     border: 1px solid rgba(98, 94, 88, 0.15);
        //     @media #{$md}{
        //         height: 60px;
        //         line-height: 60px;
        //     }
        //     @media #{$xs}{
        //         font-size: 16px;
        //     }
        // }
    }
    &-video-btn {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        margin: 0 auto;
        transform: translateY(-50%);
        display: inline-block;
        height: 120px;
        width: 120px;
        line-height: 120px;
        text-align: center;
        border-radius: 50%;
        font-size: 26px;
        background-color: var(--it-theme-1);
        @media #{$xl,$lg,$md}{
            height: 90px;
            width: 90px;
            line-height: 85px;
        }
        @media #{$xs}{
            height: 60px;
            width: 60px;
            line-height: 55px;
        }
        & i,svg {
            padding-left: 5px;
            display: inline-block;
            color: var(--it-common-white);
            @media #{$xs}{
                width: 18px;
            }
        }
    }
    &-slider-arrow-wrap {
        & .postbox-arrow-prev {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 20px;
            z-index: 9;
        }
        & .postbox-arrow-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 20px;
            z-index: 9;
        }
        & button {
            padding: 0;
            height: 60px;
            width: 60px;
            line-height: 63px;
            text-align: center;
            font-size: 18px;
            border-radius: 50%;
            transition: .3s;
            color: var(--it-common-black);
            background-color: var(--it-common-white);
            @media #{$xs}{
                font-size: 14px;
                height: 40px;
                width: 40px;
                line-height: 40px;
            }
            &:hover{
                color: var(--it-common-white);
                background-color: var(--it-theme-1);
            }
        }
    }
    &-share {
        @media #{$lg} {
            margin-left: -20px;
        }
        & span {
            display: inline-block;
            margin-right: 10px;
            font-size: 20px;
            color: var(--it-common-black);
            font-family: var(--it-ff-spartan-semibold);
            @media #{$xl,$lg,$md,$xs} {
                font-size: 14px;
            }
        }
        &-social {
            & a {
                font-size: 16px;
                display: inline-block;
                transition: .3s; 
                height: 42px;
                width: 42px;
                line-height: 38px;  
                text-align: center;
                border-radius: 5px;
                border: 1px solid rgba($color: #0000, $alpha: .1);           
                color: var(--it-common-black);
                @media #{$lg,$xs} {
                    height: 35px;
                    width: 35px;
                    line-height: 31px; 
                }   
                & svg {
                    @media #{$xs} {
                        width: 12px;
                    } 
                } 
                &:not(:last-child) {
                    margin-right: 5px;
                }    
                &:hover {
                    color: var(--it-common-white);
                    background-color: var(--it-theme-1);
                }               
            }
        }
    } 
    &-tag {
        @media #{$xs} {
            margin-bottom: 20px;
        }
        &-title {
            font-size: 20px;
            display: inline-block;
            margin-right: 10px;
            color: var(--it-common-black);
            font-family: var(--it-ff-spartan-semibold);
            @media #{$xl,$lg,$md,$xs} {
                font-size: 14px;
            }
        }
        &-content {
            & a {
                padding: 0 14px;
                height: 41px;
                line-height: 41px;
                display: inline-block;
                border-radius: 5px;
                transition: 0.3s;
                color: var(--it-common-black);
                border-radius: 5px;
                background-color: var(--it-gray-1);
                border: 1px solid rgba(31, 36, 50, 0.1);
                &:not(:last-child){
                    margin-right: 7px; 
                }
                @media #{$xl,$lg,$md} {
                    padding: 0 15px;
                    height: 38px;
                    line-height: 38px;
                    font-size: 14px;
                }             
                @media #{$xs} {
                    padding: 0 12px;
                    height: 32px;
                    line-height: 32px;
                    font-size: 12px;
                    margin-bottom: 10px;
                }             
                &:hover {
                    color: var(--it-common-white);
                    background-color: var(--it-theme-1);
                }
            }
        }
        &-box {
            padding: 18px 0;
            border-top: 1px solid rgba(121, 121, 121, 0.3);
            border-bottom: 1px solid rgba(121, 121, 121, 0.3);
        }
    }
    &-banner {
        & img {
            max-width: inherit;
            @media #{$xl}{
                width: 100%;
            }
            @media #{$lg}{
                width: 100%;
                margin-bottom: 40px;
            }
            @media #{$md}{
                width: 100%;
            }
            @media #{$xs}{
                width: 100%;
                margin-bottom: 40px;
            }
        }
    }
    &-list {
        & ul {
            & li {
                padding-left: 27px;
                list-style-type: none;
                position: relative;
                font-size: 17px;
                @media #{$xl,$lg,$md,$xs}{
                    font-size: 14px;
                }
                &:not(:last-child){
                    margin-bottom: 23px;
                }
                & svg {
                    position: absolute;
                    top: 2px;
                    left: 0;
                }
                & span {
                    color: var(--it-common-black);
                    font-family: var(--it-ff-spartan-semibold);
                }
            }
        }
        &-wrap {
            margin-left: 30px;
            @media #{$xl,$lg,$md,$xs}{
                margin-left: 0;
            }
            & .postbox-list ul {
                & li {
                    font-size: 15px;
                    &:not(:last-child){
                        margin-bottom: 12px;            
                    }
                    @media #{$xl,$lg,$md,$xs}{
                        font-size: 14px;
                    }
                }
            }
            &-2 {
                & .postbox-list ul li:not(:last-child){
                    margin-bottom: 12px;            
                }
            }
        }
        &.style-2 {
            margin-right: 70px;
            @media #{$xl,$lg,$md,$xs}{
                margin-right: 0;
            }
        }
    }
    &-dsc {
        margin-right: 35px;
        @media #{$lg,$md,$xs}{
            margin-right: 0;
        }
        & p {
            line-height: 1.75;
            @media #{$xl,$lg,$md,$xs}{
                font-size: 14px;
            }
        }
        &.dsc-style-2 {
            margin-right: 0;
        }
    }
    &-user {  
        &-thumb {
            flex: 0 0 auto;
            & img {
                height: 120px;
                width: 120px;
                border-radius: 50%;
                margin-right: 28px;
                @media #{$xs} {
                    margin-bottom: 30px;
                }
            }
        }
        &-info {
            & .user-title {
                font-size: 20px;
                margin-bottom: 0;
                font-family: var(--it-ff-spartan-semibold);
            }
            & span {
                font-size: 16px;
                display: flex;
                align-items: center;
                & svg {
                    margin-right: 10px;
                    display: inline-block;
                }
            }
            & p {
                margin-bottom: 0;
                line-height: 1.75;
                margin-right: 10px;
                
                @media #{$xl,$lg,$md} {
                    font-size: 14px;
                    & br {
                        display: none;
                    }
                }
                @media #{$xs} {
                    font-size: 14px;
                    margin-right: 0;
                    & br {
                        display: none;
                    }
                }
            }
        }
        &-meta {
            & span {
                font-size: 16px;
                display: inline-flex;
                align-items: center;
                @media #{$lg,$md,$xs} {
                    margin-bottom: 10px;
                }
                & svg {
                    margin-right: 10px;
                    display: inline-block;
                }
                &:not(:last-child){
                    padding-right: 20px;
                    margin-right: 17px;
                    border-right: 1px solid var(--it-text-body);
                    @media #{$lg,$xs} {
                        border: none;
                    }
                }
            }
        }
    }
    &-comment {
        &-title {
            font-size: 34px;
            color: var(--it-common-black);
            font-family: var(--it-ff-spartan-semibold);
            @media #{$xl,$lg,$md} {
                font-size: 30px;
            }
            @media #{$xs} {
                font-size: 21px;
            }
            @media #{$sm} {
                font-size: 26px;
            }
        }
        &-content {
            & ul {
                & li {
                    list-style-type: none;
                    margin-bottom: 30px;
                    &:not(:last-child){
                        margin-bottom: 40px;
                    }
                    &:nth-child(even){
                        margin-left: 60px;
                        @media #{$xs}{
                            margin-left: 0;
                        }
                    }
                }
            }
        }
        & .reply {
            transition: .3s;
            line-height: 1;
            display: inline-block;
            color: var(--it-theme-1);
            & span {
                margin-right: 2px;
                display: inline;
            }
        }
        &-user {
            @media #{$xs} {
                flex-wrap: wrap;
            }
        }
        &-item {
            &.course-style {
                & .postbox-user-thumb img {
                    height: 173px;
                    width: 173px;
                    margin-right: 40px;
                    @media #{$xl,$lg,$md,$xs}{
                        height: 120px;
                        width: 120px;
                        margin-right: 20px;
                    }
                }
                & .postbox-user-info {
                    & .user-title {                    
                        font-size: 24px;
                    }
                    & span {
                        font-family: var(--it-ff-spartan-semibold);
                    }
                    & p {
                        font-size: 16px;
                        line-height: 1.75;
                        margin-top: 33px;
                        @media #{$xl,}{
                            & br {
                                display: none;
                            }
                        }
                        @media #{$lg,$md,$xs}{
                            font-size: 14px;
                            margin-right: 0;
                            & br {
                                display: none;
                            }
                        }
                    }
                }
            }
        }
    }
    &-social {
        & a {
            display: inline-block;
            border-radius: 5px;
            width: 41px;
            height: 41px;
            line-height: 38px;
            text-align: center;
            color: var(--it-text-body);
            transition: .3s;
            border: 1px solid rgba(31, 36, 50, 0.2);
            background-color: rgba($color: #1F2432, $alpha: .05);
            & svg {
                height: 17px;
            }
            &:not(:only-child){
                margin-right: 13px;
            }
            &:hover {
                color: var(--it-common-white);
                background-color: var(--it-theme-1);
            }
        }
    }
    &-contact {
        &-box {
            padding: 70px 75px;
            padding-top: 65px;
            border-radius: 20px;
            background-color: var(--it-gray-1);
            @media #{$lg,$md} {
                padding: 50px 40px;
            }
            @media #{$xs} {
                padding: 40px 20px;
            }
            @media #{$sm} {
                padding: 50px 40px;
            }
            & .it-btn-yellow.theme-bg {
                & span {
                    font-weight: 600;
                }
            }
        }
    }
    &-input-box {
        & input {
            height: 50px;
            line-height: 50px;
            padding-left: 0;
            background-color: transparent;
            border-bottom: 1px solid var(--it-text-body);
        }
        & textarea {
            height: 120px;
            padding-left: 0;
            background-color: transparent;
            border-bottom: 1px solid var(--it-text-body);
        }
    }
}

