/**=====================
    Blog scss
==========================**/
.blog-section {
    .detail-content {
        margin-top: calc(14px + (24 - 14) * ((100vw - 320px) / (1920 - 320)));

        .title {
            padding: 0;
            margin-bottom: 5px;

            h4 {
                font-size: calc(22px + (30 - 22) * ((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 {
            +.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 $border-color !important;

                    [dir="rtl"] & {
                        border-right: 1px solid $border-color !important;
                        border-left: unset !important;
                    }
                }
            }

            @media (max-width: 767.98px) {
                border: none !important;

                &:nth-child(even) {
                    border: none !important;
                }
            }
        }

        .card {
            background-color: transparent;
            border: none;
            border-radius: 0;
            margin-bottom: 0;

            .card-head {
                border-radius: 9px;
                overflow: hidden;

                .card-img {
                    transition: 0.5s ease;
                }
            }

            .card-body {
                padding: calc(10px + (18 - 10) * ((100vw - 320px) / (1920 - 320))) 0 0;
                color: rgba($title-color, 0.8);

                h4 {
                    font-size: calc(18px + (20 - 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: 1;
                    -webkit-box-orient: vertical;

                    @media (max-width: 650px) {
                        -webkit-line-clamp: 2;
                    }

                    a {
                        color: $title-color;
                        display: block;

                        body.dark & {
                            color: $white;
                        }
                    }
                }

                p {
                    font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
                    color: $light-color;
                    margin-top: calc(3px + (5 - 3) * ((100vw - 320px) / (1920 - 320)));
                    line-height: 1.5;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    overflow: hidden;

                    @media (max-width: 650px) {
                        -webkit-line-clamp: 3;
                    }

                    body.dark & {
                        color: rgba($white, 0.6);
                    }

                    &.four {
                        -webkit-line-clamp: 3;
                    }
                }

                .link {
                    font-size: calc(16px + (17 - 16) * ((100vw - 320px) / (1920 - 320)));
                    letter-spacing: 0.4px;
                    font-weight: 500;
                    text-decoration: underline;
                    margin-top: calc(10px + (15 - 10) * ((100vw - 320px) / (1920 - 320)));
                    display: flex;
                    align-items: center;
                    gap: calc(5px + (8 - 5) * ((100vw - 320px) / (1920 - 320)));
                }

                i {
                    --Iconsax-Size: 22px;
                    --Iconsax-Color: var(--theme-color);
                }

                .blog-footer {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 4px;
                    margin-top: calc(10px + (12 - 10) * ((100vw - 320px) / (1920 - 320)));
                    font-size: 16px;
                    padding-top: calc(10px + (12 - 10) * ((100vw - 320px) / (1920 - 320)));
                    border-top: 1px solid $border-color;

                    >span {
                        text-transform: capitalize;
                    }
                }
            }
        }

        &:has(.no-data-found) {
            padding: 0;
            background-color: transparent;
        }
    }

    .blog-detail {
        line-height: 1;
        color: rgba($title-color, 0.7);
        display: flex;
        align-items: center;
        gap: 5px;
        font-weight: 500;
        margin-bottom: calc(5px + (10 - 5) * ((100vw - 320px) / (1920 - 320)));

        body.dark & {
            color: rgba($white, 0.7);
        }

        @media (max-width: 460px) {
            display: grid;
        }

        li {
            font-size: calc(14px + (15 - 14) * ((100vw - 320px) / (1920 - 320)));
            position: relative;
            display: flex;
            align-items: center;
            gap: 5px;
            line-height: 1.2;

            +li {
                &::before {
                    content: "/";

                    @media (max-width: 460px) {
                        content: none;
                    }
                }
            }
        }
    }

    .blog-title {
        height: 100%;
        padding: 0;
        margin: 0;
        border: none;
        display: flex;
        align-items: center;

        &::before {
            content: none;
        }

        h6 {
            font-size: 18px;
            color: var(--theme-color);
            letter-spacing: 0.5px;
            position: relative;
            z-index: 0;
            width: 33%;

            &::before {
                @include pos;
                @include center(vertical);
                left: 0;
                @include pseudowh($width: 100%, $height: 1px);
                background: linear-gradient(90deg, rgba($title-color, 0) 1%, var(--theme-color) 15%, var(--theme-color) 85%, rgba($title-color, 0) 100%);
                z-index: -1;
            }

            span {
                background-color: $section-bg;
                padding-right: 5px;
            }
        }

        h2 {
            font-size: 33px;
            line-height: 1.3;
            margin-top: 3px;
            background: var(--text-gradient-color);
            background-size: 200% auto;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: gradientMove 3s linear infinite;
        }

        p {
            color: $light-color;
            font-size: 16px;
            line-height: 1.3;
            margin-top: 9px;
        }

        .button-group-box {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 30px;

            .swiper-button-next,
            .swiper-button-prev {
                position: relative;
                inset: unset;
                width: 42px;
                height: 42px;
                @include flex_common;
                margin: 0;
                z-index: unset;
                border-radius: 100%;
                background-color: $border-color;

                &::after {
                    content: none;
                }

                i {
                    --Iconsax-Color: #222;
                    --Iconsax-Size: 20px;
                }
            }
        }
    }

    .border-right {
        border-right: 1px solid $border-color;

        [dir="rtl"] & {
            border-right: none;
            border-left: 1px solid $border-color;
        }

        body.dark & {
            border-color: #454851;

        }
    }

    .blog-left-box {
        position: sticky;

        @media (max-width: 1199.98px) {
            position: fixed;
            top: 0;
            left: calc(-320px + (-380 - -320) * ((100vw - 320px) / (1920 - 320)));
            width: calc(310px + (350 - 310) * ((100vw - 320px) / (1920 - 320)));
            height: 100vh;
            background-color: $white;
            transition: all 0.3s ease-in-out;
            z-index: 9;
            overflow: hidden auto;
            padding: calc(13px + (15 - 13) * ((100vw - 320px) / (1200 - 320))) calc(15px + (18 - 15) * ((100vw - 320px) / (1200 - 320)));

            [dir="rtl"] & {
                left: unset;
                right: calc(-320px + (-380 - -320) * ((100vw - 320px) / (1920 - 320)));
            }

            body.dark & {
                background-color: #252934;

                .blog-top-title {
                    background-color: #252934;
                    border-color: #454851;

                    h3,
                    .close-filter {
                        color: $white;
                    }

                    color: $white;
                }
            }

            &.show {
                left: 0;

                [dir="rtl"] & {
                    left: unset;
                    right: 0;
                }
            }
        }

        .blog-top-title {
            display: none;
            border-bottom: 1px solid $border-color;
            padding-bottom: 10px;
            margin-bottom: 12px;

            h3 {
                font-weight: 600;
                font-size: calc(20px + (23 - 20) * ((100vw - 320px) / (1920 - 320)));
                line-height: 1.3;
            }

            .close-filter {
                padding: 0;
                display: none;
                width: max-content;
                border: none;
            }

            @media (max-width: 1199.98px) {
                padding: calc(12px + (15 - 12) * ((100vw - 320px) / (1200 - 320))) calc(15px + (18 - 15) * ((100vw - 320px) / (1200 - 320)));
                margin-bottom: 18px;
                position: sticky;
                top: calc(-15px + (-18 - -15) * ((100vw - 320px) / (1200 - 320)));
                left: 0;
                margin-top: calc(-15px + (-18 - -15) * ((100vw - 320px) / (1200 - 320)));
                margin-left: calc(-15px + (-18 - -15) * ((100vw - 320px) / (1200 - 320)));
                z-index: 1;
                display: flex;
                align-items: center;
                justify-content: space-between;
                width: calc(100% + calc(15px + (18 - 15) * ((100vw - 320px) / (1200 - 320))) + calc(15px + (18 - 15) * ((100vw - 320px) / (1200 - 320))));
                background-color: $section-bg;

                .close-filter {
                    display: block;

                    .feather {
                        width: calc(22px + (24 - 22) * ((100vw - 320px) / (1200 - 320)));
                        height: calc(22px + (24 - 22) * ((100vw - 320px) / (1200 - 320)));
                        stroke-width: 2.3px;
                    }
                }
            }
        }

        .blog-box {
            .blog-title {
                margin-bottom: calc(9px + (16 - 9) * ((100vw - 320px) / (1920 - 320)));
                display: block;

                h4 {
                    line-height: 1.3;
                    margin-top: -5px;
                    font-size: calc(18px + (20 - 18) * ((100vw - 320px) / (1920 - 320)));

                    body.dark & {
                        color: $white;
                    }
                }
            }

            .form-box {
                position: relative;

                .form-control {
                    background-color: $section-bg;
                    padding: calc(8px + (13 - 8) * ((100vw - 320px) / (1920 - 320))) calc(8px + (13 - 8) * ((100vw - 320px) / (1920 - 320))) calc(8px + (13 - 8) * ((100vw - 320px) / (1920 - 320))) calc(36px + (44 - 36) * ((100vw - 320px) / (1920 - 320)));
                    color: $title-color;
                    border: 1px solid $border-color;

                    [dir="rtl"] & {
                        padding: calc(8px + (13 - 8) * ((100vw - 320px) / (1920 - 320))) calc(36px + (44 - 36) * ((100vw - 320px) / (1920 - 320))) calc(8px + (13 - 8) * ((100vw - 320px) / (1920 - 320))) calc(8px + (13 - 8) * ((100vw - 320px) / (1920 - 320)));
                    }

                    body.dark & {
                        background-color: #252934;
                        border-color: #454851;
                        color: $white;

                        &::placeholder {
                            color: rgba($white, 0.6);
                        }
                    }
                }

                .feather {
                    position: absolute;
                    @include center(vertical);
                    left: calc(11px + (12 - 11) * ((100vw - 320px) / (1920 - 320)));
                    color: $light-color;
                    width: calc(18px + (22 - 18) * ((100vw - 320px) / (1920 - 320)));
                    height: calc(18px + (22 - 18) * ((100vw - 320px) / (1920 - 320)));

                    [dir="rtl"] & {
                        left: unset;
                        right: calc(11px + (12 - 11) * ((100vw - 320px) / (1920 - 320)));
                    }

                    body.dark & {
                        color: rgba($white, 0.6);
                    }
                }
            }

            +.blog-box {
                margin-top: calc(16px + (20 - 16) * ((100vw - 320px) / (1920 - 320)));
                padding-top: calc(16px + (20 - 16) * ((100vw - 320px) / (1920 - 320)));
                border-top: 1px solid $border-color;

                body.dark & {
                    border-color: #454851;
                }
            }

            .blog-list {
                display: grid;
                gap: calc(10px + (12 - 10) * ((100vw - 320px) / (1920 - 320)));

                li {
                    width: 100%;
                    display: flex;
                    align-items: center;
                    gap: calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));
                    line-height: 1;
                    margin-left: 6px;
                    transition: all 0.2s ease-in-out;

                    [dir="rtl"] & {
                        margin-left: unset;
                        margin-right: 6px;
                    }

                    &::before {
                        transition: all 0.2s ease-in-out;
                        content: "";
                        width: 5px;
                        height: 5px;
                        display: block;
                        border-radius: 100%;
                        background-color: #808B97;
                    }

                    &:hover {
                        &::before {
                            background-color: var(--theme-color);
                        }

                        a {
                            color: var(--theme-color);
                        }
                    }

                    a {
                        transition: all 0.2s ease-in-out;
                        color: $light-color;
                        letter-spacing: 0.3px;
                        font-size: calc(15px + (16 - 15) * ((100vw - 320px) / (1920 - 320)));
                        font-weight: 500;

                        body.dark & {
                            color: rgba($white, 0.6);

                            &:hover {
                                color: var(--theme-color);
                            }
                        }
                    }
                }
            }

            .tag-list {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;

                li {
                    a {
                        transition: all 0.2s ease-in-out;
                        color: rgba($title-color, 0.8);
                        letter-spacing: 0.5px;
                        border: 1px solid $border-color;
                        font-size: calc(14px + (15 - 14) * ((100vw - 320px) / (1920 - 320)));
                        background-color: $section-bg;
                        font-weight: 500;
                        padding: calc(5px + (8 - 5) * ((100vw - 320px) / (1920 - 320))) calc(9px + (14 - 9) * ((100vw - 320px) / (1920 - 320)));
                        display: block;
                        border-radius: calc(3px + (4 - 3) * ((100vw - 320px) / (1920 - 320)));

                        &:hover {
                            background-color: var(--theme-color);
                            border-color: transparent;
                            color: $white;
                        }

                        body.dark & {
                            background-color: #323640;
                            border-color: #454851;
                            color: $white;

                            &:hover {
                                background-color: var(--theme-color);
                                color: $white;
                            }
                        }
                    }
                }
            }

            .blog-post-list {
                .post-box {
                    width: 100%;
                    display: flex;
                    gap: calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));
                    line-height: 1;
                    transition: all 0.2s ease-in-out;

                    +li {
                        margin-top: calc(14px + (18 - 14) * ((100vw - 320px) / (1920 - 320)));
                    }

                    .post-image {
                        display: block;
                        width: calc(96px + (110 - 96) * ((100vw - 320px) / (1920 - 320)));
                        height: calc(68px + (72 - 68) * ((100vw - 320px) / (1920 - 320)));
                        border-radius: calc(4px + (6 - 4) * ((100vw - 320px) / (1920 - 320)));
                        overflow: hidden;

                        img {
                            @include pseudowh;
                            object-fit: cover;
                        }
                    }

                    .post-content {
                        width: calc(100% - calc(96px + (110 - 96) * ((100vw - 320px) / (1920 - 320))) - calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320))));

                        body.dark & {
                            a {
                                color: $white;
                            }

                            h6 {
                                color: rgba($white, 0.6);
                            }
                        }

                        a {
                            font-size: calc(15px + (16 - 15) * ((100vw - 320px) / (1920 - 320)));
                            line-height: 1.3;
                            font-weight: 500;
                            -webkit-line-clamp: 2;
                            -webkit-box-orient: vertical;
                            display: -webkit-box;
                            overflow: hidden;
                            color: $title-color;

                        }

                        h6 {
                            font-size: 14px;
                            color: $light-color;
                            font-weight: 500;
                            margin-top: calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));

                            body.dark & {
                                color: rgba($white, 0.6);
                            }
                        }
                    }
                }
            }
        }
    }

    .details-image-box {
        border-radius: calc(8px + (12 - 8) * ((100vw - 320px) / (1920 - 320)));
        overflow: hidden;
        position: relative;

        img {
            aspect-ratio: 103/50;
            object-fit: cover;
            width: 100%;

            @media (max-width: 767.98px) {
                aspect-ratio: unset;
                height: calc(268px + (321 - 268) * ((100vw - 320px) / (768 - 320)));
            }
        }

        .badge {
            position: absolute;
            color: $white;
            background-color: var(--theme-color);
            top: calc(10px + (14 - 10) * ((100vw - 320px) / (1920 - 320)));
            right: calc(10px + (14 - 10) * ((100vw - 320px) / (1920 - 320)));
            padding: calc(7px + (8 - 7) * ((100vw - 320px) / (1920 - 320))) calc(7px + (11 - 7) * ((100vw - 320px) / (1920 - 320)));
            border-radius: 5px;
            font-size: 13px;
        }

        .detail-content {
            position: absolute;
            padding: calc(28px + (50 - 28) * ((100vw - 320px) / (1920 - 320))) calc(12px + (18 - 12) * ((100vw - 320px) / (1920 - 320))) calc(14px + (25 - 14) * ((100vw - 320px) / (1920 - 320)));
            text-align: center;
            margin: 0;
            bottom: 0;
            left: 0;
            width: 100%;
            font-size: 18px;
            background: linear-gradient(0deg, $title-color 21%, rgba($title-color, 0) 100%);
            color: $white;
            overflow: hidden;

            &::before {
                @include pos;
                top: 0;
                left: 0;
                @include pseudowh;
                z-index: -1;
                backdrop-filter: blur(10px);
                mask-image: linear-gradient(0deg, #222222 5%, rgba(34, 34, 34, 0) 100%);
            }

            .title {
                display: block;

                h4 {
                    color: $white;
                    font-weight: 600;
                    font-size: calc(22px + (28 - 22) * ((100vw - 320px) / (1920 - 320)));
                    letter-spacing: 0.8px;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    display: -webkit-box;
                    overflow: hidden;
                }
            }

            .blog-details-list {
                gap: 4px;
                @include flex_common;

                .blog-detail {
                    margin: 0;
                    color: rgba($white, 0.7);

                    @media (max-width: 460px) {
                        display: flex;
                    }
                }
            }
        }
    }
}

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 $border-color;

        body.dark & {
            border-color: #454851;
        }

        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;
        }

        body.dark & {
            h3 {
                color: $white;
            }
        }
    }

    .overview-list {
        padding: 0;
        font-size: 16px;
        gap: 0;

        +.overview-list {
            margin-top: 10px;
        }

        h3 {
            font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
            font-weight: 600;
            color: $title-color;

            body.dark & {
                color: $white;
            }

            ~p {
                margin-top: 5px;
            }
        }

        p {
            line-height: 1.5;
            margin: 0 0 calc(18px + (23 - 18) * ((100vw - 320px) / (1920 - 320)));
            position: relative;
            padding-left: 21px;

            [dir="rtl"] & {
                padding-left: unset;
                padding-right: 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: $light-color;

                [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;
        }
    }
}

.leave-comment-box {
    margin-top: calc(14px + (23 - 14) * ((100vw - 320px) / (1920 - 320)));
    padding-top: calc(14px + (23 - 14) * ((100vw - 320px) / (1920 - 320)));
    border-top: 1px solid $border-color;

    body.dark & {
        border-color: #454851;
    }

    .leave-box {
        .form-group {
            label {
                font-size: calc(15px + (16 - 15) * ((100vw - 320px) / (1920 - 320)));
                font-weight: 500;
                line-height: 1.3;
                color: $title-color;
            }

            .form-control {
                border: 1px solid $border-color;
                border-radius: calc(4px + (6 - 4) * ((100vw - 320px) / (1920 - 320)));
                background-color: $section-bg;

                body.dark & {
                    background-color: #252934;
                    border-color: #454851;
                    color: $white;

                    &::placeholder {
                        color: rgba($white, 0.6);
                    }
                }
            }
        }

        p {
            font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
            color: rgba($title-color, 0.8);
            letter-spacing: 0.3px;
            margin-bottom: calc(12px + (16 - 12) * ((100vw - 320px) / (1920 - 320)));
            line-height: 1.5;

            body.dark & {
                color: $white;

                span {
                    color: $white;
                }
            }

            span {
                color: $danger-color;
            }
        }

        .btn {
            border-radius: 6px;
            letter-spacing: 0.7px;
            display: block;
            width: auto;
            margin-top: 0.5rem;
        }
    }
}