﻿.main-content {
    padding: 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

/* Tìm kiếm theo từ khóa - Start */
.search-bar {
    display: flex;
    gap: 0px;
}

#txt-search-article {
    width: 100%;
}

    #txt-search-article:focus {
        outline: none;
        box-shadow: none;
    }

.search-bar-icon > .search-icon {
    width: fit-content;
    background-color: #103667;
}

.tab-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.d-guides, .d-top-articles {
    width: 100%;
}

.nav-tabs > li {
    float: left;
    margin-bottom: -1px;
    padding: 14px;
    position: relative;
    display: block;
    color: #717171;
    font-weight: bold;
}

    .nav-tabs > li.active {
        color: #555;
        cursor: default;
        background-color: #fff;
        border-bottom: 3px solid #222222;
        border-radius: 4px 4px 0 0;
    }
    .nav-tabs > li:hover {
        cursor: pointer;
        background-color: #F7F7F7;
    }
    /* Hướng dẫn - Start */
    .d-guides {
        padding-top: 32px;
    }

    .d-guides .first-item {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .d-guides .btn-all-article {
        font-weight: bold;
    }

    .d-guides .list-article {
        display: grid;
        grid-gap: 16px;
    }

        .d-guides .list-article .article img {
            border-radius: 12px;
            width: 100%;
            object-fit: cover;
            height: 254px;
        }

        .d-guides .list-article .article .d-article-title .article-title {
            font-size: 16px;
            font-weight: 500;
            font-style: normal;
            text-align: left;
            color: #222222;
        }

        .d-guides .list-article .article .d-article-title .icon-redirect {
            display: none;
        }

        .d-guides .list-article .a-all-topic {
            display: none;
        }

.icon-redirect {
    display: block;
    fill: none;
    height: 16px;
    width: 16px;
    stroke: currentcolor;
    stroke-width: 4;
    overflow: visible;
    align-self: center;
}

@media (min-width: 1128px) {
    .d-guides .list-article {
        grid-template-columns: repeat(4,1fr);
        grid-template-rows: repeat(1,1fr);
    }
}

@media (min-width: 744px) and (max-width: 1127px) {
    .d-guides .list-article {
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: repeat(2,1fr);
    }
}

@media (min-width: 375px) and (max-width: 743px) {
    .d-guides .content {
        gap: 0;
    }

    .d-guides .first-item .btn-all-article {
        display: none;
    }

    .d-guides .list-article {
        grid-template-columns: repeat(1,1fr);
        grid-template-rows: repeat(4,1fr);
    }

        .d-guides .list-article .article {
            border-bottom: 1px solid #DDDDDD;
            padding: 24px 0;
        }

            .d-guides .list-article .article img {
                display: none;
            }

            .d-guides .list-article .article .d-article-title, .d-guides .list-article .a-all-topic .d-article-title {
                width: 100%;
                display: flex;
                flex-direction: row;
                justify-content: space-between;
            }

                .d-guides .list-article .article .d-article-title .icon-redirect, .d-guides .list-article .a-all-topic .d-article-title .icon-redirect {
                    display: block;
                }

        .d-guides .list-article .a-all-topic {
            width: 100%;
            display: block;
            font-size: 18px;
            font-weight: 500;
            font-style: normal;
            text-align: left;
            color: #363636;
            padding: 24px 0;
        }
}
/* Hướng dẫn - End */

/* Bài viết hàng đầu - Start */
.d-top-articles .title {
    font-size: 30px;
    font-weight: 500;
    font-style: normal;
    text-align: left;
    color: #363636;
}

.d-top-articles .list-article {
    display: grid;
    grid-gap: 32px 16px;
}

@media (min-width: 1128px) {
    .d-top-articles .list-article {
        grid-template-columns: repeat(3,1fr);
        /*grid-template-rows: repeat(2,1fr);*/
    }
}

@media (min-width: 744px) and (max-width: 1127px) {
    .d-top-articles .list-article {
        grid-template-columns: repeat(2,1fr);
        /*grid-template-rows: repeat(3,1fr);*/
    }
}

@media (min-width: 375px) and (max-width: 743px) {
    .d-top-articles .list-article {
        grid-template-columns: repeat(1,1fr);
        /*grid-template-rows: repeat(6,1fr);*/
    }
}

.d-top-articles .list-article .article .article-title {
    text-decoration: underline;
}

.d-top-articles .list-article .article .article-description {
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    text-align: left;
    color: #363636;
    min-height: 82px;
}
/* Bài viết hàng đầu - End */
/* Tab - End*/

/* Khám phá thêm - Start */
.d-explore-more {
    padding-top: 32px;
    padding-bottom: 32px;
    background-color: #103667;
    width: 100%;
}

    .d-explore-more .title {
        font-size: 30px;
        font-weight: 500;
        font-style: normal;
        text-align: left;
        color: #ffffff;
        margin-bottom: 32px;
    }

    .d-explore-more .list-article .article {
        border-radius: 12px;
        overflow: hidden;
        width: 100%;
    }

@media (min-width: 1128px) {
    .d-explore-more .content {
        display: flex;
        flex-direction: row;
        gap: 0 32px;
    }

    .d-explore-more .list-article {
        flex-direction: row;
        display: flex;
        flex-grow: 1;
        gap: 16px;
    }

        .d-explore-more .list-article .a-article {
            display: flex;
            flex-direction: column;
        }
}

@media (min-width: 744px) and (max-width: 1127px) {
    .d-explore-more .list-article {
        flex-direction: row;
        min-height: 291px;
        display: flex;
        flex-grow: 1;
        gap: 16px;
    }
}

@media (max-width: 743px) {
    .d-explore-more .list-article {
        display: flex;
        flex-grow: 1;
        flex-direction: column;
        gap: 16px;
    }

        .d-explore-more .list-article .a-article {
            display: flex;
            height: 130px;
            width: 100%;
        }

            .d-explore-more .list-article .article .last-item {
                height: 100%;
                justify-content: center;
            }

            .d-explore-more .list-article .article img {
                height: 130px !important;
                width: 130px !important;
            }
}

.d-explore-more .list-article .article .last-item {
    padding: 12px 0px 12px 0px;
    flex-grow: 1;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #0f4183;
}

.d-explore-more .list-article .article img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.d-explore-more .list-article .article .article-title {
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    text-align: left;
    color: #ffffff;
    padding: 0 16px 0 16px;
}

.d-explore-more .list-article .article .article-description {
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    color: #ffffff;
    padding: 0 16px 0 16px;
}

.d-explore-more .contact {
    flex-basis: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #FFFFFF;
}

    .d-explore-more .contact .contact-title {
        color: inherit;
        margin-bottom: 8px;
        font-size: 1.625rem;
        line-height: 1.875rem;
        letter-spacing: -0.01625rem;
        width: 100%;
        font-weight: bold;
        font-size: 22px;
    }

    .d-explore-more .contact .contact-description, .d-explore-more .contact .contact-feedback {
        font-size: 16px;
        line-height: 1.5rem;
        letter-spacing: normal;
        width: 100%;
    }

        .d-explore-more .contact .contact-feedback a {
            font-weight: 600;
            color: #FFFFFF;
            text-decoration: underline;
        }

    .d-explore-more .contact .d-btn-contact {
        margin: 24px 0;
        max-width: 300px;
        width: 100%;
    }

        .d-explore-more .contact .d-btn-contact .btn-contact {
            border-radius: 8px;
            border-width: 1px;
            border-style: solid;
            transition: box-shadow 0.2s cubic-bezier(0.2,0,0,1),transform 0.1s cubic-bezier(0.2,0,0,1);
            background: #FFFFFF;
            padding-top: 13px;
            padding-bottom: 13px;
            padding-left: 23px;
            padding-right: 23px;
        }
/* Khám phá thêm - End*/

/* Ask đăng nhập - Start*/
.d-help-dang-nhap {
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    padding: 16px;
}


.btn-dang-nhap  a {
   width: 100%;
   color: #F7F7F7 !important;
}
/* Ask đăng nhập - End*/
