@use '../../utils' as *;

/*----------------------------------------*/
/*  5.1 Postbox css
/*----------------------------------------*/
.postbox {
    &-wrapper {
        @media #{$lg,$sm,$xs} {
            padding-right: 0;
        }
    }

    &-item {
        margin-bottom: 80px;

        &:last-child {
            margin-bottom: 0;
        }
    }

    &-thumb {
        position: relative;
        display: inline-block;
        margin-bottom: 30px;

        & img {
            width: 100%;
            border-radius: 15px;
        }

        & span {
            position: absolute;
            right: 0;
            bottom: 0;
            padding: 10px 18px;
            font-size: 18px;
            font-weight: 700;
            text-align: center;
            background: var(--tp-theme-1);
            color: var(--tp-common-white);
            border-radius: 15px 0 15px 0;
        }
    }

    &-meta {
        &-content {
            & span {
                font-size: 16px;
                @media #{$xs} {
                    font-size: 13px;
                }
            }
        }

        &-icon {
            font-size: 18px;
            margin-right: 8px;
            color: var(--tp-theme-1);
        }
    }

    &-title {
        font-size: 36px;
        font-weight: 800;
        color: var(--tp-common-black);
        @include tp-transition();

        @media #{$lg,$md,$xs} {
            font-size: 28px;
        }

        &:hover{
            color: var(--tp-theme-1);
        }
    }

    &-video{
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        text-align: center;
        transform: translateY(-50%);
        margin: auto;
        & a{
            font-size: 22px;
            width: 80px;
            height: 80px;
            line-height: 80px;
            text-align: center;
            display: inline-block;
            color: var(--tp-common-black);
            background: var(--tp-common-white);
            border-radius: 50%;
        }
    }

    &-text {
        & p {
            margin-bottom: 30px;
        }
    }

    &-read-more {
        & a {
            border-radius: 15px;
        }
    }

    &-details {
        &-title {
            font-size: 30px;
            font-weight: 800;
            margin-bottom: 30px;
            color: var(--tp-common-black);
        }

        &-list {
            &-thumb {
                margin-right: 30px;

                @media #{$sm,$xs} {
                    margin-bottom: 30px;
                }

                & img {
                    border-radius: 15px;
                }
            }

            & ul {
                & li {
                    list-style: none;
                    position: relative;
                    padding-left: 28px;
                    margin-bottom: 15px;
                    color: var(--tp-common-black);

                    &:last-child {
                        margin-bottom: 0;
                    }

                    & i {
                        position: absolute;
                        left: 0;
                        top: 5px;
                    }
                }
            }
        }

        &-tag {
            &-title {
                font-size: 22px;
                font-weight: 700;
                margin-right: 30px;
                color: var(--tp-common-black);
            }

            & a {
                border-radius: 30px !important;
            }

            &-content {
                @media #{$sm} {
                    margin-bottom: 10px;
                }
            }
        }

        &-social {
            & a {
                width: 38px;
                height: 38px;
                font-size: 16px;
                line-height: 38px;
                text-align: center;
                border-radius: 50%;
                margin-right: 10px;
                color: var(--tp-common-black);
                background: var(--tp-grey-1);
                @include tp-transition();

                &:last-child {
                    margin-right: 0;
                }

                &:hover {
                    color: var(--tp-common-white);
                    background: var(--tp-common-black);
                }
            }
        }

        &-share {
            padding-bottom: 30px;
            border-bottom: 1px solid var(--tp-border-1);
        }
    }

    &-comment {
        &-title {
            font-size: 36px;
            font-weight: 800;
            color: var(--tp-common-black);

            @media #{$xs} {
                font-size: 30px;
            }
        }

        & ul {
            & li {
                list-style: none;

                &.children {
                    @media #{$sm,$xs} {
                        margin-left: 0;
                    }
                }
            }
        }

        &-avater {
            flex: 0 0 auto;

            @media #{$sm,$xs} {
                margin-right: 20px;
            }

            @media #{$xs} {
                margin-bottom: 20px;
            }
        }

        &-name {
            font-size: 20px;
            font-weight: 800;
            color: var(--tp-common-black);
        }

        &-reply {
            & a {
                font-size: 14px;
                font-weight: 700;
                display: inline-block;
                color: var(--tp-common-black);
                @include tp-transition();

                &:hover {
                    color: var(--tp-theme-1);
                }

            }
        }

        &-box {
            padding-bottom: 50px;
            margin-bottom: 30px;
            border-bottom: 1px solid var(--tp-border-1);
        }

        &-from {
            @media #{$md,$sm,$xs} {
                margin-bottom: 40px;
            }
        }
    }

}