/**=====================
    Blog scss
==========================**/
.blog-section {
    .blog-details-image {
        img {
            aspect-ratio: 5/2;
            width: 100%;
            object-fit: cover;
            border-radius: calc(6px + (12 - 6) * ((100vw - 320px) / (1920 - 320)));
        }
    }

    .detail-content {
        margin-top: calc(14px + (24 - 14) * ((100vw - 320px) / (1920 - 320)));

        .title {
            padding: 0;
            margin-bottom: 5px;

            h4 {
                font-size: calc(20px + (30 - 20) * ((100vw - 320px) / (1920 - 320)));
                font-weight: 700;
                line-height: 1.3;
                color: $title-color;
                white-space: wrap;
            }
        }

        .detail-sec {
            margin-top: calc(10px + (20 - 10) * ((100vw - 320px) / (1920 - 320)));
        }
    }

    .blog-content {
        &:last-child {
            margin-bottom: 0;
        }

        .blog-main {
            background-color: $section-bg;
            border-radius: calc(9px + (15 - 9) * ((100vw - 320px) / (1920 - 320)));
            overflow: hidden;

            +.blog-main {
                &:nth-child(3n+4) {
                    border-left: none;

                    [dir="rtl"] & {
                        border-right: none;
                        border-left: unset;
                    }
                }

                @media (max-width: 1199.98px) {
                    border: none;
                }
            }

            @media (max-width: 1199.98px) {
                border: none;

                &:nth-child(even) {
                    border-left: 1px solid $gray-color !important;

                    [dir="rtl"] & {
                        border-right: 1px solid $gray-color !important;
                        border-left: unset !important;
                    }
                }
            }

            @media (max-width: 767.98px) {
                border: none !important;

                &:nth-child(even) {
                    border: none !important;
                }
            }
        }

        .card {
            position: relative;
            background-color: transparent;
            border: none;
            border-radius: 0;
            margin-bottom: 0;

            .card-img {
                transition: all 0.2s ease-in-out;
                position: relative;
            }

            .blog-category {
                position: absolute;
                left: 10px;
                top: 10px;
                font-size: 16px;
                font-weight: 500;
                padding: 3px 10px;
                background-color: #eeefff;
                color: var(--primary-color);
                border-radius: 5px;

            }


            .card-body {
                padding: calc(10px + (18 - 10) * ((100vw - 320px) / (1920 - 320))) calc(15px + (24 - 15) * ((100vw - 320px) / (1920 - 320)));
                color: $light-color;

                h4 {
                    font-size: calc(18px + (22 - 18) * ((100vw - 320px) / (1920 - 320)));
                    font-weight: 500;
                    line-height: 1.2;
                    color: $title-color;
                    width: 100%;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;

                    a {
                        color: $title-color;
                    }

                    &:hover {
                        a {
                            color: var(--primary-color);
                        }
                    }
                }

                i {
                    --Iconsax-Size: calc(17px + (20 - 17) * ((100vw - 320px) / (1920 - 320)));
                    --Iconsax-Color: #808B97;
                }

                .blog-footer {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 4px;
                    margin-top: calc(10px + (20 - 10) * ((100vw - 320px) / (1920 - 320)));
                    font-size: 16px;
                    padding-top: calc(10px + (12 - 10) * ((100vw - 320px) / (1920 - 320)));
                    border-top: 1px solid $gray-color;
                }
            }
        }

        &:has(.no-data-found) {
            padding: 0;
            background-color: transparent;
        }
    }

    .blog-detail {
        line-height: 1;
        color: #808B97;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        font-weight: 400;
        row-gap: calc(5px + (10 - 5) * ((100vw - 320px) / (1920 - 320)));
        margin-top: 5px;
        padding: 0;

        li {
            font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
            position: relative;
            font-weight: 400;
            line-height: 1.2;


            +li {
                padding-left: calc(5px + (10 - 5) * ((100vw - 320px) / (1920 - 320)));
                margin-left: calc(5px + (10 - 5) * ((100vw - 320px) / (1920 - 320)));

                [dir="rtl"] & {
                    padding-left: unset;
                    padding-right: calc(5px + (10 - 5) * ((100vw - 320px) / (1920 - 320)));
                    margin-left: unset;
                    margin-right: calc(5px + (10 - 5) * ((100vw - 320px) / (1920 - 320)));
                }

                &::before {
                    @include pos;
                    @include center(vertical);
                    left: 0;
                    width: 1px;
                    height: calc(100% + calc(1px + (4 - 1) * ((100vw - 320px) / (1920 - 320))));
                    border-left: 1px solid $gray-color;

                    [dir="rtl"] & {
                        left: unset;
                        right: 0;
                        border-right: 1px solid $gray-color;
                        border-left: none;
                    }
                }
            }
        }
    }
}

h4 {
    font-size: calc(19px + (22 - 19) * ((100vw - 320px) / (1920 - 320)));
    font-weight: 500;
    line-height: 28px;
    color: $title-color;
    white-space: wrap;
}

.detail-sec {
    border-radius: 10px;
    background-color: transparent !important;

    .details-title {
        margin-bottom: calc(8px + (15 - 8) * ((100vw - 320px) / (1920 - 320)));
        padding-bottom: calc(8px + (15 - 8) * ((100vw - 320px) / (1920 - 320)));
        border-bottom: 1px dashed $gray-color;

        h3 {
            font-size: calc(20px + (22 - 20) * ((100vw - 320px) / (1920 - 320)));
            font-weight: 600;
        }

        p {
            font-size: calc(15px + (16 - 15) * ((100vw - 320px) / (1920 - 320)));
            margin: 5px 0 0;
            line-height: 1.4;
        }
    }

    .overview-list {
        padding: 0;
        font-size: 16px;
        gap: 0;

        +.overview-list {
            margin-top: 10px;
        }

        h3 {
            font-size: 18px;
            font-weight: 600;
            color: $title-color;

            ~p {
                margin-top: 5px;
            }
        }

        p {
            line-height: 1.5;
            margin: 0 0 23px;
            position: relative;
            padding-left: 21px;

            ~p {
                margin-bottom: 10px;
            }

            &:last-child {
                margin: 0;
            }

            &::before {
                @include pos;
                top: 10px;
                left: 4px;
                width: 5px;
                height: 5px;
                border-radius: 100%;
                background-color: #808B97;

                [dir="rtl"] & {
                    left: unset;
                    right: 4px;
                }
            }
        }
    }
}

.custom-row-col {
    &:has(.no-data-found) {
        width: 100%;
        margin-inline: 0;

        >.col-12 {
            width: 100%;
            padding-inline: 0;
        }
    }
}

.privacy-content,
.terms-content {
    &:has(.no-data-found) {
        width: 100%;
        margin-inline: 0;

        >.col-xxl-8.col-xl-9.col-lg-10 {
            width: 100%;
            margin-inline: 0;
        }
    }
}