* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #000;
}

.container-blog {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    flex-direction: column;
    position: relative;
    gap: 0 10px;
    padding: 10px 5px;
}

.side-bar-container {
    grid-column-start: 1;
    grid-column-end: 12;
}

.side-bar-container .category-list-container {
    height: max-content;
    width: 90%;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: -1px 1px 4px 0 rgb(0 0 0 / 7%);
    border: 1px solid #e0e0e0;
}

.side-bar-section-title {
    color: #df1e2f;
    width: 100%;
    border-bottom: 1px solid #eff0f2;
    text-align: center;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
}

.category-list-container ul li a img {
    border-radius: 5px;
    margin-left: 10px;
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;

}

.category-list-container ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
    transition: 0.5s all;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    backdrop-filter: blur(5px);
    margin: 0 15px;
}

.category-list-container ul li a {
    display: flex;
    align-items: center;
}

.category-list-container ul > li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.category-list-container ul > li .list-item-container div {
    display: none;
}

.articles-container, .article-detail-container, .article-related-container {
    width: 100%;
    grid-column-start: 1;
    grid-column-end: 12;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;

}
.last-article-item-content p{
    margin: 15px 0px 11px;
}

.article-container {
    max-width: 290px;
    max-height: 490px;
    overflow: hidden;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0px 2px 4px 0px rgb(0 0 0 / 15%);
    transition: .5s;
    margin-bottom: 58px;
}

.article-container:hover {
    box-shadow: 0 10px 20px 0px rgb(0 0 0 / 10%);
}

.article-image {
    position: relative;
    transition: .5s all;
    overflow: hidden;
    max-height: 228px;
}

.article-image a {
    overflow: hidden;
    width: 100%;
    max-height: 228px;
}

.article-section-fade-in {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: rgba(21, 71, 133, 0.65);
    opacity: 0;
    transition: 0.5s all;
}

.article-section-fade-in p:first-child {
    position: absolute;
    font-size: 20px;
    color: #d9d9d9;
    transition: .5s all;
    font-weight: 900;
    top: 20px;
}

.article-section-fade-in p:nth-child(2) {
    position: absolute;
    font-size: 20px;
    color: #d9d9d9;
    transition: .5s all;
    background: rgba(217, 217, 217, 0.34);
    font-weight: 900;
    padding: 15px 50px;
    bottom: 20px;
}

.article-section-fade-in:hover p:first-child {
    top: 50px;
}

.article-section-fade-in:hover p:nth-child(2) {
    bottom: 50px;
}

.article-image:hover .article-section-fade-in {
    opacity: 1;
}

.article-image span {
    position: absolute;
    right: 15px;
    bottom: 15px;
    background-color: #d8d8d8;
    min-width: 82px;
    padding: 0 10px;
    height: 32px;
    display: block;
    text-align: center;
    line-height: 32px;
    pointer-events: none;
    z-index: 2;
    transition: 0.5s all;
    opacity: 1;
}

.article-image:hover span {
    opacity: 0;
}

.article-content .article-content-main {
    padding: 5px 25px;
}

.article-content h5 {
    text-align: center;
    margin: 25px 0 10px;
    font-size: 14px;
    color: #000;
}

.article-content p {
    font-size: 14px;
    color: #959595;
    line-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-content-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-content-footer p {
    padding-right: 12px;
    color: #072e68;
}

.article-content-footer .space-line {
    width: 50%;
    transition: 0.5s all;
    height: .5px;
    background: #dfdbdb;
}

.article-content-footer a {
    width: 50px;
    height: 45px;
    color: white;
    background: #d9d9d9;
    border-radius: 0 3px 0 0;
    line-height: 51px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .5s all;
}

.article-content-footer a:hover {
    background: #0091d0;
}

.article-container:hover .article-content-footer .space-line {
    background: #1f3a59;
}

.article-content-footer svg {
    height: 20px;
}

.pagination-container {
    grid-column-start: 1;
    grid-column-end: 12;
    display: flex;
    justify-content: center;
}

.pagination-container ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 15px;
}

.pagination-container ul > li a {
    padding: 5px;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    transition: 0.5s all;
    font-size: 20px;
}

.pagination-container ul > li:hover a {
    background: #1f3a59;
    color: #d9d9d9;
}

.pagination-container ul .active {
    background: #1f3a59;
    color: #d9d9d9;
}

.search-article-container {
    height: max-content;
    width: 90%;
    align-items: start;
    margin: 0 auto 10px;
    display: none;
    flex-direction: column;
    border-radius: 5px;
    box-shadow: -1px 1px 4px 0 rgb(0 0 0 / 7%);
    border: 1px solid #e0e0e0;
}

.search-form {
    width: 100%;
    margin: 15px 0;
    position: relative;
    padding: 0 15px;
}

.search-form input {
    width: 90%;
    height: 38px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding-left: 40px;
    padding-right: 19px;
    font-size: 12px;
}

.last-notes-container {
    height: max-content;
    width: 90%;
    align-items: start;
    margin: 10px auto;
    display: none;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: -1px 1px 4px 0 rgb(0 0 0 / 7%);
    border: 1px solid #e0e0e0;
}

.search-form button {
    position: absolute;
    border-radius: 5px 0 0 5px;
    left: 10px;
    width: 40px;
    height: 100%;
    background-color: #df1e2f;
    color: #fff;
    top: 0;
    padding-left: 16px;
    bottom: 0;
    margin: auto;
    border: none;
}

.article-detail-container {
    justify-content: start !important;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #d7d7d7;
    flex-direction: column;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 24px;
    display: inline-block;
    margin-bottom: 0;
    color: #6a6a6a;
    position: relative;
}

.detail-title span {
    position: relative;
    width: 14px;
    height: 14px;
    border: 2px solid #0091d0;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.article-detail-container p {
    font-size: 14px;
    line-height: 35px;
    text-align: justify;
    margin-bottom: 40px;
}

.article-detail-container h2 {
    color: #800000;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
    margin: 18px 0;
}

.configuration-box {
    background-color: #dff0d8;
    color: #3c763d;
    height: 177px;
}

.chip-link {
    background-color: red;
    padding: 18px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 300px;
    border-radius: 50px;
    margin: 25px auto 0;
    color: white;
}

.chip-link a {
    color: #989898;
    text-align: center;
}

.chip-link a > strong {
    background-color: red;
    padding: 18px 16px;
    border-radius: 50px;
    color: white;
}

.configuration-box p {
    font-size: 14px;
    line-height: 35px;
    text-align: justify;
    margin-bottom: 40px;
}

.article-detail-content img {
    width: 100%;
    height: auto;
}


.detail-title span::before {
    position: absolute;
    content: " ";
    width: 6px;
    height: 6px;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    background-color: #0091d0;
    border-radius: 50%;
}

.article-related-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-related-container h3 {
    position: relative;
    font-size: 20px;
    display: inline-block;
    color: #6e6e6e;
    margin-bottom: 55px;
}

.article-related-container h3::after {
    position: absolute;
    content: "";
    right: -20px;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #0091d0;
}

.article-related-container h3::before {
    position: absolute;
    content: "";
    left: -20px;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #0091d0;
}

.article-related-contents {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

@media (min-width: 768px ) {
    .side-bar-container {
        grid-column-start: 1;
        grid-column-end: 5;
        width: 297px;
    }

    .search-article-container {
        display: flex !important;
    }

    .side-bar-section-title {
        text-align: start !important;
    }

    .side-bar-container-detail {
        margin-top: 48px;
    }

    .category-list-container {
        display: flex !important;
        width: 250px;
        flex-direction: column;
    }

    .category-list-container ul, .last-notes-container ul {
        flex-direction: column;
        align-items: start;
    }

    .category-list-container ul > li, .last-notes-container ul > li {
        display: flex;
        justify-content: start;
        width: 100%;
        align-items: center;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .category-list-container ul > li .list-item-container {
        display: flex;
        flex-direction: column;
        font-size: 14px;
        color: #474747;
    }

    .category-list-container ul > li .list-item-container div {
        display: flex;
        font-size: 13px;
        color: gray;
        align-items: center;
    }

    .category-list-container ul > li .list-item-container div > svg {
        width: 20px;
        height: 20px;
        font-weight: 900;
        transform: rotate(180deg);
    }

    .category-list-container ul > li:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .category-list-container p {
        color: #df1e2f;
        border-bottom: 1px solid #eff0f2;
        padding: 13px 20px;
        text-align: start;
        margin-bottom: 15px;
        font-size: 14px;
        font-weight: 600;
    }

    .articles-container, .article-detail-container, .article-related-container {
        grid-column-start: 5;
        grid-column-end: 12;
    }

    .last-notes-container {
        display: flex !important;
    }

    .last-notes-container ul {
        padding: 10px;
        width: 100%;
    }

    .last-notes-container ul > li img {
        border-radius: 5px;
        margin-left: 10px;
        width: 50px;
        height: 50px;
        border: 1px solid #ddd;
    }

    .last-notes-container ul > li a {
        display: flex;
        align-items: center;
    }

    .last-article-item-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        font-size: 13px;
        color: #474747;
        text-overflow: ellipsis;
        height: 82px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .last-article-item-content div {
        display: flex;
        align-items: center;
    }

    .last-article-item-content div svg {
        width: 16px;
        height: 16px;
    }

    .last-article-item-content div span {
        font-size: 13px;
        color: gray;
    }

}

@media (min-width: 992px ) {
    .articles-container {
        justify-content: center !important;
    }

    .article-detail-container {
        justify-content: start !important;
        width: 100%;
    }

}

@media (min-width: 1600px ) {
    .articles-container {
        justify-content: start !important;
    }

    .container-blog {
        width: 1600px;
    }
}

